/* ==========================================================================
   ESTILOS.CSS — ADUCORP ASESORES ADUANEROS Y LOGÍSTICOS CIA. LTDA.
   Rediseño Corporativo Sobrio · Storytelling a 60 fps · WCAG AA / AAA
   Cero dependencias CDN · Fuentes Locales WOFF2 · Responsive (390px - 4K)
   ========================================================================== */

/* ── Declaración de Fuentes Locales WOFF2 ────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-400.woff2') format('woff2');
}

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

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

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}

/* ── Reset y Variables Base ───────────────────────────────────────── */
:root {
  --color-primario: #0A192F;
  --color-secundario: #06A7E2;
  --color-acento: #38BDF8;
  --color-fondo: #F8FAFC;
  --color-fondo-oscuro: #070F18;
  --color-superficie: #0D1B2A;
  --color-superficie-card: #102336;
  --color-texto: #0F172A;
  --color-texto-claro: #F8FAFC;
  --color-texto-muted: #94A3B8;
  --color-borde: rgba(6, 167, 226, 0.28);
  --color-borde-oscuro: rgba(248, 250, 252, 0.12);

  --font-titulos: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-cuerpo: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --trans-suave: cubic-bezier(0.16, 1, 0.3, 1);
  --trans-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --banner-height: 34px;
  --nav-bar-height: 76px;
  --header-height: calc(var(--banner-height) + var(--nav-bar-height));
  --max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 16px 36px -12px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 35px rgba(6, 167, 226, 0.25);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis maneja el scroll suave */
  background-color: var(--color-fondo-oscuro);
  color: var(--color-texto-claro);
  font-family: var(--font-cuerpo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--color-fondo-oscuro);
  line-height: 1.6;
  opacity: 1;
  transition: opacity 0.3s ease;
}

body.is-loading {
  opacity: 0.96;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

:focus-visible {
  outline: 2px solid var(--color-secundario);
  outline-offset: 4px;
}

/* ── Contenedores y Utilidades ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.text-center { text-align: center; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-secundario);
  background: rgba(6, 167, 226, 0.12);
  border: 1px solid var(--color-borde);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.section-title {
  font-family: var(--font-titulos);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-texto-claro);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-texto-muted);
  max-width: 680px;
  line-height: 1.65;
}

/* ── Botones ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: all 0.25s var(--trans-suave);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-secundario) 0%, #0284C7 100%);
  color: #FFFFFF;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 18px rgba(6, 167, 226, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 167, 226, 0.55);
  border-color: var(--color-acento);
}

.btn-secondary {
  background: rgba(248, 250, 252, 0.08);
  color: var(--color-texto-claro);
  border: 1px solid rgba(248, 250, 252, 0.22);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(248, 250, 252, 0.16);
  border-color: var(--color-secundario);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 34px;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

/* ── Barra de Progreso Superior ────────────────────────────────────── */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secundario), var(--color-acento));
  z-index: 1000;
  transition: width 0.05s linear;
}

/* ── Cabecera / Navegación Principal ───────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: var(--header-height);
  z-index: 900;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background-color: rgba(7, 15, 24, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--color-borde-oscuro);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ── Barra Superior de Demostración (Header) ── */
.demo-banner-top {
  width: 100%;
  background: #060D15;
  border-bottom: 1px solid rgba(6, 167, 226, 0.25);
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.775rem;
  line-height: 1.35;
  padding: 6px 16px;
  text-align: center;
  position: relative;
  z-index: 930;
}

.demo-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.demo-banner-text-desktop {
  display: inline;
}

.demo-banner-text-mobile {
  display: none;
}

.demo-banner-sep {
  color: rgba(56, 189, 248, 0.7);
  font-weight: 700;
}

.demo-banner-link {
  color: var(--color-acento);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.demo-banner-link:hover,
.demo-banner-link:focus-visible {
  color: #BAE6FD;
}

.demo-banner-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.header-inner {
  max-width: var(--max-width);
  height: var(--nav-bar-height);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 920;
}

.brand-link {
  display: flex;
  align-items: center;
  z-index: 920;
  flex-shrink: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.nav-desktop {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(248, 250, 252, 0.85);
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

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

.nav-link:hover, .nav-link.is-active {
  color: var(--color-acento);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 920;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  #btn-header-cta {
    display: none;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(248, 250, 252, 0.06);
  border: 1px solid var(--color-borde-oscuro);
  cursor: pointer;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background-color: var(--color-texto-claro);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Menú Móvil Desplegable */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(7, 15, 24, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: calc(var(--header-height) + 24px) 24px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.35s var(--trans-suave);
  z-index: 910;
}

.nav-mobile.is-open {
  transform: translateY(0);
}

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

.nav-mobile-link {
  font-family: var(--font-titulos);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-texto-claro);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(248, 250, 252, 0.08);
}

.nav-mobile-link:hover {
  color: var(--color-secundario);
}

.nav-mobile-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── 1. HERO SECTION ───────────────────────────────────────────────── */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 50px) 0 80px;
}

.hero-media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: #070F18;
  background-image: url('assets/images/hero-poster.webp');
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(
      90deg,
      rgba(7, 15, 24, 0.92) 0%,
      rgba(7, 15, 24, 0.82) 42%,
      rgba(7, 15, 24, 0.38) 72%,
      rgba(7, 15, 24, 0.48) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7, 15, 24, 0.4) 0%,
      transparent 35%,
      rgba(7, 15, 24, 0.90) 100%
    );
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-badges-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #E2E8F0;
  background: rgba(13, 27, 42, 0.85);
  border: 1px solid var(--color-borde);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
}

.hero-badge-pill svg {
  color: var(--color-secundario);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-titulos);
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 20px;
  max-width: 900px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-title span.highlight {
  color: var(--color-secundario);
}

.hero-subtitle {
  font-size: 1.12rem;
  color: #E2E8F0;
  max-width: 720px;
  line-height: 1.65;
  margin-bottom: 32px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

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

.hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  color: var(--color-texto-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(248, 250, 252, 0.35);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--color-secundario);
  border-radius: 2px;
  animation: mouseWheel 1.8s infinite;
}

@keyframes mouseWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ── 2. STORYTELLING / RECORRIDO DE CARGA (Canvas Scrub) ───────────── */
.story-section {
  position: relative;
  background-color: var(--color-fondo-oscuro);
  width: 100%;
}

.story-track {
  height: 400vh;
  position: relative;
}

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

.story-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.story-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-canvas-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(7, 15, 24, 0.35) 0%,
    rgba(7, 15, 24, 0.88) 100%
  );
  pointer-events: none;
}

.story-nav-rail {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: none;
}

.story-nav-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.25);
  border: 1px solid rgba(248, 250, 252, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.story-nav-dot.is-active {
  background: var(--color-secundario);
  border-color: #FFFFFF;
  transform: scale(1.35);
  box-shadow: 0 0 14px var(--color-secundario);
}

.story-content-panels {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.story-panel {
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  max-width: 520px;
  background: rgba(10, 25, 47, 0.88);
  border: 1px solid var(--color-borde);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

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

.story-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secundario);
  background: rgba(6, 167, 226, 0.12);
  border: 1px solid var(--color-borde);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.step-badge-icon svg {
  color: var(--color-secundario);
  display: block;
}

.story-panel-title {
  font-family: var(--font-titulos);
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 14px;
}

.story-panel-text {
  font-size: 1rem;
  color: #CBD5E1;
  line-height: 1.65;
  margin-bottom: 18px;
}

.story-panel-hito {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-acento);
  border-top: 1px dashed rgba(6, 167, 226, 0.35);
  padding-top: 12px;
  width: 100%;
}

/* ── 3. SERVICIOS (Horizontal Scroll / Tarjetas) ───────────────────── */
.servicios-section {
  position: relative;
  background-color: #0B1622;
  padding: 100px 0;
  overflow: hidden;
  border-top: 1px solid var(--color-borde-oscuro);
  border-bottom: 1px solid var(--color-borde-oscuro);
}

.servicios-header-bar {
  margin-bottom: 48px;
}

.servicios-slider-track {
  display: flex;
  gap: 28px;
  padding: 0 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-secundario) transparent;
}

.servicios-slider-track::-webkit-scrollbar {
  height: 6px;
}
.servicios-slider-track::-webkit-scrollbar-thumb {
  background: var(--color-secundario);
  border-radius: 4px;
}

.servicio-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--color-superficie);
  border: 1px solid var(--color-borde-oscuro);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.servicio-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-secundario);
  box-shadow: var(--shadow-glow);
}

.servicio-media {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.servicio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.servicio-card:hover .servicio-img {
  transform: scale(1.08);
}

.servicio-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.servicio-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(6, 167, 226, 0.12);
  border: 1px solid var(--color-borde);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-secundario);
}

.servicio-title {
  font-family: var(--font-titulos);
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.3;
}

.servicio-text {
  font-size: 0.92rem;
  color: var(--color-texto-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.servicio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.servicio-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: #CBD5E1;
  background: rgba(248, 250, 252, 0.06);
  border: 1px solid rgba(248, 250, 252, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ── 4. SECTORES ESTRATÉGICOS ──────────────────────────────────────── */
.sectores-section {
  padding: 100px 0;
  background-color: var(--color-fondo-oscuro);
  position: relative;
}

.sectores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.sector-card {
  background: var(--color-superficie);
  border: 1px solid var(--color-borde-oscuro);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-secundario);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sector-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-borde);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.sector-card:hover::before {
  opacity: 1;
}

.sector-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.sector-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(6, 167, 226, 0.1);
  border: 1px solid var(--color-borde);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secundario);
}

.sector-name {
  font-family: var(--font-titulos);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
}

.sector-desc {
  font-size: 0.92rem;
  color: var(--color-texto-muted);
  line-height: 1.6;
}

/* ── 5. CIFRAS CLAVE ───────────────────────────────────────────────── */
.cifras-section {
  padding: 90px 0;
  background: linear-gradient(180deg, #070F18 0%, #0B1A28 100%);
  border-top: 1px solid var(--color-borde-oscuro);
  border-bottom: 1px solid var(--color-borde-oscuro);
}

.cifras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.cifra-card {
  background: rgba(13, 27, 42, 0.7);
  border: 1px solid var(--color-borde);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.cifra-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-acento);
}

.cifra-numero-wrapper {
  font-family: var(--font-titulos);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-secundario);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  text-shadow: 0 0 25px rgba(6, 167, 226, 0.3);
}

.cifra-sufijo {
  font-size: 2.2rem;
  color: var(--color-acento);
  margin-left: 2px;
}

.cifra-etiqueta {
  font-size: 0.92rem;
  color: #E2E8F0;
  line-height: 1.5;
  font-weight: 500;
}

/* ── 6. LIDERAZGO & COMPROMISO ─────────────────────────────────────── */
.liderazgo-section {
  padding: 100px 0;
  background-color: var(--color-fondo-oscuro);
  position: relative;
}

.liderazgo-card {
  max-width: 960px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.95) 0%, rgba(10, 25, 47, 0.9) 100%);
  border: 1px solid var(--color-borde);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.liderazgo-quote-icon {
  color: rgba(6, 167, 226, 0.2);
  margin-bottom: 20px;
}

.liderazgo-texto {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #F1F5F9;
  font-style: italic;
  margin-bottom: 28px;
}

.liderazgo-firma {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--color-borde-oscuro);
  padding-top: 20px;
}

.liderazgo-avatar-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(6, 167, 226, 0.15);
  border: 2px solid var(--color-secundario);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secundario);
  font-family: var(--font-titulos);
  font-weight: 800;
  font-size: 1.2rem;
}

.liderazgo-autor {
  font-family: var(--font-titulos);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
}

.liderazgo-cargo {
  font-size: 0.88rem;
  color: var(--color-secundario);
  font-weight: 600;
}

/* ── 7. BOLETINES REGULATORIOS SENAE ───────────────────────────────── */
.boletines-section {
  padding: 90px 0;
  background-color: #0A141F;
  border-top: 1px solid var(--color-borde-oscuro);
}

.boletines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.boletin-card {
  background: var(--color-superficie);
  border: 1px solid var(--color-borde-oscuro);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.boletin-card:hover {
  border-color: var(--color-secundario);
  transform: translateY(-4px);
}

.boletin-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.boletin-codigo {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-secundario);
  background: rgba(6, 167, 226, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.boletin-fecha {
  font-size: 0.82rem;
  color: var(--color-texto-muted);
}

.boletin-titulo {
  font-family: var(--font-titulos);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 10px;
}

.boletin-ref {
  font-size: 0.8rem;
  color: var(--color-acento);
  margin-bottom: 14px;
  font-weight: 600;
}

.boletin-resumen {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.boletin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-secundario);
  transition: color 0.2s ease, transform 0.2s ease;
}

.boletin-link:hover {
  color: var(--color-acento);
  transform: translateX(4px);
}

/* ── 8. GALERÍA VISUAL ─────────────────────────────────────────────── */
.galeria-section {
  padding: 100px 0;
  background-color: var(--color-fondo-oscuro);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.galeria-item {
  position: relative;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-borde-oscuro);
  box-shadow: var(--shadow-card);
}

.galeria-img-wrap {
  width: 100%;
  height: 100%;
}

.galeria-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.galeria-item:hover .galeria-img {
  transform: scale(1.08);
}

.galeria-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(0deg, rgba(7, 15, 24, 0.95) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
  transform: translateY(0);
}

.galeria-caption {
  font-size: 0.88rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.4;
}

/* ── 9. CONTACTO ───────────────────────────────────────────────────── */
.contacto-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #070F18 0%, #0A192F 100%);
  border-top: 1px solid var(--color-borde-oscuro);
}

.contacto-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

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

.contacto-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}

.contacto-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contacto-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(6, 167, 226, 0.12);
  border: 1px solid var(--color-borde);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secundario);
  flex-shrink: 0;
}

.contacto-item-content h4 {
  font-family: var(--font-titulos);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.contacto-item-content p {
  font-size: 0.95rem;
  color: #CBD5E1;
  line-height: 1.5;
}

.contacto-item-content a:hover {
  color: var(--color-secundario);
}

.form-card {
  background: var(--color-superficie);
  border: 1px solid var(--color-borde);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.form-title {
  font-family: var(--font-titulos);
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.92rem;
  color: var(--color-texto-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(7, 15, 24, 0.7);
  border: 1px solid var(--color-borde-oscuro);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--font-cuerpo);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-secundario);
  box-shadow: 0 0 0 3px rgba(6, 167, 226, 0.25);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-feedback.is-success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
}

/* ── 10. PIE DE PÁGINA ─────────────────────────────────────────────── */
.site-footer {
  background-color: #050B12;
  border-top: 1px solid var(--color-borde-oscuro);
  padding: 40px 0 90px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.footer-legal {
  font-size: 0.88rem;
  color: var(--color-texto-muted);
}

.footer-demo-notice {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(248, 250, 252, 0.78);
  max-width: 620px;
}

.footer-demo-link {
  color: var(--color-acento);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  transition: color 0.2s ease;
}

.footer-demo-link:hover,
.footer-demo-link:focus-visible {
  color: #BAE6FD;
}

.footer-demo-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* ── 11. BOTÓN FLOTANTE WHATSAPP ───────────────────────────────────── */
.whatsapp-floating {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 950;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.25s var(--trans-suave), box-shadow 0.25s var(--trans-suave);
}

.whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

.whatsapp-label {
  display: none;
  white-space: nowrap;
}

/* ── MEDIA QUERIES ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  :root {
    --banner-height: 40px;
    --nav-bar-height: 64px;
    --header-height: calc(var(--banner-height) + var(--nav-bar-height));
  }

  .demo-banner-text-desktop {
    display: none;
  }

  .demo-banner-text-mobile {
    display: inline;
  }

  .demo-banner-top {
    padding: 6px 10px;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .demo-banner-inner {
    gap: 3px 6px;
  }

  .brand-logo {
    height: 38px;
  }
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .whatsapp-label {
    display: inline-block;
  }
}

@media (min-width: 992px) {
  .nav-desktop {
    display: block;
  }
  .nav-toggle {
    display: none;
  }
  .story-nav-rail {
    display: block;
  }
  .story-panel {
    left: 80px;
    max-width: 520px;
  }
  .contacto-wrapper {
    grid-template-columns: 1fr 1.15fr;
    align-items: flex-start;
  }
  .hero-title {
    font-size: 3.8rem;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 4.2rem;
  }
}

/* ── ACCESIBILIDAD: 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;
  }
  
  .story-track {
    height: auto;
  }
  
  .story-sticky-stage {
    position: relative;
    height: auto;
    padding: 60px 0;
  }
  
  .story-canvas-container {
    position: relative;
    height: 400px;
    margin-bottom: 30px;
  }
  
  .story-panel {
    position: relative;
    top: auto;
    left: auto;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-bottom: 24px;
    pointer-events: auto;
  }
  
  .scroll-wheel {
    animation: none;
  }
}
