/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary:    #245677;
  --secondary:  #0091C6;
  --tertiary:   #2d3748;
  --light:      #f4f7fa;
  --white:      #ffffff;
  --gray:       #556677;   /* darkened from #64748b for AA contrast on light bgs */
  --gray-light: #e8eef4;
  --shadow:     0 8px 32px rgba(36,86,119,.12);
  --shadow-md:  0 16px 48px rgba(36,86,119,.18);
  --radius:     16px;
  --radius-sm:  10px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  color: var(--tertiary);
  overflow-x: hidden;
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul, ol  { list-style: none; }

/* Accessibility: skip link + visible focus */
.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  z-index: 2000; background: var(--primary); color: var(--white);
  padding: 10px 18px; border-radius: 0 0 10px 10px; font-size: .85rem; font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }

/* ============================================================
   UTILITIES
============================================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-tag {
  display: inline-block;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--secondary);
  background: rgba(0,145,198,.1);
  padding: 4px 14px; border-radius: 50px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; color: var(--primary);
  line-height: 1.2; margin-bottom: 16px;
}
.section-title span { color: var(--secondary); }
.section-subtitle {
  font-size: 1rem; color: var(--gray);
  max-width: 560px; line-height: 1.8;
}
.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* Justified prose paragraphs — NUNCA cortar palabras con guion */
.hero-desc,
.autoridad-text p, .autoridad-note,
.garantia-text p,
.faq-item p,
.dream-close,
.lead-desc,
.testi-card blockquote {
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
}

/* ============================================================
   BLOBS
============================================================ */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob  { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .12; animation: blobFloat 12s ease-in-out infinite; }
.blob-1 { width: 500px; height: 500px; background: var(--secondary); top: -80px;  left: -100px; animation-delay: 0s; }
.blob-2 { width: 360px; height: 360px; background: var(--primary);   top: 30%;   right: -80px; animation-delay: -4s; }
.blob-3 { width: 280px; height: 280px; background: var(--secondary); bottom: 0;  left: 40%;   animation-delay: -8s; }
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(28px,-18px) scale(1.05); }
  66%      { transform: translate(-18px,28px) scale(.96); }
}

/* ============================================================
   NAVBAR
============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 0 24px;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(36,86,119,.1);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); transition: filter var(--transition); }
#navbar.scrolled .nav-logo img { filter: none; }
.nav-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 500;
  color: rgba(255,255,255,.85);
  padding: 7px 16px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,.25);
  transition: var(--transition);
}
#navbar.scrolled .nav-back { color: var(--tertiary); border-color: var(--gray-light); }
.nav-back:hover { background: rgba(255,255,255,.15); color: var(--white); }
#navbar.scrolled .nav-back:hover { background: var(--light); color: var(--primary); }
.nav-cta-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 600;
  background: var(--secondary); color: var(--white) !important;
  padding: 8px 20px; border-radius: 50px;
  transition: var(--transition);
}
.nav-cta-pill:hover { background: var(--primary); transform: translateY(-1px); }

/* ============================================================
   HERO
============================================================ */
#hero {
  position: relative; min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, #1a3f5c 50%, #0f2940 100%);
  display: flex; align-items: center; overflow: hidden;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
  padding: 120px 0 80px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50px; padding: 5px 14px;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.4)} }
.hero-name {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 800; color: var(--white);
  line-height: 1.12; margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400; color: rgba(255,255,255,.8);
  margin-bottom: 20px; line-height: 1.6;
}
.hero-title strong { color: #7dd3f0; font-weight: 600; }
.hero-desc {
  font-size: .95rem; color: rgba(255,255,255,.78);
  max-width: 480px; margin-bottom: 32px; line-height: 1.85;
}
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; }
/* mismo tamaño que .btn-agenda (misma altura/tipografía), estilo secundario */
.btn-soft {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 1rem; font-weight: 700; color: var(--white); white-space: nowrap;
  padding: 18px 36px; border-radius: 50px;
  border: 2px solid rgba(255,255,255,.35);
  transition: var(--transition);
}
.btn-soft:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.stat-num   { font-size: 1.75rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-label { font-size: .72rem; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ── Hero visual: photo ring ── */
.hero-visual {
  position: relative; display: flex;
  align-items: center; justify-content: center;
  height: 480px;
}
.photo-ring-wrap { position: relative; width: 340px; height: 340px; }
.photo-ring-outer {
  position: absolute; inset: -56px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  animation: ringPulse 4s ease-in-out infinite;
}
@keyframes ringPulse { 0%,100%{transform:scale(1);opacity:.5} 50%{transform:scale(1.03);opacity:1} }
.photo-ring-mid {
  position: absolute; inset: -20px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.14);
  animation: ringPulse 4s ease-in-out infinite .8s;
}
.photo-circle {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, rgba(0,145,198,.3), rgba(36,86,119,.4));
  border: 3px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.photo-circle img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.photo-badge {
  position: absolute; background: rgba(255,255,255,.96);
  border-radius: 14px; padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  font-size: .76rem; font-weight: 600;
  color: var(--primary); white-space: nowrap;
}
.photo-badge .pb-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pb-top    { top: -36px;   left: 50%; transform: translateX(-50%); animation: pbFloat 4s ease-in-out infinite 0s; }
.pb-right  { top: 50%;  left: auto; right: -28px; transform: translateY(-50%); animation: pbFloatH 4s ease-in-out infinite .9s; }
.pb-bottom { bottom: -36px; left: 50%; transform: translateX(-50%); animation: pbFloat 4s ease-in-out infinite 1.8s; }
@keyframes pbFloat  { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-8px)} }
@keyframes pbFloatH { 0%,100%{transform:translateY(-50%) translateX(0)} 50%{transform:translateY(-50%) translateX(7px)} }

/* ============================================================
   DOLORES
============================================================ */
#dolores { position: relative; padding: 100px 0; background: var(--white); overflow: hidden; }
#dolores .blob { opacity: .05; }
.pain-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.pain-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--light); border: 1px solid var(--gray-light);
  border-radius: var(--radius); padding: 24px 22px;
  font-size: .9rem; font-weight: 500; color: var(--tertiary); line-height: 1.5;
  transition: var(--transition);
}
.pain-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(0,145,198,.25); }
.pain-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(36,86,119,.08); color: var(--primary);
}

/* ============================================================
   EL SUEÑO
============================================================ */
#sueno { position: relative; padding: 100px 0; background: var(--light); overflow: hidden; }
#sueno .blob { opacity: .06; }
.sueno-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.sueno-visual img {
  width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: var(--shadow-md); border: 1px solid var(--gray-light);
}
.dream-list { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 24px; }
.dream-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .98rem; font-weight: 500; color: var(--tertiary); line-height: 1.5;
}
.dream-list li::before {
  content: ''; width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat,
    linear-gradient(135deg,var(--primary),var(--secondary));
}
.dream-close { font-size: 1rem; color: var(--tertiary); line-height: 1.8; }
.dream-close strong { color: var(--primary); }

/* ============================================================
   AUTORIDAD
============================================================ */
#autoridad { position: relative; padding: 100px 0; background: var(--white); overflow: hidden; }
#autoridad .blob { opacity: .05; }
.autoridad-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.autoridad-photo img {
  width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: var(--shadow-md); border: 1px solid var(--gray-light);
}
.autoridad-text p { font-size: .95rem; color: var(--gray); line-height: 1.9; margin-bottom: 16px; }
.autoridad-text strong { color: var(--primary); }
.cert-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.cert-chip {
  font-size: .76rem; font-weight: 700; letter-spacing: .04em;
  color: var(--white); background: linear-gradient(135deg, var(--primary), #1a5a8a);
  padding: 6px 14px; border-radius: 8px;
}
.autoridad-note { font-size: .88rem; }
.autoridad-stats {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px;
  padding-top: 24px; border-top: 1px solid var(--gray-light);
}
.autoridad-stats div { display: flex; flex-direction: column; }
.as-num { font-size: 1.7rem; font-weight: 800; color: var(--primary); line-height: 1; }
.as-label { font-size: .76rem; color: var(--gray); margin-top: 4px; }

/* ============================================================
   OFERTA
============================================================ */
#oferta {
  position: relative; padding: 100px 0; overflow: hidden;
  background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}
#oferta .blob { opacity: .05; }
.oferta-card {
  position: relative; z-index: 1;
  background: var(--white); border: 1px solid var(--gray-light);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 48px; max-width: 900px; margin: 0 auto;
}
.oferta-head { text-align: center; margin-bottom: 36px; }
.oferta-name { font-size: clamp(1.5rem,3vw,2.1rem); font-weight: 800; color: var(--primary); line-height: 1.2; margin-bottom: 14px; }
.oferta-sub { font-size: 1rem; color: var(--gray); max-width: 560px; margin: 0 auto; line-height: 1.8; }
.oferta-sub strong { color: var(--primary); }
.oferta-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.oferta-block h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.check-list { display: flex; flex-direction: column; gap: 11px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; color: var(--tertiary); line-height: 1.5;
}
.check-list li::before {
  content: ''; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat,
    linear-gradient(135deg,var(--primary),var(--secondary));
}
.oferta-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--gray-light);
}
.oferta-price { display: flex; flex-direction: column; gap: 4px; }
.op-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--secondary); }
.op-amount { font-size: 2.6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.op-cur { font-size: 1rem; font-weight: 600; color: var(--gray); }
.op-note { font-size: .8rem; color: var(--gray); max-width: 340px; line-height: 1.5; }

/* ============================================================
   PROCESO (4 pasos)
============================================================ */
#proceso { padding: 100px 0; background: var(--white); position: relative; }
.process-steps {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
  background: var(--light); border: 1px solid var(--gray-light);
  border-radius: var(--radius); overflow: hidden;
}
.process-step {
  padding: 32px 24px; position: relative; text-align: center;
  border-right: 1px solid var(--gray-light);
}
.process-step:last-child { border-right: none; }
.ps-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white); font-size: .82rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.process-step h3 { font-size: .85rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.process-step p  { font-size: .78rem; color: var(--gray); line-height: 1.5; }

/* ============================================================
   TESTIMONIOS
============================================================ */
#testimonios { position: relative; padding: 100px 0; background: var(--light); overflow: hidden; }
#testimonios .blob { opacity: .05; }
/* Slider horizontal con scroll-snap — sin librerías */
.testi-slider {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* scroll-behavior NO global aquí: el reposicionamiento del loop debe ser
     instantáneo; el avance suave se pide explícito en scrollBy(behavior). */
  /* margen negativo + padding: deja aire para la sombra del hover sin cortar
     los bordes, manteniendo las 3 tarjetas alineadas al contenedor */
  margin: 0 -32px;
  padding: 16px 32px 44px;
  scroll-padding-inline: 32px;     /* el snap respeta el gutter de la sombra */
  scrollbar-width: none;                               /* Firefox: ocultar scrollbar */
}
.testi-slider::-webkit-scrollbar { display: none; }    /* WebKit: ocultar scrollbar */
.testi-controls { display: flex; justify-content: center; gap: 14px; margin-top: 24px; }
.testi-nav {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--primary);
  border: 1px solid var(--gray-light); box-shadow: var(--shadow);
  transition: var(--transition);
}
.testi-nav:hover { background: var(--primary); color: var(--white); border-color: var(--primary); transform: translateY(-2px); }
.testi-card {
  flex: 0 0 calc((100% - 48px) / 3);   /* 3 tarjetas enteras (gap 24 ×2) */
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--gray-light);
  border-radius: var(--radius); padding: 30px 32px;
  transition: var(--transition);
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testi-card blockquote { flex: 1 1 auto; font-size: .95rem; color: var(--tertiary); line-height: 1.8; margin-bottom: 20px; }
.testi-card blockquote::before { content: '\201C'; color: var(--secondary); font-size: 2rem; font-weight: 800; line-height: 0; vertical-align: -.4em; margin-right: 4px; }
.testi-card figcaption { display: flex; align-items: center; gap: 14px; font-size: .85rem; color: var(--gray); line-height: 1.4; }
.testi-card figcaption strong { color: var(--primary); font-size: .9rem; }
.testi-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white); font-size: .85rem; font-weight: 700; letter-spacing: .02em;
}

/* ============================================================
   LEAD MAGNET
============================================================ */
#leadmagnet { padding: 100px 0; background: var(--white); }
.lead-card {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
  background: linear-gradient(135deg, rgba(36,86,119,.05), rgba(0,145,198,.08));
  border: 1px solid rgba(0,145,198,.18);
  border-radius: var(--radius); padding: 48px;
}
.lead-desc { font-size: .95rem; color: var(--gray); line-height: 1.8; margin-bottom: 24px; max-width: 460px; }
.lead-form { display: flex; flex-direction: column; gap: 16px; max-width: 440px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--primary); }
.field input {
  font-family: inherit; font-size: .92rem; color: var(--tertiary);
  padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--gray-light); background: var(--white);
  transition: var(--transition);
}
.field input:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(0,145,198,.15); }
.field-check { display: flex; align-items: flex-start; gap: 10px; }
.field-check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--secondary); }
.field-check label { font-size: .8rem; color: var(--gray); line-height: 1.5; }
.btn-lead {
  font-family: inherit; font-size: .95rem; font-weight: 700; cursor: pointer;
  background: var(--secondary); color: var(--white);
  border: 2px solid var(--secondary); border-radius: 50px;
  padding: 14px 28px; margin-top: 4px;
  transition: var(--transition);
}
.btn-lead:hover { background: var(--primary); border-color: var(--primary); }
.btn-lead:disabled { opacity: .6; cursor: default; }
.lead-status { font-size: .88rem; font-weight: 600; color: var(--primary); }
/* PDF mockup */
.lead-mockup { display: flex; justify-content: center; }
.pdf-doc {
  position: relative; width: 200px; aspect-ratio: 3 / 4;
  background: var(--white); border-radius: 12px;
  box-shadow: var(--shadow-md); border: 1px solid var(--gray-light);
  padding: 28px 22px; transform: rotate(-4deg);
}
.pdf-badge {
  position: absolute; top: -12px; right: -12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white); font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  padding: 6px 12px; border-radius: 8px; box-shadow: var(--shadow);
}
.pdf-h { height: 14px; width: 70%; border-radius: 4px; background: linear-gradient(90deg,var(--primary),var(--secondary)); margin-bottom: 18px; }
.pdf-line { height: 8px; border-radius: 4px; background: var(--gray-light); margin-bottom: 11px; }
.pdf-line.short { width: 55%; }

/* ============================================================
   GARANTÍA
============================================================ */
#garantia { padding: 100px 0; background: var(--light); }
.garantia-card {
  display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center;
  background: var(--white); border: 1px solid var(--gray-light);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 44px 48px; max-width: 860px; margin: 0 auto;
}
.garantia-shield {
  width: 88px; height: 88px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white); box-shadow: var(--shadow);
}
.garantia-text p { font-size: .95rem; color: var(--gray); line-height: 1.85; margin-bottom: 12px; }
.garantia-text strong { color: var(--primary); }
.garantia-sign { font-style: italic; color: var(--tertiary) !important; }

/* ============================================================
   VIDEOS
============================================================ */
#videos { padding: 100px 0; background: var(--white); }
.video-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.video-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--gray-light); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--light); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(135deg, var(--primary), #0f2940); color: rgba(255,255,255,.85);
}
.vp-play {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.15); color: var(--white);
}
.vp-text { font-size: .82rem; font-weight: 600; letter-spacing: .02em; }

/* ============================================================
   FAQ
============================================================ */
#faq { padding: 100px 0; background: var(--light); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white); border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: var(--transition);
}
.faq-item[open] { border-color: rgba(0,145,198,.3); box-shadow: var(--shadow); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none;
  padding: 20px 24px; font-size: .95rem; font-weight: 600; color: var(--primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; width: 12px; height: 12px; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23245677' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; background-position: center;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { padding: 0 24px 22px; font-size: .9rem; color: var(--gray); line-height: 1.8; }

/* ============================================================
   CTA FINAL
============================================================ */
#cierre {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #1a3f5c 60%, #0f2940 100%);
  position: relative; overflow: hidden; text-align: center;
}
#cierre .blob-1 { opacity: .12; }
#cierre .blob-2 { opacity: .08; }
.cierre-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.cierre-inner .section-tag { color: #7dd3f0; background: rgba(125,211,240,.15); }
.cierre-inner .section-title { color: var(--white); }
.cierre-inner .section-subtitle { color: rgba(255,255,255,.72); margin: 0 auto 40px; }
.btn-agenda {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--secondary); color: var(--white);
  font-size: 1rem; font-weight: 700; white-space: nowrap;
  padding: 18px 36px; border-radius: 50px;
  border: 2px solid var(--secondary);
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(0,145,198,.4);
  cursor: pointer;
}
.btn-agenda:hover { background: transparent; color: var(--white); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,145,198,.5); }
.cierre-email {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .88rem; color: rgba(255,255,255,.6);
}
.cierre-email a { color: rgba(255,255,255,.8); transition: var(--transition); }
.cierre-email a:hover { color: #7dd3f0; }

/* ============================================================
   FOOTER
============================================================ */
footer { background: #0a1f30; padding: 22px 24px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-logo img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .55; }
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.45); }
.footer-link { font-size: .75rem; color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-link:hover { color: rgba(255,255,255,.8); }

/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
============================================================ */
@media (max-width: 1024px) {
  .hero-grid      { grid-template-columns: 1fr; text-align: center; padding: 100px 0 60px; gap: 0; }
  .hero-visual    { display: none; }
  /* en columna centrada, justificar deja huecos feos → centrar */
  .hero-desc      { margin: 0 auto 32px; text-align: center; }
  .hero-ctas      { justify-content: center; }
  .hero-stats     { justify-content: center; }
  .pain-grid      { grid-template-columns: 1fr 1fr; }
  .sueno-layout   { grid-template-columns: 1fr; gap: 36px; }
  .sueno-visual   { max-width: 460px; margin: 0 auto; }
  .autoridad-layout { grid-template-columns: 1fr; gap: 36px; }
  .autoridad-photo  { max-width: 420px; }
  .oferta-cols    { grid-template-columns: 1fr; gap: 24px; }
  .testi-card     { flex-basis: calc((100% - 24px) / 2); }   /* 2 tarjetas enteras */
  .video-grid     { grid-template-columns: 1fr 1fr; }
  .lead-card      { grid-template-columns: 1fr; gap: 36px; }
  .lead-mockup    { order: -1; }
  .process-steps  { grid-template-columns: 1fr 1fr; }
  .process-step   { border-right: none; border-bottom: 1px solid var(--gray-light); }
  .process-step:nth-child(odd)  { border-right: 1px solid var(--gray-light); }
  .process-step:last-child, .process-step:nth-last-child(2) { border-bottom: none; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
============================================================ */
@media (max-width: 768px) {
  /* Header compacto: el logo ya enlaza a talenter.mx, así que el back link
     es redundante y satura. Se oculta y queda logo + CTA sin amontonar. */
  #navbar { padding: 0 16px; }
  .nav-back { display: none; }
  .nav-logo img { height: 30px; }
  .nav-cta-pill { white-space: nowrap; font-size: .8rem; padding: 8px 16px; }

  /* Hero móvil: sin eyebrow, título más respirado y texto centrado */
  .hero-eyebrow { display: none; }
  .hero-grid    { padding: 88px 0 56px; }
  .hero-name    { font-size: clamp(1.75rem, 7.5vw, 2.3rem); margin-bottom: 14px; }
  .hero-title   { margin-bottom: 18px; }
  .hero-desc    { font-size: .9rem; }

  #dolores, #sueno, #autoridad, #oferta, #proceso, #testimonios, #leadmagnet, #garantia, #videos, #faq, #cierre { padding: 64px 0; }
  .container { padding: 0 18px; }
  .section-header { margin-bottom: 32px; }
  .pain-grid      { grid-template-columns: 1fr; }
  .video-grid     { grid-template-columns: 1fr; }
  .testi-card     { flex-basis: 100%; }   /* 1 tarjeta entera */
  .testi-slider   { margin: 0 -18px; padding: 14px 18px 38px; scroll-padding-inline: 18px; }
  .oferta-card    { padding: 32px 24px; }
  .lead-card      { padding: 32px 24px; }
  .pdf-doc        { width: 130px; padding: 20px 16px; }
  .pdf-h          { height: 11px; margin-bottom: 13px; }
  .pdf-line       { height: 7px; margin-bottom: 9px; }
  .garantia-card  { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; gap: 24px; }
  .garantia-visual { display: flex; justify-content: center; }
  .oferta-foot    { flex-direction: column; align-items: stretch; text-align: center; }
  .oferta-foot .btn-agenda { justify-content: center; }
  .process-steps  { grid-template-columns: 1fr; }
  .process-step   { border-right: none !important; border-bottom: 1px solid var(--gray-light) !important; }
  .process-step:last-child { border-bottom: none !important; }
  .hero-stats     { flex-wrap: wrap; gap: 20px 32px; }
  .btn-agenda, .btn-soft { font-size: .9rem; padding: 16px 32px; }
  /* centrar cada renglón: si los 3 no caben, el sobrante queda centrado */
  .autoridad-stats { justify-content: center; gap: 22px 32px; }
  /* y centrar el número sobre su etiqueta dentro de cada stat */
  .autoridad-stats > div { align-items: center; text-align: center; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
============================================================ */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  #dolores, #sueno, #autoridad, #oferta, #proceso, #testimonios, #leadmagnet, #garantia, #videos, #faq, #cierre { padding: 52px 0; }
  .footer-inner { flex-direction: column; text-align: center; gap: 10px; }
  .hero-ctas    { flex-direction: column; align-items: stretch; }
  .btn-agenda, .btn-soft { justify-content: center; }
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html, .testi-slider { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
