/* ============================================================
   Gap-the-Code · main.css
   Mobile-first · Albert Sans · Tokens de diseño
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Paleta principal */
  --c-ink:        #442854;   /* texto principal / navy de marca */
  --c-plum:       #782167;   /* secundario */
  --c-magenta:    #BA2C69;   /* acento vibrante (CTA) */
  --c-wash:       #F9F3FD;   /* fondo suave */
  --c-wash-2:     #F3E9F8;   /* fondo suave más profundo */
  --c-line:       #E3D4EA;   /* separadores */
  --c-text:       #2B1A35;   /* negro con tinte púrpura */
  --c-text-soft:  #6B5974;   /* texto secundario */
  --c-white:      #FFFFFF;
  --c-success:    #1E8A5F;
  --c-warn:       #B8761A;

  /* Gradiente marca */
  --grad-brand: linear-gradient(135deg, #442854 0%, #782167 50%, #BA2C69 100%);
  --grad-soft:  linear-gradient(180deg, #FFFFFF 0%, #F9F3FD 100%);

  /* Tipografía */
  --font-sans: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Escala tipográfica fluida (clamp para mobile→desktop) */
  --fs-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.81rem);
  --fs-sm:   clamp(0.88rem, 0.85rem + 0.15vw, 0.94rem);
  --fs-base: clamp(1rem,    0.95rem + 0.25vw, 1.13rem);
  --fs-md:   clamp(1.13rem, 1.05rem + 0.4vw,  1.25rem);
  --fs-lg:   clamp(1.35rem, 1.20rem + 0.75vw, 1.63rem);
  --fs-xl:   clamp(1.75rem, 1.45rem + 1.5vw,  2.5rem);
  --fs-2xl:  clamp(2.25rem, 1.70rem + 2.75vw, 3.75rem);
  --fs-3xl:  clamp(2.75rem, 2.00rem + 3.75vw, 4.75rem);

  /* Espaciado 8pt scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Radios */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Sombras */
  --sh-sm: 0 1px 2px rgba(68, 40, 84, 0.06), 0 1px 3px rgba(68, 40, 84, 0.04);
  --sh-md: 0 4px 6px rgba(68, 40, 84, 0.05), 0 10px 20px rgba(68, 40, 84, 0.08);
  --sh-lg: 0 10px 24px rgba(68, 40, 84, 0.10), 0 20px 48px rgba(68, 40, 84, 0.12);
  --sh-xl: 0 20px 40px rgba(68, 40, 84, 0.15), 0 40px 80px rgba(68, 40, 84, 0.10);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 820px;
  --nav-h: 68px;
  --topbar-h: 40px;

  /* Transiciones */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 150ms;
  --t-med:  280ms;
  --t-slow: 520ms;
}

/* ---------- 2. Reset minimal + base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--topbar-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--c-ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4) 0;
  font-weight: 700;
}
h1 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--sp-4) 0; }

a {
  color: var(--c-plum);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}
a:hover { color: var(--c-magenta); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--c-magenta);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection { background: var(--c-magenta); color: #fff; }

/* ---------- 3. Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: var(--sp-16);
}
.section--tight { padding-block: var(--sp-10); }
.section--loose { padding-block: var(--sp-24); }

.grid { display: grid; gap: var(--sp-6); }
.flex { display: flex; gap: var(--sp-4); }

.center-text { text-align: center; }
.muted { color: var(--c-text-soft); }
.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-magenta);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-3);
}

/* ---------- 4. Topbar (urgencia microcredencial) ---------- */
.topbar {
  background: var(--c-ink);
  color: #fff;
  font-size: var(--fs-xs);
  padding: var(--sp-2) var(--sp-4);
  text-align: center;
  line-height: 1.4;
  position: relative;
  z-index: 60;
}
.topbar strong { color: #fff; }
.topbar a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.5);
  text-underline-offset: 3px;
  font-weight: 600;
  margin-left: var(--sp-2);
  white-space: nowrap;
}
.topbar a:hover { text-decoration-color: #fff; color: #fff; }
.topbar .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--c-magenta);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 var(--sp-2);
  animation: pulse 2s var(--ease-in-out) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.3); }
}

/* ---------- 5. Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 50;
  transition: border-color var(--t-med), box-shadow var(--t-med);
}
.nav.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: var(--sh-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--nav-h);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 800;
  color: var(--c-ink);
  font-size: var(--fs-md);
  letter-spacing: -0.02em;
}
.nav__logo:hover { color: var(--c-plum); }
.nav__logo-mark {
  width: 36px; height: 36px;
  background: var(--grad-brand);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--sh-sm);
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  color: var(--c-text);
  font-weight: 500;
  font-size: var(--fs-sm);
  position: relative;
  padding: var(--sp-1) 0;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--c-magenta);
  transition: width var(--t-med) var(--ease-out);
}
.nav__links a:hover { color: var(--c-ink); }
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }

.nav__cta {
  display: none;
}

.nav__burger {
  background: none;
  border: 1px solid var(--c-line);
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--c-ink);
  transition: all var(--t-fast) var(--ease-out);
}
.nav__burger:hover { border-color: var(--c-plum); color: var(--c-plum); }
.nav__burger svg { width: 22px; height: 22px; }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  inset: 0;
  background: rgba(68, 40, 84, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
  z-index: 100;
}
.nav__drawer.is-open { opacity: 1; pointer-events: auto; }
.nav__drawer-panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(340px, 90vw);
  background: #fff;
  box-shadow: var(--sh-xl);
  padding: var(--sp-6);
  transform: translateX(100%);
  transition: transform var(--t-med) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.nav__drawer.is-open .nav__drawer-panel { transform: translateX(0); }
.nav__drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  color: var(--c-ink);
}
.nav__drawer a {
  color: var(--c-text);
  font-size: var(--fs-md);
  font-weight: 500;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-line);
}
.nav__drawer a:hover { color: var(--c-magenta); }
.nav__drawer .btn { margin-top: var(--sp-4); justify-content: center; }

@media (min-width: 880px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
}

/* ---------- 6. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: inherit;
  font-weight: 600;
  font-size: var(--fs-base);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out),
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast);
  white-space: nowrap;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--c-ink);
  color: #fff;
  box-shadow: var(--sh-md);
}
.btn--primary:hover {
  background: var(--c-plum);
  color: #fff;
  box-shadow: var(--sh-lg);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--c-magenta);
  color: #fff;
  box-shadow: 0 4px 14px rgba(186, 44, 105, 0.35);
}
.btn--accent:hover {
  background: #a32458;
  color: #fff;
  box-shadow: 0 8px 22px rgba(186, 44, 105, 0.45);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn--outline:hover {
  background: var(--c-ink);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
}
.btn--ghost:hover {
  background: var(--c-wash);
  color: var(--c-plum);
}

.btn--lg { font-size: var(--fs-md); padding: var(--sp-4) var(--sp-8); }
.btn--sm { font-size: var(--fs-sm); padding: var(--sp-2) var(--sp-5); }
.btn--block { display: flex; width: 100%; }

.btn__arrow {
  transition: transform var(--t-fast) var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-block: var(--sp-16) var(--sp-20);
  background: var(--grad-soft);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(186, 44, 105, 0.15), transparent 60%);
  z-index: 0;
  animation: drift 22s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -250px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(120, 33, 103, 0.12), transparent 60%);
  z-index: 0;
  animation: drift 28s ease-in-out infinite reverse;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-30px, 40px); }
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-plum);
  margin-bottom: var(--sp-6);
  box-shadow: var(--sh-sm);
}
.hero__eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--c-magenta);
  border-radius: 50%;
  animation: pulse 2s var(--ease-in-out) infinite;
}
.hero h1 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-6);
}
.hero h1 em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero__lede {
  font-size: var(--fs-md);
  color: var(--c-text-soft);
  max-width: 620px;
  margin-bottom: var(--sp-8);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5) var(--sp-8);
  color: var(--c-text-soft);
  font-size: var(--fs-sm);
}
.hero__proof strong { color: var(--c-ink); }

/* ---------- 8. Tarjetas genéricas ---------- */
.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med), border-color var(--t-med);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}
.card__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--c-wash);
  color: var(--c-plum);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
  transition: background var(--t-med), color var(--t-med);
}
.card:hover .card__icon {
  background: var(--grad-brand);
  color: #fff;
}
.card h3 { font-size: var(--fs-lg); }
.card p { color: var(--c-text-soft); margin-bottom: 0; }

/* ---------- 9. Split / "para quién" ---------- */
.split {
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 780px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-10); }
}
.split__col h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-4); }
.split__col--yes h3 { color: var(--c-plum); }
.split__col--no  h3 { color: var(--c-text-soft); }
.split__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.split__list li {
  padding-left: var(--sp-8);
  position: relative;
}
.split__list li strong { display: block; color: var(--c-ink); margin-bottom: 2px; }
.split__list li span { color: var(--c-text-soft); font-size: var(--fs-sm); }
.split__list--yes li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  background: var(--c-magenta);
  border-radius: 50%;
  mask-image: url("data:image/svg+xml;utf8,<svg 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'><polyline points='20 6 9 17 4 12'/></svg>");
  mask-size: 12px;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg 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'><polyline points='20 6 9 17 4 12'/></svg>");
  -webkit-mask-size: 12px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.split__list--no li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  background: var(--c-text-soft);
  border-radius: 50%;
  opacity: 0.7;
  mask-image: url("data:image/svg+xml;utf8,<svg 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'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>");
  mask-size: 11px;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg 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'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>");
  -webkit-mask-size: 11px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

/* ---------- 10. Grids de credibilidad / features ---------- */
.features {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }

.features--5 { }
@media (min-width: 1000px) {
  .features--5 { grid-template-columns: repeat(5, 1fr); gap: var(--sp-4); }
}

/* ---------- 11. Bloque "prueba / credibilidad" ---------- */
.proof {
  background: var(--c-wash);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.proof__inner {
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 780px) {
  .proof__inner { grid-template-columns: 1fr 2fr; }
}
.proof__items {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.proof__item {
  background: #fff;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  text-align: center;
}
.proof__item strong {
  display: block;
  color: var(--c-ink);
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}
.proof__item span {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
}

/* ---------- 12. CTA finales ---------- */
.cta-band {
  background: var(--c-ink);
  background-image:
    radial-gradient(at 20% 20%, rgba(186, 44, 105, 0.35), transparent 50%),
    radial-gradient(at 80% 80%, rgba(120, 33, 103, 0.35), transparent 50%);
  color: #fff;
  padding-block: var(--sp-20);
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: var(--sp-4); }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 600px; margin-inline: auto; margin-bottom: var(--sp-8); font-size: var(--fs-md); }
.cta-band .btn--primary { background: #fff; color: var(--c-ink); }
.cta-band .btn--primary:hover { background: var(--c-wash); color: var(--c-plum); }
.cta-band .btn--outline { border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-band .btn--outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.cta-band__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }

/* ---------- 13. Footer ---------- */
.footer {
  background: #1a0f22;
  color: rgba(255,255,255,0.75);
  padding-block: var(--sp-16) var(--sp-8);
  font-size: var(--fs-sm);
}
.footer__grid {
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: 1fr;
  margin-bottom: var(--sp-12);
}
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer h4 {
  color: #fff;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-4);
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.footer a { color: rgba(255,255,255,0.75); }
.footer a:hover { color: #fff; }
.footer__brand p { color: rgba(255,255,255,0.7); max-width: 360px; }
.footer__bottom {
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-4);
  color: rgba(255,255,255,0.55);
  font-size: var(--fs-xs);
}

/* ---------- 14. Microcredencial: específicos ---------- */
.micro-hero {
  position: relative;
  padding-block: var(--sp-16) var(--sp-16);
  background: var(--grad-soft);
  overflow: hidden;
}
.micro-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 10% 10%, rgba(186, 44, 105, 0.12), transparent 40%),
    radial-gradient(at 90% 90%, rgba(120, 33, 103, 0.10), transparent 45%);
  z-index: 0;
}
.micro-hero__inner { position: relative; z-index: 1; }
.micro-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}
.micro-hero h1 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-5);
}
.micro-hero__lede {
  font-size: var(--fs-md);
  max-width: 740px;
  color: var(--c-text-soft);
  margin-bottom: var(--sp-8);
}
.micro-hero__facts {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: var(--sp-8);
}
@media (min-width: 640px) { .micro-hero__facts { grid-template-columns: repeat(4, 1fr); } }
.micro-hero__fact {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  backdrop-filter: blur(4px);
}
.micro-hero__fact strong {
  display: block;
  color: var(--c-ink);
  font-size: var(--fs-lg);
  font-weight: 800;
  margin-bottom: 2px;
}
.micro-hero__fact span {
  color: var(--c-text-soft);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Price card */
.price-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--sh-lg);
  max-width: 420px;
}
.price-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.price-card__price strong {
  font-size: var(--fs-3xl);
  color: var(--c-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-card__price span { color: var(--c-text-soft); }
.price-card__includes {
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0;
  display: grid;
  gap: var(--sp-3);
}
.price-card__includes li {
  padding-left: var(--sp-6);
  position: relative;
  font-size: var(--fs-sm);
}
.price-card__includes li::before {
  content: '';
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  background: var(--c-success);
  border-radius: 50%;
  mask-image: url("data:image/svg+xml;utf8,<svg 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'><polyline points='20 6 9 17 4 12'/></svg>");
  mask-size: 11px;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg 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'><polyline points='20 6 9 17 4 12'/></svg>");
  -webkit-mask-size: 11px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

/* ---------- 15. Módulos accordion ---------- */
.modules {
  display: grid;
  gap: var(--sp-3);
}
.module {
  border: 1px solid var(--c-line);
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.module[open] {
  border-color: var(--c-plum);
  box-shadow: var(--sh-md);
}
.module summary {
  list-style: none;
  padding: var(--sp-5);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  transition: background var(--t-fast);
}
.module summary::-webkit-details-marker { display: none; }
.module summary:hover { background: var(--c-wash); }
.module__num {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  background: var(--c-wash);
  color: var(--c-plum);
  border-radius: var(--r-md);
  font-weight: 800;
  font-size: var(--fs-sm);
  flex-shrink: 0;
  transition: background var(--t-med), color var(--t-med);
}
.module[open] .module__num { background: var(--grad-brand); color: #fff; }
.module__title {
  flex: 1;
  font-weight: 600;
  color: var(--c-ink);
  font-size: var(--fs-md);
  line-height: 1.3;
}
.module__meta {
  color: var(--c-text-soft);
  font-size: var(--fs-xs);
  margin-top: 4px;
  font-weight: 500;
}
.module__caret {
  color: var(--c-text-soft);
  flex-shrink: 0;
  transition: transform var(--t-med);
  margin-top: 6px;
}
.module[open] .module__caret { transform: rotate(180deg); color: var(--c-plum); }
.module__body {
  padding: 0 var(--sp-5) var(--sp-5) var(--sp-5);
  color: var(--c-text-soft);
  line-height: 1.7;
}
.module__body ul { padding-left: var(--sp-5); }

/* ---------- 16. Two-col info (logística) ---------- */
.infogrid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .infogrid { grid-template-columns: repeat(2, 1fr); } }
.infocard {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.infocard h3 {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-4);
}
.infocard__icon {
  width: 40px; height: 40px;
  background: var(--c-wash);
  color: var(--c-plum);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.infocard ul { padding-left: var(--sp-5); margin: 0; }
.infocard li { margin-bottom: var(--sp-2); color: var(--c-text-soft); }
.infocard li strong { color: var(--c-ink); font-weight: 600; }

.schedule {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-2);
}
.schedule li {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-wash);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
}
.schedule li strong { color: var(--c-ink); }
.schedule li span { color: var(--c-text-soft); }
.schedule li.last { background: var(--c-wash-2); }

/* ---------- 17. FAQ ---------- */
.faq {
  display: grid;
  gap: var(--sp-2);
}
.faq details {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast);
}
.faq details[open] { border-color: var(--c-plum); }
.faq summary {
  list-style: none;
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  font-weight: 600;
  color: var(--c-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--fs-base);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--c-plum);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform var(--t-med);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: '−'; transform: rotate(180deg); }
.faq details > div {
  padding: 0 var(--sp-5) var(--sp-4);
  color: var(--c-text-soft);
  line-height: 1.7;
}

/* ---------- 18. Enroll box ---------- */
.enroll {
  background: var(--grad-brand);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-6);
  text-align: center;
  box-shadow: var(--sh-xl);
  position: relative;
  overflow: hidden;
}
.enroll::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.enroll::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.enroll > * { position: relative; z-index: 1; }
.enroll h2 { color: #fff; }
.enroll p { color: rgba(255,255,255,0.9); max-width: 560px; margin-inline: auto; font-size: var(--fs-md); margin-bottom: var(--sp-8); }
.enroll__buttons {
  display: grid;
  gap: var(--sp-3);
  max-width: 500px;
  margin-inline: auto;
}
@media (min-width: 640px) { .enroll__buttons { grid-template-columns: 1fr 1fr; } }
.enroll .btn--primary { background: #fff; color: var(--c-ink); }
.enroll .btn--primary:hover { background: var(--c-wash); color: var(--c-plum); }
.enroll .btn--outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.enroll .btn--outline:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }
.enroll__small {
  margin-top: var(--sp-6);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.75);
}

/* ---------- 19. Animaciones al entrar en viewport ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- 20. Misc helpers ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-8 { margin-top: var(--sp-8); }
.mb-8 { margin-bottom: var(--sp-8); }
.mt-4 { margin-top: var(--sp-4); }

/* Hero con imagen opcional (2 cols en desktop) */
@media (min-width: 980px) {
  .hero--split .hero__inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: var(--sp-12);
    align-items: center;
  }
}

/* Section heading */
.section-head {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--sp-10);
  text-align: center;
}
.section-head h2 { margin-bottom: var(--sp-4); }
.section-head p { color: var(--c-text-soft); font-size: var(--fs-md); }

/* Bullets list con check magenta */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-3);
}
.checklist li {
  padding-left: var(--sp-8);
  position: relative;
  line-height: 1.6;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 22px; height: 22px;
  background: var(--c-magenta);
  border-radius: 50%;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  mask-size: 12px;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  -webkit-mask-size: 12px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

/* Clean details spacing on micro page */
.micro-section-head { margin-bottom: var(--sp-10); }
.micro-section-head .eyebrow { margin-bottom: var(--sp-3); }
.micro-section-head h2 { margin-bottom: var(--sp-3); }
.micro-section-head p { color: var(--c-text-soft); font-size: var(--fs-md); max-width: 760px; }
