/* ============================================================
   SAPIENS BY SHIFT — LANDING PAGE
   Design System: Tectonic Precision (suavizada) | Light-first
   Version: 1.0 | 2026
   ============================================================ */

/* ── 1. TOKENS ───────────────────────────────────────────── */
:root {
  /* Primary — Sapiens Teal */
  --teal:         #2B9E8F;
  --teal-dark:    #1E7A6D;
  --teal-light:   #E6F5F2;
  --teal-glow:    rgba(43,158,143,0.18);
  --teal-mid:     rgba(43,158,143,0.08);

  /* Secondary — Warm Gold */
  --gold:         #E8A838;
  --gold-dark:    #B07A10;
  --gold-light:   #FFF5E0;
  --gold-glow:    rgba(232,168,56,0.18);

  /* Audience accents */
  --youth:        #7C6DD8;
  --youth-bg:     #EEF0FF;
  --adults:       #2B9E8F;
  --adults-bg:    #E6F5F2;

  /* Surfaces */
  --bg:           #FAFAF7;
  --surface:      #FFFFFF;
  --surface-alt:  #F5F0EB;
  --surface-3:    #EDE9E4;

  /* Borders */
  --border:       #E0DCD6;
  --border-mid:   #C8C4BE;
  --border-subtle:#EDEBE7;

  /* Text */
  --text:         #1A1C23;
  --text-2:       #6B6B6B;
  --text-3:       #9A9A9A;
  --white:        #FFFFFF;

  /* Fonts */
  --font-h:       'Outfit', sans-serif;
  --font-b:       'Instrument Sans', sans-serif;
  --font-d:       'Geist Mono', monospace;
  --font-m:       'Geist Mono', monospace;
  --font-l:       'Jura', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26,28,35,0.06);
  --shadow-md: 0 4px 16px rgba(26,28,35,0.08);
  --shadow-lg: 0 8px 32px rgba(26,28,35,0.10);
  --shadow-xl: 0 16px 48px rgba(26,28,35,0.12);

  /* Ease */
  --ease: cubic-bezier(0.16, 1, 0.32, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode override */
[data-theme="dark"] {
  --teal:         #3DBDAD;
  --teal-dark:    #2B9E8F;
  --teal-light:   #1A3A36;
  --teal-glow:    rgba(61,189,173,0.18);
  --teal-mid:     rgba(61,189,173,0.08);
  --gold:         #F0B84A;
  --gold-light:   #251A06;

  --bg:           #0F0F12;
  --surface:      #1A1C22;
  --surface-alt:  #22242C;
  --surface-3:    #2A2C34;

  --border:       rgba(255,255,255,0.08);
  --border-mid:   rgba(255,255,255,0.14);
  --border-subtle:rgba(255,255,255,0.05);

  --text:         #E8E6E1;
  --text-2:       #A0A0A0;
  --text-3:       #606060;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.30);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.35);
}

/* ── 2. RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-b);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.4s, color 0.4s;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── 3. LAYOUT ───────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section { position: relative; overflow: hidden; }

/* ── 4. TYPOGRAPHY ───────────────────────────────────────── */
.label {
  font-family: var(--font-l);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}

h1, .h1 {
  font-family: var(--font-h);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

h2, .h2 {
  font-family: var(--font-h);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h3, .h3 {
  font-family: var(--font-h);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.body-lg {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
}

.accent-teal { color: var(--teal); }
.accent-gold { color: var(--gold); }

/* ── 5. BADGES / PILLS ───────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-l);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-weight: 500;
}
.badge--youth { background: var(--youth-bg); color: var(--youth); border: 1px solid rgba(124,109,216,0.25); }
.badge--adults { background: var(--adults-bg); color: var(--adults); border: 1px solid rgba(43,158,143,0.25); }

.pill {
  display: inline-block;
  font-size: 13px;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-2);
  background: var(--surface);
  transition: all 0.2s;
}
.pill:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}

/* ── 6. BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--r-md);
  padding: 14px 28px;
  transition: all 0.25s var(--ease-std);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 0 0 0 var(--teal-glow);
}
.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 0 28px 4px var(--teal-glow);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover {
  background: var(--gold-dark);
  box-shadow: 0 0 28px 4px var(--gold-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}

.btn-wa-teal {
  background: #25D366;
  color: #fff;
  padding: 15px 28px;
  border-radius: var(--r-lg);
  font-size: 15px;
  transition: all 0.25s var(--ease-std);
}
.btn-wa-teal:hover {
  background: #1fb956;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}

/* ── 7. NAVIGATION ───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(250,250,247,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.35s var(--ease-std);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
[data-theme="dark"] .nav {
  background: rgba(15,15,18,0.85);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.nav__logo { flex-shrink: 0; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--teal);
  transition: width 0.25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.theme-toggle:hover { color: var(--teal); border-color: var(--teal); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
  /* Touch target 44×44px sin alterar tamaño visual */
  padding: 13px 10px;
  margin: -13px -10px;
}
.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-h);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
}
.nav__mobile a:hover { color: var(--teal); }

/* ── 8. HERO ─────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: var(--space-3xl);
  position: relative;
}

/* Floating shapes */
.hero__shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
  animation: float linear infinite;
}
.shape--1 {
  width: 400px; height: 400px;
  background: var(--teal);
  top: -100px; right: -80px;
  animation-duration: 12s;
  animation-delay: 0s;
}
.shape--2 {
  width: 200px; height: 200px;
  background: var(--gold);
  bottom: 10%; left: 5%;
  animation-duration: 15s;
  animation-delay: -4s;
}
.shape--3 {
  width: 120px; height: 120px;
  background: var(--teal);
  top: 30%; left: 60%;
  animation-duration: 9s;
  animation-delay: -2s;
}
.shape--4 {
  width: 60px; height: 60px;
  background: var(--gold);
  top: 60%; right: 15%;
  animation-duration: 11s;
  animation-delay: -6s;
}

/* Hex shape */
.shape--hex {
  border-radius: 0;
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(10deg); }
  66% { transform: translateY(12px) rotate(-6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .shape { animation: none; }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__overline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero__overline::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background: var(--teal);
  opacity: 0.6;
}

.hero__title {
  margin-bottom: 24px;
  color: var(--text);
}

.hero__sub {
  max-width: 560px;
  margin-bottom: 44px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: 48px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
}
.hero__trust-item svg { color: var(--teal); flex-shrink: 0; }

/* ── 9. VALOR ────────────────────────────────────────────── */
.valor {
  padding: var(--space-4xl) 0;
  background: var(--surface);
}

.valor__head {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.valor__head .label { margin-bottom: 16px; }

.valor__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.valor__card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  border-top: 3px solid var(--teal);
  padding: 32px 24px;
  transition: all 0.3s var(--ease-std);
}
.valor__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.valor__icon {
  width: 48px;
  height: 48px;
  background: var(--teal-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 20px;
}
[data-theme="dark"] .valor__icon { background: var(--teal-mid); }

.valor__card h3 { font-size: 16px; margin-bottom: 10px; }
.valor__card p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ── 10. JÓVENES ─────────────────────────────────────────── */
.jovenes {
  padding: var(--space-4xl) 0;
  background: var(--surface-alt);
}

.jovenes__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.jovenes__text .badge { margin-bottom: 24px; }
.jovenes__text .h2 { margin-bottom: 20px; }
.jovenes__text > p { color: var(--text-2); font-size: 17px; line-height: 1.7; margin-bottom: 32px; }

.jovenes__materias {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: 36px;
}

.jovenes__nota {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
  margin-bottom: 32px;
}

.jovenes__visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}

.jovenes__visual h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  font-family: var(--font-l);
}

.jovenes__path {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.path-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.path-step:hover { border-color: var(--youth); background: var(--youth-bg); }
[data-theme="dark"] .path-step { background: var(--surface-alt); }

.path-step__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 14px;
  background: var(--youth-bg);
  color: var(--youth);
  border: 1px solid rgba(124,109,216,0.2);
}

.path-step p { font-size: 14px; color: var(--text-2); }
.path-step p strong { display: block; font-weight: 600; color: var(--text); font-size: 15px; }

/* ── 11. ADULTOS ─────────────────────────────────────────── */
.adultos {
  padding: var(--space-4xl) 0;
  background: var(--surface);
}

.adultos__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.adultos__text .badge { margin-bottom: 24px; }
.adultos__text .h2 { margin-bottom: 20px; }
.adultos__text > p { color: var(--text-2); font-size: 17px; line-height: 1.7; margin-bottom: 32px; }

.adultos__topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: 36px;
}

.topic-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text-2);
  transition: all 0.2s;
}
.topic-item:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }
.topic-item svg { color: var(--teal); flex-shrink: 0; }
[data-theme="dark"] .topic-item { background: var(--surface-alt); }

/* Stat cards for adultos visual */
.adultos__stats {
  display: grid;
  gap: var(--space-md);
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); border-color: var(--teal); }
[data-theme="dark"] .stat-card { background: var(--surface-alt); }

.stat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}
[data-theme="dark"] .stat-card__icon { background: var(--teal-mid); }

.stat-card__value {
  font-family: var(--font-h);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.stat-card__label {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}

/* ── 12. METODOLOGÍA ─────────────────────────────────────── */
.metodologia {
  padding: var(--space-4xl) 0;
  background: var(--surface-alt);
}

.metodologia__head {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.metodologia__head .label { margin-bottom: 16px; }

.metodologia__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.metodologia__steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 16%;
  right: 16%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  opacity: 0.25;
}

.met-step {
  text-align: center;
  padding: 36px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  position: relative;
  z-index: 1;
  transition: all 0.3s var(--ease-std);
  box-shadow: var(--shadow-sm);
}
.met-step:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--teal);
}

.met-step__num {
  font-family: var(--font-d);
  font-size: 64px;
  color: var(--teal);
  opacity: 0.12;
  position: absolute;
  top: 10px;
  right: 16px;
  line-height: 1;
  user-select: none;
}

.met-step__icon {
  width: 56px;
  height: 56px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin: 0 auto 20px;
  border: 2px solid rgba(43,158,143,0.15);
}
[data-theme="dark"] .met-step__icon { background: var(--teal-mid); }

.met-step h3 { font-size: 18px; margin-bottom: 12px; }
.met-step p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ── 13. TUTOR ───────────────────────────────────────────── */
.tutor {
  padding: var(--space-4xl) 0;
  background: var(--surface);
}

.tutor__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.tutor__avatar {
  flex-shrink: 0;
}

.tutor__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--surface-alt) 100%);
  border: 3px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-size: 56px;
  font-weight: 700;
  color: var(--teal);
  box-shadow: 0 0 0 8px rgba(43,158,143,0.08);
}
[data-theme="dark"] .tutor__photo { background: var(--surface-3); }

.tutor__text .label { margin-bottom: 12px; }
.tutor__text h2 { font-size: 36px; margin-bottom: 8px; }

.tutor__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: 20px 0;
}

.credential {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 6px 14px;
}
.credential svg { color: var(--teal); }
[data-theme="dark"] .credential { background: var(--surface-alt); }

.tutor__text > p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.tutor__quote {
  background: var(--bg);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 16px 20px;
  font-style: italic;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
}
[data-theme="dark"] .tutor__quote { background: var(--surface-alt); }

/* ── 14. TESTIMONIOS ─────────────────────────────────────── */
.testimonios {
  padding: var(--space-4xl) 0;
  background: var(--surface-alt);
}

.testimonios__head {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.testimonios__head .label { margin-bottom: 16px; }

.testimonios__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.test-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.test-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.test-card__stars { color: var(--gold); }
.test-card__quote {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
  font-style: italic;
  flex: 1;
}
.test-card__author { display: flex; align-items: center; gap: 14px; }
.test-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-light);
  border: 2px solid rgba(43,158,143,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 16px;
  color: var(--teal);
  flex-shrink: 0;
}
.test-card__info p:first-child { font-weight: 600; font-size: 14px; }
.test-card__info p:last-child { font-size: 12px; color: var(--text-3); }

.test-card--placeholder {
  opacity: 0.4;
  border-style: dashed;
  justify-content: center;
  align-items: center;
}
.placeholder-label {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
}

/* ── 15. CTA FINAL ───────────────────────────────────────── */
.cta-final {
  padding: var(--space-4xl) 0;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(43,158,143,0.06), transparent 70%);
  pointer-events: none;
}

.cta-final__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta-final__inner .label { margin-bottom: 24px; }
.cta-final__inner .h2 { margin-bottom: 16px; }
.cta-final__inner > p { color: var(--text-2); font-size: 18px; margin-bottom: 40px; line-height: 1.6; }

.cta-final__ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn-segmented {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 24px;
  border-radius: var(--r-xl);
  border: 2px solid var(--border);
  transition: all 0.3s var(--ease);
  text-align: center;
  background: var(--bg);
  cursor: pointer;
}
.cta-btn-segmented:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.cta-btn-segmented--youth:hover { border-color: var(--youth); }
.cta-btn-segmented--adults:hover { border-color: var(--teal); }

.cta-btn-segmented .icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.cta-btn-segmented--youth .icon-wrapper { background: var(--youth-bg); color: var(--youth); }
.cta-btn-segmented--adults .icon-wrapper { background: var(--adults-bg); color: var(--adults); }

.cta-btn-segmented .cta-title {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.cta-btn-segmented .cta-sub {
  font-size: 12px;
  color: var(--text-3);
}
.cta-btn-segmented .cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  background: #25D366;
  color: white;
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
}
[data-theme="dark"] .cta-btn-segmented { background: var(--surface-alt); }

.cta-final__microcopy {
  font-family: var(--font-m);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-3);
}
.cta-final__microcopy span {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-3);
  vertical-align: middle;
  margin: 0 8px;
}

/* ── 16. FOOTER ──────────────────────────────────────────── */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--teal); }

.footer__legal {
  font-size: 12px;
  color: var(--text-3);
  text-align: right;
}

/* ── 17. FLOATING WA BUTTON ──────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px));
  right: 28px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.3s var(--ease);
  animation: wa-pulse 3s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
  animation: none;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.3); }
  50% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0); }
}

/* ── 18. ANIMATIONS ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.section__divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  margin: 16px auto 0;
  border-radius: 2px;
  opacity: 0.5;
}

/* ── 19. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1023px) {
  .valor__grid { grid-template-columns: repeat(2, 1fr); }
  .metodologia__steps { grid-template-columns: 1fr; }
  .metodologia__steps::before { display: none; }
  .jovenes__inner { grid-template-columns: 1fr; }
  .adultos__inner { grid-template-columns: 1fr; }
  .tutor__inner { grid-template-columns: 1fr; text-align: center; }
  .tutor__credentials { justify-content: center; }
  .tutor__photo { margin: 0 auto; }
  .tutor__quote { text-align: left; }
}

@media (max-width: 767px) {
  /* Nav */
  .nav__links, .nav__right .btn { display: none; }
  .nav__hamburger { display: flex; }

  /* Reducir padding de secciones (128px → 72px) */
  .valor, .jovenes, .adultos, .metodologia, .testimonios, .cta-final {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  /* Grids → columna única */
  .valor__grid { grid-template-columns: 1fr; }
  .testimonios__grid { grid-template-columns: 1fr; }
  .cta-final__ctas { grid-template-columns: 1fr; }
  .adultos__topics { grid-template-columns: 1fr; }

  /* CTAs en columna */
  .hero__ctas { flex-direction: column; align-items: flex-start; }

  /* Botones a ancho completo en columna */
  .hero__ctas .btn, .cta-final__ctas .btn-wa-teal { width: 100%; justify-content: center; }

  /* Footer */
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
  .footer__legal { text-align: center; }
}

@media (max-width: 480px) {
  h1, .h1 { font-size: 32px; }
  h2, .h2 { font-size: 24px; }

  /* Padding aún más compacto */
  .valor, .jovenes, .adultos, .metodologia, .testimonios, .cta-final {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  /* Botones: evitar desbordamiento en 320px */
  .btn { white-space: normal; text-align: center; }
}
