/* Paginas de fechas especiales (/halloween/). Sobrias como el resto de la app
   (Pedro, 2026-10-08): la cabecera es la de la cartelera y todo sigue el tema
   con los tokens --ent-* de entradas/base.html. Un solo acento coral: la noche
   elegida y el precio. Plantillas: entradas/fecha_especial.html y sus parciales. */

:root {
    /* Coral para texto: #e11d48 da 4.7:1 sobre blanco; en oscuro, el claro */
    --fe-coral: #e11d48;
    --fe-coral-texto: #e11d48;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) { --fe-coral-texto: #fb7185; }
}
:root[data-theme="dark"] { --fe-coral-texto: #fb7185; }

/* --- Titulos y bloques ------------------------------------------------------ */
.fe-h2 {
    margin: 0 0 10px;
    font-family: var(--al-display, 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif);
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ent-text);
}
.fe-bloque { margin-top: 34px; }
.fe-texto { margin: 0 0 14px; font-size: .92rem; line-height: 1.6; color: var(--ent-text-soft); }

/* --- Elige la noche -------------------------------------------------------- */
.fe-elige-cab {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.fe-elige-cab .fe-h2 { margin: 0; }
.fe-todas {
    flex-shrink: 0;
    font-size: .86rem;
    font-weight: 700;
    color: var(--fe-coral-texto);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}
.fe-todas[aria-pressed="true"] { color: var(--ent-text-muted); text-decoration: none; cursor: default; }
.fe-todas:focus-visible { outline: 2px solid var(--fe-coral); outline-offset: 3px; border-radius: 4px; }
/* Todas las noches en pantalla, sin scroll: una columna por noche hasta 6;
   con mas (una ventana larga) pasan a una segunda fila. Las columnas las pone
   la plantilla (columnas_noches): min() dentro de repeat() no va en todos los
   Safari */
.fe-chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding-bottom: 8px;
}
.fe-chip {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 9px 4px 8px;
    border-radius: 14px;
    border: 1px solid var(--ent-border);
    background: var(--ent-card);
    color: var(--ent-text-soft);
    font-size: .74rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.fe-chip b { font-size: 1.2rem; font-weight: 800; color: var(--ent-text); }
.fe-chip i { font-style: normal; font-size: .68rem; opacity: .85; margin-top: 1px; white-space: nowrap; }
.fe-chip:hover { border-color: var(--ent-text-soft); }
.fe-chip.is-on { background: var(--fe-coral); border-color: var(--fe-coral); color: #fff; }
.fe-chip.is-on b { color: #fff; }
.fe-chip:focus-visible { outline: 2px solid var(--fe-coral); outline-offset: 2px; }

/* --- Las fiestas ----------------------------------------------------------- */
.fe-noche { margin-top: 22px; scroll-margin-top: 12px; }
.fe-noche-t {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 2px;
    font-family: var(--al-display, 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ent-text);
}
.fe-noche-t span {
    flex-shrink: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 600;
    font-size: .76rem;
    color: var(--ent-text-muted);
}
.fe-fila {
    position: relative;
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--ent-border);
}
.fe-noche-t + .fe-fila { border-top: 0; }
.fe-fila-tap { position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.fe-fila-tap:focus-visible { outline: 2px solid var(--fe-coral); outline-offset: 2px; }
.fe-fila:hover .fe-fila-nombre { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.fe-flyer {
    width: 64px;
    aspect-ratio: 3 / 4;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 11px;
    background: var(--ent-bg-soft, var(--ent-card));
    color: var(--ent-text-muted);
    font-weight: 800;
    font-size: .9rem;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .55);
}
.fe-flyer img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 600px) { .fe-flyer { width: 76px; } }
.fe-fila-txt { flex: 1; min-width: 0; }
.fe-fila-nombre {
    margin: 0;
    font-size: .96rem;
    font-weight: 800;
    line-height: 1.22;
    color: var(--ent-text);
    overflow-wrap: anywhere;
}
.fe-fila-meta { margin: 3px 0 0; font-size: .8rem; color: var(--ent-text-soft); }
.fe-fila-meta a {
    position: relative;
    z-index: 2;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--ent-border);
    text-underline-offset: 2px;
}
.fe-fila-meta a:hover { color: var(--ent-text); }
.fe-gratis, .fe-fila .ent-a-la-venta {
    display: block;
    margin-top: 4px;
    font-size: .76rem;
    font-weight: 700;
    color: var(--ent-gratis-text);
}
.fe-precio {
    flex-shrink: 0;
    min-width: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1.5px solid var(--fe-coral-texto);
    color: var(--fe-coral-texto);
    font-weight: 800;
    font-size: .86rem;
    line-height: 1.1;
    white-space: nowrap;
}
.fe-precio small { font-size: .64rem; font-weight: 600; opacity: .85; }
.fe-precio.is-pronto { border-color: var(--ent-border); color: var(--ent-text-soft); }
.fe-precio.is-agotado { border-color: var(--ent-border); color: var(--ent-text-muted); }
.fe-precio.is-ir { min-width: 0; padding: 8px; border-color: var(--ent-border); color: var(--ent-text-soft); border-radius: 999px; }

/* --- Ciudades y salas ------------------------------------------------------ */
.fe-enlaces { display: flex; flex-wrap: wrap; gap: 8px; }
.fe-enlaces a,
.fe-enlaces span {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid var(--ent-border);
    background: var(--ent-card);
    color: var(--ent-text);
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
}
.fe-enlaces a:hover { border-color: var(--ent-text-soft); }
.fe-enlaces a:focus-visible { outline: 2px solid var(--fe-coral); outline-offset: 2px; }
.fe-enlaces small { color: var(--ent-text-muted); font-weight: 600; font-size: .76rem; }

/* --- Preguntas frecuentes y salida a la agenda ------------------------------ */
.fe-faq details {
    background: var(--ent-card);
    border: 1px solid var(--ent-border);
    border-radius: var(--ent-radius, 14px);
    padding: 12px 16px;
    margin-bottom: 8px;
    overflow-wrap: break-word;
}
.fe-faq summary { font-size: .9rem; font-weight: 700; cursor: pointer; color: var(--ent-text); }
.fe-faq details p { margin: 8px 0 0; font-size: .86rem; line-height: 1.6; color: var(--ent-text-soft); }
.fe-cta {
    display: block;
    margin: 28px 0 8px;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--ent-accent);
    color: var(--ent-accent-text);
    font-weight: 800;
    font-size: .95rem;
    text-align: center;
    text-decoration: none;
}
.fe-cta:focus-visible { outline: 2px solid var(--fe-coral); outline-offset: 3px; }
