/* =============================================================
   1. Tokens (custom properties)
   ============================================================= */
:root {
  /* Palette — Dark Indigo Glassmorphism */
  --bg:            #0b0e30;
  --bg-2:          #0f1240;
  --bg-3:          #161a54;
  --bg-section:    #0d1038;
  --ink:           #f0f4ff;
  --ink-soft:      rgba(240, 244, 255, 0.75);
  --ink-mute:      rgba(240, 244, 255, 0.45);
  --accent:        #FFCB0D;
  --accent-dark:   #e6b500;
  --accent-glow:   rgba(255, 203, 13, 0.25);
  --indigo:        #4361EE;
  --indigo-light:  #a5b4fc;
  --glass:         rgba(255, 255, 255, 0.07);
  --glass-2:       rgba(255, 255, 255, 0.12);
  --glass-border:  rgba(255, 255, 255, 0.14);
  --line:          rgba(255, 255, 255, 0.10);
  --shadow:        0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-sm:     0 4px 16px rgba(0, 0, 0, 0.35);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --gap:    clamp(1rem, 3vw, 1.5rem);
  --gutter: clamp(1.25rem, 5vw, 6rem);

  /* Radii */
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;

  /* Easings */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Nav height reference */
  --nav-h: 68px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
}
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  padding: .6rem 1.2rem;
  background: var(--accent);
  color: var(--bg);
  z-index: 9999;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .875rem;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-kicker {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}

.section-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-inline: auto;
}

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  min-height: 48px;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s;
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  background: #fff5b0;
  box-shadow: 0 8px 32px rgba(255, 203, 13, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .btn-ghost { background: rgba(255,255,255,0.06); }
}
.btn-ghost:hover {
  border-color: var(--indigo-light);
  background: rgba(255,255,255,0.08);
}

.btn-nav-cta {
  background: rgba(255, 203, 13, 0.12);
  color: var(--accent);
  border-color: rgba(255, 203, 13, 0.3);
  font-size: .85rem;
  padding: .6rem 1.2rem;
  min-height: 44px;
}
.btn-nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-ghost-plan {
  background: var(--glass);
  color: var(--ink-soft);
  border-color: var(--glass-border);
  width: 100%;
  min-height: 48px;
}
.btn-ghost-plan:hover {
  border-color: var(--indigo-light);
  color: var(--ink);
  background: var(--glass-2);
}

.btn-oferta-cta {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--accent);
  font-size: .9rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-oferta-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

.spin {
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =============================================================
   5. Glass card component
   ============================================================= */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
@supports not (backdrop-filter: blur(16px)) {
  .glass-card { background: rgba(20, 28, 80, 0.88); }
}

/* =============================================================
   6. Navigation
   ============================================================= */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 900;
  height: var(--nav-h);
  transition: background .3s var(--ease-out), box-shadow .3s;
}

.nav.is-scrolled {
  background: rgba(11, 14, 48, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
@supports not (backdrop-filter: blur(20px)) {
  .nav.is-scrolled { background: rgba(11, 14, 48, 0.96); }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -.01em;
  flex-shrink: 0;
  min-height: 44px;
}
.nav-logo strong { font-weight: 700; color: var(--accent); }
.nav-logo-icon { display: flex; }

.nav-links {
  display: none;
  gap: 0;
}
.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: .5rem .9rem;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.nav-link:hover {
  color: var(--ink);
  background: var(--glass);
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 30, 0.7);
  z-index: 890;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile menu drawer */
@media (max-width: 959px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100dvh;
    background: #0d1240;
    padding: calc(var(--nav-h) + 2rem) 2rem 2rem;
    z-index: 895;
    transition: right .35s var(--ease-out);
    box-shadow: -4px 0 40px rgba(0,0,0,0.5);
    border-left: 1px solid var(--line);
    gap: .25rem;
  }
  .nav-links.is-open { right: 0; }
  .nav-link {
    font-size: 1rem;
    padding: .75rem 1rem;
    min-height: 44px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .nav-links { display: flex; gap: 0; }
  .nav-hamburger { display: none; }
}

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--bg);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 70% at 15% 30%, rgba(67, 97, 238, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 85% 15%, rgba(114, 9, 183, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 55% 85%, rgba(58, 12, 163, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 65%, rgba(2, 62, 138, 0.4) 0%, transparent 55%);
  filter: blur(70px) saturate(150%);
  animation: meshDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes meshDrift {
  0%   { transform: scale(1) translate(0, 0); }
  33%  { transform: scale(1.06) translate(-2%, 2%); }
  66%  { transform: scale(1.03) translate(2%, -1.5%); }
  100% { transform: scale(1.08) translate(-1%, 1.5%); }
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(3rem, 8vw, 5rem);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 580px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 203, 13, 0.1);
  border: 1px solid rgba(255, 203, 13, 0.25);
  padding: .4rem .9rem;
  border-radius: 100px;
  width: fit-content;
}

.hero-title {
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
}

.hero-accent {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.hero-offer-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  color: var(--ink-soft);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: .5rem 1rem;
  border-radius: 100px;
  width: fit-content;
}
.hero-offer-pill svg { color: var(--accent); flex-shrink: 0; }

/* Hero image */
.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 7/8;
  object-fit: cover;
  display: block;
}

.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  padding: .5rem .85rem;
  border-radius: 100px;
  white-space: nowrap;
  background: rgba(11, 14, 48, 0.82);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.hero-badge--1 {
  top: 1rem;
  left: 1rem;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
}
.hero-badge--1 .hero-badge-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero-badge--1 .hero-badge-txt { font-size: .72rem; color: var(--ink-mute); }
.hero-badge--2 { bottom: 1.5rem; right: 1rem; }
.hero-badge--2 svg { color: var(--accent); }

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .hero-image-wrap { justify-content: flex-end; }
  .hero-image-frame { max-width: 520px; }
}

/* =============================================================
   8. Oferta Banner
   ============================================================= */
.oferta-banner {
  background: linear-gradient(135deg, rgba(67,97,238,0.3) 0%, rgba(255,203,13,0.15) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

.oferta-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.oferta-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.oferta-text {
  font-size: .95rem;
  color: var(--ink-soft);
}
.oferta-text strong { color: var(--ink); }

@media (min-width: 720px) {
  .oferta-banner-inner {
    justify-content: space-between;
    text-align: left;
    flex-wrap: nowrap;
  }
}

/* =============================================================
   9. Estudiantes — Beneficios
   ============================================================= */
.estudiantes {
  padding-block: clamp(4rem, 10vw, 7rem);
  background: var(--bg-section);
}

.beneficios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.beneficio-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.beneficio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(67, 97, 238, 0.2);
}

.beneficio-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(67, 97, 238, 0.15);
  border-radius: var(--r-md);
  color: var(--indigo-light);
  flex-shrink: 0;
  border: 1px solid rgba(67, 97, 238, 0.25);
}

.beneficio-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.beneficio-desc {
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (min-width: 540px) {
  .beneficios-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .beneficios-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   10. Apoderados
   ============================================================= */
.apoderados {
  padding-block: clamp(4rem, 10vw, 7rem);
  background: var(--bg);
}

.apoderados-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.apoderados-img-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.apoderados-img-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 13/12;
  object-fit: cover;
  display: block;
}

.apoderados-text-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.apoderados-intro {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.apoderados-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.apoderados-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.apoderados-item strong { color: var(--ink); }

.apoderados-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: rgba(255, 203, 13, 0.12);
  border-radius: 50%;
  border: 1px solid rgba(255, 203, 13, 0.3);
  color: var(--accent);
  flex-shrink: 0;
  margin-top: .1rem;
}

@media (min-width: 960px) {
  .apoderados-inner {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

/* =============================================================
   11. Cómo funciona
   ============================================================= */
.como-funciona {
  padding-block: clamp(4rem, 10vw, 7rem);
  background: var(--bg-section);
}

.pasos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
}

.paso-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.paso-num {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  background: rgba(255, 203, 13, 0.1);
  border: 1px solid rgba(255, 203, 13, 0.25);
  border-radius: 100px;
  padding: .35rem .8rem;
  width: fit-content;
}

.paso-connector {
  display: none;
}

.paso-body {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
}

.paso-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  color: var(--indigo-light);
}

.paso-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.paso-desc {
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

@media (min-width: 720px) {
  .pasos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .paso-connector {
    display: block;
    position: absolute;
    top: .7rem;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: var(--line);
  }
  .paso-item:last-child .paso-connector { display: none; }
}

/* =============================================================
   12. Galería
   ============================================================= */
.galeria {
  padding-block: clamp(3rem, 8vw, 5rem);
  background: var(--bg);
}

.galeria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: .75rem;
}

.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
}

.galeria-item--tall { grid-row: span 2; }

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.galeria-item:hover img { transform: scale(1.04); }

.galeria-caption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: .6rem .85rem;
  background: linear-gradient(0deg, rgba(11,14,48,0.85) 0%, transparent 100%);
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

@media (min-width: 720px) {
  .galeria-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
  }
  .galeria-item--tall { grid-row: span 1; }
}

/* =============================================================
   13. Planes
   ============================================================= */
.planes {
  padding-block: clamp(4rem, 10vw, 7rem);
  background: var(--bg-section);
}

.planes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.plan-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(67, 97, 238, 0.2);
}

.plan-card--featured {
  background: linear-gradient(160deg, rgba(67,97,238,0.2) 0%, rgba(255,203,13,0.08) 100%);
  border-color: rgba(255, 203, 13, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 203, 13, 0.15), 0 20px 60px rgba(67, 97, 238, 0.25);
}
.plan-card--featured:hover {
  box-shadow: 0 0 0 1px rgba(255, 203, 13, 0.3), 0 24px 72px rgba(67, 97, 238, 0.3);
}

.plan-badge {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}

.plan-header {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.plan-nombre {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.plan-precio {
  display: flex;
  align-items: baseline;
  gap: .25rem;
}

.plan-monto {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.plan-period {
  font-size: .85rem;
  color: var(--ink-mute);
}

.plan-ahorro {
  font-size: .8rem;
  color: var(--indigo-light);
  background: rgba(67, 97, 238, 0.15);
  padding: .3rem .75rem;
  border-radius: 100px;
  border: 1px solid rgba(67, 97, 238, 0.2);
  width: fit-content;
}

.plan-desc {
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}

.plan-incluye {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  flex: 1;
}

.plan-incluye li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.plan-incluye li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: .15rem;
}
.plan-card--featured .plan-incluye li { color: var(--ink); }
.plan-card--featured .plan-incluye li svg { color: var(--accent); }

@media (min-width: 720px) {
  .planes-grid { grid-template-columns: repeat(3, 1fr); }
  .plan-card--featured {
    margin-top: -1rem;
    padding-top: 2.5rem;
  }
}

/* =============================================================
   14. FAQ
   ============================================================= */
.faq {
  padding-block: clamp(4rem, 10vw, 7rem);
  background: var(--bg);
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.faq-header { text-align: left; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.faq-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(67, 97, 238, 0.4); }
.faq-item:hover { border-color: var(--glass-2); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  user-select: none;
  min-height: 56px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

.faq-icon {
  flex-shrink: 0;
  color: var(--ink-mute);
  transition: transform .25s var(--ease-out), color .2s;
}
.faq-item[open] .faq-icon { transform: rotate(180deg); color: var(--accent); }

.faq-answer {
  padding: 0 1.35rem 1.1rem;
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

@media (min-width: 960px) {
  .faq-inner {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
  .faq-header { position: sticky; top: calc(var(--nav-h) + 2rem); }
}

/* =============================================================
   15. Cobertura y horarios
   ============================================================= */
.cobertura {
  padding-block: clamp(3rem, 7vw, 4.5rem);
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cobertura-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.cobertura-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.cobertura-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.cobertura-sub {
  font-size: .95rem;
  color: var(--ink-soft);
  max-width: 44ch;
}

.cobertura-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: .875rem;
  width: 100%;
  max-width: 720px;
}

.cobertura-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 1.1rem 1.35rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  transition: border-color .2s, transform .2s var(--ease-out);
}
.cobertura-item:hover {
  border-color: rgba(67, 97, 238, 0.35);
  transform: translateY(-2px);
}

.cobertura-item-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(67, 97, 238, 0.15);
  border-radius: var(--r-sm);
  color: var(--indigo-light);
  flex-shrink: 0;
  border: 1px solid rgba(67, 97, 238, 0.2);
}

.cobertura-item-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.cobertura-item-text span {
  font-size: .85rem;
  color: var(--ink-soft);
}

@media (min-width: 600px) {
  .cobertura-items {
    grid-template-columns: repeat(3, 1fr);
  }
  .cobertura-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.25rem;
  }
}

/* =============================================================
   16. Contacto
   ============================================================= */
.contacto {
  padding-block: clamp(4rem, 10vw, 7rem);
  background: var(--bg-section);
}

.contacto-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contacto-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contacto-sub {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 40ch;
}

.contacto-wa-btn {
  width: fit-content;
}

.contacto-form {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.form-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: .02em;
}

.form-input {
  width: 100%;
  padding: .8rem 1rem;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color .2s, background .2s;
  min-height: 48px;
  caret-color: var(--accent);
}
.form-input:focus {
  border-color: var(--indigo);
  background: rgba(67, 97, 238, 0.06);
}
.form-input::placeholder { color: var(--ink-mute); }
.form-input.is-invalid { border-color: #f87171; }

.form-textarea { resize: vertical; min-height: 100px; }

.form-error {
  font-size: .78rem;
  color: #f87171;
  min-height: 1em;
}

.form-submit { width: 100%; justify-content: center; }

.form-success {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem;
  background: rgba(67, 238, 140, 0.1);
  border: 1px solid rgba(67, 238, 140, 0.25);
  border-radius: var(--r-sm);
  color: #6ee7b7;
  font-size: .9rem;
  font-weight: 500;
}

@media (min-width: 960px) {
  .contacto-inner {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
}

/* =============================================================
   16. CTA Final
   ============================================================= */
.cta-final {
  position: relative;
  padding-block: clamp(5rem, 12vw, 9rem);
  background: var(--bg);
  overflow: hidden;
  text-align: center;
}

.cta-final-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(67, 97, 238, 0.4) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 20% 20%, rgba(114, 9, 183, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(255, 203, 13, 0.12) 0%, transparent 60%);
  filter: blur(80px);
  animation: meshDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.cta-final-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.cta-final-title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  color: var(--ink);
  max-width: 20ch;
}

.cta-final-sub {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: var(--ink-soft);
}

.cta-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-cta-final { font-size: 1rem; padding: .95rem 2rem; }

/* =============================================================
   17. Footer
   ============================================================= */
.footer {
  background: #080a25;
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 8vw, 5rem);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  min-height: 44px;
}
.footer-logo strong { font-weight: 700; color: var(--accent); }

.footer-tagline {
  font-size: .875rem;
  color: var(--ink-mute);
  line-height: 1.6;
  max-width: 34ch;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer-nav-title {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .4rem;
}

.footer-nav a {
  font-size: .875rem;
  color: var(--ink-soft);
  transition: color .15s;
  padding: .35rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-nav a:hover { color: var(--ink); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--ink-soft);
  transition: color .15s;
  min-height: 44px;
  padding: .35rem 0;
}
.footer-contact-link:hover { color: var(--accent); }
.footer-wa { color: var(--ink-soft); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.footer-copy {
  font-size: .8rem;
  color: var(--ink-mute);
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  color: #8a8fbf;
}
.footer-credit img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
}

@media (min-width: 720px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
}

/* =============================================================
   18. WhatsApp Floating Button
   ============================================================= */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 800;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: transform .25s var(--ease-bounce), box-shadow .25s;
  text-decoration: none;
  border: 2px solid transparent;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.55);
}
.wa-float:active { transform: scale(0.96); }

.wa-float-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: waPulse 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: .7; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Ensure floating button doesn't cover bottom content on mobile */
@media (max-width: 539px) {
  .wa-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }
}

/* =============================================================
   19. Reveal animations
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Defensive rule — gotcha A.4.5 */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* Staggered delay for grid items */
.beneficio-card:nth-child(2) { transition-delay: .08s; }
.beneficio-card:nth-child(3) { transition-delay: .16s; }
.beneficio-card:nth-child(4) { transition-delay: .24s; }

.plan-card:nth-child(1) { transition-delay: 0s; }
.plan-card:nth-child(2) { transition-delay: .1s; }
.plan-card:nth-child(3) { transition-delay: .2s; }

.apoderados-item:nth-child(2) { transition-delay: .06s; }
.apoderados-item:nth-child(3) { transition-delay: .12s; }

.paso-item:nth-child(2) { transition-delay: .1s; }
.paso-item:nth-child(3) { transition-delay: .2s; }

.galeria-item:nth-child(2) { transition-delay: .05s; }
.galeria-item:nth-child(3) { transition-delay: .1s; }
.galeria-item:nth-child(4) { transition-delay: .15s; }

/* =============================================================
   20. Responsive — mobile-first breakpoints
   ============================================================= */

/* 390px safety — no horizontal scroll */
@media (max-width: 539px) {
  .hero-badge--1, .hero-badge--2 { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .planes-grid { grid-template-columns: 1fr; }
  .plan-card--featured { margin-top: 0; padding-top: 2rem; }
  .cta-final-actions { flex-direction: column; width: 100%; }
  .cta-final-actions .btn { width: 100%; justify-content: center; }
  .oferta-banner-inner { flex-direction: column; gap: .75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =============================================================
   21. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh,
  .cta-final-mesh { animation: none; }
  .wa-float-pulse { animation: none; }
  .spin { animation: none; }
}
