/* ═══════════════════════════════════════════════════════════════
   EL CASTILLO DEL TERROR — horror.css
   Capa de diseño del sitio público (se carga después de styles.css).
   El panel de admin sigue usando styles.css sin cambios.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --blood:   #c80f1a;
  --blood-2: #ff2a2a;
  --ember:   #ff7a1f;
  --bone:    #efe3d6;
  --ink:     #070102;
  --ink-2:   #12040a;
  --glass:   rgba(20, 4, 6, .55);
  --line:    rgba(255, 60, 60, .16);
  --f-display: 'Cinzel', 'Times New Roman', serif;
  --f-goth:    'Pirata One', 'Cinzel', serif;
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
}

html { scroll-padding-top: 80px; }
body { background: var(--ink); }
::selection { background: var(--blood); color: #fff; }

/* Fondo fijo para el resto de la página (bajo el hero) */
.castle-bg {
  opacity: .16;
  filter: saturate(.8) blur(2px);
  background-attachment: scroll;
}
.castle-bg::after {
  background: linear-gradient(to bottom, rgba(7,1,2,.2), rgba(7,1,2,.85) 60%, var(--ink));
}
#particles { z-index: 2; }
#publicSite { z-index: 3; }

/* Grano de película */
.grain {
  position: fixed; inset: -50%;
  z-index: 60; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-5%,3%); }
  40% { transform: translate(3%,-4%); } 60% { transform: translate(-2%,5%); }
  80% { transform: translate(4%,1%); } 100% { transform: translate(0,0); }
}

/* Luz del cursor */
.cursor-glow {
  position: fixed; left: 0; top: 0;
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(circle, rgba(255,60,40,.13), rgba(255,30,30,.04) 40%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .4s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ═════════ INTRO — RASTRILLO ═════════ */
.gate {
  position: fixed; inset: 0;
  z-index: 10000;
  background: radial-gradient(ellipse at 50% 60%, #2a0306 0%, #0a0102 60%, #000 100%);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
html:not(.js) .gate, .gate.gone { display: none; }
.gate-bars {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.gate-text {
  position: relative; z-index: 2;
  text-align: center;
  display: flex; flex-direction: column; gap: 6px;
  text-shadow: 0 0 30px rgba(0,0,0,.9);
}
.gt-small {
  font-family: var(--f-display);
  letter-spacing: .5em; text-transform: uppercase;
  font-size: .8rem; color: #c9a0a0;
}
.gt-big {
  font-family: var(--f-goth);
  font-size: clamp(2.4rem, 8vw, 5rem);
  color: var(--blood-2);
  text-shadow: 0 0 24px rgba(255,30,30,.6), 0 0 80px rgba(255,0,0,.25);
}
.gt-hint {
  margin-top: 18px;
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: #8a5858;
  animation: pulse 2s infinite;
}

/* ═════════ HEADER ═════════ */
.pub-header {
  background: linear-gradient(to bottom, rgba(7,1,2,.85), rgba(7,1,2,0));
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  transition: background .4s, border-color .4s, backdrop-filter .4s, padding .4s;
  gap: 20px;
}
.pub-header.scrolled {
  background: rgba(7,1,2,.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.pub-logo { text-decoration: none; }
.logo { border-color: var(--blood); box-shadow: 0 0 18px rgba(255,30,30,.35); background: #000; object-fit: contain; }
.logo-text {
  font-family: var(--f-display); font-weight: 700;
  font-size: 1.05rem; letter-spacing: .22em; color: var(--bone);
}
.logo-text em {
  font-family: var(--f-goth); font-style: normal; letter-spacing: .02em;
  color: var(--blood-2); font-size: 1.05rem; margin-left: 4px;
}
.pub-nav { display: flex; gap: 6px; margin-left: auto; }
.pub-nav a {
  color: #c9a0a0; text-decoration: none;
  font-size: .82rem; font-weight: 500; letter-spacing: .08em;
  padding: 8px 14px; border-radius: 99px;
  transition: color .2s, background .2s;
}
.pub-nav a:hover { color: #fff; background: rgba(255,40,40,.08); }
.pub-nav .pn-cta { color: #fff; border: 1px solid rgba(255,40,40,.45); }
.pub-nav .pn-cta:hover { background: var(--blood); border-color: var(--blood); }
.admin-btn-tiny { border-color: rgba(255,255,255,.08); color: #8a5858; }
@media (max-width: 760px) {
  .pub-nav a:not(.pn-cta) { display: none; }
  .logo-text em { display: none; }
}
@media (max-width: 420px) {
  .logo-text { font-size: .85rem; letter-spacing: .14em; }
  .pub-nav a { padding: 7px 12px; }
}

/* ═════════ HERO — ESCENA ═════════ */
.hero-section {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 96px 0 110px;
  isolation: isolate;
}
.hero-scene {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 72% 22%, rgba(150,10,15,.55), transparent 60%),
    linear-gradient(to bottom, #050001 0%, #1c0306 45%, #3d060b 72%, #12030a 100%);
}
#skyCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.layer { will-change: transform; }
.scene-svg {
  position: absolute; left: -3%; bottom: -2%;
  width: 106%; height: 104%;
}
.windows .win { animation: winFlicker 4s infinite; }
.windows .win:nth-child(3n)   { animation-duration: 2.7s; animation-delay: -1s; }
.windows .win:nth-child(4n+1) { animation-duration: 5.3s; animation-delay: -2s; }
.windows .win:nth-child(5n+2) { animation-duration: 3.4s; }
@keyframes winFlicker {
  0%, 100% { opacity: 1; } 8% { opacity: .55; } 10% { opacity: 1; }
  46% { opacity: .85; } 48% { opacity: .3; } 50% { opacity: .9; } 72% { opacity: .7; }
}
.flag { fill: #8a0a10; transform-origin: 800px 80px; animation: flag 2.2s ease-in-out infinite; }
@keyframes flag { 0%,100% { transform: skewY(0); } 50% { transform: skewY(-8deg) scaleX(.94); } }

/* Luna de sangre */
.moon-wrap {
  position: absolute;
  top: 12%; right: 14%;
  width: clamp(130px, 17vw, 250px); aspect-ratio: 1;
}
.moon {
  width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #ffd9c4 0%, #ff8a62 18%, #e2361f 46%, #8e0c0c 78%, #4a0405 100%);
  box-shadow:
    0 0 60px 10px rgba(255,50,30,.45),
    0 0 160px 50px rgba(200,10,20,.28),
    inset -22px -18px 50px rgba(60,0,0,.65);
  animation: moonPulse 7s ease-in-out infinite;
  position: relative; overflow: hidden;
}
.moon-craters {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 62% 30%, rgba(90,0,0,.35) 0 7%, transparent 8%),
    radial-gradient(circle at 30% 64%, rgba(90,0,0,.3) 0 10%, transparent 11%),
    radial-gradient(circle at 70% 70%, rgba(90,0,0,.25) 0 5%, transparent 6%),
    radial-gradient(circle at 45% 20%, rgba(90,0,0,.2) 0 4%, transparent 5%);
  mix-blend-mode: multiply;
}
@keyframes moonPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}
@media (max-width: 640px) {
  .moon-wrap { top: 11%; right: -8%; width: 190px; opacity: .9; }
}

/* Rayo */
.lightning {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
#bolt {
  fill: none; stroke: #fff4f0; stroke-width: 2.4; stroke-linejoin: bevel;
  filter: drop-shadow(0 0 6px #ffd0d0) drop-shadow(0 0 18px #ff4040);
  opacity: 0;
}
.flash {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(255,230,230,.55), rgba(255,80,80,.18) 50%, transparent 80%);
  opacity: 0; pointer-events: none;
  mix-blend-mode: screen;
}

/* Murciélagos */
.bats { position: absolute; inset: 0; pointer-events: none; }
.bat {
  position: absolute; left: 0; top: 0;
  width: 46px; height: 24px;
  margin: -12px 0 0 -23px;
  color: #050000;
}
.bat svg { width: 100%; height: 100%; overflow: visible; }
.bat .wing { transform-box: fill-box; animation: flap .22s ease-in-out infinite alternate; }
.bat .wing-l { transform-origin: right center; }
.bat .wing-r { transform-origin: left center; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.35); } }

/* Niebla */
.fog-layer { height: 46%; z-index: 0; }
.fog {
  bottom: -40px; height: 100%;
  background:
    radial-gradient(ellipse 40% 50% at 20% 70%, rgba(220,190,190,.16), transparent 70%),
    radial-gradient(ellipse 35% 45% at 60% 80%, rgba(220,180,180,.14), transparent 70%),
    radial-gradient(ellipse 30% 40% at 90% 60%, rgba(200,170,170,.12), transparent 70%);
  filter: blur(10px);
}
.fog3 { left: -10%; bottom: -100px; opacity: .8; animation-duration: 44s; }

/* Ojos que te siguen */
.eyes {
  position: absolute;
  display: flex; gap: 10px;
  opacity: 0;
  z-index: 3;
}
.eyes-a { left: 9%; bottom: 13%; }
.eyes-b { right: 11%; bottom: 22%; gap: 8px; transform: scale(.75); }
.eye {
  width: 18px; height: 9px;
  border-radius: 50% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at center, #ffb02e 0%, #ff3a14 55%, #6a0000 100%);
  box-shadow: 0 0 10px 2px rgba(255,60,20,.7), 0 0 30px rgba(255,30,0,.4);
  position: relative; overflow: hidden;
  transform-origin: center;
}
.eye i {
  position: absolute; left: 50%; top: 50%;
  width: 3px; height: 8px; margin: -4px 0 0 -1.5px;
  background: #120000; border-radius: 50%;
}
@media (max-width: 640px) {
  .eyes-a { left: 5%; bottom: 9%; transform: scale(.8); }
  .eyes-b { display: none; }
}

.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 46%, rgba(0,0,0,.42), transparent 75%),
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.75) 100%),
    linear-gradient(to bottom, transparent 70%, var(--ink) 100%);
}

/* ═════════ HERO — CONTENIDO ═════════ */
.hero-content-wrap {
  z-index: 5;
  max-width: 980px;
  padding: 20px 20px 0;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .7rem; letter-spacing: .32em; font-weight: 600;
  color: var(--bone);
  padding: 9px 18px;
  border-radius: 99px;
  border: 1px solid rgba(255,60,60,.25);
  background: rgba(10,1,2,.45);
  backdrop-filter: blur(8px);
  margin-bottom: 26px;
}
.he-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blood-2);
  box-shadow: 0 0 10px var(--blood-2);
  animation: livePulse 1.4s infinite;
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 10vw, 7.4rem);
  line-height: .92;
  letter-spacing: .02em;
  margin-bottom: 0;
  animation: none;
  text-shadow: none;
  display: flex; flex-direction: column; align-items: center;
}
.ht-line { display: block; }
.ht-1 {
  text-transform: uppercase;
  color: var(--bone);
  letter-spacing: .06em;
  text-shadow: 0 2px 0 #000, 0 0 40px rgba(0,0,0,.9), 0 0 2px rgba(255,255,255,.3);
}
.ht-2 {
  font-family: var(--f-goth);
  font-weight: 400;
  font-size: 1.32em;
  line-height: 1;
  color: var(--blood-2);
  letter-spacing: .01em;
  text-shadow:
    0 0 18px rgba(255,20,20,.55),
    0 0 60px rgba(255,0,0,.3),
    0 4px 0 #2a0000,
    0 8px 24px rgba(0,0,0,.9);
  animation: titleFlicker 6s linear infinite;
}
.char { display: inline-block; will-change: transform, opacity, filter; }
.title-drips {
  display: block;
  width: min(560px, 80vw); height: 46px;
  margin: -14px auto 12px;
  overflow: visible;
}
.drip { fill: var(--blood); filter: drop-shadow(0 0 4px rgba(255,0,0,.5)); transform-box: fill-box; transform-origin: top center; }
.hero-subtitle {
  font-family: var(--f-display);
  font-style: normal;
  letter-spacing: .06em;
  color: #e4cfcf;
  font-size: clamp(.95rem, 2.2vw, 1.2rem);
  text-shadow: 0 2px 12px #000;
}
.hem-item {
  background: rgba(10,1,2,.5);
  backdrop-filter: blur(8px);
  border-color: rgba(255,60,60,.2);
  color: #e4cfcf;
}
.hem-icon { color: var(--blood-2); }

/* Contador estilo lápida */
.hero-countdown { gap: clamp(6px, 1.6vw, 14px); }
.cd-block {
  min-width: clamp(66px, 15vw, 104px);
  padding: 14px 8px 10px;
  border-radius: 46px 46px 10px 10px;
  background: linear-gradient(to bottom, rgba(40,6,8,.75), rgba(10,1,2,.75));
  border: 1px solid rgba(255,60,60,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 40px rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.cd-num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  color: #fff;
  text-shadow: 0 0 18px rgba(255,30,30,.7);
}
.cd-lbl { color: #b98a8a; letter-spacing: .22em; font-size: .6rem; margin-top: 4px; display: block; }
.cd-sep { color: var(--blood-2); animation: heartbeat 1s infinite; padding-bottom: 18px; }
@keyframes heartbeat {
  0%, 100% { opacity: .35; transform: scale(1); }
  15% { opacity: 1; transform: scale(1.25); }
  30% { opacity: .5; transform: scale(1); }
  45% { opacity: 1; transform: scale(1.15); }
}
@media (max-width: 420px) { .cd-sep { display: none; } }

/* Botones */
.hero-cta-row { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 14px; }
.cta-primary {
  background: linear-gradient(135deg, #ff2a2a 0%, #b10a14 55%, #6a0208 100%);
  color: #fff;
  letter-spacing: .06em;
  box-shadow: 0 10px 40px rgba(200,10,20,.45), inset 0 1px 0 rgba(255,255,255,.25);
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.cta-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
}
.cta-primary:hover::after { transform: translateX(120%); }
.cta-primary:hover { box-shadow: 0 14px 60px rgba(255,20,30,.6); }
.cta-ghost {
  display: inline-flex; align-items: center;
  padding: 16px 28px; border-radius: 99px;
  color: var(--bone); text-decoration: none; font-weight: 600; letter-spacing: .06em;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(10,1,2,.4); backdrop-filter: blur(6px);
  transition: border-color .25s, background .25s;
}
.cta-ghost:hover { border-color: var(--blood-2); background: rgba(255,30,30,.08); }
.magnetic { will-change: transform; }
.cta-urgency {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  color: #ff6b6b; animation: none; letter-spacing: .04em;
}
.cu-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff2a2a; animation: livePulse 1.2s infinite; }

.hero-scroll-hint {
  z-index: 5; text-decoration: none; color: #b98a8a;
  font-family: var(--f-display); letter-spacing: .3em; font-size: .62rem; text-transform: uppercase;
  bottom: 30px;
}
.scroll-line {
  width: 1px; height: 46px; margin: 10px auto 0;
  background: rgba(255,255,255,.12); position: relative; overflow: hidden;
}
.scroll-line i {
  position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--blood-2));
  animation: scrollDrip 1.8s var(--ease-out) infinite;
}
@keyframes scrollDrip { to { top: 110%; } }

/* Ocultar contenido del hero antes de la intro (solo si hay JS) */
html.js.fx-pending .hero-content-wrap > *,
html.js.fx-pending .hero-scroll-hint { opacity: 0; }

/* ═════════ MARQUEE ═════════ */
.marquee {
  position: relative; z-index: 4;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, #0b0203, #1e0407, #0b0203);
  padding: 16px 0;
  transform: rotate(-1.4deg) scale(1.03);
  margin: -24px 0 0;
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
}
.marquee-track {
  display: flex; gap: 34px; width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  letter-spacing: .2em; text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track span { color: var(--bone); }
.marquee-track span:nth-of-type(odd) { color: transparent; -webkit-text-stroke: 1px rgba(255,80,80,.7); }
.marquee-track b { color: var(--blood-2); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═════════ SECCIONES ═════════ */
.vibe-section, .boletas-section, .buy-form-section, .flayer-section, .venue-section { position: relative; z-index: 3; }
.section-label {
  font-family: var(--f-display);
  color: var(--blood-2);
  letter-spacing: .4em;
  font-size: .68rem;
}
.flayer-section .section-label, .flayer-section .section-title { text-align: center; }
.section-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.8rem);
  letter-spacing: .01em;
  line-height: 1.05;
  color: var(--bone);
  text-wrap: balance;
}
.section-title .accent-y, .section-title .accent-p, .section-title .accent-g {
  font-family: var(--f-goth); font-weight: 400;
  color: var(--blood-2);
  font-size: 1.12em;
  text-shadow: 0 0 24px rgba(255,20,20,.35);
}
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }
.section-sub { color: #b98a8a; }
html.js .reveal { opacity: 0; }
html.js .no-fx .reveal, html.no-fx .reveal { opacity: 1; }

/* Flayer */
.flayer-wrap { perspective: 1200px; margin-top: 34px; }
.flayer-frame {
  position: relative;
  max-width: min(500px, 100%);
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255,60,60,.35), rgba(40,0,0,.2) 40%, rgba(255,60,60,.25));
  box-shadow: 0 40px 90px rgba(0,0,0,.7), 0 0 80px rgba(200,10,20,.18);
  transform-style: preserve-3d;
}
.flayer-img { border-radius: 12px; box-shadow: none; max-width: 100%; }
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.18), transparent 45%);
  opacity: 0; transition: opacity .3s;
  z-index: 3;
}
.tilt:hover .tilt-glare, .ticket-card:hover .tilt-glare { opacity: 1; }

/* Bento de fotos */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  gap: 12px;
  margin-bottom: 50px;
}
.bento-item {
  position: relative; overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #120306;
}
.bento-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.25) brightness(.62);
  transform: scale(1.06);
  transition: filter .7s var(--ease-out), transform 1.2s var(--ease-out);
}
.bento-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(70,0,6,.9), rgba(150,6,14,.55));
  mix-blend-mode: multiply;
  transition: opacity .7s;
}
.bento-item:hover img, .bento-item.lit img { filter: none; transform: scale(1); }
.bento-item:hover::after, .bento-item.lit::after { opacity: 0; }
.b1 { grid-column: span 2; grid-row: span 2; }
.b2 { grid-column: span 2; }
.b3 { grid-column: span 1; }
.b4 { grid-column: span 1; }
.b5 { grid-column: span 2; }
.b6 { grid-column: span 2; }
@media (max-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .b1 { grid-column: span 2; grid-row: span 2; }
  .b2, .b5, .b6 { grid-column: span 2; }
}
.vf-item {
  background: var(--glass);
  border-color: var(--line);
  backdrop-filter: blur(6px);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.vf-item:hover { border-color: rgba(255,60,60,.5); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(200,10,20,.2); }
.vfi-icon { color: var(--blood-2); }

/* Lugar */
.venue-section {
  padding: clamp(40px, 8vw, 90px) clamp(20px, 5vw, 60px);
  max-width: 1100px; margin: 0 auto;
}
.venue-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(18px, 3vw, 30px);
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(40,5,8,.6), rgba(10,1,2,.6));
  backdrop-filter: blur(8px);
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}
.venue-media { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.venue-media img { width: 100%; height: auto; }
.venue-text { color: #c9a0a0; line-height: 1.7; margin: 6px 0 22px; }
.venue-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.venue-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.venue-list span { color: #8a5858; text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; padding-top: 2px; }
.venue-list strong { color: var(--bone); font-weight: 600; text-align: right; }
@media (max-width: 760px) { .venue-card { grid-template-columns: 1fr; } }

/* ═════════ BOLETAS ═════════ */
.tickets-grid { perspective: 1400px; gap: 28px; }
.ticket-card {
  border-radius: 22px;
  border: 1px solid rgba(255,60,60,.18);
  background:
    radial-gradient(circle at 0 calc(100% - 92px), transparent 14px, transparent 0) ,
    linear-gradient(170deg, #1f0508 0%, #0d0204 60%, #090102 100%);
  box-shadow: 0 30px 70px rgba(0,0,0,.6);
  transform-style: preserve-3d;
  overflow: visible;
  isolation: isolate;
}
.ticket-card:hover { transform: none; box-shadow: 0 40px 90px rgba(0,0,0,.7), 0 0 60px rgba(200,10,20,.2); }
.ticket-card .tilt-glare { border-radius: 22px; }
.tc-border {
  position: absolute; inset: -1px; border-radius: 23px; padding: 1px;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 60%, rgba(255,60,60,.9) 75%, #ffb08a 80%, rgba(255,60,60,.9) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: .0; transition: opacity .4s;
  z-index: 2;
}
.tc-vip .tc-border { opacity: 1; animation: spinBorder 5s linear infinite; }
.ticket-card:hover .tc-border { opacity: 1; animation: spinBorder 3s linear infinite; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spinBorder { to { --ang: 360deg; } }
.tc-stripe { height: 4px; border-radius: 22px 22px 0 0; background: linear-gradient(90deg, #5a0a0a, #c80f1a, #5a0a0a); }
.tc-vip .tc-stripe { background: linear-gradient(90deg, #c80f1a, #ffb08a, #c80f1a); }
.tc-popular-badge {
  background: linear-gradient(135deg, #ffb08a, #ff2a2a);
  color: #1a0000; letter-spacing: .08em; z-index: 3;
  box-shadow: 0 6px 20px rgba(255,40,40,.4);
}
.tc-body { position: relative; z-index: 1; transform: translateZ(30px); }
.tc-kicker {
  font-family: 'Space Mono', monospace;
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: #8a5858; margin-bottom: 12px;
}
.tc-type { font-family: var(--f-display); font-weight: 900; font-size: 1.45rem; letter-spacing: .02em; }
.tc-vip .tc-type { color: var(--blood-2) !important; text-shadow: 0 0 20px rgba(255,30,30,.4); }
.tc-desc { color: #b98a8a; }
.tc-price {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  color: #fff; letter-spacing: .01em;
  text-shadow: 0 0 30px rgba(255,30,30,.35);
}
.tc-price-sub { color: #8a5858; letter-spacing: .14em; text-transform: uppercase; font-size: .66rem; }
.tc-perks li { border-bottom-color: rgba(255,60,60,.1); color: #c9a0a0; }
.tc-perks li::before { content: '✝ '; color: var(--blood-2); }
.tc-extras-block {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,40,40,.06);
  border: 1px dashed rgba(255,60,60,.28);
  font-size: .82rem; color: #c9a0a0; line-height: 1.5;
}
.tce-title { font-weight: 700; color: var(--bone); margin-bottom: 6px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.tce-info strong { color: var(--blood-2); margin-right: 4px; }
.ig-link { color: #ff6b6b; }
.tc-perforation {
  position: relative;
  height: 1px; margin: 0 -24px 20px;
  background-image: linear-gradient(90deg, rgba(255,80,80,.35) 50%, transparent 0);
  background-size: 12px 1px;
}
.tc-perforation::before, .tc-perforation::after {
  content: ''; position: absolute; top: -13px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink);
  border: 1px solid rgba(255,60,60,.18);
}
.tc-perforation::before { left: -14px; clip-path: inset(0 0 0 50%); }
.tc-perforation::after  { right: -14px; clip-path: inset(0 50% 0 0); }
.tc-buy-btn {
  background: linear-gradient(135deg, #ff2a2a, #8a0610);
  color: #fff; letter-spacing: .06em; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(200,10,20,.35);
}
.tc-vip .tc-buy-btn { background: linear-gradient(135deg, #ffb08a, #ff2a2a 45%, #8a0610); }
.buy-note { background: var(--glass); border-color: var(--line); backdrop-filter: blur(6px); }
.bn-icon { color: #25d366; }

/* Formulario */
.buy-form-card {
  background: linear-gradient(170deg, #1f0508, #0b0203);
  border-color: rgba(255,60,60,.2);
  box-shadow: 0 40px 90px rgba(0,0,0,.6);
}
.bfc-selected { background: rgba(255,40,40,.08); border-color: rgba(255,60,60,.25); }
.bf-field input { background: rgba(0,0,0,.4); border-color: rgba(255,60,60,.18); }
.bf-field input:focus { border-color: var(--blood-2); box-shadow: 0 0 0 4px rgba(255,40,40,.12); }
.bf-field label { color: #c9a0a0; display: flex; align-items: center; gap: 6px; }

/* Footer */
.pub-footer {
  position: relative; z-index: 3;
  border-top: 1px solid var(--line);
  padding: 80px 24px 60px;
  overflow: hidden;
  background: linear-gradient(to bottom, transparent, rgba(60,4,8,.35));
}
.pf-big {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.6rem, 11vw, 8rem); line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,60,60,.28);
  margin-bottom: 30px;
  letter-spacing: .02em;
}
.pf-logo img { width: 80px; margin: 0 auto 10px; filter: drop-shadow(0 0 16px rgba(255,180,60,.3)); }

/* Susurros */
.spooky-text {
  bottom: auto;
  font-family: var(--f-display); font-style: italic;
  color: rgba(239, 227, 214, .55);
  text-shadow: 0 0 14px rgba(255,20,20,.6);
  letter-spacing: .2em;
  animation-name: whisper;
  animation-timing-function: ease-in-out;
  filter: blur(.4px);
}
@keyframes whisper {
  0%   { opacity: 0; transform: translateY(10px); filter: blur(6px); letter-spacing: .5em; }
  30%  { opacity: .7; filter: blur(0); letter-spacing: .2em; }
  70%  { opacity: .45; }
  100% { opacity: 0; transform: translateY(-20px); filter: blur(8px); letter-spacing: .05em; }
}

/* Arañas */
.hanging-spider { z-index: 99; }
.spider-body svg { filter: drop-shadow(0 0 4px rgba(255,40,40,.35)); }

/* Botón sonido */
.sound-toggle {
  position: fixed; z-index: 200;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 14px;
  border-radius: 99px;
  background: rgba(10,1,2,.7);
  border: 1px solid rgba(255,60,60,.25);
  color: #c9a0a0; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: border-color .2s, color .2s;
}
.sound-toggle:hover { border-color: var(--blood-2); color: #fff; }
.st-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.st-bars i { width: 2px; height: 30%; background: currentColor; border-radius: 2px; transition: height .3s; }
.sound-toggle[aria-pressed="true"] { color: #fff; border-color: var(--blood-2); }
.sound-toggle[aria-pressed="true"] .st-bars i { animation: eq .9s ease-in-out infinite alternate; }
.sound-toggle[aria-pressed="true"] .st-bars i:nth-child(2) { animation-delay: -.3s; }
.sound-toggle[aria-pressed="true"] .st-bars i:nth-child(3) { animation-delay: -.6s; }
.sound-toggle[aria-pressed="true"] .st-bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
@media (max-width: 480px) { .st-label { display: none; } .sound-toggle { padding: 10px 12px; } }

/* Admin abierto: esconder adornos públicos */
body.admin-mode .sound-toggle,
body.admin-mode .cursor-glow,
body.admin-mode .hanging-spider,
body.admin-mode .spooky-texts { display: none; }

/* Accesibilidad: menos movimiento */
/* "Reducir movimiento": la página se anima igual, solo sin destellos de relámpago */
@media (prefers-reduced-motion: reduce) {
  .flash, .lightning { display: none !important; }
}

@media (max-width: 480px) {
  .hero-eyebrow { font-size: .58rem; letter-spacing: .16em; padding: 8px 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   v2 — VIDEO DE FONDO + TIPOGRAFÍA DE TERROR + OPTIMIZACIÓN
   ═══════════════════════════════════════════════════════════════ */
@font-face {
  font-family: 'Eater';
  src: url('fonts/Eater-Regular.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Nosifer';
  src: url('fonts/Nosifer-Regular.woff') format('woff');
  font-display: swap;
}
:root {
  --f-display: 'Eater', 'Impact', serif;
  --f-goth:    'Nosifer', 'Impact', serif;
  --f-ui:      'Outfit', system-ui, sans-serif;
}

/* ── Video como fondo de pantalla (fijo, ocupa toda la ventana) ── */
.bg-video {
  position: fixed; inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #05070c url('img/castillo-bg-poster.jpg') center / cover no-repeat;
  pointer-events: none;
  transform: translateZ(0) scale(1.06);
}
.bg-video video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.bg-video video.ready { opacity: 1; }
/* Tinte rojo sangre encima del bosque azul (capa estática = cero costo por frame) */
.bg-tint {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 40%, transparent 30%, rgba(0,0,0,.65) 100%),
    linear-gradient(to bottom, rgba(40,0,4,.35) 0%, rgba(80,0,8,.18) 50%, rgba(10,0,2,.6) 100%);
}
.bg-dim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: #070102;
  opacity: 0;
  will-change: opacity;
}
.castle-bg, .grain { display: none !important; }
#particles { z-index: 2; }

/* El hero ya no pinta un cielo propio: deja ver el video */
.hero-scene { background: none; }
.hero-vignette {
  background:
    radial-gradient(ellipse 60% 55% at 50% 48%, rgba(0,0,0,.5), transparent 75%),
    linear-gradient(to bottom, rgba(7,1,2,.55) 0%, transparent 22%, transparent 70%, rgba(7,1,2,.85) 100%);
}
.fog { background:
    radial-gradient(ellipse 40% 50% at 20% 70%, rgba(200,210,230,.10), transparent 70%),
    radial-gradient(ellipse 35% 45% at 60% 80%, rgba(200,200,220,.08), transparent 70%);
  filter: none;
}
.eyes-a { left: 7%; bottom: 18%; }
.eyes-b { right: 16%; bottom: 30%; }

/* ── Rendimiento: sin desenfoques en vivo sobre el video ──
   backdrop-filter obliga a re-difuminar cada fotograma del video;
   se reemplaza por fondos sólidos semitransparentes. */
#publicSite *, .sound-toggle, .pub-header, .pub-header.scrolled { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.pub-header.scrolled { background: rgba(7,1,2,.92); }
.hero-eyebrow, .hem-item, .cta-ghost { background: rgba(8,1,2,.72); }
.cd-block { background: linear-gradient(to bottom, rgba(40,6,8,.88), rgba(8,1,2,.9)); }
.vf-item, .buy-note { background: rgba(14,2,4,.85); }
.venue-card { background: linear-gradient(135deg, rgba(36,5,8,.92), rgba(8,1,2,.92)); }
.cursor-glow { mix-blend-mode: normal; background: radial-gradient(circle, rgba(255,60,40,.09), rgba(255,30,30,.03) 40%, transparent 70%); }
.ticket-card { background: linear-gradient(170deg, rgba(31,5,8,.96) 0%, rgba(13,2,4,.97) 60%, rgba(9,1,2,.97) 100%); }

/* ── Tipografía de terror ── */
.hero-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(3rem, 12.5vw, 8rem); line-height: 1; }
.ht-1 {
  font-family: var(--f-display);
  color: #efe3d6;
  letter-spacing: .03em;
  text-transform: none;
  text-shadow: 0 3px 0 #000, 0 0 30px rgba(0,0,0,.95), 0 0 60px rgba(120,0,0,.45);
}
.ht-2 {
  font-family: var(--f-goth);
  font-size: .56em;
  letter-spacing: .02em;
  margin-top: .18em;
  line-height: 1.25;
  padding-bottom: .15em;
}
.section-title { font-family: var(--f-display); font-weight: 400; letter-spacing: .02em; line-height: 1.12; }
.section-title .accent-y, .section-title .accent-p, .section-title .accent-g {
  font-family: var(--f-goth); font-size: .62em; letter-spacing: .02em;
  vertical-align: .12em; line-height: 1.4;
}
.section-label, .tc-kicker, .hero-scroll-hint, .gt-small, .venue-list span { font-family: var(--f-ui); font-weight: 600; }
.hero-subtitle { font-family: var(--f-ui); font-weight: 300; font-style: italic; letter-spacing: .04em; }
.cd-num { font-family: var(--f-display); font-weight: 400; letter-spacing: .02em; }
.tc-type { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; letter-spacing: .02em; }
.tc-price { font-family: var(--f-display); font-weight: 400; letter-spacing: .03em; }
.gt-big { font-family: var(--f-goth); font-size: clamp(1.7rem, 6vw, 3.6rem); line-height: 1.3; }
.marquee-track { font-family: var(--f-display); font-weight: 400; letter-spacing: .12em; }
.pf-big { font-family: var(--f-display); font-weight: 400; color: rgba(140,10,18,.35); -webkit-text-stroke: 0; text-transform: none; }
.logo-text { font-family: var(--f-ui); font-weight: 800; }
.logo-text em { font-family: var(--f-ui); font-style: italic; font-weight: 500; }
.spooky-text { font-family: var(--f-display); font-style: normal; letter-spacing: .12em; }
.title-drips { display: none; }
@media (max-width: 480px) {
  .ht-2 { font-size: .58em; }
  .tc-type { font-size: 1.35rem; }
}

/* Panel admin: encima de todo y sin video (más liviano para trabajar) */
#adminPanel { position: relative; z-index: 5; background: var(--bg); }
body.admin-mode .bg-video, body.admin-mode .bg-tint, body.admin-mode .bg-dim { display: none; }
.cd-num { line-height: 1.05; margin-bottom: 6px; }
.hero-subtitle { margin-top: 18px; }
@media (max-width: 480px) { .hero-subtitle { margin-top: 14px; font-size: .95rem; } }

/* Sombras más livianas (se ven igual, cuestan menos al repintar) */
.ht-1 { text-shadow: 0 3px 0 #000, 0 0 28px rgba(0,0,0,.9); }
.ht-2 { text-shadow: 0 0 22px rgba(255,20,20,.55), 0 4px 0 #2a0000; will-change: opacity; }
.cd-num { text-shadow: 0 0 14px rgba(255,30,30,.6); }
.hero-section { contain: paint; }
.fog { will-change: transform; }
@media (max-width: 700px) { .fog2 { display: none; } }

/* ═════════ PATROCINADORES ═════════ */
.sponsors-section {
  position: relative; z-index: 3;
  max-width: 1100px; margin: 0 auto;
  padding: clamp(30px, 6vw, 70px) clamp(20px, 5vw, 60px) 10px;
  text-align: center;
}
.sponsors-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2.5vw, 24px);
  margin-top: 30px;
}
.sponsor-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 22px 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 40%, rgba(90,8,14,.9), rgba(12,2,4,.95) 75%);
  transition: transform .35s var(--ease-out), border-color .35s, box-shadow .35s;
}
.sponsor-card:hover { transform: translateY(-5px); border-color: rgba(255,60,60,.5); box-shadow: 0 18px 40px rgba(200,10,20,.25); }
.sponsor-card img {
  height: clamp(80px, 13vw, 130px); width: auto; max-width: 100%;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%);
}
.sponsor-card figcaption {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #b98a8a; font-weight: 600;
}
@media (max-width: 520px) {
  .sponsors-grid { gap: 8px; }
  .sponsor-card { padding: 14px 6px 10px; border-radius: 12px; }
  .sponsor-card figcaption { font-size: .58rem; letter-spacing: .08em; }
}
.sound-toggle { display: none !important; }

/* Boletas: sin 3D para que el botón de compra siempre reciba el clic en PC */
.tickets-grid { perspective: none; }
.ticket-card { transform-style: flat; transition: transform .35s var(--ease-out), box-shadow .35s; }
.ticket-card:hover { transform: translateY(-6px); }
.tc-body { transform: none; }
.tc-buy-btn { position: relative; z-index: 5; cursor: pointer; }
.ticket-card .tilt-glare, .tc-border { pointer-events: none !important; }

/* Galería en celular: tocar funciona en iPhone (necesita cursor:pointer) */
.bento-item { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hint-touch { display: none; }
@media (hover: none) {
  .hint-desk { display: none; }
  .hint-touch { display: inline; }
  .bento-item img { transition: filter .9s var(--ease-out), transform 1.4s var(--ease-out); }
}

/* Admin — agregar comprador */
.add-buyer-btn {
  background: rgba(224,17,29,.12); border: 1px solid rgba(224,17,29,.35);
  color: #ff6b6b; font-size: .83rem; font-weight: 700;
  padding: 8px 16px; border-radius: 9px; transition: background .2s;
}
.add-buyer-btn:hover { background: rgba(224,17,29,.22); }
.ab-select {
  background: var(--bg3); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 11px 12px; font-size: .92rem; font-family: inherit;
}
.ab-check { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--text); cursor: pointer; }
.ab-check input { width: 18px; height: 18px; accent-color: #e0111d; }
.add-buyer .bf-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.modal-box:has(.add-buyer) { max-height: 92vh; overflow-y: auto; }
@media (max-width: 480px) { .add-buyer .bf-grid { grid-template-columns: minmax(0,1fr); } }
.add-buyer { padding: 0; }
.add-buyer .bf-field input, .add-buyer .ab-select { width: 100%; min-width: 0; }
.add-buyer #ab-save { width: 100%; display: flex; justify-content: center; }
.add-buyer .back-link { width: 100%; }

/* ═════════ BOTÓN FLOTANTE DE WHATSAPP ═════════ */
.wa-float {
  position: fixed; z-index: 300;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.wa-icon {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366;
  box-shadow: 0 10px 28px rgba(0,0,0,.55), 0 0 0 0 rgba(37,211,102,.55);
  animation: waPulse 2.6s infinite;
  transition: transform .25s;
}
.wa-float:hover .wa-icon { transform: scale(1.08); }
.wa-tip {
  background: rgba(8,1,2,.92); color: #fff;
  border: 1px solid rgba(37,211,102,.45);
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  padding: 8px 14px; border-radius: 99px; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  opacity: 0; transform: translateX(10px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.wa-float:hover .wa-tip, .wa-float.show-tip .wa-tip { opacity: 1; transform: none; }
@keyframes waPulse {
  0%   { box-shadow: 0 10px 28px rgba(0,0,0,.55), 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 10px 28px rgba(0,0,0,.55), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 28px rgba(0,0,0,.55), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 480px) { .wa-icon { width: 54px; height: 54px; } .wa-tip { font-size: .72rem; } }
body.admin-mode .wa-float { display: none; }

/* Admin — total recaudado */
.revenue-card { border-top: 3px solid #3fa34d; }
.rev-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.rev-lbl { font-size: .8rem; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .08em; }
.rev-num { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 900; color: #3fa34d; line-height: 1.1; margin: 4px 0; font-family: 'Outfit', sans-serif; }
.rev-sub { font-size: .75rem; color: var(--text3); }
.rev-side { display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
.rev-side-item { display: flex; justify-content: space-between; gap: 14px; font-size: .85rem; color: var(--text2); background: var(--bg3); padding: 8px 12px; border-radius: 10px; }
.rev-side-item strong { color: var(--text); }
.rev-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 16px; }
.rev-type { background: var(--bg3); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.rev-type span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text2); }
.rev-type strong { font-size: 1.15rem; color: var(--text); }
.rev-type em { font-style: normal; font-size: .72rem; color: var(--text3); }

/* La franja (marquee) se mueve SIEMPRE, incluso si el celular/PC tiene
   activado "reducir movimiento" o "quitar animaciones" (ahorro de batería).
   En ese caso va más lenta para no molestar. */
.marquee-track { animation: marquee 32s linear infinite; will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: marquee 55s linear infinite !important; animation-iteration-count: infinite !important; }
}

/* ═════════ ADMIN — VISITAS ═════════ */
.visits-card { border-top: 3px solid #4f8fe0; }
.vs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.vs-item { background: var(--bg3); border-radius: 12px; padding: 14px; }
.vs-num { font-size: 1.7rem; font-weight: 900; color: #7fb2ff; line-height: 1.1; font-family: 'Outfit', sans-serif; }
.vs-lbl { font-size: .72rem; color: var(--text2); font-weight: 600; margin-top: 2px; }
.vs-sub { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); margin: 6px 0 8px; }
.vs-chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; height: 140px; padding: 6px 0 0; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.vs-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.vs-bar { width: 100%; max-width: 26px; background: linear-gradient(to top, #2f6fd0, #7fb2ff); border-radius: 5px 5px 2px 2px; min-height: 2px; }
.vs-val { font-size: .62rem; color: var(--text2); font-weight: 700; }
.vs-day { font-size: .58rem; color: var(--text3); text-align: center; line-height: 1.15; padding-bottom: 4px; }
.vs-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.vs-bars { display: flex; flex-direction: column; gap: 8px; }
.vs-row { display: grid; grid-template-columns: 130px 1fr 40px; align-items: center; gap: 10px; font-size: .82rem; }
.vs-row span { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-row b { text-align: right; color: var(--text2); font-size: .78rem; }
.vs-track { height: 8px; background: var(--bg3); border-radius: 99px; overflow: hidden; }
.vs-track i { display: block; height: 100%; background: linear-gradient(90deg, #2f6fd0, #7fb2ff); border-radius: 99px; }
.vs-links { margin-top: 18px; background: var(--bg3); border-radius: 12px; padding: 12px 14px; }
.vs-links summary { cursor: pointer; font-weight: 700; font-size: .88rem; }
.vs-links p { font-size: .8rem; color: var(--text2); margin: 8px 0 10px; }
.vs-link { display: grid; grid-template-columns: 170px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--border); font-size: .8rem; }
.vs-link code { font-family: 'Space Mono', monospace; font-size: .72rem; color: #ff9a9a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) {
  .vs-grid { grid-template-columns: repeat(2, 1fr); }
  .vs-cols { grid-template-columns: 1fr; }
  .vs-row { grid-template-columns: 105px 1fr 36px; }
  .vs-link { grid-template-columns: 1fr auto; }
  .vs-link span { grid-column: 1 / -1; font-weight: 700; }
  .vs-chart { gap: 2px; }
}

/* ═════════ PERMISOS: lo que el usuario no puede usar no se muestra ═════════ */
.perm-hidden { display: none !important; }
.aview-note { font-size: .84rem; color: var(--text2); margin: -6px 0 16px; line-height: 1.5; max-width: 760px; }

/* Quién registró / cobró / dio ingreso (lista de compradores) */
.br-who { margin-top: 5px; font-size: .74rem; line-height: 1.6; color: var(--text3); }
.br-who b { color: var(--text2); font-weight: 700; }
.br-who .bw-sep { margin: 0 8px; opacity: .6; }

/* ═════════ USUARIOS ═════════ */
.users-list { display: flex; flex-direction: column; gap: 10px; }
.user-row { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--bg3); border: 1px solid var(--border); border-radius: 14px; }
.user-row.fixed { border-style: dashed; }
.user-row.off { opacity: .55; }
.ur-av { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(135deg, #ff2a2a, #8a0610); }
.ur-info { flex: 1; min-width: 0; }
.ur-name { font-weight: 800; font-size: .95rem; word-break: break-word; }
.ur-dn { color: var(--text2); font-weight: 600; }
.ur-role { display: inline-block; margin-left: 6px; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; color: #ffd27a; background: rgba(255,192,61,.12); border: 1px solid rgba(255,192,61,.35); vertical-align: 1px; }
.ur-role.off { color: #ff8a8a; background: rgba(255,60,60,.1); border-color: rgba(255,60,60,.35); }
.ur-perms { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0 5px; }
.perm-chip { font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; color: #f5c2c2; background: rgba(255,46,46,.1); border: 1px solid rgba(255,46,46,.28); }
.perm-chip.all { color: #ffd27a; background: rgba(255,192,61,.1); border-color: rgba(255,192,61,.35); }
.ur-meta { font-size: .72rem; color: var(--text3); }
.ur-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.ur-actions .br-btn { white-space: nowrap; }
.uf-perms { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.uf-perm { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border-radius: 10px; background: var(--bg3); border: 1px solid var(--border); font-size: .8rem; line-height: 1.3; cursor: pointer; }
.uf-perm input { margin-top: 2px; accent-color: #ff2e2e; flex-shrink: 0; }
.uf-perm:has(input:checked) { border-color: rgba(255,46,46,.55); background: rgba(255,46,46,.08); }
@media (max-width: 600px) {
  .uf-perms { grid-template-columns: 1fr; }
  .user-row { flex-wrap: wrap; }
  .ur-actions { flex-direction: row; width: 100%; }
  .ur-actions .br-btn { flex: 1; }
}

/* ═════════ HISTORIAL ═════════ */
.audit-controls { flex-wrap: wrap; }
.audit-controls .lc-search { flex: 1 1 220px; }
.audit-list { display: flex; flex-direction: column; }
.au-row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--border); }
.au-row:last-child { border-bottom: none; }
.au-ic { flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 1rem; background: var(--bg3); }
.au-ok .au-ic { background: rgba(63,163,77,.15); }
.au-warn .au-ic { background: rgba(255,170,60,.14); }
.au-bad .au-ic { background: rgba(255,46,46,.16); }
.au-main { flex: 1; min-width: 0; }
.au-line { font-size: .86rem; line-height: 1.4; word-break: break-word; }
.au-line b { color: #fff; }
.au-tk { color: #ffb27a; font-weight: 700; }
.au-tk[onclick] { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.au-tk code { font-family: 'Space Mono', monospace; font-size: .72rem; color: var(--text3); font-weight: 400; }
.au-det { font-size: .75rem; color: var(--text3); margin-top: 2px; word-break: break-word; }
.au-time { flex-shrink: 0; font-size: .72rem; color: var(--text3); white-space: nowrap; padding-top: 2px; }
@media (max-width: 520px) {
  .au-row { flex-wrap: wrap; }
  .au-time { width: 100%; padding-left: 44px; padding-top: 0; }
}

/* ═════════ PREVENTA (boleta General) ═════════ */
.tc-presale-tag {
  display: inline-block; margin-bottom: 6px;
  font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: #1a0000; background: linear-gradient(135deg, #ffd27a, #ff7a1f);
  padding: 4px 10px; border-radius: 99px; box-shadow: 0 4px 16px rgba(255,122,31,.35);
}
.tc-price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.tc-old { display: flex; flex-direction: column; line-height: 1.1; }
.tc-old s { color: #b98a8a; font-size: 1.15rem; font-weight: 700; text-decoration-color: #ff2a2a; text-decoration-thickness: 2px; }
.tc-old small { color: #8a5858; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.tc-presale {
  margin: 4px 0 20px; padding: 14px 14px 12px;
  border-radius: 14px; text-align: center;
  background: linear-gradient(160deg, rgba(255,122,31,.14), rgba(200,15,26,.12));
  border: 1px solid rgba(255,140,60,.45);
  box-shadow: inset 0 0 24px rgba(255,80,30,.08);
}
.tcp-lbl { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ffb27a; margin-bottom: 8px; }
.tcp-cd { display: flex; justify-content: center; align-items: flex-start; gap: 6px; }
.tcp-cd > div { min-width: 54px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,120,60,.3); border-radius: 10px; padding: 6px 4px 4px; }
.tcp-cd b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; color: #fff; line-height: 1.1; text-shadow: 0 0 12px rgba(255,90,30,.6); }
.tcp-cd i { display: block; font-style: normal; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: #c9a0a0; }
.tcp-cd > span { color: #ff7a1f; font-weight: 800; padding-top: 10px; animation: heartbeat 1s infinite; }
.tcp-note { margin-top: 9px; font-size: .8rem; color: #e6cccc; }
.tcp-note strong { color: #ff6b6b; }
@media (max-width: 420px) { .tcp-cd > div { min-width: 46px; } .tcp-cd b { font-size: 1.35rem; } }

/* Patrocinadores con link a Instagram */
a.sponsor-card { text-decoration: none; color: inherit; }
.sponsor-card .sp-name { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #b98a8a; font-weight: 600; text-align: center; }
.sponsor-card .sp-ig {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 11px; border-radius: 99px; color: #fff;
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  box-shadow: 0 4px 14px rgba(220,39,67,.35);
  transition: transform .25s;
}
a.sponsor-card[href]:not([href=""]):hover .sp-ig { transform: scale(1.06); }
a.sponsor-card[href]:not([href=""]) { cursor: pointer; }
/* Sin link todavía: se ve normal pero sin botón ni clic */
a.sponsor-card:not([href]), a.sponsor-card[href=""] { pointer-events: none; cursor: default; }
a.sponsor-card:not([href]) .sp-ig, a.sponsor-card[href=""] .sp-ig { display: none; }
@media (max-width: 520px) {
  .sponsor-card .sp-name { font-size: .56rem; letter-spacing: .06em; }
  .sponsor-card .sp-ig { font-size: .58rem; padding: 4px 8px; gap: 4px; }
  .sponsor-card .sp-ig svg { width: 11px; height: 11px; }
}

/* 4 patrocinadores: 4 columnas en PC, 2 x 2 en celular */
.sponsors-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .sponsors-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.sponsor-card img[src*="el-castillo"] { border-radius: 10px; }

/* Botón de alertas de nuevos compradores */
.notif-btn {
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--text); font-size: .8rem; font-weight: 700;
  padding: 7px 14px; border-radius: 9px; transition: all .2s; white-space: nowrap;
}
.notif-btn:hover { border-color: #ffc03d; }
.notif-btn.on { background: rgba(63,163,77,.14); border-color: rgba(63,163,77,.4); color: #6fd47f; }
.notif-btn.off { color: var(--text3); }
@media (max-width: 480px) { .notif-btn { font-size: .72rem; padding: 6px 10px; } }

/* ═════════ ARMA TU COMBO ═════════ */
.combos { margin: 10px 0 34px; padding: clamp(18px, 3vw, 30px); border-radius: 24px;
  border: 1px solid rgba(255,60,60,.22);
  background: radial-gradient(ellipse at 50% 0%, rgba(200,15,26,.22), transparent 70%), linear-gradient(170deg, rgba(24,4,6,.95), rgba(8,1,2,.95));
  box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.combos-head { text-align: center; margin-bottom: 22px; }
.combos-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 6vw, 3.2rem); color: var(--bone); line-height: 1.1; }
.combos-title span { font-family: var(--f-goth); color: var(--blood-2); font-size: .7em; vertical-align: .12em; }
.combos-sub { color: #c9a0a0; font-size: .92rem; margin: 6px 0 14px; }
.combos-sub strong { color: var(--bone); }
.combo-switch { display: inline-flex; padding: 4px; border-radius: 99px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,60,60,.25); }
.cs-opt { background: none; color: #c9a0a0; font-weight: 800; font-size: .88rem; padding: 9px 22px; border-radius: 99px; letter-spacing: .04em; transition: all .25s; }
.cs-opt.active { background: linear-gradient(135deg, #ff2a2a, #8a0610); color: #fff; box-shadow: 0 6px 18px rgba(200,10,20,.4); }
.combos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.combo-card {
  position: relative; text-align: center; padding: 22px 16px 18px; border-radius: 14px;
  color: #2a0a08;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(120,40,10,.35), transparent 55%),
    linear-gradient(160deg, #efe0c4, #d9c19a 60%, #c9a877);
  box-shadow: 0 18px 40px rgba(0,0,0,.55), inset 0 0 30px rgba(120,60,20,.35);
  transform: rotate(-1deg); transition: transform .35s var(--ease-out);
}
.combo-card:nth-child(2) { transform: rotate(1deg); }
.combo-card:nth-child(3) { transform: rotate(-.6deg); }
.combo-card:hover { transform: rotate(0) translateY(-6px); }
.combo-card::before { /* manchas de sangre */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 92% 8%, rgba(160,0,0,.55) 0 7px, transparent 8px),
              radial-gradient(circle at 6% 88%, rgba(160,0,0,.45) 0 5px, transparent 6px),
              radial-gradient(circle at 12% 14%, rgba(160,0,0,.3) 0 3px, transparent 4px);
}
.combo-card.vip { background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.35), transparent 60%), linear-gradient(160deg, #f2d88a, #d8b356 60%, #b88a2e); }
.cc-top { font-family: var(--f-display); font-size: 1.5rem; color: #1a0503; line-height: 1; }
.cc-num { font-family: var(--f-display); font-size: 4.2rem; color: #b00d18; line-height: .95; text-shadow: 0 3px 0 rgba(0,0,0,.15); }
.cc-lbl { font-family: var(--f-display); font-size: 1.05rem; color: #1a0503; letter-spacing: .03em; }
.cc-price { margin: 12px -16px 4px; padding: 8px 0; font-family: var(--f-display); font-size: 2.2rem; color: #fff;
  background: linear-gradient(90deg, transparent, #b00d18 12%, #b00d18 88%, transparent); text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.cc-each { font-size: .8rem; font-weight: 700; color: #4a1a10; margin-bottom: 12px; }
.cc-each b { color: #8a0610; }
.cc-btn { position: relative; z-index: 2; }
.combos-foot { text-align: center; margin-top: 18px; font-size: .78rem; font-weight: 700; color: #ffb27a; letter-spacing: .04em; }
@media (max-width: 760px) {
  .combos-grid { grid-template-columns: 1fr; gap: 14px; }
  .combo-card, .combo-card:nth-child(2), .combo-card:nth-child(3) { transform: none; }
  .cc-num { font-size: 3.4rem; }
}

/* Formulario de combo */
.cf-person { border: 1px solid rgba(255,60,60,.16); background: rgba(0,0,0,.25); border-radius: 12px; padding: 12px; margin-bottom: 10px; transition: border-color .2s; }
.cf-person.lead { border-color: rgba(255,178,122,.5); background: rgba(255,122,31,.06); }
.cf-person.err { border-color: #ff2a2a; box-shadow: 0 0 0 3px rgba(255,40,40,.15); }
.cf-ph { font-size: .78rem; font-weight: 800; color: #e6cccc; margin-bottom: 8px; letter-spacing: .02em; }
.cf-person.lead .cf-ph { color: #ffb27a; }
.cf-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.cf-person.lead .cf-grid { grid-template-columns: 1fr 1fr; }
.cf-grid input { width: 100%; min-width: 0; background: rgba(0,0,0,.4); border: 1px solid rgba(255,60,60,.18); color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: .9rem; font-family: inherit; }
.cf-grid input:focus { border-color: var(--blood-2); outline: none; }
.combo-form-card #cfSend { margin-top: 8px; }
@media (max-width: 600px) { .cf-grid, .cf-person.lead .cf-grid { grid-template-columns: 1fr; } }

/* Admin: etiqueta de combo y boleta */
.combo-tag { display: inline-block; margin: 2px 0 4px; font-size: .72rem; font-weight: 700; color: #ffb27a; background: rgba(255,122,31,.12); border: 1px solid rgba(255,122,31,.35); padding: 3px 10px; border-radius: 99px; text-align: left; }
.combo-tag:hover { background: rgba(255,122,31,.22); }
.qrm-combo { display: inline-block; margin: -6px 0 14px; font-size: .82rem; font-weight: 700; color: #ffb27a; background: rgba(255,122,31,.12); border: 1px solid rgba(255,122,31,.35); padding: 6px 14px; border-radius: 12px; line-height: 1.4; }
.qrm-combo small { color: #c9a0a0; font-weight: 600; }

/* ═════════ COMBOS — versión compacta dentro de Boletas ═════════ */
.combos { margin: 6px 0 26px; padding: 16px 18px; border-radius: 18px; box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.combos-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; text-align: left; margin-bottom: 14px; }
.combos-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--bone); line-height: 1.25; }
.combos-title span { font-family: 'Outfit', sans-serif; font-size: 1em; vertical-align: 0; color: #ff6b6b; }
.combos-sub { font-size: .8rem; margin: 3px 0 0; color: #b98a8a; }
.combo-switch { padding: 3px; }
.cs-opt { font-size: .78rem; padding: 7px 16px; }
.combos-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.combo-card { padding: 12px 10px 10px; border-radius: 10px; transform: none !important; box-shadow: 0 8px 20px rgba(0,0,0,.45), inset 0 0 18px rgba(120,60,20,.3); }
.combo-card:hover { transform: translateY(-3px) !important; }
.combo-card::before { background: radial-gradient(circle at 92% 10%, rgba(160,0,0,.5) 0 4px, transparent 5px), radial-gradient(circle at 8% 88%, rgba(160,0,0,.4) 0 3px, transparent 4px); }
.cc-top { font-size: .8rem; }
.cc-num { font-size: 2.2rem; line-height: 1; }
.cc-lbl { font-size: .72rem; }
.cc-price { margin: 6px -10px 3px; padding: 4px 0; font-size: 1.25rem; }
.cc-each { font-size: .68rem; line-height: 1.35; margin-bottom: 8px; }
.cc-btn { padding: 8px !important; font-size: .82rem !important; border-radius: 9px !important; }
.cc-btn::before { display: none; }
@media (max-width: 760px) {
  .combos { padding: 14px 12px; }
  .combos-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .combos-title { font-size: .98rem; }
  .cc-num { font-size: 1.9rem; }
  .cc-price { font-size: 1.02rem; }
  .cc-each { font-size: .6rem; }
  .cc-btn { font-size: .74rem !important; padding: 7px 4px !important; }
}
