/* We love Chile: a subida até a neve
   Paleta DI-003-wlc: red #DB3A3D, navy #1B2A5E, cream #F3E8D5,
   yellow #F5B71C, blue #1E55B5, teal #0E6A6C */

@font-face { font-family: 'Lufga'; src: url('assets/fonts/lufga-regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lufga'; src: url('assets/fonts/lufga-medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Lufga'; src: url('assets/fonts/lufga-semibold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Lufga'; src: url('assets/fonts/lufga-extra-bold.otf') format('opentype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Lufga'; src: url('assets/fonts/lufga-black.otf') format('opentype'); font-weight: 900; font-display: swap; }

:root {
  --red: #DB3A3D;
  --navy: #1B2A5E;
  --cream: #F3E8D5;
  --yellow: #F5B71C;
  --blue: #1E55B5;
  --teal: #0E6A6C;
}

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

html { scroll-behavior: auto; }

body {
  font-family: 'Lufga', system-ui, sans-serif;
  background: #0d1330;
  color: var(--cream);
  overflow-x: hidden;
}

#trilho { height: 880vh; }

#tela {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 1;
}

#grade {
  position: fixed; inset: 0;
  z-index: 2; pointer-events: none;
  mix-blend-mode: soft-light;
  transition: background 0.2s linear;
}

#vinheta {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(8, 12, 34, 0.55) 100%);
}

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 50;
  background: linear-gradient(180deg, #101736 0%, #1B2A5E 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; transition: opacity 0.6s ease;
}
#loader.some { opacity: 0; pointer-events: none; }
.loader-logo { width: min(220px, 55vw); opacity: 0.95; }
.loader-alt { font-weight: 900; font-size: 64px; color: var(--yellow); line-height: 1; letter-spacing: -0.02em; }
.loader-m { font-size: 28px; font-weight: 600; margin-left: 4px; color: rgba(243,232,213,0.8); }
.loader-txt { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(243,232,213,0.65); }
.loader-bar { width: min(260px, 60vw); height: 4px; border-radius: 99px; background: rgba(243,232,213,0.18); overflow: hidden; }
#loader-fill { height: 100%; width: 0%; background: var(--red); border-radius: 99px; transition: width 0.25s ease; }

/* ---------- topo ---------- */
#topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(10,14,36,0.55), transparent);
}
.topo-logo { height: clamp(30px, 4.5vw, 44px); filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35)); }
.pill {
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px;
  padding: 10px 22px; border-radius: 999px;
  box-shadow: 0 4px 18px rgba(219,58,61,0.45);
  transition: transform 0.15s ease;
}
.pill:hover { transform: scale(1.05); }

/* ---------- HUD altímetro ---------- */
#hud {
  position: fixed; left: clamp(16px, 3vw, 44px); bottom: clamp(20px, 4vh, 44px);
  z-index: 20; display: flex; flex-direction: column; gap: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.hud-zona {
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  color: rgba(243,232,213,0.9);
}
.hud-alt { font-weight: 900; font-size: clamp(40px, 6vw, 64px); line-height: 1; color: var(--yellow); letter-spacing: -0.02em; }
.hud-m { font-size: 0.45em; font-weight: 600; color: rgba(243,232,213,0.75); margin-left: 3px; }
.hud-rail {
  position: relative; width: 3px; height: clamp(90px, 16vh, 150px);
  background: rgba(243,232,213,0.25); border-radius: 99px; margin-left: 4px;
}
#hud-rail-fill {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 0%;
  background: var(--red); border-radius: 99px;
}
.hud-tick {
  position: absolute; left: -3px; width: 9px; height: 2px;
  background: rgba(243,232,213,0.5); transform: translateY(1px);
}

/* ---------- capítulos ---------- */
.cap {
  position: fixed; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: clamp(20px, 4vw, 60px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease, transform 0.55s ease;
  transform: translateY(22px);
}
.cap.viva { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  color: var(--yellow); margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

h1 {
  font-weight: 900; font-size: clamp(44px, 8.5vw, 104px);
  line-height: 1.02; letter-spacing: -0.02em; color: #fff;
  text-shadow: 0 6px 40px rgba(8,12,34,0.6);
}
.sub {
  margin-top: 22px; font-size: clamp(16px, 2.2vw, 22px); font-weight: 500;
  color: rgba(243,232,213,0.95); text-shadow: 0 2px 12px rgba(8,12,34,0.7);
}

.hint {
  position: absolute; bottom: clamp(24px, 5vh, 48px); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(243,232,213,0.85);
}
.hint-seta {
  width: 22px; height: 22px;
  border-right: 3px solid var(--red); border-bottom: 3px solid var(--red);
  transform: rotate(45deg);
  animation: desce 1.6s ease-in-out infinite;
}
@keyframes desce { 0%,100% { transform: rotate(45deg) translate(0,0); opacity: 1; } 50% { transform: rotate(45deg) translate(7px,7px); opacity: 0.5; } }

/* scrim inferior fixo: legibilidade sem caixas na frente do vídeo */
#scrim {
  position: fixed; left: 0; right: 0; bottom: 0; height: 42vh;
  z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,12,34,0) 0%, rgba(8,12,34,0.28) 55%, rgba(8,12,34,0.6) 100%);
}

/* zonas: legenda cinematográfica no canto, o vídeo é o protagonista */
.cap-zona {
  align-items: flex-end; justify-content: flex-end;
  text-align: left;
  padding: 0 clamp(24px, 5vw, 72px) clamp(28px, 9vh, 84px) 24px;
}
.zona-min { max-width: 440px; }
.zona-min .eyebrow { margin-bottom: 8px; }
.zona-min h2 {
  font-weight: 800; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.08; color: #fff;
  text-shadow: 0 3px 24px rgba(8,12,34,0.75);
}
.zona-foto {
  width: clamp(140px, 16vw, 210px); aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 14px; border: 3px solid rgba(255,255,255,0.92);
  box-shadow: 0 12px 36px rgba(8,12,34,0.55);
  margin-bottom: 16px; display: block;
}
.corpo {
  margin-top: 12px; font-size: clamp(14px, 1.6vw, 17px); line-height: 1.6;
  color: rgba(243,232,213,0.95); font-weight: 400;
  text-shadow: 0 2px 14px rgba(8,12,34,0.8);
}
.zona-min .corpo { max-width: 400px; }

/* quem somos: texto direto sobre o vídeo */
.quem-titulo {
  font-weight: 800; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.1; color: #fff;
  text-shadow: 0 4px 30px rgba(8,12,34,0.75);
}
.quem-corpo { max-width: 640px; margin-top: 18px; }

/* prova social */
.prova { display: flex; gap: clamp(24px, 6vw, 90px); flex-wrap: wrap; justify-content: center; }
.prova-item { display: flex; flex-direction: column; gap: 6px; }
.prova-num {
  font-weight: 900; font-size: clamp(48px, 8vw, 96px); line-height: 1;
  color: var(--yellow); letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(245,183,28,0.35), 0 4px 24px rgba(8,12,34,0.6);
}
.prova-rot { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243,232,213,0.85); font-weight: 600; }

/* CTA final */
.cta-titulo { font-weight: 900; font-size: clamp(36px, 6.5vw, 84px); line-height: 1.05; color: #fff; text-shadow: 0 6px 40px rgba(8,12,34,0.65); }
.btn-whats {
  margin-top: 36px; display: inline-flex; align-items: center; gap: 12px;
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; font-size: clamp(16px, 2vw, 20px);
  padding: 18px 38px; border-radius: 999px;
  box-shadow: 0 10px 40px rgba(219,58,61,0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-whats:hover { transform: scale(1.05); box-shadow: 0 14px 50px rgba(219,58,61,0.7); }
.btn-whats.desativado { background: rgba(219,58,61,0.55); cursor: not-allowed; }
.cta-nota { margin-top: 16px; font-size: 13px; color: rgba(243,232,213,0.7); }

.noscript { position: fixed; inset: 0; z-index: 99; background: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px; text-align: center; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .card-zona { grid-template-columns: 1fr; }
  .card-zona figure { min-height: 200px; }
  #hud { bottom: 16px; }
  .hud-rail { display: none; }
  .cap { padding: 18px; }
}
