:root {
  --bg: #090b18;
  --bg-soft: #101326;
  --panel: #171a2b;
  --indigo: #242344;
  --violet: #343052;
  --yellow: #f4cc43;
  --red: #c94b32;
  --orange: #ef7625;
  --acid: #8be044;
  --cyan: #65d7ff;
  --warm: #f6f0df;
  --muted: #aaa9b7;
  --line: rgba(246, 240, 223, .13);
  --shadow: 0 24px 70px rgba(0,0,0,.35);
  --radius: 22px;
  --shell: min(1180px, calc(100% - 40px));
  --header-bg: #090b18;
  --footer-bg: #070813;
  --page-accent: var(--yellow);
  --page-accent2: var(--acid);
  --font-body: Arial, Helvetica, sans-serif;
  --font-display: "Arial Black", Arial, Helvetica, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-scale: 1;
  --section-scale: 1;
  --button-radius: 999px;
  --gallery-min: 280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: calc(16px * var(--font-scale)); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--warm);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

::selection { background: var(--yellow); color: #111321; }

.shell { width: var(--shell); margin-inline: auto; }
.section { padding: calc(clamp(72px, 9vw, 132px) * var(--section-scale)) 0; }

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .9;
}
.kicker, .mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 800;
}
.kicker { color: var(--yellow); }
.lede { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.2rem); }
.muted { color: var(--muted); }

.skip-link {
  position: fixed;
  left: 16px;
  top: 14px;
  z-index: 999;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--yellow);
  color: #111321;
  font-weight: 900;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--header-bg) 78%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--header-bg) 93%, transparent); }
.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 950; letter-spacing: -.02em; }
.brand img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; image-rendering: auto; box-shadow: 0 0 0 1px var(--line); }
.brand span { font-size: .98rem; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { position: relative; color: #d8d5ce; font-size: .88rem; font-weight: 750; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -9px;
  height: 2px;
  background: var(--page-accent);
  transition: right .22s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--warm); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  background: var(--warm);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span { opacity: 0; }
.nav-toggle.open::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open::after { transform: translateY(-6px) rotate(-45deg); }

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: rgba(255,255,255,.025);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .04em;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(246,240,223,.36); }
.btn-primary { background: var(--page-accent); color: #111321; border-color: var(--page-accent); }
.btn-acid { background: var(--page-accent2); color: #0d170a; border-color: var(--page-accent2); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-orange { background: var(--orange); border-color: var(--orange); color: #15100a; }
.btn-cyan { background: var(--cyan); border-color: var(--cyan); color: #0a1117; }

.page-intro { padding: clamp(78px, 8vw, 116px) 0 44px; }
.page-intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 7vw, 110px); align-items: end; }
.page-title { font-size: clamp(4rem, 11vw, 9rem); }
.page-copy { max-width: 520px; margin: 0 0 10px auto; color: var(--muted); font-size: 1.08rem; }

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.media-frame img { width: 100%; height: auto; }

.site-footer { border-top: 1px solid var(--line); padding: 46px 0 56px; background: var(--footer-bg); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .9fr .8fr; gap: 34px; }
.footer-title { font-weight: 950; font-size: 1.35rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; color: var(--muted); font-size: .9rem; }
.footer-small { color: var(--muted); font-size: .82rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3,4,10,.94);
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(94vw, 1500px); max-height: 88vh; }
.lightbox img { width: auto; max-width: 100%; max-height: 82vh; margin: auto; object-fit: contain; }
.lightbox figcaption { margin-top: 12px; color: var(--muted); text-align: center; font-size: .85rem; }
.lightbox-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 48px; height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  cursor: pointer;
  font-size: 1.4rem;
}

.focusable:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

@media (max-width: 840px) {
  :root { --shell: min(100% - 28px, 760px); }
  .navbar { min-height: 72px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    display: grid;
    gap: 0;
    padding: 12px 18px 22px;
    background: rgba(9,11,24,.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 15px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-links a::after { display: none; }
  .page-intro-grid { grid-template-columns: 1fr; }
  .page-copy { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.empty-content{padding:32px;border:1px dashed var(--line);color:var(--muted);border-radius:18px}.gallery-meta p{margin:9px 0 0;color:var(--muted);font-size:.82rem;line-height:1.5}.status-open.is-closed{color:#d78c80}.status-open.is-closed::before{background:#c94b32;box-shadow:none}

/* V8: accesibilidad, imágenes y dialog */
img{height:auto}.dialog-open{overflow:hidden}.empty-content:empty{display:none}
