/* Sala SCR: pagina publica y panel. Oscuro con el morado de las paredes de la sala. */
:root {
  --fondo: #0b0a10; --panel: #16141f; --panel2: #1f1c2b; --borde: #2e2a3e;
  --texto: #f4f2fa; --suave: #a9a3bd; --morado: #8b5cf6; --morado2: #a78bfa;
  --verde: #22c55e; --rojo: #f87171; --ambar: #fbbf24;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fondo); color: var(--texto);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2 { margin: 0; letter-spacing: .01em; }
h2 { font-size: 15px; text-transform: uppercase; color: var(--suave); margin: 26px 0 10px; font-weight: 600; }
/* ---- El escenario ---------------------------------------------------------
   Telon que se abre al entrar, focos colgando, haces de luz que barren, un
   cenital que sigue el dedo, humo y las dos fotos turnandose con zoom lento.
   Todo es CSS salvo el cenital y el cambio de foto (scr.js). */
.escenario { position:relative; max-width:760px; margin:0 auto; padding:52px 16px 0; overflow:hidden; }
.focos { position:absolute; top:0; left:16px; right:16px; height:76px; display:flex; justify-content:space-around;
  align-items:flex-start; z-index:6; pointer-events:none; }
.focos::before { content:""; position:absolute; top:0; left:-7px; right:-7px; height:19px;
  border:3px solid #a7acb5; border-radius:2px;
  background:repeating-linear-gradient(45deg,transparent 0 12px,#89919d 12px 15px,transparent 15px 27px),
    repeating-linear-gradient(-45deg,#171a20 0 12px,#89919d 12px 15px,#171a20 15px 27px);
  box-shadow:0 2px 4px #000,inset 0 1px 2px #fff6; }
.focos i { width:clamp(22px,4vw,36px); height:38px; margin-top:27px;
  background:linear-gradient(90deg,#08090d,#424750 32%,#181b22 72%,#090a0f); border:1px solid #626875;
  border-radius:5px 5px 10px 10px; position:relative; transform:rotate(18deg);
  box-shadow:2px 3px 5px #0008; }
.focos i:nth-child(2n) { transform:rotate(-18deg); }
.focos i::before { content:""; position:absolute; top:-10px; left:-5px; right:-5px; height:25px;
  border:3px solid #69717e; border-top:0; border-radius:0 0 8px 8px; }
.focos i::after { content:""; position:absolute; left:2px; right:2px; bottom:-3px; height:12px; border-radius:50%;
  border:2px solid #b7bdc7; background:radial-gradient(ellipse,#fff 0,var(--c,#a78bfa) 45%,#333 100%);
  box-shadow:0 0 12px 4px var(--c,#a78bfa); animation:parpadeo 3.2s infinite; }
.estructura { position:absolute; inset:0; z-index:5; pointer-events:none; }
.truss-lateral { position:absolute; top:0; bottom:0; width:15px; border:3px solid #9aa2af;
  background:repeating-linear-gradient(45deg,transparent 0 11px,#7e8795 11px 14px,transparent 14px 25px),
    repeating-linear-gradient(-45deg,#12151b 0 11px,#7e8795 11px 14px,#12151b 14px 25px);
  box-shadow:0 0 5px #000,inset 1px 0 2px #fff5; }
.truss-lateral.izquierdo { left:0; }
.truss-lateral.derecho { right:0; }
@media(max-width:520px) { .truss-lateral { width:11px; border-width:2px; } .focos i { height:30px; } }
.focos i:nth-child(1) { --c: #a78bfa; } .focos i:nth-child(2) { --c: #f472b6; animation-delay: .4s; }
.focos i:nth-child(3) { --c: #60a5fa; } .focos i:nth-child(4) { --c: #fbbf24; }
.focos i:nth-child(5) { --c: #60a5fa; } .focos i:nth-child(6) { --c: #f472b6; } .focos i:nth-child(7) { --c: #a78bfa; }
.focos i:nth-child(2n)::after { animation-delay: 1.1s; } .focos i:nth-child(3n)::after { animation-delay: 2s; }
@keyframes parpadeo { 0%, 100% { opacity: 1; } 45% { opacity: .55; } 50% { opacity: 1; } 70% { opacity: .8; } }
.cuadro { position: relative; aspect-ratio: 16 / 8; border-radius: 6px 6px 0 0; overflow: hidden; background: #000;
  box-shadow: inset 0 0 60px #000; }
@media (max-width: 520px) { .cuadro { aspect-ratio: 4 / 3; } }
.escena { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transform: scale(1.12); transition: opacity 1.6s ease; filter: saturate(1.15) contrast(1.05) brightness(.82); }
.escena.activa { opacity: 1; animation: camara 9s ease-out forwards; }
@keyframes camara { from { transform: scale(1.14) translate(1.5%, 1%); } to { transform: scale(1.02) translate(-1%, 0); } }
.haces { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.haces i { position: absolute; top: -12%; width: 38%; height: 130%; transform-origin: 50% 0;
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); filter: blur(5px); opacity: .8; }
.haces .h1 { left: 4%; background: linear-gradient(rgba(167, 139, 250, .9), rgba(167, 139, 250, 0) 88%); animation: barrido 7s ease-in-out infinite; }
.haces .h2 { left: 31%; background: linear-gradient(rgba(244, 114, 182, .8), rgba(244, 114, 182, 0) 85%); animation: barrido 9s ease-in-out -3s infinite reverse; }
.haces .h3 { left: 58%; background: linear-gradient(rgba(96, 165, 250, .8), rgba(96, 165, 250, 0) 85%); animation: barrido 8s ease-in-out -5s infinite; }
@keyframes barrido { 0%, 100% { transform: rotate(-22deg); } 50% { transform: rotate(22deg); } }
/* El cenital es un circulo que solo se MUEVE (transform): sin repintar nada,
   para que un telefono modesto no se caliente. La vineta va aparte y quieta. */
.cenital { position: absolute; left: 0; top: 0; width: 70%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  mix-blend-mode: soft-light; will-change: transform; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0, rgba(255, 255, 255, .4) 18%, transparent 42%); }
.cuadro::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at 50% 120%, transparent 30%, rgba(0, 0, 0, .7) 80%); }
.humo { position: absolute; left: -20%; right: -20%; bottom: -10%; height: 55%; pointer-events: none; opacity: .5;
  background: radial-gradient(ellipse at 30% 80%, rgba(200, 190, 255, .35), transparent 60%),
              radial-gradient(ellipse at 70% 90%, rgba(255, 200, 240, .25), transparent 60%);
  filter: blur(18px); animation: humo 14s ease-in-out infinite alternate; }
@keyframes humo { from { transform: translateX(-6%) scaleY(.9); } to { transform: translateX(6%) scaleY(1.1); } }
.en-vivo { position: absolute; top: 30px; right: 14%; z-index: 3; font-size: 11px; font-weight: 800; letter-spacing: .12em;
  color: #fff; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .2); padding: 3px 8px 3px 6px;
  border-radius: 6px; display: flex; align-items: center; gap: 6px; backdrop-filter: blur(4px); }
.en-vivo b { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: latido 1.2s infinite; }
@keyframes latido { 50% { opacity: .25; } }
.telon { position: absolute; top: 0; bottom: 0; width: 52%; z-index: 5; pointer-events: none;
  background: repeating-linear-gradient(90deg, #3b0a3f 0, #6b1466 7%, #2a0630 14%), #3b0a3f;
  box-shadow: inset 0 -30px 40px rgba(0, 0, 0, .5); transition: transform 1.8s cubic-bezier(.7, 0, .2, 1) .35s; }
.telon.izq { left: 0; transform-origin: left; border-radius: 0 0 40% 0 / 0 0 8% 0; }
.telon.der { right: 0; transform-origin: right; border-radius: 0 0 0 40% / 0 0 0 8%; }
/* Abierto, cada telon queda como una franja recogida a su lado. */
.escenario.abierto .telon.izq { transform: translateX(-82%); }
.escenario.abierto .telon.der { transform: translateX(82%); }
.bambalina { position: absolute; top: 0; left: 0; right: 0; height: 22px; z-index: 6;
  background: radial-gradient(circle at 12px -4px, #6b1466 14px, transparent 15px) 0 0 / 24px 22px repeat-x, #3b0a3f;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.tablas { height: 16px; margin: 0 -6px; background: linear-gradient(#8a5a2b, #4a2c12);
  clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%); box-shadow: 0 10px 30px -8px rgba(139, 92, 246, .6); }
.marquesina { position: relative; z-index: 3; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  padding: 12px 14px; background: linear-gradient(#1a1622, #120f19); border-top: 2px solid #2e2a3e; }
.marquesina .logo { width: 64px; height: 64px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #2e2a3e, 0 0 18px rgba(139, 92, 246, .35); }
.marquesina h1 { font-size: 24px; }
.marquesina .precio { margin: 0 0 0 auto; }
.sub { margin: 2px 0 0; color: var(--suave); font-size: 14px; }
.precio { display: inline-block; background: var(--morado); color: #fff; font-weight: 800; padding: 6px 14px;
  border-radius: 999px; font-size: 15px; box-shadow: 0 0 16px rgba(139, 92, 246, .55); }
.precio:empty { display: none; }
@media (max-width: 520px) { .marquesina h1 { font-size: 20px; } .marquesina .logo { width: 52px; height: 52px; }
  .marquesina .precio { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) {
  .haces i, .humo, .focos i::after, .en-vivo b, .escena.activa { animation: none; }
  .telon { transition: none; }
}
main { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }
.salas { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
/* La grilla tipo cine: dias en columnas, horas en filas, cada hora un asiento. */
.semana { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.semana b { font-size: 17px; }
.flecha { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--borde); background: var(--panel);
  color: var(--texto); font-size: 24px; line-height: 1; cursor: pointer; }
.flecha:disabled { opacity: .3; cursor: default; }
.pantalla { text-align: center; font-size: 11px; letter-spacing: .5em; color: var(--suave); padding: 6px 0 12px;
  margin: 0 8% 8px; border-top: 3px solid var(--morado); border-radius: 50% 50% 0 0 / 14px 14px 0 0;
  box-shadow: 0 -8px 18px -10px var(--morado); }
.grilla { display: grid; grid-template-columns: 46px repeat(7, minmax(0, 1fr)); gap: 6px 4px; }
.celda { display: flex; align-items: center; justify-content: center; min-width: 0; }
.cabeza { flex-direction: column; line-height: 1.1; padding-bottom: 4px; }
.cabeza small { font-size: 11px; color: var(--suave); text-transform: uppercase; }
.cabeza b { font-size: 17px; }
.cabeza.hoy b { color: var(--morado2); }
.fila-hora { justify-content: flex-end; padding-right: 4px; font-size: 12px; color: var(--suave); font-variant-numeric: tabular-nums; }
.asiento { position: relative; width: 100%; max-width: 54px; height: 32px; padding: 0; cursor: pointer;
  border: 2px solid var(--morado); border-bottom-width: 5px; border-radius: 10px 10px 5px 5px;
  background: var(--panel2); transition: transform .08s, background .12s; }
.asiento::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 3px; height: 3px;
  border-radius: 2px; background: currentColor; opacity: .25; color: var(--morado2); }
@media (hover: hover) { .asiento.libre:hover { background: #3b2a66; } }
.asiento.libre:active { transform: scale(.92); }
.asiento.elegida { background: var(--morado); border-color: #c4b5fd; box-shadow: 0 0 12px -2px var(--morado); }
/* Diego: "un ticket verde que haga notar que esa hora eligió". El ✓ verde
   reemplaza al apoyabrazos del asiento elegido. */
.asiento.elegida::after { content: "✓"; left: 50%; right: auto; top: 50%; bottom: auto; width: 20px; height: 20px;
  transform: translate(-50%, -50%); border-radius: 50%; background: #22c55e; color: #fff; opacity: 1;
  font-size: 13px; font-weight: 900; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #0b0a10, 0 0 10px #22c55e;
  animation: marcar .25s ease-out; }
@keyframes marcar { from { transform: translate(-50%, -50%) scale(0); } to { transform: translate(-50%, -50%) scale(1); } }
@media (max-width: 420px) { .asiento.elegida::after { width: 17px; height: 17px; line-height: 17px; font-size: 11px; } }
.asiento.ocupada { background: #2a2733; border-color: #3a3645; cursor: default; }
/* Diego: "si está reservada sería bueno una x en rojo". */
.asiento.ocupada::after { content: "✕"; left: 0; right: 0; bottom: auto; top: 50%; height: auto; transform: translateY(-50%);
  background: none; color: #ef4444; opacity: 1; font-size: 16px; font-weight: 900; line-height: 1;
  text-shadow: 0 0 6px rgba(239, 68, 68, .6); }
.asiento.pasada, .asiento.cerrado { background: transparent; border-color: #24212f; cursor: default; }
.asiento.pasada::after, .asiento.cerrado::after { display: none; }
.leyenda { margin-top: 14px; color: var(--suave); font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.asiento-mini { width: 16px; height: 13px; border-radius: 4px 4px 2px 2px; border: 2px solid var(--morado); display: inline-block; margin-left: 8px; }
.asiento-mini:first-child { margin-left: 0; }
.asiento-mini.libre { background: var(--panel2); }
.asiento-mini.ocupada { background: #2a2733; border-color: #3a3645; position: relative; }
.asiento-mini.ocupada::after { content: "✕"; position: absolute; inset: -1px 0 0; color: #ef4444; font-size: 10px;
  font-weight: 900; line-height: 11px; text-align: center; }
.asiento-mini.elegida { background: var(--morado); border-color: #c4b5fd; position: relative; }
.asiento-mini.elegida::after { content: "✓"; position: absolute; inset: -1px 0 0; color: #22c55e; font-size: 11px;
  font-weight: 900; line-height: 11px; text-align: center; text-shadow: 0 0 2px #000; }
.barra-sel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; gap: 12px; align-items: center;
  justify-content: space-between; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(22, 20, 31, .96); border-top: 1px solid var(--borde); backdrop-filter: blur(8px); }
.barra-sel { background: linear-gradient(90deg, #2a1f47, #1d1630); border-top: 0;
  -webkit-mask: radial-gradient(circle 12px at 0 50%, transparent 11px, #000 12px) left / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% 50%, transparent 11px, #000 12px) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 12px at 0 50%, transparent 11px, #000 12px) left / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% 50%, transparent 11px, #000 12px) right / 51% 100% no-repeat;
  padding-left: 26px; padding-right: 22px; }
.barra-sel .entrada-txt { border-right: 2px dashed rgba(255, 255, 255, .25); padding-right: 14px; flex: 1; min-width: 0; }
.barra-sel .entrada-txt small:first-child { color: var(--morado2); font-weight: 700; letter-spacing: .06em; }
.barra-sel b { display: block; }
.barra-sel small { color: var(--suave); }
.barra-sel .boton { width: auto; margin: 0; padding: 12px 22px; }
body:has(.barra-sel:not([hidden])) main { padding-bottom: 110px; }
@media (max-width: 420px) { .grilla { grid-template-columns: 38px repeat(7, minmax(0, 1fr)); gap: 5px 3px; }
  .asiento { height: 28px; border-radius: 8px 8px 4px 4px; } .fila-hora { font-size: 11px; } }
.nota { color: var(--suave); font-size: 14px; }
form label { display: block; margin: 12px 0; font-size: 14px; color: var(--suave); }
.opcional { color: #6b6580; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 12px; font: inherit; font-size: 16px;
  color: var(--texto); background: var(--panel); border: 1px solid var(--borde); border-radius: 10px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--morado); border-color: transparent; }
.duracion { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--borde); background: var(--panel);
  color: var(--texto); font: inherit; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--morado); border-color: var(--morado); }
.chip:disabled { opacity: .35; cursor: default; }
.resumen { background: var(--panel); border: 1px solid var(--borde); border-radius: 12px; padding: 12px 14px; }
.resumen b { font-size: 18px; }
.boton { display: block; width: 100%; padding: 15px; margin-top: 10px; border: 0; border-radius: 12px;
  background: var(--morado); color: #fff; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer;
  text-align: center; text-decoration: none; }
.boton:disabled { opacity: .6; }
.boton.sec { background: var(--panel2); border: 1px solid var(--borde); }
.boton.peligro { background: transparent; color: var(--rojo); border: 1px solid #5a2330; }
.error { color: var(--rojo); background: #2a1219; border-radius: 10px; padding: 10px 12px; }
.tarjeta { background: var(--panel); border: 1px solid var(--borde); border-radius: 14px; padding: 16px; margin-top: 16px; }
.monto { font-size: 38px; font-weight: 800; margin: 4px 0; }
.reloj { font-variant-numeric: tabular-nums; color: var(--ambar); font-weight: 700; }
.datos { width: 100%; border-collapse: collapse; }
.datos td { padding: 8px 0; border-bottom: 1px solid var(--borde); vertical-align: middle; }
.datos td:first-child { color: var(--suave); width: 38%; font-size: 14px; }
.datos td:last-child { text-align: right; }
.copiar { background: none; border: 1px solid var(--borde); color: var(--morado2); border-radius: 8px;
  padding: 3px 8px; font: inherit; font-size: 12px; margin-left: 6px; cursor: pointer; }
.estado { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.estado.pendiente { background: #3b2f0b; color: var(--ambar); }
.estado.pagada, .estado.bloqueada { background: #0f2e1b; color: var(--verde); }
.estado.vencida, .estado.cancelada { background: #2a1219; color: var(--rojo); }
.ok-grande { font-size: 54px; text-align: center; margin: 6px 0 0; }
footer { text-align: center; padding: 10px 16px 30px; display: flex; gap: 18px; justify-content: center; }
footer a { color: var(--morado2); text-decoration: none; font-weight: 600; }
[hidden] { display: none !important; }

/* ----- panel del dueno ----- */
.barra { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--borde); position: sticky; top: 0; background: var(--fondo); z-index: 2; }
.barra .marca { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.barra .marca img { width: 36px; height: 36px; border-radius: 50%; }
.pestanas { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 16px 0; max-width: 1000px; margin: 0 auto; }
.panel-main { max-width: 1000px; }
.fila { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.cifra { background: var(--panel); border: 1px solid var(--borde); border-radius: 12px; padding: 12px; }
.cifra small { color: var(--suave); display: block; font-size: 13px; }
.cifra b { font-size: 22px; }
.lista { list-style: none; padding: 0; margin: 0; }
.item { background: var(--panel); border: 1px solid var(--borde); border-radius: 12px; padding: 12px 14px; margin-top: 8px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.item .quien { font-weight: 700; }
.item .meta { color: var(--suave); font-size: 14px; }
.item .acciones { display: flex; gap: 6px; flex-wrap: wrap; }
.mini { padding: 7px 12px; border-radius: 9px; border: 1px solid var(--borde); background: var(--panel2);
  color: var(--texto); font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.mini.prim { background: var(--morado); border-color: var(--morado); }
.mini.peligro { color: var(--rojo); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.dia-titulo { margin: 20px 0 4px; font-weight: 700; }
.ayuda { color: var(--suave); font-size: 13px; margin: 4px 0 0; }
fieldset { border: 1px solid var(--borde); border-radius: 12px; margin: 16px 0; padding: 6px 14px 12px; }
legend { color: var(--morado2); font-weight: 700; padding: 0 6px; }
.aviso-txt { font-size: 13px; color: var(--suave); max-width: 640px; }
@media (max-width: 520px) { .monto { font-size: 32px; } }
.enlace { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--morado2);
  font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }
.exito { color: var(--verde); background: #0f2e1b; border-radius: 10px; padding: 10px 12px; }
.estado.inactivo { background: #2a2733; color: var(--suave); }

/* ---- Agenda del dueno, tipo Google Calendar ---- */
.cal-barra { margin-top: 16px; }
.cal-mes { font-size: 17px; margin-left: 6px; }
.pend { margin-top: 12px; background: #2b2410; border: 1px solid #5b4a12; border-radius: 12px; padding: 8px 12px; }
.pend summary { cursor: pointer; color: var(--ambar); font-weight: 700; }
.cal-cabeza { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); margin-top: 14px;
  position: sticky; top: 64px; z-index: 3; background: var(--fondo); padding-bottom: 6px; border-bottom: 1px solid var(--borde); }
.cal-dia { text-align: center; line-height: 1.15; }
.cal-dia small { display: block; color: var(--suave); font-size: 12px; }
.cal-dia b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 17px; }
.cal-dia.hoy small { color: var(--morado2); }
.cal-dia.hoy b { background: var(--morado); color: #fff; }
.cal { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); max-height: 70vh; overflow-y: auto;
  border-bottom: 1px solid var(--borde); }
.cal-horas div { font-size: 11px; color: var(--suave); text-align: right; padding-right: 6px; transform: translateY(-7px); }
.cal-col { position: relative; border-left: 1px solid #22202c;
  background: repeating-linear-gradient(#0b0a10 0, #0b0a10 45px, #22202c 45px, #22202c 46px); }
.cal-hueco { position: absolute; left: 0; right: 0; border: 0; background: transparent; cursor: pointer; padding: 0; }
@media (hover: hover) { .cal-hueco:hover { background: rgba(139, 92, 246, .12); } }
.cal-bloque { position: absolute; left: 2px; right: 2px; z-index: 1; border: 0; border-radius: 6px; padding: 3px 4px;
  text-align: left; overflow: hidden; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 1px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.cal-bloque b { font-size: 12px; line-height: 1.15; overflow-wrap: anywhere; }
.cal-bloque small { font-size: 10px; opacity: .85; }
.cal-bloque .cal-nota { font-size: 10px; line-height: 1.2; opacity: 1; font-style: italic; overflow-wrap: anywhere; }
.cal-bloque.pendiente { background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .22) 0 6px, transparent 6px 12px) !important;
  outline: 2px dashed rgba(255, 255, 255, .7); outline-offset: -2px; }
.cal-ahora { position: absolute; left: -4px; right: 0; height: 2px; background: #ef4444; z-index: 2; pointer-events: none; }
.cal-ahora::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.hoja-fondo { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; justify-content: center; }
.hoja { width: 100%; max-width: 560px; background: var(--panel); border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  border: 1px solid var(--borde); }
.hoja-color { width: 36px; height: 6px; border-radius: 3px; margin-bottom: 10px; }
@media (min-width: 700px) { .hoja-fondo { align-items: center; } .hoja { border-radius: 18px; } }
@media (max-width: 520px) { .cal-cabeza, .cal { grid-template-columns: 34px repeat(7, minmax(0, 1fr)); }
  .cal-bloque b { font-size: 11px; } .cal-dia b { width: 28px; height: 28px; font-size: 15px; } }
@media (max-width: 520px) {
  .cifras { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
  .cifra { padding: 8px 10px; } .cifra small { font-size: 11px; } .cifra b { font-size: 16px; }
  .cal-barra { margin-top: 10px; gap: 6px; } .cal-mes { font-size: 15px; }
  .cal-barra .mini { padding: 7px 10px; }
}
.nota-cliente { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #221d33; color: var(--texto);
  font-size: 14px; border-left: 3px solid var(--morado); }
textarea { resize: vertical; min-height: 70px; }
.zona-peligro { border-color: #5a2330; margin-top: 24px; }

/* Contactos: tabla en escritorio, dos líneas por persona en celular. */
.contactos-tabla { border-collapse: collapse; }
.contactos-tabla td, .contactos-tabla th { padding: 8px 6px; }
.contacto-acciones { white-space: nowrap; }
.contacto-acciones .mini + .mini { margin-left: 5px; }
.contacto-banda-movil, .contacto-email-movil, .contacto-icono { display: none; }
@media (max-width: 600px) {
  .contactos-tabla, .contactos-tabla tbody { display: block; width: 100%; }
  .contactos-tabla thead, .contacto-banda, .contacto-email { display: none; }
  .contacto-fila { display: grid; grid-template-columns: minmax(0, 1fr) 84px;
    grid-template-rows: 24px 24px; column-gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--borde); }
  .contactos-tabla .contacto-nombre, .contactos-tabla .contacto-telefono {
    display: flex; align-items: center; min-width: 0; padding: 0; overflow: hidden; white-space: nowrap; }
  .contacto-nombre { grid-column: 1; grid-row: 1; font-size: 13px; }
  .contacto-persona { min-width: 0; max-width: 65%; overflow: hidden; text-overflow: ellipsis; font-weight: 650; }
  .contacto-banda-movil { display: block; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted, #b1a9c9); }
  .contacto-telefono { grid-column: 1; grid-row: 2; font-size: 12px; }
  .contacto-telefono > span:first-child { flex-shrink: 0; }
  .contacto-email-movil { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted, #b1a9c9); }
  .contactos-tabla .contacto-acciones { grid-column: 2; grid-row: 1 / span 2; display: flex;
    align-items: center; gap: 4px; padding: 0; }
  .contacto-acciones .mini { display: inline-flex; justify-content: center; align-items: center;
    min-width: 40px; width: 40px; min-height: 44px; padding: 0; }
  .contacto-acciones .mini + .mini { margin-left: 0; }
  .contacto-icono { display: inline; font-size: 19px; }
  .contacto-accion-texto { display: none; }
}


/* Artículos, ubicación y límite del calendario SCR. */
.precio-ubicacion { margin-left:auto; display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.precio-ubicacion .precio { margin:0; }
.ubicacion { display:flex; gap:10px; align-items:center; max-width:290px; font-size:12px; line-height:1.4; color:var(--texto); text-decoration:none; }
.ubicacion-icono { width:42px; height:42px; flex:none; display:grid; place-items:center; border-radius:50%; background:var(--morado); color:#fff; box-shadow:0 0 14px rgba(139,92,246,.4); }
.ubicacion strong { display:block; font-weight:600; }
.ubicacion small { display:block; margin-top:3px; color:var(--morado2); text-decoration:underline; }
.articulos { margin:18px 0; padding:12px; border:1px solid var(--borde); border-radius:12px; }
.articulo { display:flex; gap:9px; align-items:center; margin:10px 0; font-size:13px; }
.articulo input { width:18px; height:18px; flex:none; margin:0; accent-color:var(--morado); }
.articulo span { flex:1; min-width:0; }
.articulo b { white-space:nowrap; font-size:12px; }
.cal-horas .cal-fin { height:18px; transform:translateY(-7px); }
.cal-col { margin-bottom:18px; }
.cuadro { isolation:isolate; }
.cuadro .escena, .cuadro video.escena { z-index:0; }
.cuadro .haces, .cuadro .humo { z-index:2; }
.cuadro .cenital { z-index:3; }
.cuadro .en-vivo { z-index:4; }
@media(max-width:520px) { .precio-ubicacion { width:100%; margin-left:auto; align-items:flex-end; gap:10px; } .precio-ubicacion .ubicacion { width:100%; max-width:none; } .barra-sel .boton { padding:12px; font-size:13px; } }
/* En el celular los tres numeros chicos van en una sola fila (Diego, 04-10-2026);
   el cuadro por color sigue debajo, a todo el ancho. */
@media(max-width:600px) {
  .cifras { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .cifra:not(.cifra-ancha) { padding: 7px 8px; }
  .cifra:not(.cifra-ancha) small { font-size: 10.5px; line-height: 1.2; }
  .cifra:not(.cifra-ancha) b { font-size: 16px; }
}

.llegada-titulo { font-size:9px; line-height:1.2; color:var(--suave); text-align:center; align-self:center; }

.marquesina-identidad { display:contents; }
.ubicacion > span:last-child { flex:1; text-align:center; }
@media(max-width:520px) {
  .marquesina { display:flex; flex-direction:column; align-items:center; gap:12px; }
  .marquesina-identidad { display:flex; justify-content:center; align-items:center; gap:10px; width:100%; }
  .marquesina .logo { width:44px; height:44px; }
  .marquesina-titulo { min-width:0; }
  .marquesina h1 { font-size:20px; }
  .marquesina .sub { font-size:12px; }
  .precio-ubicacion { display:contents; }
  .precio-ubicacion .precio { margin:0; padding:8px 14px; font-size:16px; white-space:nowrap; }
  .precio-ubicacion .ubicacion { width:100%; max-width:none; }
}
@media(max-width:600px) {
  .cal-barra { flex-direction:row; flex-wrap:nowrap; align-items:center; gap:6px; }
  .cal-barra .cal-mes { flex:1; min-width:0; font-size:14px; }
  .cal-barra .mini { padding:7px 8px; white-space:nowrap; }
}
.cifra-ancha { grid-column: 1 / -1; }
.por-color { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--borde); }
.por-color:first-of-type { border-top: 0; margin-top: 4px; }
.por-color .punto { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.por-color span:nth-child(2) { flex: 1; min-width: 0; }
.por-color small { color: var(--suave); font-size: 12px; display: inline; }
.por-color b { font-size: 16px; font-variant-numeric: tabular-nums; }

.detalle-color { border-top:1px solid var(--borde); }
.detalle-color:first-of-type { border-top:0; margin-top:4px; }
.detalle-color .por-color { cursor:pointer; border-top:0; margin:0; list-style:none; }
.detalle-color summary::-webkit-details-marker { display:none; }
.desplegar-color { flex:none; font-size:18px; color:var(--suave); }
.detalle-color[open] .desplegar-color { transform:rotate(180deg); }
.reservas-color { list-style:none; margin:0; padding:0 0 8px 20px; }
.reservas-color li { display:flex; align-items:center; gap:12px; padding:9px 0; border-top:1px solid var(--borde); }
.reservas-color li > div { flex:1; min-width:0; overflow-wrap:anywhere; }
.reservas-color strong { font-size:14px; }
.reservas-color .nota { display:block; font-size:12px; margin:3px 0 0; }
.reservas-color li > b { white-space:nowrap; font-size:14px; }

/* Hora apartada por una reserva aún sin pagar: tomada, pero difusa (Diego,
   13-10-2026: "solo que queden transparentes o difusas"). */
.asiento.apartada { background: #2a2733; border-color: #3a3645; cursor: default; opacity: .45; }
.asiento.apartada::after { content: "✕"; left: 0; right: 0; bottom: auto; top: 50%; height: auto; transform: translateY(-50%);
  background: none; color: #ef4444; opacity: 1; font-size: 16px; font-weight: 900; line-height: 1; }
/* En el panel del dueño, la reserva sin confirmar se ve difusa hasta que llega el pago. */
.cal-bloque.pendiente { opacity: .55; }
.cal-bloque.pendiente:hover, .cal-bloque.pendiente:focus { opacity: .9; }

/* Panel: "Este mes por color" plegado; se abre al tocarlo (Diego, 13-10-2026). */
.resumen-colores > summary { list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 8px; }
.resumen-colores > summary::-webkit-details-marker { display: none; }
.resumen-colores-total { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.resumen-colores-flecha { display: inline-block; transition: transform .15s; color: var(--suave); }
.resumen-colores[open] .resumen-colores-flecha { transform: rotate(180deg); }

/* Solista o duo / banda: se elige antes de ver el precio (Diego, 11-11-2026). */
.tipo-cliente { margin: 14px 0 4px; }
.tipo-pregunta { margin: 0 0 8px; font-weight: 700; }
.tipo-opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tipo { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border-radius: 14px;
  border: 2px solid var(--borde); background: var(--panel); color: var(--texto); font: inherit; cursor: pointer; }
.tipo span { font-size: 28px; line-height: 1.1; }
.tipo b { font-size: 16px; }
.tipo small { color: var(--suave); font-size: 13px; }
.tipo[aria-pressed="true"] { border-color: var(--morado); background: #2a1f47; box-shadow: 0 0 14px -4px var(--morado); }
.tipo[aria-pressed="true"] small { color: var(--morado2); }
