/* Voltaclip — base compartida por la portada y la app. Mundo: cartelera de cine de noche. */
@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Tubo'; src: url('/fonts/Quicksand-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Marquesina'; src: url('/fonts/Anton-Regular.ttf') format('truetype'); font-display: swap; }

:root {
  --noche: #070a12;
  --noche-2: #0c111d;
  --superficie: #101625;
  --superficie-2: #161e31;
  --linea: rgba(248, 250, 255, 0.1);
  --linea-2: rgba(248, 250, 255, 0.18);
  --tinta: #f8faff;
  --tinta-2: #b4bed2;
  --tinta-3: #8693ab;
  --panel: #eef2fa;
  --panel-2: #dfe5f1;
  --letra: #0b0e16;
  --voltio: #76f59a;
  --voltio-oscuro: #2f9d55;
  --electrico: #2453e9;
  --brillo: #3975ff;
  --error: #ff6b6b;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --marquesina: 'Marquesina', 'Arial Narrow', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --encaje: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Cielo: noche con una nebulosa azul y otra verde muy tenues; las estrellas las dibuja js/espacio.js en un canvas fijo. */
html { background: radial-gradient(ellipse 80% 55% at 15% 0%, rgba(36, 83, 233, 0.08), transparent 70%), radial-gradient(ellipse 60% 45% at 95% 100%, rgba(118, 245, 154, 0.05), transparent 70%), var(--noche); background-attachment: fixed; }
body { margin: 0; background: transparent; color: var(--tinta); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-shadow: 0 1px 2px rgba(3, 5, 10, 0.85), 0 0 10px rgba(3, 5, 10, 0.7); }
.espacio { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: -1; pointer-events: none; }
/* Sin halo donde el texto va sobre superficies propias o es luz (neón, paneles claros, botones, campos). */
.neon, button, input, select, textarea, .taquilla-btn, .btn-sec, .marquesina, .tablon, .cartel-taquilla, .cartel-proceso, .reverso, canvas { text-shadow: none; }
::selection { background: var(--voltio); color: var(--letra); }
:focus-visible { outline: 2px solid var(--voltio); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
img, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
html { scrollbar-color: var(--superficie-2) var(--noche); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--noche); }
::-webkit-scrollbar-thumb { background: var(--superficie-2); border-radius: 10px; border: 2px solid var(--noche); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botón de taquilla: la acción principal en todo el sitio. */
.taquilla-btn {
  display: inline-flex; align-items: center; gap: 0.7em; padding: 0.95em 1.6em; border: 0; border-radius: 12px;
  background: var(--voltio); color: var(--letra); font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(118, 245, 154, 0.6), inset 0 -3px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.25s var(--encaje), box-shadow 0.25s var(--ease), background 0.2s;
}
.taquilla-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(118, 245, 154, 0.75), inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.taquilla-btn:active { transform: translateY(1px); }
.taquilla-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.taquilla-btn svg { width: 1.1em; height: 1.1em; }
.btn-sec { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.7em 1.15em; border-radius: 10px; border: 1px solid var(--linea-2); background: transparent; color: var(--tinta); font-weight: 600; cursor: pointer; text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.btn-sec:hover { border-color: rgba(248, 250, 255, 0.4); background: rgba(248, 250, 255, 0.04); }
.btn-sec:disabled { opacity: 0.45; cursor: not-allowed; }

/* Fila de bombillas: solo persigue (.trabajando) cuando hay trabajo real. */
.bombillas { display: flex; justify-content: space-between; gap: 6px; padding: 0 10px; }
.bombillas i { width: 9px; height: 9px; border-radius: 50%; background: #d8ffe4; box-shadow: 0 0 6px 1px rgba(118, 245, 154, 0.75), 0 0 16px rgba(118, 245, 154, 0.35); flex: none; }
.bombillas.trabajando i { animation: persecucion 0.9s steps(1) infinite; }
.bombillas.trabajando i:nth-child(3n + 2) { animation-delay: 0.3s; }
.bombillas.trabajando i:nth-child(3n + 3) { animation-delay: 0.6s; }
@keyframes persecucion { 0% { background: #d8ffe4; box-shadow: 0 0 6px 1px rgba(118, 245, 154, 0.85), 0 0 18px rgba(118, 245, 154, 0.45); } 34%, 100% { background: #24452f; box-shadow: none; } }

/* Neón azul: firma de marca y de sección. */
/* El tubo es el trazo: letra redondeada solo en contorno; el brillo sale del propio trazo (drop-shadow), no de un halo. */
.neon { font-family: 'Tubo', var(--sans); font-weight: 500; color: transparent; -webkit-text-stroke: 0.05em #e6eeff; filter: drop-shadow(0 0 1.5px #a9c2ff) drop-shadow(0 0 7px rgba(57, 117, 255, 0.95)) drop-shadow(0 0 18px rgba(36, 83, 233, 0.6)); }

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