/* ============================================================
   Christian Valerio · El Niño de la Luz - Hoja de estilos
   Tema claro / celestial: Blanco / Dorado / Azul cielo
   ============================================================ */

/* --- Variables --- */
:root {
  --bg-deep:      #FFFFFF;
  --bg-dark:      #F4EFFC;
  --bg-medium:    #ECE4FA;
  --bg-card:      #FFFFFF;
  --primary:      #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light:#60A5FA;
  --gold:         #C99A2E;
  --gold-bright:  #E6B94D;
  --gold-dim:     rgba(201, 154, 46, 0.14);
  --wa-green:     #25D366;
  --wa-green-dark:#128C7E;
  --text-white:   #241C46;
  --text-muted:   #6A6288;
  --border:       rgba(201, 154, 46, 0.32);
  --shadow-glow:  0 12px 34px rgba(37, 99, 235, 0.14);
  --shadow-gold:  0 8px 24px rgba(201, 154, 46, 0.22);
  --radius:       12px;
  --radius-lg:    20px;
  --transition:   0.3s ease;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Poppins', system-ui, -apple-system, sans-serif;
}

/* Sutil sombra en tarjetas para dar profundidad en fondo claro */
.service-card, .step-item, .testimonial-card, .faq-item,
.contact-form-wrapper, .about-badge, .feature-item, .videocall-box {
  box-shadow: 0 6px 22px rgba(37, 27, 70, 0.06);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--bg-deep);
  color: var(--text-white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-bright); }

ul { list-style: none; }

blockquote { font-style: italic; }

address { font-style: normal; }

/* --- Utilidades --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Si el usuario prefiere menos movimiento, mostrar todo sin animar */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #B8912A 100%);
  color: #1a1205;
  border-color: var(--gold-bright);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: #1a1205;
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.55);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--wa-green) 0%, var(--wa-green-dark) 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  color: #fff;
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.55);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* --- Encabezados de sección --- */
.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
  display: inline-block;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
   MODAL — Consultas por Videollamada
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; }
/* Cuando está oculto, NO debe capturar clics ni cubrir la página */
.modal-overlay[hidden] { display: none !important; }

.modal-box {
  position: relative;
  max-width: 520px;
  width: 100%;
  background: linear-gradient(160deg, var(--bg-medium) 0%, var(--bg-dark) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 44px 36px 36px;
  text-align: center;
  box-shadow: var(--shadow-glow), var(--shadow-gold);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--gold); }

.modal-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.5));
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.modal-desc { color: var(--text-muted); margin-bottom: 20px; }
.modal-desc strong { color: var(--text-white); }

.modal-features {
  display: grid;
  gap: 10px;
  text-align: left;
  max-width: 380px;
  margin: 0 auto 26px;
  color: var(--text-muted);
  font-size: 1rem;
}

.modal-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SECCIÓN VIDEOLLAMADA
   ============================================================ */
.videocall-section { padding: 0 0 100px; background: var(--bg-dark); }

.videocall-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(96, 165, 250, 0.16) 0%, transparent 60%),
    var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  box-shadow: var(--shadow-gold);
}

.videocall-icon {
  font-size: 4.5rem;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

.videocall-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 14px;
}
.videocall-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.videocall-content > p { color: var(--text-muted); margin-bottom: 20px; }
.videocall-content strong { color: var(--text-white); }

.videocall-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin-bottom: 26px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-medium);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  transform: translateY(0);
  transition: transform 0.4s ease;
}
.cookie-banner.hidden { transform: translateY(110%); }

.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-icon { font-size: 1.6rem; }
.cookie-content p { flex: 1; min-width: 240px; font-size: 0.95rem; color: var(--text-muted); }
.cookie-buttons { display: flex; gap: 10px; }

.btn-cookie-accept,
.btn-cookie-decline {
  padding: 9px 20px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-cookie-accept {
  background: var(--gold);
  color: #1a1205;
  border: 1px solid var(--gold-bright);
}
.btn-cookie-accept:hover { background: var(--gold-bright); }
.btn-cookie-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--text-muted);
}
.btn-cookie-decline:hover { color: var(--text-white); border-color: var(--text-white); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 18px 0;
  transition: all var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(37, 27, 70, 0.06);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
}
.logo:hover { color: var(--text-white); }
.logo-icon { font-size: 1.6rem; color: var(--gold); }
.logo-text em { font-style: normal; color: var(--gold); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-white);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 9px 22px;
  border-radius: 50px;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--gold);
  color: #1a1205;
  box-shadow: var(--shadow-gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 950;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--gold);
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Empuja el menú y el selector de idioma a la derecha */
.nav-menu { margin-left: auto; }

/* --- Selector de idioma ES | EN --- */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang-switcher--desktop { margin-left: 26px; }
.lang-opt {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 4px 6px;
  transition: color var(--transition);
}
.lang-opt.active { color: var(--gold); }
.lang-opt:hover { color: var(--gold-bright); }
.lang-divider { color: var(--text-muted); opacity: 0.5; }
.nav-lang-mobile { display: none; }

/* --- Landing de Ads: nav derecha, CTA, disclaimers --- */
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-cta-btn { padding: 9px 22px; font-size: 0.82rem; }
.hero-disclaimer {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0.85;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.ad-disclaimer {
  max-width: 780px;
  margin: 0 auto 12px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  font-size: 0.9rem !important;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .nav-cta-btn { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at 50% 10%, rgba(230, 185, 77, 0.38) 0%, transparent 46%),
    radial-gradient(ellipse at 50% 100%, rgba(96, 165, 250, 0.30) 0%, transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, #F3F6FF 55%, #FBF6EA 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Cielo estrellado generado con gradientes (sin imágenes) */
.stars-bg {
  display: none; /* tema claro: sin cielo estrellado, se usa el resplandor celestial */
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 60% 20%, var(--gold-bright) 50%, transparent 51%),
    radial-gradient(1px 1px at 75% 55%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 32%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 12% 78%, var(--gold) 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 88%, rgba(255,255,255,0.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 76%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 45%, var(--gold-bright) 50%, transparent 51%);
  background-size: 100% 100%;
  animation: twinkle 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes twinkle {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--bg-deep) 100%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 820px; }

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 24px;
  text-shadow: 0 2px 18px rgba(37, 99, 235, 0.12);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-description strong { color: var(--gold); }

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.badge {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  z-index: 2;
}
.scroll-arrow { animation: bounce 2s infinite; color: var(--gold); }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ============================================================
   ESTADÍSTICAS
   ============================================================ */
.stats-section {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--gold);
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold-bright);
}
.stat-label { color: var(--text-muted); font-size: 1rem; margin-top: 4px; }

/* ============================================================
   SOBRE EL MAESTRO
   ============================================================ */
.about-section { padding: 100px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: center;
}

.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(96, 165, 250, 0.35) 0%, transparent 65%),
    radial-gradient(ellipse at 50% 80%, rgba(230, 185, 77, 0.25) 0%, transparent 60%),
    var(--bg-medium);
}
.about-photo { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; }

/* Si no existe la foto, se muestra el símbolo místico de respaldo */
.image-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--gold);
  text-shadow: var(--shadow-gold);
  z-index: 1;
}
.image-frame.no-photo .about-photo { display: none; }
.image-frame.no-photo .image-fallback { display: flex; }

.image-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 3;
}

.about-badges {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.about-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 20px;
  line-height: 1.35;
}
.about-content p { color: var(--text-muted); margin-bottom: 16px; }
.about-content strong { color: var(--text-white); }

.about-features { margin: 28px 0; display: grid; gap: 18px; }
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.feature-icon { font-size: 1.6rem; }
.feature-item strong { display: block; color: var(--text-white); margin-bottom: 2px; }
.feature-item p { color: var(--text-muted); font-size: 0.98rem; margin: 0; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services-section { padding: 100px 0; background: var(--bg-dark); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.service-card.featured { border-color: var(--gold); }

.featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold) 0%, #B8912A 100%);
  color: #1a1205;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 50px;
  white-space: nowrap;
}

.service-media {
  margin: -36px -28px 18px;
  height: 170px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-media img { transform: scale(1.06); }
.service-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,16,0.1) 35%, var(--bg-card) 100%);
  pointer-events: none;
}

.service-icon {
  font-size: 2.4rem;
  margin-top: -46px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.6));
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-white);
  margin-bottom: 12px;
}
.service-card > p { color: var(--text-muted); margin-bottom: 18px; flex: 1; }

.service-features { margin-bottom: 20px; display: grid; gap: 8px; }
.service-features li {
  position: relative;
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.service-features li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.service-link {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: var(--gold);
}
.service-link:hover { color: var(--gold-bright); }

.services-note {
  text-align: center;
  margin-top: 48px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ============================================================
   PROCESO
   ============================================================ */
.how-section { padding: 100px 0; }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}

.step-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px 32px;
  text-align: center;
}
.step-number {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(212, 175, 55, 0.15);
}
.step-icon { font-size: 2.4rem; margin-bottom: 14px; }
.step-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.step-item p { color: var(--text-muted); font-size: 1rem; }

.step-connector {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  color: var(--gold);
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonials-section { padding: 100px 0; background: var(--bg-dark); }

.testimonials-wrapper { overflow: hidden; }

.testimonials-track {
  display: flex;
  gap: 28px;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 calc((100% - 56px) / 3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.stars { color: var(--gold-bright); letter-spacing: 3px; margin-bottom: 14px; }
.testimonial-card blockquote {
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold-bright);
  flex-shrink: 0;
}
.testimonial-author strong { display: block; color: var(--text-white); }
.testimonial-author span { color: var(--text-muted); font-size: 0.88rem; }

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}
.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: var(--gold); color: #1a1205; }

.testimonial-dots { display: flex; gap: 10px; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.dot.active { background: var(--gold); }

.testimonials-cta { text-align: center; margin-top: 56px; }
.testimonials-cta p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-white);
  margin-bottom: 18px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { padding: 100px 0; }

.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:has(.faq-question[aria-expanded="true"]) { border-color: var(--gold); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 24px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-white);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--gold); }
.faq-icon {
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-answer { padding: 0 24px 22px; }
.faq-answer p { color: var(--text-muted); }
.faq-answer strong { color: var(--text-white); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-section { padding: 100px 0; background: var(--bg-dark); }

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 26px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-icon { font-size: 1.6rem; }
.contact-item strong { display: block; color: var(--text-white); margin-bottom: 2px; }
.contact-item p { color: var(--text-muted); }

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-white);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(106, 98, 136, 0.55); }
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--bg-medium); }

.form-error {
  display: block;
  color: #F87171;
  font-size: 0.88rem;
  margin-top: 5px;
  min-height: 1em;
}

.checkbox-group .checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-label input {
  width: auto;
  margin-top: 5px;
  accent-color: var(--gold);
}

.form-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.form-message {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.98rem;
}
.form-message.success {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #6EE7A0;
}
.form-message.error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #F87171;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 3fr 3fr 3fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-brand p { color: var(--text-muted); font-size: 1rem; }

.footer h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 16px;
}
.footer-links ul { display: grid; gap: 9px; }
.footer-links a { color: var(--text-muted); font-size: 1rem; }
.footer-links a:hover { color: var(--gold); }
.footer-contact p { color: var(--text-muted); margin-bottom: 10px; font-size: 1rem; }

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.92rem; }
.footer-disclaimer { margin-top: 6px; font-size: 0.85rem !important; opacity: 0.8; }

/* ============================================================
   WHATSAPP FLOTANTE Y SCROLL TOP
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--wa-green) 0%, var(--wa-green-dark) 100%);
  color: #fff;
  padding: 13px 22px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  animation: pulse-wa 2.5s infinite;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.06); color: #fff; }
.whatsapp-icon { font-size: 1.3rem; }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45); }
  50%      { box-shadow: 0 6px 34px rgba(37, 211, 102, 0.75); }
}

.scroll-top {
  position: fixed;
  bottom: 96px;
  right: 32px;
  z-index: 800;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-medium);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
}
.scroll-top:hover { background: var(--gold); color: #1a1205; }

/* ============================================================
   PÁGINA DE POLÍTICAS
   ============================================================ */
.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 150px 24px 80px;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold);
  margin-bottom: 12px;
}
.legal-updated { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 40px; }
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-white);
  margin: 38px 0 14px;
  padding-top: 8px;
}
.legal-page p, .legal-page li { color: var(--text-muted); margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; list-style: disc; }
.legal-page li { margin-bottom: 8px; }
.legal-page strong { color: var(--text-white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card { flex: 0 0 calc((100% - 28px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { max-width: 420px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-connector { justify-content: center; transform: rotate(90deg); }
}

@media (max-width: 768px) {
  .videocall-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px 24px;
    gap: 16px;
  }
  .videocall-features { grid-template-columns: 1fr; text-align: left; }
  .modal-box { padding: 36px 22px 28px; }
  .modal-buttons .btn { width: 100%; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-link { font-size: 1.1rem; }

  /* En móvil: oculta el selector de escritorio y muestra el del menú */
  .lang-switcher--desktop { display: none; }
  .nav-menu { margin-left: 0; }
  .nav-lang-mobile { display: block; margin-top: 10px; }
  .nav-lang-mobile .lang-opt { font-size: 1.3rem; }

  .services-grid { grid-template-columns: 1fr; }
  .testimonial-card { flex: 0 0 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form-wrapper { padding: 26px 20px; }
  .whatsapp-text { display: none; }
  .whatsapp-float { padding: 14px; }
  .cookie-content { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   REDISEÑO NIÑO DE LA LUZ — hero dividido + animaciones
   ============================================================ */
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: 200% center; } }

/* Texto dorado con brillo animado */
.hero-title em, .section-title em, .videocall-title em {
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}

/* HERO dividido (texto + imagen) */
.hero--split {
  min-height: auto;
  padding: 150px 0 96px;
  text-align: left;
  align-items: center;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
  width: 100%;
}
.hero--split .hero-content { max-width: none; text-align: left; }
.hero--split .hero-subtitle,
.hero--split .hero-buttons,
.hero--split .hero-badges { justify-content: flex-start; }
.hero--split .hero-title { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }

/* Imagen del hero con marco, flotación y rayos de luz */
.hero-media { position: relative; }
.hero-img-frame {
  position: relative;
  z-index: 2;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(37, 27, 70, 0.20), 0 0 0 8px rgba(255, 255, 255, 0.65);
  animation: floatY 6.5s ease-in-out infinite;
}
.hero-img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-rays {
  position: absolute;
  inset: -28%;
  z-index: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(230,185,77,0.20), transparent 25%,
    rgba(96,165,250,0.16) 50%, transparent 75%,
    rgba(230,185,77,0.20));
  filter: blur(8px);
  animation: spinSlow 28s linear infinite;
}
.hero-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-white);
  box-shadow: 0 12px 28px rgba(37, 27, 70, 0.14);
  white-space: nowrap;
}
.hero-chip--1 { top: 12%; left: -5%; animation: floatY 5s ease-in-out infinite; }
.hero-chip--2 { bottom: 12%; right: -4%; animation: floatY 7s ease-in-out infinite reverse; }

/* Orbes de luz flotando al fondo del hero */
.hero-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-orbs span { position: absolute; border-radius: 50%; filter: blur(45px); opacity: 0.55; }
.hero-orbs span:nth-child(1) { width: 300px; height: 300px; top: -50px; left: -70px; background: rgba(230,185,77,0.38); animation: floatY 9s ease-in-out infinite; }
.hero-orbs span:nth-child(2) { width: 240px; height: 240px; bottom: -40px; left: 28%; background: rgba(96,165,250,0.32); animation: floatY 11s ease-in-out infinite reverse; }
.hero-orbs span:nth-child(3) { width: 190px; height: 190px; top: 18%; right: 6%; background: rgba(167,139,250,0.30); animation: floatY 8s ease-in-out infinite; }
.hero-orbs span:nth-child(4) { width: 150px; height: 150px; bottom: 16%; right: 32%; background: rgba(230,185,77,0.26); animation: floatY 12s ease-in-out infinite reverse; }

/* Iconos de servicios con micro-animación */
.service-icon { transition: transform 0.35s ease; }
.service-card:hover .service-icon { transform: translateY(-5px) scale(1.1); }

/* Encabezados con Playfair en cursiva elegante */
.section-title em, .hero-title em, .videocall-title em { font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  .hero-img-frame, .hero-chip, .hero-orbs span, .hero-rays,
  .hero-title em, .section-title em, .videocall-title em { animation: none !important; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero--split { text-align: center; padding-top: 130px; }
  .hero--split .hero-content { text-align: center; }
  .hero--split .hero-subtitle,
  .hero--split .hero-buttons,
  .hero--split .hero-badges { justify-content: center; }
  .hero-media { max-width: 480px; margin: 0 auto; order: -1; }
  .hero-chip { display: none; }
}
