/* ==========================================================================
   IMPERIAL ACADEMY INVIERTE EN TI S.A.S. · Modelo 3: Video y Scroll
   Diseño: Azul imperial profundo, dorado regio, pergamino y tipografía serif
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FUENTES LOCALES WOFF2
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/archivo-latin-800-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   2. VARIABLES Y TOKENS DE DISEÑO
   -------------------------------------------------------------------------- */
:root {
  /* Paleta cromática */
  --color-blue-darkest: #050B16;
  --color-blue-deep: #081224;
  --color-blue-navy: #0E1D38;
  --color-blue-card: #122446;
  --color-blue-border: rgba(212, 175, 55, 0.22);
  --color-blue-glass: rgba(8, 18, 36, 0.88);

  --color-gold-bright: #F5E296;
  --color-gold: #D4AF37;
  --color-gold-warm: #C5A059;
  --color-gold-dark: #A07D22;
  --color-gold-shadow: rgba(212, 175, 55, 0.18);

  --color-paper: #F6F4ED;
  --color-paper-muted: #E2DDD3;
  --color-text-light: #F7F5F0;
  --color-text-muted: #AAB4C8;
  --color-text-dark: #1A1F2C;

  /* Tipografías */
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-display: 'Archivo', sans-serif;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Espaciados y medidas */
  --header-h: 110px;
  --container-max: 1360px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Transiciones */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* View Transitions nativas */
@view-transition {
  navigation: auto;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--color-blue-darkest);
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--color-blue-darkest);
  position: relative;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* --------------------------------------------------------------------------
   4. CURSOR PERSONALIZADO (DESKTOP)
   -------------------------------------------------------------------------- */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--color-gold-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.05s linear;
  opacity: 0;
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), border-color 0.25s ease, background-color 0.25s ease, opacity 0.2s ease;
  opacity: 0;
}

body.has-custom-cursor .custom-cursor-dot,
body.has-custom-cursor .custom-cursor-ring {
  opacity: 1;
}

.custom-cursor-ring.is-hovering {
  width: 48px;
  height: 48px;
  background-color: rgba(212, 175, 55, 0.12);
  border-color: var(--color-gold-bright);
}

@media (hover: none) or (pointer: coarse) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   5. TRANSICIÓN DE PÁGINA: GIRO DE PÁGINA DE LIBRO
   -------------------------------------------------------------------------- */
.book-transition-curtain {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  perspective: 2000px;
  transform-style: preserve-3d;
  visibility: hidden;
}

.book-turn-sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, #182848 0%, #0c1a32 50%, #060b18 100%);
  border-left: 1px solid var(--color-gold);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.85), inset -2px 0 10px rgba(212, 175, 55, 0.3);
  transform-origin: left center;
  transform: rotateY(0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.book-turn-sheet::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.book-turn-sheet-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #081224;
  border-right: 1px solid rgba(212, 175, 55, 0.15);
  transform: translateX(0);
}

.book-turn-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--color-gold-bright);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.book-turn-crest {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   6. BARRA DE AVISO Y SELECTOR DE MODELOS (UNA LÍNEA EN ESCRITORIO)
   -------------------------------------------------------------------------- */
.top-notice-bar {
  background-color: #040810;
  color: rgba(247, 245, 240, 0.82);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  position: relative;
  z-index: 1005;
}

.notice-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.notice-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-badge {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-blue-darkest);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

.notice-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(247, 245, 240, 0.9);
}

.notice-text-sub {
  color: var(--color-gold-bright);
  opacity: 0.95;
}

/* Selector de modelos en el aviso */
.models-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.models-switcher-label {
  font-size: 0.75rem;
  color: rgba(247, 245, 240, 0.78);
  white-space: nowrap;
}

.models-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.model-pill {
  display: inline-block;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(247, 245, 240, 0.75);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.model-pill:hover {
  color: var(--color-gold-bright);
  border-color: var(--color-gold);
  background-color: rgba(212, 175, 55, 0.1);
}

.model-pill[aria-current="page"] {
  color: #050B16;
  background-color: var(--color-gold);
  border-color: var(--color-gold-bright);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

/* --------------------------------------------------------------------------
   7. ENCABEZADO FIJO (SITE HEADER)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(6, 12, 24, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background-color: rgba(4, 9, 18, 0.98);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-title span {
  color: var(--color-gold);
}

.brand-slogan {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--color-gold-bright);
  letter-spacing: 0.04em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(247, 245, 240, 0.8);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--color-gold-bright);
}

.nav-link:hover::after,
.nav-link.is-current::after {
  width: 100%;
}

.nav-link.is-current {
  color: var(--color-gold);
  font-weight: 600;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Botones universales */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: #060C1B;
  border: 1px solid var(--color-gold-bright);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold) 100%);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-light);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.btn--ghost:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--color-gold-bright);
  color: var(--color-gold-bright);
}

.mobile-menu-btn {
  display: none;
  color: var(--color-text-light);
  padding: 6px;
}

/* Cajón móvil */
.mobile-drawer {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  background-color: rgba(6, 12, 24, 0.98);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(-120%);
  visibility: hidden;
  transition: transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
  z-index: 999;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.mobile-drawer.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.35s var(--ease-out), visibility 0s;
}

.mobile-nav-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text-light);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-link.is-current {
  color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   8. HERO CINEMATOGRÁFICO CON VIDEO ILUMINADO
   -------------------------------------------------------------------------- */
.hero-cinema {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-blue-deep) url('assets/img/hero-poster.webp') center / cover no-repeat;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: saturate(1.15) brightness(1.02);
}

/* El video conserva su color y luz; el degradado lateral respalda el texto */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(6, 12, 24, 0.86) 0%,
    rgba(6, 12, 24, 0.78) 30%,
    rgba(6, 12, 24, 0.32) 52%,
    rgba(6, 12, 24, 0) 66%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: 60px 0;
}

.hero-tags-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold-bright);
  background-color: rgba(14, 29, 56, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6.2vw, 5.25rem);
  line-height: 1.05;
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.hero-title-italic {
  font-style: italic;
  color: var(--color-gold);
}

.hero-lead {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.6;
  color: rgba(247, 245, 240, 0.9);
  margin-bottom: 36px;
  max-width: 620px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-item-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-gold-bright);
  line-height: 1.1;
}

.stat-item-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   9. MARQUESINA INSTITUCIONAL
   -------------------------------------------------------------------------- */
.marquee-bar {
  background: linear-gradient(90deg, #09152C 0%, #102347 50%, #09152C 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  overflow: hidden;
  padding: 14px 0;
  user-select: none;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: marqueeScroll 32s linear infinite;
  will-change: transform;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.marquee-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-gold);
}

/* --------------------------------------------------------------------------
   10. SECUENCIA CANVAS SCRUBBING (STORYTELLING DE PÁGINAS Y CRECIMIENTO)
   -------------------------------------------------------------------------- */
.story-scroll-section {
  position: relative;
  background-color: var(--color-blue-deep);
  min-height: 100vh;
}

.story-pin-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.story-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.story-canvas-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(6, 12, 24, 0.5) 0%,
    rgba(6, 12, 24, 0.28) 30%,
    rgba(6, 12, 24, 0) 55%
  );
  pointer-events: none;
}

/* Barra HUD de avance superior */
.story-hud-bar {
  position: absolute;
  top: 100px;
  left: 28px;
  right: 28px;
  z-index: 10;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 18px;
  background-color: rgba(8, 18, 36, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
}

.hud-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
}

.hud-progress-track {
  flex: 1;
  max-width: 320px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.hud-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--color-gold-dark) 0%, var(--color-gold-bright) 100%);
  border-radius: 999px;
  transition: width 0.15s linear;
}

.hud-step-counter {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--color-gold);
}

/* Contenedor de tarjetas narrativas */
.story-cards-container {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

.story-chapter-card {
  position: absolute;
  top: 50%;
  left: 28px;
  transform: translateY(-50%);
  max-width: 580px;
  background-color: rgba(8, 18, 36, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), visibility 0.4s ease;
}

.story-chapter-card.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%);
}

.chapter-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-bottom: 12px;
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.15;
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.chapter-text {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(247, 245, 240, 0.88);
  margin-bottom: 24px;
}

.chapter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.chapter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   11. SECCIÓN DE ENFOQUE Y METODOLOGÍA (CON VIDEO AMBIENTAL)
   -------------------------------------------------------------------------- */
.section-feature-video {
  padding: 120px 0;
  background-color: var(--color-blue-darkest);
  position: relative;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-content {
  display: flex;
  flex-direction: column;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.15;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.section-title em {
  font-style: italic;
  color: var(--color-gold-bright);
}

.section-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(247, 245, 240, 0.85);
  margin-bottom: 32px;
}

.feature-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.feature-step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: rgba(14, 29, 56, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.feature-step-item:hover {
  border-color: var(--color-gold);
  background-color: rgba(14, 29, 56, 0.8);
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--color-gold);
  flex-shrink: 0;
  padding-top: 1px;
}

.step-text {
  font-size: 0.9375rem;
  color: rgba(247, 245, 240, 0.9);
}

.feature-video-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  aspect-ratio: 16 / 10;
}

.feature-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) brightness(1.02);
}

.video-frame-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 12, 24, 0.85) 100%);
  pointer-events: none;
}

.video-caption-strip {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-gold-bright);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   12. BANNER DE HORIZONTE Y AMANECER
   -------------------------------------------------------------------------- */
.section-horizon-banner {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.horizon-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: saturate(1.1) brightness(1);
}

.horizon-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
}

.horizon-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 96px;
  /* El degradado oscurece solo el área del texto, no el video completo */
  background: linear-gradient(90deg, rgba(6, 12, 24, 0) 0%, rgba(6, 12, 24, 0.8) 20%, rgba(6, 12, 24, 0.8) 80%, rgba(6, 12, 24, 0) 100%);
}

/* --------------------------------------------------------------------------
   13. SECCIÓN DE CONTACTO Y FORMULARIO DEMO
   -------------------------------------------------------------------------- */
.section-contact-demo {
  padding: 100px 0;
  background-color: var(--color-blue-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
}

.verified-data-card {
  background-color: rgba(14, 29, 56, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 24px;
}

.data-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.data-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold-bright);
}

.data-value {
  font-size: 0.9375rem;
  color: var(--color-text-light);
}

.disclaimer-box {
  margin-top: 24px;
  padding: 16px 20px;
  background-color: rgba(6, 12, 24, 0.6);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Formulario interactivo */
.contact-form-card {
  background-color: rgba(8, 18, 36, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text-light);
  background-color: rgba(18, 36, 70, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-gold-bright);
  background-color: rgba(18, 36, 70, 0.9);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

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

.form-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 14px;
  line-height: 1.4;
}

.form-alert {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: none;
}

.form-alert.is-success {
  display: block;
  background-color: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86EFAC;
}

/* --------------------------------------------------------------------------
   14. PÁGINA INTERNA: HERO Y ESTRUCTURA DE FORMACIÓN
   -------------------------------------------------------------------------- */
.internal-hero {
  padding: 100px 0 60px;
  background: linear-gradient(180deg, #050B16 0%, #081224 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  position: relative;
}

.internal-hero-content {
  max-width: 840px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}

.pillar-card {
  background-color: rgba(14, 29, 56, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all 0.3s var(--ease-out);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-bright);
  margin-bottom: 20px;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.pillar-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(247, 245, 240, 0.85);
}

/* --------------------------------------------------------------------------
   15. PIE DE PÁGINA (FOOTER)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #03060C;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 60px 0 32px;
  margin-top: auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer-nav-title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  font-size: 0.875rem;
  color: rgba(247, 245, 240, 0.75);
}

.footer-nav-list a:hover {
  color: var(--color-gold-bright);
}

.footer-bottom-bar {
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.footer-models-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   16. MEDIA QUERIES Y RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .feature-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .notice-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 20px;
  }

  .notice-left {
    white-space: normal;
    align-items: flex-start;
  }

  .notice-text {
    white-space: normal;
    overflow: visible;
    line-height: 1.35;
  }

  .models-switcher {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-stats-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .story-chapter-card {
    left: 20px;
    right: 20px;
    max-width: none;
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .horizon-content {
    padding: 48px 24px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 12px 20px;
    gap: 12px;
  }

  .header-cta-group .btn {
    display: none;
  }

  .notice-badge {
    display: none;
  }

  .notice-text {
    font-size: 0.75rem;
  }

  .models-switcher {
    flex-wrap: wrap;
    overflow: visible;
    gap: 4px 8px;
  }

  .models-list {
    flex-wrap: wrap;
  }

  .model-pill {
    padding: 2px 8px;
  }

  /* En móvil el texto ocupa todo el ancho: el degradado cubre solo la mitad inferior */
  .hero-cinema {
    align-items: flex-end;
    min-height: calc(100svh - var(--header-h));
  }

  .hero-gradient-overlay {
    background: linear-gradient(
      180deg,
      rgba(6, 12, 24, 0) 0%,
      rgba(6, 12, 24, 0.82) 30%,
      rgba(6, 12, 24, 0.88) 100%
    );
  }

  .hero-content {
    padding-top: 200px;
  }

  .hero-tags-row {
    display: none;
  }

  .story-canvas-overlay {
    background: linear-gradient(180deg, rgba(6, 12, 24, 0) 0%, rgba(6, 12, 24, 0.35) 100%);
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-content {
    padding: 40px 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .story-hud-bar {
    left: 16px;
    right: 16px;
    top: 84px;
    padding: 8px 12px;
  }

  .hud-tag {
    font-size: 0.6875rem;
  }
}

/* --------------------------------------------------------------------------
   17. PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@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;
  }

  .marquee-track {
    animation: none;
  }

  .book-transition-curtain {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   18. PASOS DE ENFOQUE (TEXTO NEUTRO)
   -------------------------------------------------------------------------- */
.focus-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.focus-steps li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 18px;
  background-color: rgba(14, 29, 56, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-md);
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.5;
}

.focus-step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-gold-bright);
  flex-shrink: 0;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94A0B8;
  opacity: 1;
}
