/* ==========================================================================
   MÉTODO DE VENTAS INTELIGENTES — SISTEMA DE DISEÑO (CHIVA ESTUDIO)
   Tipografía 100% local (@font-face) · Cero CDNs externos · Hostinger-ready
   ========================================================================== */

@font-face {
  font-family: "Gruppo";
  src: url("../fonts/Gruppo-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-300.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zilla Slab";
  src: url("../fonts/ZillaSlab-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zilla Slab";
  src: url("../fonts/ZillaSlab-400-italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Zilla Slab";
  src: url("../fonts/ZillaSlab-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   TOKENS DE MARCA (VenderBien + DiegoFZuleta + Chiva Estudio)
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg-dark: #031716;
  --bg-slate: #0d141a;
  --bg-black: #050a0a;
  --surface-dark: #0b2220;
  --surface-card: #122d2a;
  --surface-card-hover: #173835;
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-dark-strong: rgba(193, 255, 118, 0.28);

  --bg-light: #ffffff;
  --surface-light: #f4f7f6;
  --border-light: rgba(3, 23, 22, 0.1);

  --text-light: #f5f8f7;
  --text-light-muted: rgba(245, 248, 247, 0.72);
  --text-dark: #0a1b1a;
  --text-dark-muted: #465b59;

  --accent-lime: #c1ff76;
  --accent-lime-hover: #d4ff9d;
  --accent-teal: #0097b2;
  --accent-warm: #ffde59;

  --font-display: "Gruppo", sans-serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-editorial: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --container: 1120px;
  --header-h: 74px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   RESET Y BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

.container {
  width: min(var(--container), calc(100% - 4rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   HEADER MINIMALISTA STICKY
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), backdrop-filter 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background-color: rgba(3, 23, 22, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-dark);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-mark__title {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}

.brand-mark__sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-lime);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-light-muted);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ==========================================================================
   BOTONES Y MICRO-INTERACCIONES CHIVA (fastGlow)
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--primary {
  background-color: var(--accent-lime);
  color: #031716;
}

.btn--primary:hover {
  background-color: var(--accent-lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(193, 255, 118, 0.22);
}

.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: fastGlow 4.5s ease-in-out infinite;
}

.btn--ghost {
  background-color: transparent;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn--ghost:hover {
  border-color: var(--accent-lime);
  color: var(--accent-lime);
  transform: translateY(-1px);
}

.btn--ghost-dark {
  background-color: transparent;
  color: var(--text-dark);
  border-color: rgba(3, 23, 22, 0.22);
}

.btn--ghost-dark:hover {
  border-color: var(--bg-dark);
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.btn--sm {
  padding: 0.48rem 0.95rem;
  font-size: 0.76rem;
}

.btn--full {
  width: 100%;
}

@keyframes fastGlow {
  0%, 72% {
    left: -120%;
  }
  100% {
    left: 160%;
  }
}

/* ==========================================================================
   HERO SCROLLYTELLING (TWIN-MIRROR VIDEO + CANVAS FALLBACK)
   ========================================================================== */
.hero-scroll-track {
  position: relative;
  height: 400vh;
  background-color: var(--bg-dark);
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-media-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 68% 48%, #0a2a27 0%, #031716 58%, #020c0b 100%);
  transform-origin: center center;
  will-change: transform;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s linear;
}

.hero-video.is-active {
  opacity: 1;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Gradiente de legibilidad para los copys de Diego */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(3, 23, 22, 0.92) 0%, rgba(3, 23, 22, 0.72) 48%, rgba(3, 23, 22, 0.25) 100%),
    linear-gradient(180deg, rgba(3, 23, 22, 0.55) 0%, rgba(3, 23, 22, 0.08) 30%, rgba(3, 23, 22, 0.85) 100%);
  pointer-events: none;
}

.hero-content-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 660px) 1fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-stage-box {
  position: relative;
  min-height: 310px;
  display: flex;
  align-items: center;
}

.hero-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.55s var(--ease-out), transform 0.65s var(--ease-out);
}

.hero-stage.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-stage__heading {
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 3.8vw, 3.15rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-light);
}

.hero-stage__heading--editorial {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.12rem, 1.95vw, 1.52rem);
  line-height: 1.52;
  letter-spacing: 0;
  max-width: 560px;
  color: rgba(245, 248, 247, 0.92);
}

.hero-stage__line {
  display: block;
}

.hero-stage__line--accent {
  color: var(--accent-lime);
  margin-top: 0.25rem;
}

.hero-pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.hero-pain-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: clamp(1.2rem, 2.3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.32;
  color: var(--text-light);
}

.hero-pain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 14px;
  height: 2px;
  background-color: var(--accent-lime);
}

.hero-cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

/* Indicador lateral de checkpoints */
.hero-rail {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}

.hero-rail__btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: none;
  border: none;
  color: rgba(245, 248, 247, 0.42);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.2rem 0;
  transition: color 0.25s ease;
}

.hero-rail__dot {
  width: 24px;
  height: 2px;
  background-color: rgba(245, 248, 247, 0.25);
  transition: width 0.35s var(--ease-out), background-color 0.25s ease;
}

.hero-rail__btn.is-active {
  color: var(--text-light);
}

.hero-rail__btn.is-active .hero-rail__dot {
  width: 42px;
  background-color: var(--accent-lime);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  transition: opacity 0.35s ease;
}

.hero-scroll-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-scroll-hint__line {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--accent-lime), transparent);
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
.section {
  padding-block: clamp(5.5rem, 9vw, 8.5rem);
}

.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section--slate {
  background-color: var(--bg-slate);
  color: var(--text-light);
}

.section--light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.section--tint {
  background-color: var(--surface-light);
  color: var(--text-dark);
}

.section-header {
  max-width: 780px;
  margin-bottom: clamp(3rem, 5.5vw, 4.25rem);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-lime);
  margin-bottom: 0.85rem;
}

.section--light .kicker,
.section--tint .kicker {
  color: var(--accent-teal);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.7;
  color: var(--text-light-muted);
}

.section--light .section-subtitle,
.section--tint .section-subtitle {
  color: var(--text-dark-muted);
}

/* ==========================================================================
   SOLUCIÓN + BARRA DE MODALIDAD + 3 NIVELES
   ========================================================================== */
.modality-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--border-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.modality-item {
  background-color: var(--surface-dark);
  padding: 1.5rem 1.85rem;
}

.modality-item__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-lime);
  margin-bottom: 0.3rem;
}

.modality-item__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.15rem;
  align-items: stretch;
}

.level-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--surface-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, background-color 0.3s ease;
}

.level-card:hover {
  transform: translateY(-4px);
  background-color: var(--surface-card-hover);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Prioridad comercial: resplandor continuo en bucle para Nivel Básico (Gratuito) */
.level-card--featured {
  overflow: hidden;
  border-color: rgba(193, 255, 118, 0.65);
  background: linear-gradient(180deg, rgba(193, 255, 118, 0.12) 0%, var(--surface-card) 44%);
  animation: basicPulseGlow 3.6s ease-in-out infinite;
}

.level-card--featured::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 42%, rgba(193, 255, 118, 0.14) 50%, transparent 58%);
  transform: translateX(-100%);
  animation: basicCardSweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes basicPulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(193, 255, 118, 0.28), 0 12px 34px rgba(193, 255, 118, 0.12);
    border-color: rgba(193, 255, 118, 0.48);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(193, 255, 118, 0.55), 0 0 48px rgba(193, 255, 118, 0.28);
    border-color: rgba(193, 255, 118, 0.92);
  }
}

@keyframes basicCardSweep {
  0%, 58% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(120%);
  }
}

.level-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.level-card__badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-lime);
}

.level-card__date {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light-muted);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
}

.level-card__name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.level-card__topic {
  font-family: var(--font-editorial);
  font-size: 1.1rem;
  line-height: 1.4;
  color: rgba(245, 248, 247, 0.9);
  min-height: 3.2em;
  margin-bottom: 1.5rem;
}

.level-card__price-box {
  padding-block: 1.15rem;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 1.35rem;
}

.level-card__price {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent-lime);
  line-height: 1.2;
}

.level-card__price-note {
  font-size: 0.78rem;
  color: var(--text-light-muted);
  margin-top: 0.2rem;
}

.level-card__meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.86rem;
  color: var(--text-light-muted);
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.level-card__meta li strong {
  color: var(--text-light);
  font-weight: 500;
}

.level-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ==========================================================================
   TEMARIO POR MÓDULO (TABS + DESGLOSE)
   ========================================================================== */
.syllabus-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.35rem;
  background-color: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.syllabus-tab {
  padding: 0.65rem 1.25rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-dark-muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.syllabus-tab.is-active {
  background-color: var(--bg-dark);
  color: var(--accent-lime);
}

.syllabus-panel {
  background-color: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.syllabus-panel__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.75rem;
}

.syllabus-panel__title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--text-dark);
}

.syllabus-panel__note {
  font-size: 0.82rem;
  color: var(--accent-teal);
  font-weight: 500;
}

.syllabus-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.syllabus-item {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
}

.syllabus-item__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 0.35rem;
}

.syllabus-item__title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.syllabus-item__detail {
  font-size: 0.85rem;
  color: var(--text-dark-muted);
}

.syllabus-footer-note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dark-muted);
}

/* ==========================================================================
   AUTORIDAD — DIEGO F. ZULETA
   ========================================================================== */
.author-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.author-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #163331 0%, #09171a 100%);
  border: 1px solid var(--border-dark);
}

.author-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.author-roles {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-lime);
  margin-bottom: 1.25rem;
}

.author-quote {
  font-family: "Zilla Slab", Georgia, serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.5;
  color: var(--text-light);
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent-lime);
  margin-bottom: 1.5rem;
}

.author-bio p {
  font-size: 0.96rem;
  color: var(--text-light-muted);
  margin-bottom: 1rem;
}

.author-credentials {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
}

.author-credentials li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: var(--text-light);
}

.author-credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-lime);
}

/* ==========================================================================
   PREINSCRIPCIÓN / FORMULARIO DE CAPTURA DE LEADS
   ========================================================================== */
.lead-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 500px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.scarcity-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-dark-strong);
  background-color: rgba(193, 255, 118, 0.08);
  color: var(--accent-lime);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
}

.share-box {
  margin-top: 2rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-md);
  background-color: var(--surface-dark);
  border: 1px solid var(--border-dark);
}

.share-box__title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.share-box__text {
  font-size: 0.84rem;
  color: var(--text-light-muted);
  margin-bottom: 1rem;
}

.lead-form-card {
  background-color: var(--bg-light);
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lead-form-card__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.lead-form-card__sub {
  font-size: 0.86rem;
  color: var(--text-dark-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(3, 23, 22, 0.2);
  background-color: #ffffff;
  color: var(--text-dark);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(0, 151, 178, 0.14);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-block: 1.15rem 1.35rem;
  font-size: 0.8rem;
  color: var(--text-dark-muted);
}

.form-check input {
  margin-top: 0.2rem;
  accent-color: var(--bg-dark);
  cursor: pointer;
}

.form-check button {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-teal);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
}

.form-feedback {
  display: none;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background-color: #ecf8f2;
  border: 1px solid rgba(3, 23, 22, 0.16);
  color: var(--text-dark);
}

.form-feedback.is-visible {
  display: block;
}

.form-feedback h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.form-feedback p {
  font-size: 0.86rem;
  color: var(--text-dark-muted);
  margin-bottom: 1rem;
}

/* ==========================================================================
   FAQ ACORDEÓN
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-light);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}

.faq-trigger svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}

.faq-item.is-open .faq-trigger svg {
  transform: rotate(45deg);
}

.faq-body {
  display: none;
  padding: 0 1.4rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-dark-muted);
  line-height: 1.65;
}

.faq-item.is-open .faq-body {
  display: block;
}

/* ==========================================================================
   MASTER FOOTER (ESTÁNDAR CHIVA ESTUDIO)
   ========================================================================== */
.site-footer {
  background-color: var(--bg-black);
  color: var(--text-light);
  padding-top: 4rem;
  padding-bottom: 5.5rem;
  border-top: 1px solid var(--border-dark);
}

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

.footer-col__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-lime);
  margin-bottom: 1rem;
}

.footer-signature {
  height: 58px;
  width: auto;
  margin: 0.9rem 0 1.1rem;
  opacity: 0.92;
}

.footer-tagline {
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-light-muted);
  max-width: 340px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-light-muted);
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--accent-lime);
}

.footer-links button {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  cursor: pointer;
  text-align: left;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-light-muted);
}

.agency-credit {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.agency-logo-wrap {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.agency-logo-wrap img {
  height: 30px;
  width: auto;
}

.agency-logo-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: fastGlow 6s ease-in-out infinite;
}

.agency-lines {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

/* ==========================================================================
   MODAL TÉRMINOS Y CONDICIONES
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(3, 14, 13, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  width: min(680px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background-color: var(--bg-light);
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.25rem;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin: 1.25rem 0 0.65rem;
}

.modal-list {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-dark-muted);
}

/* ==========================================================================
   BOTÓN FLOTANTE DE COMPARTIR POR WHATSAPP (MÓVIL + PC)
   ========================================================================== */
.floating-share {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  background-color: var(--accent-lime);
  color: #031716;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease-out), background-color 0.2s ease;
}

.floating-share:hover {
  transform: translateY(-2px);
  background-color: var(--accent-lime-hover);
}

.floating-share svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .container {
    width: calc(100% - 3rem);
  }

  .site-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-rail {
    flex-direction: row;
    justify-self: start;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
  }

  .modality-strip,
  .levels-grid,
  .syllabus-list,
  .author-grid,
  .lead-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .levels-grid {
    gap: 2rem;
  }

  .author-credentials {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 2.75rem);
  }

  .section {
    padding-block: 4.75rem;
  }

  .level-card {
    padding: 2.15rem 1.75rem;
  }

  .lead-form-card,
  .syllabus-panel {
    padding: 1.85rem 1.5rem;
  }

  .hero-scroll-track {
    height: 360vh;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(3, 23, 22, 0.78) 0%, rgba(3, 23, 22, 0.58) 45%, rgba(3, 23, 22, 0.92) 100%);
  }

  .header-actions .btn--ghost {
    display: none;
  }

  .floating-share span {
    display: none;
  }

  .floating-share {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn--primary::after,
  .agency-logo-wrap::after,
  .level-card--featured,
  .level-card--featured::before {
    animation: none;
  }
}
