/* Diseño El Potrero de Noche (fútbol): el complejo en 3D arriba, con la hora elegida prendiendo los reflectores; abajo, el turno, falta uno, pecheras, cumples y precios. Una sola estética: noche. */
.tema-po {
  --noche: #080d1a; --panel: #111a2e; --panel2: #1a2540; --linea: rgba(255, 255, 255, .1);
  --txt: #eef2fb; --suave: #9aa6c2; --pech: #ff6a1a; --sobre-pech: #1a0a00; --luz: #ffe7a3; --libre: #45e08d;
  --f-d: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-t: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--noche); color: var(--txt); font: 16px/1.5 var(--f-t); color-scheme: dark; overflow-x: hidden;
}
html:has(.tema-po) { background: #080d1a; }
.tema-po *, .tema-po *::before, .tema-po *::after { box-sizing: border-box; }
:where(.tema-po) :where(button, input, select) { font: inherit; color: inherit; }
:where(.tema-po) button { cursor: pointer; border: 0; background: none; }
.tema-po :focus-visible { outline: 3px solid var(--luz); outline-offset: 2px; }
.tema-po .num { font-variant-numeric: tabular-nums; }
.tema-po h1, .tema-po h2, .tema-po h3 { font-family: var(--f-d); margin: 0; line-height: .95; text-wrap: balance; letter-spacing: .01em; text-transform: uppercase; }
.tema-po .g { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.po-k { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--luz); }
.po-btn { background: var(--pech); color: var(--sobre-pech); font-weight: 800; border-radius: 14px; padding: 14px 18px; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s; }
.po-btn:active { transform: scale(.97); }
.po-btn:disabled { opacity: .55; cursor: default; }
.po-chip { background: rgba(255, 255, 255, .1); border: 1px solid var(--linea); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--txt); text-decoration: none; }
.po-sx { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.po-sx::-webkit-scrollbar { display: none; }

/* --- Héroe 3D --- */
.po-hero { position: relative; height: max(620px, 100svh); overflow: hidden; background: radial-gradient(120% 70% at 50% 35%, #1b2a4a, var(--noche)); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
#etq { position: absolute; inset: 0; pointer-events: none; }
.po-etq { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 999px; background: rgba(8, 13, 26, .8); border: 1px solid var(--linea); transition: opacity .3s; }
.po-etq i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; background: var(--suave); }
.po-etq.libre i { background: var(--libre); box-shadow: 0 0 8px var(--libre); }
.po-etq.sel { background: var(--pech); color: var(--sobre-pech); border-color: transparent; }
.po-etq.sel i { background: var(--sobre-pech); box-shadow: none; }
.po-etq.otro { opacity: 0; }
.po-top { position: absolute; inset: 0 0 auto; z-index: 3; padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: linear-gradient(rgba(8, 13, 26, .85), transparent); }
.po-marca { min-width: 0; }
.po-marca h1 { font-size: 22px; font-weight: 900; overflow-wrap: anywhere; }
.po-marca small { display: block; font-size: 11px; font-weight: 600; color: var(--suave); margin-top: 3px; }
.po-txt { position: absolute; left: 0; right: 0; top: calc(68px + env(safe-area-inset-top, 0px)); pointer-events: none; }
.po-txt h2 { font-size: clamp(42px, 12.5vw, 84px); font-weight: 900; text-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.po-txt h2 span { color: var(--luz); }
.po-txt p { margin: 8px 0 0; max-width: 30ch; color: #d5dcef; font-size: 15px; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.po-ver-todo { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: calc(70px + env(safe-area-inset-top, 0px)); z-index: 3; }
.po-ctl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-top: 70px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, rgba(8, 13, 26, .88) 34%); display: grid; gap: 10px; }
.po-dia { flex: none; scroll-snap-align: start; padding: 7px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid var(--linea); font-weight: 800; font-size: 14px; line-height: 1.15; text-align: left; }
.po-dia small { display: block; font-weight: 500; font-size: 11px; color: var(--suave); }
.po-dia[aria-pressed="true"] { background: var(--txt); color: var(--noche); }
.po-dia[aria-pressed="true"] small { color: #3c4766; }
.po-dia:disabled { opacity: .35; }
.po-tipos { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(255, 255, 255, .07); border-radius: 14px; padding: 4px; gap: 4px; }
.po-tipo { border-radius: 10px; padding: 7px 4px; font-weight: 800; font-family: var(--f-d); font-size: 20px; line-height: 1; text-transform: uppercase; }
.po-tipo small { display: block; font-family: var(--f-t); font-size: 10px; font-weight: 600; color: var(--suave); text-transform: none; margin-top: 2px; }
.po-tipo[aria-pressed="true"] { background: var(--pech); color: var(--sobre-pech); }
.po-tipo[aria-pressed="true"] small { color: var(--sobre-pech); }
.po-hora { flex: none; scroll-snap-align: center; width: 76px; padding: 8px 6px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--linea); text-align: center; line-height: 1.1; position: relative; }
.po-hora b { display: block; font-family: var(--f-d); font-size: 22px; font-variant-numeric: tabular-nums; }
.po-hora small { font-size: 10px; color: var(--suave); font-weight: 600; }
.po-hora.luz::after { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--luz); box-shadow: 0 0 6px var(--luz); }
.po-hora[aria-pressed="true"] { background: var(--luz); color: var(--noche); border-color: transparent; }
.po-hora[aria-pressed="true"] small { color: #4b4020; }
.po-vacio { color: var(--suave); font-size: 14px; padding: 10px 2px; }
.po-selbar { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--linea); border-radius: 16px; padding: 10px 10px 10px 14px; }
.po-selbar > div { flex: 1; min-width: 0; line-height: 1.25; }
.po-selbar b { display: block; font-size: 15px; }
.po-selbar span { font-size: 13px; color: var(--suave); }

/* --- Secciones --- */
.po-main { display: grid; gap: 56px; padding-block: 40px 30px; }
.po-sec { display: grid; gap: 16px; max-width: 760px; width: 100%; margin: 0 auto; }
.po-sec h2 { font-size: clamp(38px, 11vw, 60px); font-weight: 900; }
.po-sec > p { margin: 0; color: var(--suave); max-width: 52ch; }
.po-card { background: var(--panel); border: 1px solid var(--linea); border-radius: 22px; padding: 18px; display: grid; gap: 16px; }
.po-cab { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.po-cab h3 { font-size: 44px; font-weight: 900; }
.po-cuando { text-align: right; font-weight: 800; line-height: 1.2; }
.po-cuando small { display: block; color: var(--suave); font-weight: 500; font-size: 13px; }
.po-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.po-tag { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--panel2); color: #cdd5ea; }
.po-otras { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--suave); }
.po-otras button { font-weight: 800; padding: 6px 10px; border-radius: 10px; background: var(--panel2); color: var(--txt); }
.po-otras button[aria-pressed="true"] { background: var(--pech); color: var(--sobre-pech); }
.po-fila { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.po-fila > div { min-width: 0; }
.po-fila small { color: var(--suave); font-size: 13px; display: block; line-height: 1.35; }
.po-des { display: grid; gap: 6px; border-top: 1px dashed var(--linea); padding-top: 14px; font-variant-numeric: tabular-nums; }
.po-des div { display: flex; justify-content: space-between; gap: 12px; color: #cdd5ea; font-size: 14px; }
.po-des .tot { font-size: 18px; font-weight: 800; color: var(--txt); }
.po-vaca { font-family: var(--f-d); font-size: 34px; font-weight: 900; color: var(--luz); line-height: 1; }
.po-nota { font-size: 13px; color: var(--suave); }
.po-nota a { color: var(--luz); }

/* Bloques comunes de reserva-canchas.js */
.tema-po .rp-extras { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.tema-po .rp-extras legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.tema-po .rp-extras legend small { color: var(--suave); font-weight: 500; }
.tema-po .rp-extra { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.tema-po .rp-extra small { color: var(--suave); }
.tema-po .rp-paso { flex: none; display: flex; align-items: center; gap: 4px; background: var(--panel2); border-radius: 12px; padding: 3px; }
.tema-po .rp-paso button { width: 32px; height: 32px; border-radius: 9px; font-weight: 800; font-size: 18px; }
.tema-po .rp-paso button:disabled { opacity: .35; }
.tema-po .rp-paso b { min-width: 22px; text-align: center; }
.tema-po .rp-partes, .tema-po .rp-datos label, .tema-po .rp-publicar { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--suave); }
.tema-po .rp-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.tema-po .rp-publicar { grid-template-columns: auto 1fr auto; align-items: center; color: var(--txt); font-weight: 600; }
.tema-po select, .tema-po input:not([type="checkbox"]) { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--linea); background: var(--noche); color: var(--txt); }
.tema-po .rp-publicar select { width: auto; }

/* Falta uno */
.po-fu { display: grid; gap: 10px; }
.po-fu-c { background: var(--panel); border: 1px solid var(--linea); border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.po-pts { display: flex; flex-wrap: wrap; gap: 4px; }
.po-pts i { width: 12px; height: 12px; border-radius: 50%; background: #34416a; }
.po-pts i.on { background: var(--txt); }
.po-fu-c .po-btn { padding: 10px 14px; font-size: 14px; border-radius: 12px; }
.po-fu-c form { display: grid; gap: 10px; }

/* Pecheras (ejemplo) */
.po-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.po-eq-col { background: var(--panel); border: 1px solid var(--linea); border-radius: 18px; padding: 12px; min-width: 0; }
.po-eq-h { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.po-eq-h i { width: 16px; height: 16px; border-radius: 5px; background: var(--pe); box-shadow: 0 0 12px var(--pe); }
.po-eq-h span { margin-left: auto; color: var(--suave); }
.po-eq ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.po-eq li { padding: 8px 10px; border-radius: 10px; background: var(--panel2); border-left: 4px solid var(--pe); font-weight: 700; font-size: 14px; }
.po-eq .po-btn { grid-column: 1 / -1; }

/* Eventos e info */
.po-ev { display: grid; gap: 12px; }
.po-ev-c { border-radius: 22px; padding: 20px; display: grid; gap: 10px; background: linear-gradient(145deg, #23315a, var(--panel)); border: 1px solid var(--linea); }
.po-ev-c.torneo { background: linear-gradient(145deg, #5a2a12, var(--panel)); }
.po-ev-c h3 { font-size: 36px; font-weight: 900; }
.po-ev-c p { margin: 0; color: #cdd5ea; font-size: 14px; }
.po-precio { font-family: var(--f-d); font-size: 32px; font-weight: 900; color: var(--luz); line-height: 1; }
.po-precio small { font-family: var(--f-t); font-size: 13px; color: var(--suave); font-weight: 500; }
.po-info { display: grid; gap: 8px; }
.po-info div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--panel); font-size: 14px; }
.po-info span:first-child { color: var(--suave); }
.po-pie { padding-block: 30px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--linea); color: var(--suave); font-size: 14px; display: grid; gap: 6px; }
.po-pie b { color: var(--txt); font-family: var(--f-d); font-size: 26px; text-transform: uppercase; }

/* Se arma al bajar y se desarma al subir (solo transform y opacity). */
.tema-po .armable { transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .6s ease; }
.tema-po .armable.desarmado { opacity: 0; transform: translateY(28px) scale(.98); }
@media (min-width: 900px) {
  .po-ctl { max-width: 560px; left: auto; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 24px; padding: 18px; border-radius: 24px; background: rgba(8, 13, 26, .82); }
}
@media (prefers-reduced-motion: reduce) {
  .tema-po *, .tema-po *::before, .tema-po *::after { transition: none !important; animation: none !important; }
  .tema-po .armable.desarmado { opacity: 1; transform: none; }
}
