/* ==========================================================================
   SISTEMA VISUAL OFICIAL · CARLOS MOSQUERA (PALERMO, HUILA)
   Colores exclusivos del Manual de Identidad: #0E3A66, #A8D437, #FFFFFF
   Tipografía: Montserrat ExtraBold (títulos) · Regular / Medium (contenido)
   ========================================================================== */

:root {
  /* Paleta oficial */
  --navy: #0E3A66;
  --navy-deep: #092847;
  --navy-soft: rgba(14, 58, 102, 0.06);
  --lime: #A8D437;
  --lime-hover: #97C229;
  --white: #FFFFFF;

  /* Neutros estructurales derivados */
  --canvas: #F8FAFC;
  --surface: #FFFFFF;
  --surface-muted: #F1F5F9;
  --ink: #0B1D33;
  --ink-secondary: #3B4F66;
  --ink-muted: #52657A;
  --border-subtle: rgba(14, 58, 102, 0.10);
  --border-strong: rgba(14, 58, 102, 0.24);
  --image-outline: rgba(0, 0, 0, 0.10);

  /* Semánticos accesibles */
  --success-bg: #ECF7D2;
  --success-ink: #274704;
  --warning-bg: #FEF3C7;
  --warning-ink: #78350F;
  --danger-bg: #FEE2E2;
  --danger-ink: #7F1D1D;

  /* Radios concéntricos (outer = inner + padding) */
  --radius-outer: 28px;
  --radius-inner: 22px;
  --radius-md: 16px;
  --radius-pill: 9999px;

  /* Sombras ambientales difusas */
  --shadow-ambient: 0 20px 45px -15px rgba(14, 58, 102, 0.10), 0 4px 14px -4px rgba(14, 58, 102, 0.05);
  --shadow-island: 0 14px 36px -10px rgba(14, 58, 102, 0.16), 0 2px 8px rgba(14, 58, 102, 0.06);

  /* Curvas y tiempos de movimiento */
  --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-press: cubic-bezier(0.2, 0, 0, 1);
  --container-max: 1240px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--white);
  overflow-x: clip;
}

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

.img-editorial {
  border-radius: var(--radius-inner);
  outline: 1px solid var(--image-outline);
  outline-offset: -1px;
}

/* Accesibilidad: Skip link y Focus Visible (WCAG 2.2 AA) */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  transition: top 150ms var(--ease-fluid);
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.bg-navy :focus-visible,
.btn-navy:focus-visible {
  outline-color: var(--lime);
}

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

/* Tipografía Oficial */
h1, h2, h3, h4, .font-display {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--navy);
  margin: 0;
}

.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy h4 {
  color: var(--white);
}

.h1-hero {
  font-size: clamp(2.1rem, 4.4vw, 3.85rem);
}

.h2-section {
  font-size: clamp(1.65rem, 3vw, 2.65rem);
}

.h3-card {
  font-size: clamp(1.15rem, 1.5vw, 1.38rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  font-weight: 500;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.bg-navy .lead {
  color: rgba(255, 255, 255, 0.88);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--lime);
  color: var(--navy);
}

.eyebrow-navy {
  background: var(--navy-soft);
  color: var(--navy);
  border: 1px solid var(--border-subtle);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
}

/* Contenedores y ritmo espacial */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.section-pad {
  padding-block: clamp(56px, 7vw, 108px);
}

.section-pad-sm {
  padding-block: clamp(36px, 4.5vw, 68px);
}

.bg-navy {
  background-color: var(--navy);
  color: var(--white);
}

.bg-canvas {
  background-color: var(--canvas);
}

/* Barra superior "Fluid Island" */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px clamp(12px, 3vw, 28px) 0;
  pointer-events: none;
}

.nav-island {
  pointer-events: auto;
  max-width: var(--container-max);
  margin-inline: auto;
  height: 68px;
  padding: 8px 14px 8px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-island);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logotipo oficial: conserva proporciones y área de seguridad sin efectos ni sombras */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-lockup img {
  height: 36px;
  width: auto;
  aspect-ratio: 3 / 1;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms var(--ease-press), color 150ms var(--ease-press);
}

@media (hover: hover) {
  .nav-links a:hover {
    background-color: var(--navy-soft);
  }
}

.nav-links a[aria-current="page"] {
  background-color: var(--navy);
  color: var(--white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--white);
  color: var(--navy);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .nav-links,
  .nav-actions .nav-cta-desktop {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* Menú móvil overlay */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(14, 58, 102, 0.97);
  color: var(--white);
  padding: 24px clamp(20px, 5vw, 40px) 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms var(--ease-fluid), visibility 260ms var(--ease-fluid);
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  list-style: none;
  padding: 28px 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 16px;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav-list a[aria-current="page"] {
  background: var(--lime);
  color: var(--navy);
  border-color: var(--lime);
}

/* Botones Island & Pill */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
  transition: transform 150ms var(--ease-press), background-color 180ms var(--ease-press), border-color 180ms var(--ease-press);
}

.btn:not(:disabled):active {
  transform: scale(0.96);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

@media (hover: hover) {
  .btn-navy:hover {
    background: var(--navy-deep);
  }
}

.btn-lime {
  background: var(--lime);
  color: var(--navy);
}

@media (hover: hover) {
  .btn-lime:hover {
    background: var(--lime-hover);
  }
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border-strong);
}

@media (hover: hover) {
  .btn-outline:hover {
    background: var(--navy-soft);
    border-color: var(--navy);
  }
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

@media (hover: hover) {
  .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.18);
  }
}

.btn-island {
  padding: 6px 8px 6px 20px;
}

.btn-island-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 240ms var(--ease-fluid);
}

.btn-navy .btn-island-circle {
  background: var(--lime);
  color: var(--navy);
}

.btn-lime .btn-island-circle {
  background: var(--navy);
  color: var(--white);
}

@media (hover: hover) {
  .btn-island:hover .btn-island-circle {
    transform: translate(2px, -1px) scale(1.06);
  }
}

/* Superficie Double-Bezel (Doppelrand) */
.bezel-outer {
  padding: 6px;
  border-radius: var(--radius-outer);
  background: rgba(14, 58, 102, 0.04);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-ambient);
}

.bezel-inner {
  border-radius: var(--radius-inner);
  background: var(--white);
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.bg-navy .bezel-outer {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.bg-navy .bezel-inner {
  background: rgba(9, 40, 71, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* Hero editorial asimétrico */
.hero-section {
  padding-top: clamp(32px, 5vw, 68px);
  padding-bottom: clamp(48px, 6vw, 88px);
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F7FA 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-portrait-frame {
  position: relative;
}

.hero-portrait-caption {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

/* Grids responsivos */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Badges y Chips */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
}

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-answered {
  background: var(--success-bg);
  color: var(--success-ink);
}

.badge-pending {
  background: var(--warning-bg);
  color: var(--warning-ink);
}

.badge-lime {
  background: var(--lime);
  color: var(--navy);
}

/* Scrollytelling Geográfico (Recorriendo Palermo) */
.scrolly-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}

.scrolly-map-col {
  position: sticky;
  top: 96px;
}

.map-viewport {
  width: 100%;
  height: min(74vh, 660px);
  min-height: 420px;
  border-radius: var(--radius-inner);
  overflow: hidden;
  background: #E6EEF5;
  position: relative;
  border: 1px solid var(--border-subtle);
}

.map-hud {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 10;
  background: rgba(14, 58, 102, 0.94);
  color: var(--white);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
}

.scrolly-steps {
  display: grid;
  gap: 28px;
}

.tour-step {
  transition: opacity 280ms var(--ease-fluid), border-color 280ms var(--ease-fluid);
  opacity: 0.76;
}

.tour-step.is-active {
  opacity: 1;
}

.tour-step.is-active .bezel-outer {
  border-color: var(--lime);
  background: rgba(168, 212, 55, 0.14);
}

@media (max-width: 960px) {
  .scrolly-layout {
    grid-template-columns: 1fr;
  }
  .scrolly-map-col {
    position: relative;
    top: 0;
  }
  .map-viewport {
    height: 320px;
    min-height: 280px;
  }
  .tour-step {
    opacity: 1;
  }
}

/* Línea de tiempo profesional */
.timeline-list {
  display: grid;
  gap: 22px;
  border-left: 3px solid var(--lime);
  padding-left: clamp(16px, 3vw, 28px);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(16px, 3vw, 28px) - 9px);
  top: 26px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--lime);
}

/* Formularios accesibles (16px+ evita zoom en iOS) */
.form-group {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.form-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border-strong);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

.form-control[aria-invalid="true"] {
  border-color: #B91C1C;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.alert {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-ink);
  border: 1px solid #B6DF5E;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger-ink);
  border: 1px solid #FCA5A5;
}

.alert-info {
  background: #E8F0F8;
  color: var(--navy);
  border: 1px solid var(--border-strong);
}

/* Estadísticas tabulares */
.stat-num {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  line-height: 1.1;
}

/* Animaciones de entrada controladas y accesibles */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 520ms var(--ease-fluid), transform 520ms var(--ease-fluid);
  }
  .reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pie de página institucional */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(48px, 6vw, 76px) 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

@media (hover: hover) {
  .site-footer a:hover {
    color: var(--lime);
    text-decoration: underline;
  }
}

.footer-divider {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Panel de impresión limpio para Hoja de Vida Resumida */
@media print {
  .site-header, .site-footer, .no-print {
    display: none !important;
  }
  body {
    background: #FFFFFF;
    color: #000000;
  }
}

/* ==========================================================================
   ARQUITECTURA ESPACIAL 3D, RECORTES SIN FONDO Y ANIMACIONES GSAP
   ========================================================================== */
.home-scroll-canvas {
  position: relative;
}

.global-3d-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 70% 35%, #164f87 0%, #0E3A66 50%, #071e36 100%);
  pointer-events: none;
}

.global-3d-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 44%, rgba(7, 30, 54, 0.08) 0%, rgba(7, 30, 54, 0.45) 100%);
  pointer-events: none;
}

.home-scroll-layer {
  position: relative;
  z-index: 2;
}

.band-glass-dark {
  background: linear-gradient(180deg, rgba(9, 40, 71, 0.62) 0%, rgba(14, 58, 102, 0.72) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.band-glass-light {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.90) 0%, rgba(255, 255, 255, 0.80) 62%, rgba(255, 255, 255, 0.56) 100%);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.global-scroll-hud {
  position: fixed;
  left: 20px;
  bottom: 18px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(7, 30, 54, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 212, 55, 0.45);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(7, 30, 54, 0.35);
  transition: transform 180ms ease, border-color 180ms ease;
}

@media (hover: hover) {
  .global-scroll-hud:hover {
    transform: translateY(-2px);
    border-color: #A8D437;
  }
}

.global-scroll-hud .hud-elev {
  color: #A8D437;
}

.hero-spatial {
  position: relative;
  overflow: hidden;
  min-height: clamp(580px, 84svh, 780px);
  display: flex;
  align-items: center;
  padding-block: clamp(44px, 5.5vw, 76px);
  background: linear-gradient(90deg, rgba(7, 30, 54, 0.88) 0%, rgba(14, 58, 102, 0.56) 52%, rgba(14, 58, 102, 0.14) 100%);
  color: #FFFFFF;
}

.hero-spatial-solid {
  background: radial-gradient(circle at 74% 40%, #185896 0%, #0E3A66 48%, #071e36 100%);
}

.hero-spatial-compact {
  min-height: clamp(500px, 72svh, 660px);
  padding-block: clamp(44px, 5vw, 68px);
}

.hero-spatial .h1-hero,
.hero-spatial .lead {
  color: #FFFFFF;
}

.hero-spatial .lead {
  color: rgba(255, 255, 255, 0.90);
}

.hero-spatial .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #A8D437;
  border: 1px solid rgba(168, 212, 55, 0.34);
}

.hero-spatial > .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* Figura recortada enviada al fondo y escalada (+200%) para integración proporcional */
.hero-backdrop-portrait {
  position: absolute;
  right: clamp(-24px, 2vw, 48px);
  bottom: 0;
  top: 12px;
  width: clamp(460px, 52vw, 820px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 1;
}

.hero-backdrop-portrait::before {
  content: "";
  position: absolute;
  inset: 8% 0 0 10%;
  background: radial-gradient(circle at 60% 52%, rgba(168, 212, 55, 0.24) 0%, rgba(14, 58, 102, 0.08) 54%, transparent 74%);
  z-index: 0;
}

.hero-backdrop-portrait img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.94;
  filter: drop-shadow(0 24px 44px rgba(4, 16, 30, 0.55));
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.06) 0%, #000 11%, #000 100%);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.06) 0%, #000 11%, #000 100%);
}

.hero-scrim-left {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(7, 30, 54, 0.94) 0%, rgba(7, 30, 54, 0.80) 44%, rgba(7, 30, 54, 0.22) 76%, transparent 100%);
  pointer-events: none;
}

.hero-content-col {
  max-width: min(650px, 100%);
  position: relative;
  z-index: 3;
}

.hero-stats-bar {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats-bar .stat-num {
  color: #A8D437;
}

.hero-stats-bar .stat-label {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

/* Bandas territoriales y recortes integrados al fondo en escala 200% */
.territorial-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.territorial-tile {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.territorial-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease;
}

.territorial-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 30, 54, 0.06) 0%, rgba(7, 30, 54, 0.58) 54%, rgba(7, 30, 54, 0.94) 100%);
  z-index: 1;
}

.territorial-tile > .tile-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
}

@media (hover: hover) {
  .territorial-tile:hover img {
    transform: scale(1.06);
    opacity: 0.96;
  }
}

.band-backdrop-section {
  position: relative;
  overflow: hidden;
}

.band-bg-portrait {
  position: absolute;
  right: clamp(-30px, 2vw, 40px);
  bottom: 0;
  top: 24px;
  width: clamp(440px, 46vw, 720px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 1;
}

.band-bg-portrait.is-left {
  right: auto;
  left: clamp(-30px, 2vw, 40px);
  justify-content: flex-start;
}

.band-bg-portrait img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.92;
  filter: drop-shadow(0 20px 36px rgba(14, 58, 102, 0.28));
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 10%, #000 100%);
  mask-image: linear-gradient(to top, transparent 0%, #000 10%, #000 100%);
}

.band-foreground-col {
  position: relative;
  z-index: 3;
  max-width: min(700px, 100%);
}

.band-foreground-col.is-right {
  margin-left: auto;
}

.ledger-list {
  display: grid;
  border-top: 1px solid var(--border-subtle);
}

.ledger-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding-block: 18px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
}

.ledger-period {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.cutout-band-navy {
  position: relative;
  overflow: hidden;
  background: rgba(9, 40, 71, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  padding: clamp(28px, 4.5vw, 54px);
}

/* ==========================================================================
   LÍNEA DE TIEMPO INTERACTIVA (/trayectoria)
   ========================================================================== */
.tl-scrubber-bar {
  position: sticky;
  top: 88px;
  z-index: 35;
  padding: 12px 16px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 28px rgba(14, 58, 102, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tl-scrubber-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tl-jump-pill[hidden],
.tl-card[hidden] {
  display: none;
}

.tl-interactive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.tl-track {
  position: relative;
  padding-left: 34px;
  display: grid;
  gap: 22px;
}

.tl-track::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 99px;
  background: rgba(14, 58, 102, 0.12);
}

.tl-progress-line {
  position: absolute;
  left: 11px;
  top: 8px;
  width: 3px;
  height: 0%;
  border-radius: 99px;
  background: linear-gradient(180deg, #A8D437 0%, #0E3A66 100%);
  transition: height 120ms linear;
}

.tl-card {
  position: relative;
  border-radius: 22px;
  padding: 22px 24px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(14, 58, 102, 0.05);
  cursor: pointer;
  scroll-margin-top: 165px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.tl-card::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 28px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--navy);
  transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.tl-card.is-active {
  border-color: #A8D437;
  box-shadow: 0 18px 36px -12px rgba(14, 58, 102, 0.16);
}

.tl-card.is-active::before {
  background: #A8D437;
  border-color: #0E3A66;
  transform: scale(1.25);
}

.tl-card-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.tl-card[data-expanded="false"] .tl-card-details {
  display: none;
}

.tl-inspector-sticky {
  position: sticky;
  top: 165px;
  border-radius: 26px;
  background: linear-gradient(155deg, #0E3A66 0%, #092847 100%);
  color: #FFFFFF;
  padding: 28px;
  box-shadow: 0 22px 48px -16px rgba(9, 40, 71, 0.42);
  display: grid;
  gap: 14px;
}

.tl-nav-controls {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.site-footer {
  position: relative;
  z-index: 3;
}

@media (max-width: 960px) {
  .hero-spatial {
    min-height: auto;
    padding-bottom: clamp(220px, 48vw, 320px);
  }
  .hero-backdrop-portrait {
    top: auto;
    right: -12px;
    left: auto;
    width: min(92vw, 420px);
    height: clamp(260px, 58vw, 360px);
    opacity: 0.48;
  }
  .hero-scrim-left {
    background: linear-gradient(180deg, rgba(7, 30, 54, 0.90) 0%, rgba(7, 30, 54, 0.72) 65%, rgba(7, 30, 54, 0.40) 100%);
  }
  .band-bg-portrait,
  .band-bg-portrait.is-left {
    position: relative;
    right: auto;
    left: auto;
    top: auto;
    width: 100%;
    height: 360px;
    justify-content: center;
    margin-top: 16px;
  }
  .band-bg-portrait img {
    max-width: 100%;
    height: 100%;
  }
  .territorial-showcase,
  .tl-interactive-layout {
    grid-template-columns: 1fr;
  }
  .tl-inspector-sticky,
  .tl-scrubber-bar {
    position: static;
  }
  .ledger-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .global-scroll-hud {
    left: 12px;
    bottom: 12px;
    font-size: 0.72rem;
    padding: 8px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cutout-figure,
  .territorial-tile img,
  .tl-card {
    transition: none;
    transform: none;
  }
}
