/* ===== ESTILOS COMUNES A TODAS LAS PÁGINAS ===== */

:root {
  --color-primary: #00C9A7;
  --color-primary-dark: #00907f;
  --color-secondary: #007f6b;
  --bg-gradient: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(0,201,167,0.08) 100%);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg-gradient);
  min-height: 100vh;
}

/* ===== BOTONES Y CTA ===== */
.elementor-button {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
  transition: background-color .18s ease, color .18s ease, transform .12s ease;
}

.elementor-button.secondary {
  background-color: transparent !important;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary) !important;
}

.elementor-button:hover,
.elementor-button.secondary:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: var(--color-primary) !important;
  transform: translateY(-2px);
  text-decoration: none;
}

.elementor-button:focus,
.elementor-button.secondary:focus {
  outline: 3px solid rgba(0,201,167,0.18);
  outline-offset: 3px;
}

.elementor-button.secondary:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 600px) {
  .cta-buttons .elementor-button {
    width: 100%;
    max-width: 320px;
  }
}

/* ===== NAVEGACIÓN ===== */
.navbar-nav a:hover {
  color: var(--color-primary-dark) !important;
}

/* ===== FOOTER ===== */
.main-footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.18s ease;
}

.main-footer a:hover {
  color: var(--color-primary) !important;
}

.main-footer .footer-bottom {
  color: #999999;
  font-size: 0.9rem;
}

/* ===== FORMULARIOS ===== */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #374151;
}

.form-field span.required {
  color: #dc2626;
  margin-left: 0.15rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,0.16);
  padding: 0.55rem 0.7rem;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(0,201,167,0.25);
}

.form-info {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.4rem;
}

/* ===== LINKS GENÉRICOS ===== */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* VIDEO - adaptado a la marca (verde-azulado), profesional y claro */
    .video-section {
      background: linear-gradient(180deg, rgba(0,201,167,0.04), rgba(255,255,255,0));
      padding: 2.5rem 0;
    }

    .video-title {
      color: var(--color-primary-dark);
      text-align: center;
      font-size: clamp(20px, 2.6vw, 28px);
      margin: 0 0 0.5rem 0;
      font-weight: 700;
    }

    .video-caption {
      color: var(--color-text-secondary);
      text-align: center;
      margin: 0 0 1rem 0;
      max-width: 900px;
      margin-left: auto;
      margin-right: auto;
    }

    .video-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      background: #000;
      border-radius: 12px;
      box-shadow: 0 12px 30px rgba(0,0,0,0.18);
      margin: 0 auto;
      overflow: hidden;
      border: 6px solid rgba(0,201,167,0.06); /* sutil acento de marca */
    }
    .video-wrapper iframe {
      display: block;
      width: min(100%, calc(75vh * 16 / 9)); /* ancho calculado a partir de 75vh, limitado al 100% */
      height: 75vh;
      aspect-ratio: 16/9;
      border: 0;
      background: transparent;
    }

    /* Reutilizar elementor-heading-title para el título del vídeo y aplicar color de marca */
    .elementor-heading-title.video-title {
      color: var(--color-primary-dark);
      text-align: center;
      font-size: clamp(20px, 2.6vw, 28px);
      margin: 0 0 0.5rem 0;
      font-weight: 700;
    }

    /* Reutilizar elementor-widget-text-editor para caption (solo ajuste si hace falta) */
    .elementor-widget-text-editor .video-caption {
      color: var(--color-text-secondary);
      text-align: center;
      margin: 0 0 1rem 0;
      max-width: 900px;
      margin-left: auto;
      margin-right: auto;
    }

    /* Reutilizar .cta-buttons existente (no redefinida) */

    .video-note {
      text-align: center;
      color: rgba(0,0,0,0.6);
      margin-top: 0.6rem;
      font-size: 0.95rem;
    }

    @media (max-width: 900px) {
      .video-wrapper iframe { width: 100%; height: calc(100vw * 9 / 16); max-height: 56.25vh; }
      .video-wrapper { border-radius: 10px; }
    }

    @media (max-width: 600px) {
      .cta-buttons .elementor-button { width: 100%; max-width: 320px; }
    }

    /* NUEVOS ESTILOS PARA LA SECCIÓN DE SERVICIOS */
    .services-header {
      text-align: center;
      margin-bottom: 2rem;
    }

    .services-header h2 {
      color: var(--color-primary-dark);
      font-size: clamp(28.8px, 3.6vw, 38.4px);
      margin-bottom: 0.5rem;
      width: 100%;
    }

    .services-header p {
      color: var(--color-text-secondary);
      font-size: 1.26rem;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
    }

    .service-card {
      background: #ffffff;
      border-radius: 8px;
      padding: 1.5rem;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      transition: transform .2s ease, box-shadow .2s ease;
    }

    .service-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }

    @media (max-width: 900px) {
      .services-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 600px) {
      .services-grid {
        grid-template-columns: 1fr;
      }
    }

    /* FORMULARIO - Estilos adaptados de contacto.html */
    .form-panel {
      background: rgba(255,255,255,0.95);
      padding: 28px;
      border-radius: 14px;
      border: 1px solid rgba(0,201,167,0.08);
      box-shadow: 0 8px 30px rgba(0,0,0,0.05);
      max-width: 600px;
      margin: 2rem auto;
    }

    /* Centrar el form-panel dentro del elementor-container */
    #form .elementor-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    #form .elementor-container > h2,
    #form .elementor-container > p {
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }

    .form-panel h2 {
      margin: 0 0 8px 0;
      font-size: 20px;
      color: #1a1a1a;
    }

    .form-panel .muted {
      color: #666666;
      font-size: 14px;
      margin-bottom: 18px;
    }

    .grid-2 {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      margin-bottom: 16px;
    }

    @media (min-width: 768px) {
      .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
      }
    }

    label.form-label {
      display: block;
      color: #1a1a1a;
      font-size: 13px;
      margin-bottom: 6px;
      font-weight: 600;
    }

    .input,
    .textarea {
      width: 100%;
      padding: 12px 14px;
      border-radius: 10px;
      border: 1px solid rgba(0,201,167,0.12);
      background: #ffffff;
      color: #1a1a1a;
      font-size: 15px;
      font-family: inherit;
      transition: all 0.2s ease;
    }

    .input:focus,
    .textarea:focus {
      outline: none;
      box-shadow: 0 0 0 4px rgba(0,201,167,0.08);
      border-color: var(--color-primary);
    }

    .textarea {
      resize: vertical;
      min-height: 120px;
    }

    .btn-row {
      margin-top: 8px;
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .form-note {
      color: #666666;
      font-size: 13px;
      margin-top: 10px;
    }
    /* Formulario con label e input en la misma fila */
    .form-group {
      display: grid;
      grid-template-columns: 1fr 2fr;
      gap: 1rem;
      align-items: center;
      margin-bottom: 1.5rem;
    }

    .form-group-full {
      margin-bottom: 1.5rem;
    }