/* ═══════════════════════════════════════════════
   PROSEGUR — SEGURIDAD HÍBRIDA V4
   Scroll Cinema + Navy Design System
   ═══════════════════════════════════════════════ */

/* ═══════════════════════════════════
   PRELOADER
   ═══════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #040810;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}
.preloader.fade-out { opacity: 0; visibility: hidden; }
.preloader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.preloader-logo {
  width: clamp(180px, 30vw, 300px);
  height: auto;
  fill: none;
  stroke: #FFD102;
  stroke-width: 1.5;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: logo-draw 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.preloader-logo path {
  fill: #FFD102;
  fill-opacity: 0;
  animation: logo-fill 0.4s ease 1.6s forwards;
}
@keyframes logo-draw { to { stroke-dashoffset: 0; } }
@keyframes logo-fill { to { fill-opacity: 1; } }

.preloader-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: #FFD102;
  opacity: 0;
  animation: fadeIn 0.6s ease 1.2s forwards;
}
.preloader-particles {
  position: absolute;
  inset: -40px;
  pointer-events: none;
}
.preloader-particles span {
  position: absolute;
  width: 4px; height: 4px;
  background: #FFD102;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 209, 2, 0.4);
  opacity: 0;
  animation: particle-orbit 2.5s ease-in-out infinite;
}
.preloader-particles span:nth-child(1) { top: 50%; left: 0; animation-delay: 0s; }
.preloader-particles span:nth-child(2) { top: 0; left: 50%; animation-delay: 0.4s; }
.preloader-particles span:nth-child(3) { top: 50%; right: 0; animation-delay: 0.8s; }
.preloader-particles span:nth-child(4) { bottom: 0; left: 50%; animation-delay: 1.2s; }
.preloader-particles span:nth-child(5) { top: 15%; left: 15%; animation-delay: 0.2s; }
.preloader-particles span:nth-child(6) { bottom: 15%; right: 15%; animation-delay: 0.6s; }
@keyframes particle-orbit {
  0% { opacity: 0; transform: scale(0) translateY(0); }
  20% { opacity: 0.8; transform: scale(1) translateY(-10px); }
  80% { opacity: 0.6; transform: scale(0.8) translateY(10px); }
  100% { opacity: 0; transform: scale(0) translateY(0); }
}
body.loading { overflow: hidden; }

/* ── Design Tokens ── */
:root {
  --gold: #FFD102;
  --gold-dim: rgba(255, 209, 2, 0.12);
  --gold-glow: rgba(255, 209, 2, 0.4);
  --gold-soft: rgba(255, 209, 2, 0.06);

  --black: #000000;
  --bg-deep: #040810;
  --bg-primary: #0a1020;
  --bg-secondary: #0e1830;
  --bg-accent: #0c1a22;
  --bg-card: rgba(12, 20, 45, 0.55);
  --bg-card-hover: rgba(18, 30, 60, 0.7);

  --border-subtle: rgba(255, 209, 2, 0.08);
  --border-hover: rgba(255, 209, 2, 0.3);

  --teal: #637A7C;
  --teal-light: #78CBCF;
  --orange: #F3813C;
  --gray: #9D9FA2;

  --white: #FFFFFF;
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.68);
  --text-muted: rgba(255, 255, 255, 0.42);

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --transition-fast: 150ms ease;
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-dramatic: 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 16px;
}

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

.container {
  max-width: 1200px;
  width: 100%;
}

/* ── Canvas ── */
#globe {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ── Progress Bar ── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  z-index: 1000;
  width: 0%;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-lg) var(--space-2xl);
  transition: var(--transition-base);
}

nav.scrolled {
  background: rgba(4, 8, 16, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: var(--space-md) var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo svg { height: 28px; width: auto; fill: var(--gold); }

.nav-links { display: flex; align-items: center; gap: var(--space-2xl); }
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--black) !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: #ffe44d !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition-base); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(4, 8, 16, 0.96);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-base);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--white); }

/* ── Sections ── */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl) var(--space-2xl);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}

.gold { color: var(--gold); }

h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  color: var(--white);
}

/* ── Reveal ── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-dramatic), transform var(--transition-dramatic);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════
   CINEMATIC TEXT REVEALS
   ═══════════════════════════════════ */
.word {
  display: inline-block;
  clip-path: inset(-10% 100% -10% 0);
  opacity: 0;
  transform: translateY(8px);
  transition: clip-path 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 0.12s),
              opacity 0.4s ease calc(var(--i, 0) * 0.12s),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 0.12s);
}
.word.revealed {
  clip-path: inset(-10% 0 -10% 0);
  opacity: 1;
  transform: translateY(0);
}

/* Hero words: bigger stagger, no initial animation (preloader handles timing) */
.hero-title .word {
  transition-duration: 0.8s, 0.5s, 0.8s;
  transition-delay: calc(var(--i, 0) * 0.2s), calc(var(--i, 0) * 0.2s), calc(var(--i, 0) * 0.2s);
}

/* Closing: slower, more dramatic */
.text-reveal-slow .word {
  transition-duration: 0.9s, 0.6s, 0.9s;
  transition-delay: calc(var(--i, 0) * 0.18s), calc(var(--i, 0) * 0.18s), calc(var(--i, 0) * 0.18s);
}

/* ═══════════════════════════════════
   HERO
   ═══════════════════════════════════ */
.section-hero {
  min-height: 100vh;
  padding-top: 0;
  background: transparent;
}

.hero-content { text-align: center; position: relative; z-index: 2; }

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-xl);
}
.hero-title .line { display: block; overflow: visible; padding-bottom: 0.05em; }
.hero-title .line-1 {
  font-size: clamp(3rem, 10vw, 7rem);
  color: var(--white);
}
.hero-title .line-2 {
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  background: linear-gradient(135deg, var(--gold) 0%, #ffe44d 40%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto;
  animation: fadeIn 1s ease 0.8s both;
}

.hero-scroll-cue {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  animation: fadeIn 1s ease 1.5s both;
}
.hero-scroll-cue span {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-arrow { color: var(--gold); animation: bounceDown 2s ease infinite; }

/* ═══════════════════════════════════
   EVOLUTION
   ═══════════════════════════════════ */
.section-evolution {
  background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 25%, var(--bg-primary) 100%);
}

.evo-text {
  max-width: 700px;
  margin-bottom: var(--space-4xl);
}
.evo-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  backdrop-filter: blur(12px);
  transition: var(--transition-base);
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 209, 2, 0.08);
  background: var(--bg-card-hover);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}
.stat-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ═══════════════════════════════════
   CINEMA THEATER
   ═══════════════════════════════════ */
.cinema-theater {
  position: relative;
  z-index: 1;
  padding: 6rem var(--space-2xl) 8rem;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 30%, var(--bg-secondary) 70%, var(--bg-accent) 100%);
}

.cinema-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cinema-header {
  margin-bottom: var(--space-3xl);
}

/* The Screen */
.cinema-stage {
  position: relative;
  margin-bottom: var(--space-3xl);
}

.cinema-screen {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  --glow-color: rgba(255, 209, 2, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 209, 2, 0.15),
    0 0 80px var(--glow-color),
    0 24px 80px rgba(0, 0, 0, 0.6);
  animation: breathe-glow 3s ease-in-out infinite;
  transition: box-shadow var(--transition-slow);
}
@keyframes breathe-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 209, 2, 0.15),
      0 0 60px var(--glow-color),
      0 24px 80px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 209, 2, 0.25),
      0 0 120px var(--glow-color),
      0 24px 80px rgba(0, 0, 0, 0.6);
  }
}
.cinema-screen.dynamic-glow {
  animation: none;
  transition: box-shadow 0.5s ease;
}

.cinema-screen:hover {
  box-shadow:
    0 0 0 1px rgba(255, 209, 2, 0.3),
    0 0 100px rgba(255, 209, 2, 0.15),
    0 32px 100px rgba(0, 0, 0, 0.7);
}

.cinema-screen video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #0a0a14;
  cursor: pointer;
}

/* Play Overlay */
.cinema-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 16, 0.4);
  opacity: 1;
  transition: opacity 0.6s ease;
  z-index: 2;
  cursor: pointer;
}
.cinema-play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.cinema-play-btn {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  transition: var(--transition-base);
  filter: drop-shadow(0 0 20px rgba(255, 209, 2, 0.3));
}
.cinema-play-btn:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 0 30px rgba(255, 209, 2, 0.5));
}

/* Video Control Buttons */
.cinema-ctrl-btn {
  position: absolute;
  bottom: 16px;
  z-index: 5;
  background: rgba(4, 8, 16, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 209, 2, 0.25);
  color: var(--gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
}
.cinema-ctrl-btn:hover {
  background: rgba(255, 209, 2, 0.15);
  border-color: var(--gold);
  transform: scale(1.1);
}
.cinema-pause-btn { right: 64px; }
.cinema-audio-btn { right: 16px; }

/* Fullscreen button — mobile only */
.cinema-fullscreen-btn {
  right: 112px;
  display: none;
}
@media (max-width: 1024px) {
  .cinema-fullscreen-btn { display: flex; }
}

/* Progress Bar */
.cinema-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 3;
  cursor: pointer;
  transition: height 0.2s ease;
}
.cinema-progress:hover {
  height: 8px;
}

.cinema-time-tooltip {
  position: absolute;
  bottom: 16px;
  left: 0;
  background: rgba(4, 8, 16, 0.9);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 209, 2, 0.2);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.15s ease;
  white-space: nowrap;
}
.cinema-progress:hover .cinema-time-tooltip {
  opacity: 1;
}

.cinema-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transition: width 200ms linear;
}

.cinema-progress-chapters {
  position: absolute;
  inset: 0;
}

.cinema-progress-marker {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 10px;
  background: rgba(255, 209, 2, 0.4);
  transform: translateX(-50%);
}

/* Chapter Cards */
.cinema-chapters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.cinema-ch {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  transition: var(--transition-base);
  cursor: pointer;
  overflow: hidden;
}

.cinema-ch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.cinema-ch.active {
  border-color: rgba(255, 209, 2, 0.25);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 32px rgba(255, 209, 2, 0.06);
}
.cinema-ch.active::before {
  transform: scaleX(1);
}

.cinema-ch.passed::before {
  transform: scaleX(1);
  background: rgba(255, 209, 2, 0.3);
}

.cinema-ch:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.cinema-ch-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.cinema-ch-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: var(--space-sm);
  transition: opacity var(--transition-base);
}
.cinema-ch.active .cinema-ch-num {
  opacity: 0.4;
}

.cinema-ch h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-xs);
  transition: color var(--transition-base);
}

.cinema-ch p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: color var(--transition-base);
}
.cinema-ch.active p {
  color: var(--text-secondary);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════
   ECOSYSTEM
   ═══════════════════════════════════ */
.section-ecosystem {
  background: linear-gradient(180deg, var(--bg-accent) 0%, var(--bg-primary) 100%);
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.eco-header { margin-bottom: var(--space-4xl); }

.eco-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
  margin-top: var(--space-md);
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}

.eco-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-bottom: 3px solid transparent;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-lg);
  backdrop-filter: blur(12px);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eco-card:hover {
  border-color: var(--border-hover);
  border-bottom-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(255, 209, 2, 0.08);
  background: var(--bg-card-hover);
}

.eco-card-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.85;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.eco-card-icon {
  width: 60px; height: 60px;
  color: var(--gold);
  margin-bottom: var(--space-lg);
  background: rgba(255, 209, 2, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.eco-card-icon svg { width: 100%; height: 100%; }

.eco-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--white);
}

.eco-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════
   SECTORS
   ═══════════════════════════════════ */
.section-sectors {
  background: var(--bg-primary);
  min-height: auto;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.sectors-header { margin-bottom: var(--space-3xl); }

.sector-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.sector-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  backdrop-filter: blur(12px);
  transition: var(--transition-base);
  cursor: pointer;
}
.sector-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(255, 209, 2, 0.06);
  background: var(--bg-card-hover);
}

.sector-icon { width: 48px; height: 48px; margin-bottom: var(--space-lg); color: var(--gold); }

.sector-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.sector-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════
   CLOSING / CONVENTION
   ═══════════════════════════════════ */
.section-closing {
  background: radial-gradient(ellipse at center, rgba(255, 209, 2, 0.06) 0%, var(--bg-deep) 70%);
  min-height: 50vh;
}

.closing-content { text-align: center; max-width: 700px; }

.closing-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-xl);
}

.closing-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-xl) var(--space-2xl);
  background: var(--bg-deep);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--gold);
}
.footer-copy, .footer-credit { font-size: 0.85rem; color: var(--text-muted); }

/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounceDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } }


/* ═══════════════════════════════════
   MOBILE WORD FADE (compositor-driven)
   Single container class triggers all words via animation-delay.
   No per-word JS setTimeout = zero style-thrashing.
   ═══════════════════════════════════ */
@keyframes mobileWordFade {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 1024px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .sector-cards { grid-template-columns: repeat(2, 1fr); }
  .cinema-chapters { grid-template-columns: repeat(2, 1fr); }
  .eco-grid { grid-template-columns: repeat(3, 1fr); }
}

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu { display: flex; }

  .section { padding: var(--space-3xl) var(--space-lg); }
  .hero-title .line-1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-title .line-2 { font-size: clamp(3rem, 14vw, 5rem); }
  .stats-row { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .stat-card { padding: var(--space-lg); }

  .cinema-chapters { grid-template-columns: 1fr 1fr; }
  .cinema-ch p { display: none; }

  .footer-inner { flex-direction: column; text-align: center; gap: var(--space-sm); }

  /* ── FIX 1: Hero words — instant visible ──
     Preloader fade IS the reveal. No per-word animation.
     Avoids -webkit-text-fill-color compositing bug on mobile Safari. */
  .hero-title .word {
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  /* ── FIX 2: Body text — CSS @keyframes animation with stagger ──
     JS adds ONE class (.words-revealed) to the container.
     CSS handles per-word timing via animation-delay + --i variable.
     Result: single style recalc → browser pre-computes entire timeline
     on compositor thread → buttery smooth on any phone. */
  .text-reveal .word,
  .text-reveal-slow .word {
    clip-path: none !important;
    opacity: 0;
    transform: translateY(5px);
    transition: none !important;
    will-change: opacity, transform;
  }
  .text-reveal.words-revealed .word {
    animation: mobileWordFade 0.4s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.07s);
  }
  .text-reveal-slow.words-revealed .word {
    animation: mobileWordFade 0.55s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
  }

  /* ── FIX 3: Horizontal card slider ──
     Pure flex + scroll-snap. Cards at 80vw show a peek of next card. */
  .eco-grid {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    gap: var(--space-md);
    padding: 0 var(--space-lg) var(--space-md);
    scrollbar-width: none;
  }
  .eco-grid::-webkit-scrollbar { display: none; }
  .eco-card {
    flex: 0 0 80vw;
    max-width: 80vw;
    scroll-snap-align: center;
  }

  .sector-cards {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    gap: var(--space-md);
    padding: 0 var(--space-lg) var(--space-md);
    scrollbar-width: none;
  }
  .sector-cards::-webkit-scrollbar { display: none; }
  .sector-card {
    flex: 0 0 82vw;
    max-width: 82vw;
    scroll-snap-align: center;
  }

  /* ── Slider dot indicators ── */
  .slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: var(--space-md) 0 0;
  }
  .slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 209, 2, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
  }
  .slider-dot.active {
    background: var(--gold);
    transform: scale(1.3);
  }
}

@media (max-width: 480px) {
  nav { padding: var(--space-md) var(--space-lg); }
  nav.scrolled { padding: var(--space-sm) var(--space-lg); }
  .stats-row { grid-template-columns: 1fr; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up { opacity: 1; transform: none; }
  #globe { display: none; }
  /* Preloader: static logo, instant hide */
  .preloader-logo { stroke-dashoffset: 0; }
  .preloader-logo path { fill-opacity: 1; }
  .preloader-particles { display: none; }
  .preloader-tagline { opacity: 1; }
  /* Text reveals: show immediately */
  .word { clip-path: none !important; opacity: 1 !important; transform: none !important; }
  /* Video glow: static, no breathing */
  .cinema-screen { animation: none !important; }
}