/* ==========================================================================
   LA COLMENA · PÁGINA "PLAZAS CERRADAS"
   ========================================================================== */
:root {
  --black: #050506;
  --paper: #f6f5f2;
  --grey: #8b8d95;
  --blue: #2b6bff;
  --sans: "Geist", Inter, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --g: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--black); color: var(--paper);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }

/* Fondo: panal + velo para que el texto respire */
.hive { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; touch-action: pan-y; }
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(70% 60% at 22% 52%, rgba(5,5,6,.92), rgba(5,5,6,.55) 55%, transparent 80%),
    linear-gradient(to bottom, rgba(5,5,6,.6), transparent 18%, transparent 82%, rgba(5,5,6,.8));
}

/* Cabecera */
.top, .stage, .foot { position: relative; z-index: 2; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px var(--g); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.02em; }
.brand img { height: 24px; width: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 99px;
  border: 1px solid rgba(246,245,242,.18); background: rgba(5,5,6,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .6875rem;
}
.chip__lock { width: 10px; height: 10px; border: 1.5px solid var(--paper); border-radius: 2px; position: relative; top: 2px; }
.chip__lock::before { content: ""; position: absolute; left: 1px; right: 1px; bottom: 100%; height: 6px; border: 1.5px solid var(--paper); border-bottom: 0; border-radius: 6px 6px 0 0; }

/* Escenario central */
.stage { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--g) clamp(32px, 6vh, 64px); max-width: 1500px; pointer-events: none; }
.stage a { pointer-events: auto; }
.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--grey); margin: 0 0 clamp(20px, 3vh, 36px); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(43,107,255,.18); }

.title {
  margin: 0; display: flex; flex-direction: column;
  font-size: clamp(2.4rem, min(8vw, 9.8vh), 10rem); font-weight: 800; line-height: .84; letter-spacing: -.06em; text-transform: uppercase;
}
.title__line { display: block; white-space: nowrap; font-variant-ligatures: none; }
.title__line--blue { color: var(--blue); text-shadow: 0 0 60px rgba(43,107,255,.35); }
.title .scr { color: var(--grey); opacity: .55; } /* letras aún "descifrándose" */

/* Total retirado: protagonista */
.total { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: clamp(22px, 3.6vh, 40px); text-decoration: none; pointer-events: auto; width: fit-content; }
.total__num {
  font-size: clamp(3.4rem, min(12.5vw, 16vh), 14rem); font-weight: 800; line-height: .88; letter-spacing: -.055em;
  font-variant-numeric: tabular-nums; color: var(--paper);
  background: linear-gradient(180deg, #fff 30%, #b9cbff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(43,107,255,.35));
}
.total__lbl { display: inline-flex; align-items: center; gap: 10px; color: var(--grey); font-size: .8125rem; transition: color .2s; }
.total:hover .total__lbl { color: var(--paper); }
.lead { margin: clamp(18px, 3vh, 32px) 0 0; max-width: 40ch; font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.4; letter-spacing: -.02em; color: #b9bac0; }
.lead strong { color: var(--paper); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: clamp(28px, 4.5vh, 48px); }
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 1.25rem; min-height: 60px; padding: 0 1.6rem;
  background: var(--blue); color: #fff; border-radius: 2px; text-decoration: none;
  font: 600 .8125rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  transition: color .45s var(--ease), box-shadow .45s var(--ease);
  box-shadow: 0 0 0 0 rgba(43,107,255,.0);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper); transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover { color: var(--black); box-shadow: 0 18px 50px -18px rgba(43,107,255,.8); }
.btn:hover::before { transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(5px); }

.live { display: inline-flex; align-items: center; gap: 10px; color: var(--grey); text-decoration: none; font-size: .6875rem; transition: color .2s; }
.live b { color: var(--paper); font-weight: 500; }
.live:hover { color: var(--paper); }
.live__dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #3ad38a; flex: none; }
.live__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #3ad38a; animation: ping 2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }

/* Pie */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 18px var(--g) 24px; color: #6c6e74; font-size: .625rem; }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--paper); }

/* Entradas */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 120ms + 200ms); }
.js.is-loaded .reveal { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .top { padding: 16px var(--g); }
  .chip { padding: 6px 10px; font-size: .5625rem; }
  .title { font-size: clamp(2.3rem, 11.5vw, 4rem); }
  .total__num { font-size: clamp(3rem, 15vw, 5rem); }
  .total__lbl { font-size: .625rem; }
  .veil { background: radial-gradient(120% 70% at 30% 50%, rgba(5,5,6,.9), rgba(5,5,6,.5) 60%, transparent 90%), linear-gradient(to bottom, rgba(5,5,6,.6), transparent 18%, transparent 80%, rgba(5,5,6,.85)); }
  .btn { width: 100%; justify-content: space-between; }
  .actions { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-height: 760px) and (min-width: 641px) { .top { padding-block: 14px; } .foot { padding-block: 12px 14px; } }
