/* All colors are variables so the theme is easy to switch. System fonts only. */
:root {
  --bg: #0e0f11;
  --bg-elevated: #17191c;
  --text: #ecebe8;
  --text-muted: #a3a29e;
  --border: #2a2c30;
  --accent: #e8b04a;
  --accent-contrast: #14110a;
  --bg-band: #14161a;
  --focus: #7fb3ff;
  --font-serif: Georgia, "Times New Roman", serif;
  --demo-h: 34px;
  --topbar-h: 32px;
  --secnav-h: 42px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-contrast);
  padding: 8px 14px; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.brand { font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; text-decoration: none; }
.nav-list { display: flex; flex-wrap: wrap; gap: clamp(10px, 2.5vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; color: var(--text-muted); font-size: .95rem; padding: 6px 2px; }
.nav-list a:hover { color: var(--text); }

.placeholder { padding-block: clamp(64px, 14vh, 160px); }
.placeholder h1 { font-size: clamp(2.2rem, 7vw, 4.5rem); line-height: 1.1; margin: 0 0 16px; }
.placeholder p { color: var(--text-muted); max-width: 52ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--accent) !important; }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-contrast);
  padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 600;
}

.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 28px 0; color: var(--text-muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }

.whatsapp-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  background: #25d366; color: #06210f; font-weight: 700; text-decoration: none;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 4px 16px rgba(0,0,0,.4);
}

/* ---- sections ---- */
.section { padding-block: clamp(36px, 7vw, 80px); }
.section h1, .section h2 { line-height: 1.15; margin: 0 0 24px; }
.section h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.section h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-head a { color: var(--accent); }
.lead { color: var(--text-muted); max-width: 60ch; }
.prose { max-width: 70ch; }
.notice { border-left: 3px solid var(--accent); padding-left: 12px; color: var(--text-muted); }
.empty { color: var(--text-muted); }

.intro {
  position: fixed; inset: 0; z-index: 200; background: var(--accent); color: var(--accent-contrast);
  display: grid; place-items: center; overflow: hidden;
  transition: transform .55s cubic-bezier(.76, 0, .24, 1);
}
.intro[hidden] { display: none; }
.intro.out { transform: translateY(-100%); }
.intro-word { font-size: clamp(2.6rem, 11vw, 6rem); font-weight: 800; letter-spacing: .06em; display: flex; }
.intro-word span { display: inline-block; opacity: 0; transform: translateY(60%); animation: letter-in .5s cubic-bezier(.2, .8, .2, 1) forwards; }
.intro-word span:nth-child(1) { animation-delay: .05s; } .intro-word span:nth-child(2) { animation-delay: .12s; }
.intro-word span:nth-child(3) { animation-delay: .19s; } .intro-word span:nth-child(4) { animation-delay: .26s; }
.intro-word span:nth-child(5) { animation-delay: .33s; } .intro-word span:nth-child(n+6) { animation-delay: .4s; }
.intro-line { position: absolute; left: 0; bottom: 0; height: 6px; width: 100%; background: var(--accent-contrast); transform-origin: left; animation: line-grow .95s cubic-bezier(.6, 0, .2, 1) forwards; transform: scaleX(0); }
@keyframes letter-in { to { opacity: 1; transform: none; } }
@keyframes line-grow { to { transform: scaleX(1); } }

.hero { position: relative; height: calc(100svh - var(--demo-h) - var(--header-h) - var(--topbar-h) - var(--secnav-h)); min-height: 420px; overflow: hidden; background: var(--bg-elevated); }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent 60%),
              linear-gradient(to right, rgba(0,0,0,.6), transparent 70%); }
.hero-overlay { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(32px, 8vh, 96px); }
.hero-overlay h1 { font-size: clamp(1.7rem, 4.6vw, 3.6rem); line-height: 1.12; margin: 0 0 22px; max-width: 26ch; text-wrap: balance; }

.collage-videos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(5, 1fr); }
.frame { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--bg-elevated); }
.frame img, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame video { opacity: 0; transition: opacity .2s; }
.frame.playing video { opacity: 1; }
.frame-title { position: absolute; left: 8px; bottom: 6px; font-size: .8rem; text-shadow: 0 1px 4px #000; }

.grid-squares { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--bg-elevated); text-decoration: none; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover img, .card:focus-visible img { transform: scale(1.04); }
.card-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(to top, rgba(0,0,0,.75), transparent); display: flex; flex-direction: column; }
.card-title { font-weight: 600; }
.card-meta { color: var(--text-muted); font-size: .85rem; }
.badge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.7); font-size: .8rem; padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }

.collage-photos { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 150px; grid-auto-flow: dense; }
.collage-photos li { overflow: hidden; border-radius: 6px; background: var(--bg-elevated); }
.collage-photos .wide { grid-column: span 2; }
.collage-photos .tall { grid-row: span 2; }
.collage-photos a, .photo-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.collage-photos img { width: 100%; height: 100%; object-fit: cover; }

.stats { margin-top: clamp(40px, 8vw, 88px); border-block: 1px solid var(--border); padding: 36px 0; }
.stats-inner { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 24px; text-align: center; }
.stats p { margin: 0; display: flex; flex-direction: column; }
.stats strong { font-size: clamp(2rem, 6vw, 3.4rem); color: var(--accent); line-height: 1.1; }
.stats span { color: var(--text-muted); }
.contact-cta { text-align: center; }
.contact-cta p { color: var(--text-muted); }

.filters { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.filters label, .field label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--text-muted); }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; min-width: 0;
}
.filters input[type="search"] { min-width: min(260px, 100%); }

.case .player { width: 100%; height: auto; max-height: 80vh; background: #000; border-radius: 8px; aspect-ratio: 16 / 9; }
.case h1 { margin-top: 24px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 16px; }
.facts dt { color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 0; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lightbox img { position: absolute; inset: 56px 64px; margin: auto; max-width: calc(100% - 128px); max-height: calc(100% - 112px); object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 1.8rem; cursor: pointer; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: 50%; }
.lb-next { right: 8px; top: 50%; }

.form-wrap { max-width: 680px; }
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
textarea { resize: vertical; }
[aria-invalid="true"] { border-color: #ff7b72; }
.error { color: #ff9b94; margin: 0; font-size: .9rem; }
.alert { padding: 12px 16px; border-radius: 8px; }
.alert.ok { background: #14301f; border: 1px solid #2d6a43; }
.alert.err { background: #3a1818; border: 1px solid #7a2e2e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; justify-self: start; }

@media (max-width: 800px) {
  .collage-videos { grid-template-columns: repeat(2, 1fr); }
  .grid-squares { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}
@media (max-width: 480px) {
  .lightbox img { inset: 56px 8px; max-width: calc(100% - 16px); }
}

@media (max-width: 560px) {
  :root { --header-h: 76px; }
  .header-inner { flex-direction: column; justify-content: center; align-items: flex-start; gap: 0; padding-block: 6px; }
  .brand { font-size: 1.1rem; line-height: 1.3; }
  .nav-list { flex-wrap: nowrap; gap: 14px; }
  .nav-list a { font-size: .84rem; padding: 4px 0; white-space: nowrap; }
}
.hero-overlay { text-shadow: 0 1px 8px rgba(0,0,0,.85); }
.hero-overlay .eyebrow { color: #f2c46d !important; font-weight: 600; text-shadow: 0 1px 6px #000, 0 0 14px rgba(0,0,0,.9); }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- news-style chrome ---- */
.topbar { background: #000; color: var(--text-muted); font-size: .78rem; height: var(--topbar-h); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.topbar-date { letter-spacing: .02em; }
.topbar-tag { text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.secnav { background: #000; border-bottom: 1px solid var(--border); height: var(--secnav-h); }
.secnav-inner { display: flex; gap: clamp(14px, 3vw, 32px); align-items: center; height: 100%; overflow-x: auto; scrollbar-width: none; }
.secnav a { color: var(--text); text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: .82rem; letter-spacing: .08em; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.secnav a:hover, .secnav a:focus-visible { border-bottom-color: var(--accent); }
.label-bar { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .06em; }
.label-bar::before { content: ""; width: 7px; height: 1.1em; background: var(--accent); flex: none; }
.label-bar.small { font-size: 1rem; margin: 0 0 14px; }
.serif { font-family: var(--font-serif); }
.chip { position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--accent-contrast); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 4px; }

.ticker { display: flex; align-items: stretch; background: var(--bg-elevated); border-block: 1px solid var(--border); overflow: hidden; }
.ticker-label { flex: none; background: var(--accent); color: var(--accent-contrast); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; padding: 10px 16px; display: flex; align-items: center; }
.ticker-track { overflow: hidden; flex: 1; min-width: 0; }
.ticker-move { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker-track:hover .ticker-move, .ticker-track:focus-within .ticker-move { animation-play-state: paused; }
.ticker-list { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0 18px; align-items: center; white-space: nowrap; }
.ticker-list li { padding: 10px 0; font-size: .9rem; }
.ticker-list a { text-decoration: none; font-weight: 600; }
.ticker-list a:hover { text-decoration: underline; }
.ticker-list span { color: var(--text-muted); font-size: .78rem; margin-left: 6px; text-transform: uppercase; }
@keyframes ticker { to { transform: translateX(-50%); } }

.portada { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.story a { display: block; text-decoration: none; }
.lead-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--bg-elevated); }
.lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.story a:hover img, .story a:focus-visible img { transform: scale(1.03); }
.lead-title { display: block; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.15; margin-top: 14px; font-weight: 700; }
.lead-meta { display: block; color: var(--text-muted); font-size: .88rem; margin-top: 6px; }
.recent ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.recent li { border-top: 1px solid var(--border); }
.recent li:first-child { border-top: 0; }
.recent a { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; text-decoration: none; padding: 12px 0; }
.recent img { width: 110px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; }
.recent-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.recent-title { font-size: 1.05rem; line-height: 1.25; font-weight: 700; }
.recent a:hover .recent-title, .recent a:focus-visible .recent-title { color: var(--accent); }
.recent-meta { color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }

.band { background: var(--bg-band); border-block: 1px solid var(--border); }

/* ---- hero extras ---- */
.hero-tools { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(20px, 4vh, 40px); display: flex; align-items: center; gap: 14px; }
.hero-time { font-variant-numeric: tabular-nums; font-size: .82rem; letter-spacing: .06em; color: #fff; text-shadow: 0 1px 6px #000; }
.hero-btn { font: inherit; font-size: .8rem; font-weight: 600; color: #fff; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.hero-btn:hover { background: rgba(0,0,0,.8); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); color: #fff; text-decoration: none; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 6px; text-shadow: 0 1px 6px #000; }
.scroll-cue::after { content: ""; width: 1px; height: 28px; background: #fff; transform-origin: top; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---- scroll effects (progressive: content is always visible without JS) ---- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.stagger > li:nth-child(5n+2) { transition-delay: .06s; } .stagger > li:nth-child(5n+3) { transition-delay: .12s; }
.stagger > li:nth-child(5n+4) { transition-delay: .18s; } .stagger > li:nth-child(5n+5) { transition-delay: .24s; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-poster, .hero-video { animation: hero-zoom linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero-overlay { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
  }
}
@keyframes hero-zoom { to { transform: scale(1.12); } }
@keyframes hero-out { to { opacity: 0; transform: translateY(-48px); } }

@media (max-width: 800px) {
  .portada { grid-template-columns: 1fr; }
  .topbar-tag { display: none; }
  .hero-time { display: none; }
}
@media (max-width: 560px) {
  :root { --topbar-h: 28px; --secnav-h: 40px; --demo-h: 30px; }
  .demo-long { display: none; }
  .scroll-cue { display: none; }
  .hero-tools { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .ticker-move { animation: none; }
  .ticker-track { overflow-x: auto; }
  .ticker-list[aria-hidden="true"] { display: none; }
  .intro-word span { opacity: 1; transform: none; }
  .intro-line { transform: scaleX(1); }
}

/* ---- demo notice ---- */
.demo-strip { background: var(--accent); color: var(--accent-contrast); font-size: .82rem; height: var(--demo-h); }
.demo-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; white-space: nowrap; }
.demo-strip a { color: inherit; font-weight: 700; }
.demo-box { border-bottom: 1px solid var(--border); }
.demo-box h1 { max-width: 20ch; }
.demo-list { max-width: 70ch; padding-left: 1.2em; color: var(--text-muted); display: grid; gap: 10px; }
.demo-list strong { color: var(--text); }
