/*
 * Queseo Eventos — front.
 * Diseño 2a (escritorio) + 3m/3n (móvil). Todo va bajo .qse-* para no filtrarse al tema.
 * Las fuentes son locales (assets/fonts): ni una petición a Google.
 */

@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/lora-400.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/lora-600.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/lora-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/manrope-400.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-600.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/manrope-700.woff2') format('woff2'); }

.qse-listado, .qse-ficha {
    --qse-fondo: #fbfaf7;
    --qse-papel: #fff;
    --qse-tinta: #111;
    --qse-tinta-2: #444;
    --qse-apagado: #777;
    --qse-tenue: #999;
    --qse-borde: #d8d4cb;
    --qse-borde-suave: #e3e0d8;
    --qse-hover: #f0eee9;
    --qse-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --qse-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --qse-ancho: 1180px;

    font-family: var(--qse-sans);
    color: var(--qse-tinta);
    background: var(--qse-fondo);
    font-size: 16px;
    line-height: 1.6;
}

.qse-listado *, .qse-ficha * { box-sizing: border-box; }
/* :where() no suma especificidad: así los enlaces heredan el color pero cualquier componente
   (botones, CTA, chips) puede fijar el suyo sin pelearse con esta regla. */
.qse-listado :where(a), .qse-ficha :where(a) { color: inherit; }

/* Un display: en una clase gana a la regla [hidden] del navegador, y el filtrado del buscador oculta
   con el atributo. Sin esto, escribir en el buscador no esconde nada. */
.qse-listado [hidden], .qse-ficha [hidden] { display: none !important; }

.qse-contenedor { max-width: var(--qse-ancho); margin: 0 auto; padding: 0 24px; }

/* ---------- barra de filtros (pegajosa) ---------- */

.qse-barra {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--qse-papel);
    border-bottom: 1px solid var(--qse-borde-suave);
    margin-bottom: 28px;
}

.qse-barra-interior { max-width: var(--qse-ancho); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.qse-pastilla {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--qse-borde);
    border-radius: 999px;
    background: var(--qse-papel);
    padding: 8px 16px;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, background .15s;
}
.qse-pastilla:hover { border-color: var(--qse-tinta); }
.qse-pastilla__etiqueta { color: var(--qse-apagado); }
.qse-pastilla__valor { font-weight: 600; }
.qse-pastilla__flecha { font-size: 10px; color: var(--qse-apagado); }
/* summary sin el triangulito del navegador: la flecha la pone el propio marcado. */
.qse-pastilla { list-style: none; }
.qse-pastilla::-webkit-details-marker { display: none; }
.qse-pastilla::marker { content: ''; }
.qse-filtro-grupo[open] > .qse-pastilla { background: var(--qse-tinta); color: var(--qse-papel); border-color: var(--qse-tinta); }
.qse-filtro-grupo[open] > .qse-pastilla .qse-pastilla__etiqueta,
.qse-filtro-grupo[open] > .qse-pastilla .qse-pastilla__flecha { color: rgba(255, 255, 255, .65); }

.qse-filtro-grupo { position: relative; }

.qse-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 320px;
    max-height: 380px;
    overflow-y: auto;
    background: var(--qse-papel);
    border: 1px solid var(--qse-borde-suave);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    padding: 10px;
}

.qse-buscador { position: relative; margin-bottom: 8px; }
.qse-buscador input {
    width: 100%;
    border: 1px solid var(--qse-borde);
    border-radius: 999px;
    padding: 10px 16px 10px 38px;
    font: inherit;
    font-size: 14px;
    background: var(--qse-papel);
    color: var(--qse-tinta);
}
.qse-buscador input:focus { outline: 2px solid var(--qse-tinta); outline-offset: -1px; }
.qse-buscador::before {
    content: '';
    position: absolute;
    left: 14px; top: 50%;
    width: 12px; height: 12px;
    margin-top: -6px;
    border: 1.5px solid var(--qse-tenue);
    border-radius: 50%;
}

.qse-opcion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: none;
    font: inherit;
    font-size: 15px;
    text-align: left;
    text-decoration: none;
    color: var(--qse-tinta);
    cursor: pointer;
}
.qse-opcion:hover { background: var(--qse-hover); }
.qse-opcion[aria-current="true"] { background: var(--qse-tinta); color: var(--qse-papel); font-weight: 600; }
.qse-opcion[aria-current="true"] .qse-opcion__n { color: rgba(255, 255, 255, .7); }
.qse-opcion__n { color: var(--qse-tenue); font-size: 13px; font-variant-numeric: tabular-nums; }
.qse-opcion mark { background: none; color: inherit; text-decoration: underline; }
.qse-panel__vacio { padding: 14px; color: var(--qse-tenue); font-size: 14px; }

.qse-limpiar { font-size: 14px; color: var(--qse-apagado); text-decoration: underline; }
.qse-limpiar:hover { color: var(--qse-tinta); }

/* ---------- cabecera de la página ---------- */

.qse-migas { font-size: 13px; color: var(--qse-apagado); margin-bottom: 18px; }
.qse-migas ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qse-migas li + li::before { content: '›'; margin-right: 8px; color: var(--qse-borde); }

.qse-h1 { font-family: var(--qse-serif); font-size: clamp(30px, 4.4vw, 46px); font-weight: 400; line-height: 1.14; letter-spacing: -.01em; margin: 0 0 14px; }
.qse-resumen { color: var(--qse-tinta-2); font-size: 16px; margin: 0 0 30px; max-width: 62ch; }
.qse-resumen a { text-decoration: underline; }

/* ---------- rejilla principal ---------- */

.qse-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }

/* ---------- calendario ---------- */

.qse-mes { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.qse-mes__titulo { font-family: var(--qse-serif); font-size: 30px; font-weight: 400; margin: 0; }
.qse-mes__anio { color: var(--qse-tenue); margin-left: 8px; }
.qse-mes__nav { display: flex; gap: 18px; font-size: 14px; }
.qse-mes__nav a { text-decoration: none; color: var(--qse-tinta-2); }
.qse-mes__nav a:hover { color: var(--qse-tinta); text-decoration: underline; }

.qse-rejilla { width: 100%; border-collapse: collapse; table-layout: fixed; }
.qse-rejilla th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--qse-tenue);
    text-align: left;
    padding: 0 6px 8px;
    border-bottom: 1px solid var(--qse-tinta);
}
.qse-rejilla td {
    vertical-align: top;
    border-bottom: 1px solid var(--qse-borde-suave);
    padding: 8px 6px 12px;
    height: 92px;
}
.qse-rejilla td.qse-fuera { background: transparent; }
.qse-celda__dia { font-size: 13px; color: var(--qse-apagado); font-variant-numeric: tabular-nums; }
.qse-fuera .qse-celda__dia { color: #ccc7bc; }
.qse-hoy .qse-celda__dia { background: var(--qse-tinta); color: var(--qse-papel); border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.qse-celda__evento { display: block; font-size: 12.5px; line-height: 1.35; margin-top: 6px; text-decoration: none; color: var(--qse-tinta); border-left: 2px solid var(--qse-tinta); padding-left: 6px; }
.qse-celda__evento:hover { text-decoration: underline; }
.qse-celda__evento.es-otro { color: var(--qse-apagado); border-left-color: var(--qse-borde); }
.qse-celda__mas { display: block; font-size: 11.5px; color: var(--qse-tenue); margin-top: 5px; }

.qse-leyenda { display: flex; gap: 22px; font-size: 13px; color: var(--qse-apagado); margin: 14px 0 44px; flex-wrap: wrap; }
.qse-leyenda span::before { content: '—'; margin-right: 7px; color: var(--qse-tinta); }
.qse-leyenda .es-otro::before { color: var(--qse-borde); }

/* ---------- lista ---------- */

.qse-lista-cabecera { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--qse-tinta); padding-bottom: 12px; margin-bottom: 4px; }
.qse-lista-cabecera h2 { font-family: var(--qse-serif); font-size: 27px; font-weight: 400; margin: 0; }
.qse-lista-cabecera p { font-size: 13px; color: var(--qse-apagado); margin: 0; }

.qse-tarjeta { display: grid; grid-template-columns: 108px minmax(0, 1fr) 152px; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--qse-borde-suave); align-items: start; }

.qse-tarjeta-fecha { text-align: left; padding-top: 2px; }
.qse-dow { display: block; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--qse-apagado); }
.qse-dia { display: block; font-family: var(--qse-serif); font-size: 42px; line-height: 1.05; font-weight: 400; }
.qse-mes-corto { display: block; font-size: 13px; color: var(--qse-apagado); }

.qse-tarjeta-titulo { font-family: var(--qse-serif); font-size: 21px; font-weight: 400; line-height: 1.3; margin: 0 0 6px; }
.qse-tarjeta-titulo a { text-decoration: none; }
.qse-tarjeta-titulo a:hover { text-decoration: underline; }
.qse-tarjeta-meta { font-size: 14px; color: var(--qse-apagado); margin: 0 0 12px; }
.qse-tarjeta-descripcion { font-size: 14.5px; color: var(--qse-tinta-2); margin: 0 0 12px; }
.qse-tarjeta-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }

.qse-chip { display: inline-block; border: 1px solid var(--qse-borde); border-radius: 999px; padding: 4px 13px; font-size: 12.5px; text-decoration: none; color: var(--qse-tinta-2); }
.qse-chip:hover { border-color: var(--qse-tinta); color: var(--qse-tinta); }
.qse-chip-tematica { border-color: var(--qse-tinta); color: var(--qse-tinta); }
.qse-organizador { font-size: 12.5px; color: var(--qse-tenue); }

.qse-tarjeta-lado { text-align: right; }
.qse-tarjeta-imagen { display: block; width: 152px; height: 92px; object-fit: cover; border-radius: 6px; background: var(--qse-hover); }
.qse-tarjeta-ver { display: inline-block; margin-top: 10px; font-size: 14px; text-decoration: underline; white-space: nowrap; }

.qse-vacio { color: var(--qse-apagado); padding: 32px 0; }

/* ---------- lateral ---------- */

.qse-lateral { position: sticky; top: 84px; display: grid; gap: 34px; }
.qse-bloque > h2 { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--qse-apagado); margin: 0 0 14px; padding-top: 12px; border-top: 1px solid var(--qse-tinta); }
.qse-destacado-titulo { font-family: var(--qse-serif); font-size: 20px; font-weight: 400; line-height: 1.3; margin: 0 0 6px; }
.qse-destacado-titulo a { text-decoration: none; }
.qse-destacado-titulo a:hover { text-decoration: underline; }
.qse-destacado-meta { font-size: 14px; color: var(--qse-apagado); margin: 0; }
.qse-lateral-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.qse-newsletter > p { font-size: 14.5px; color: var(--qse-tinta-2); margin: 0 0 14px; }

/* Campo único: el email y el botón comparten una pastilla, como en el diseño. La etiqueta «Tu email»
   sigue en el DOM para los lectores de pantalla; solo se oculta visualmente. */
.qse-newsletter-campo { display: flex; align-items: stretch; border: 1px solid var(--qse-tinta); border-radius: 999px; background: var(--qse-papel); overflow: hidden; }
.qse-newsletter-campo > p { margin: 0; display: flex; }
.qse-newsletter-campo > p:first-child { flex: 1; min-width: 0; }
.qse-newsletter-campo label { flex: 1; display: flex; align-items: center; min-width: 0; }
.qse-newsletter-campo label { font-size: 0; }
.qse-newsletter-campo label br { display: none; }
.qse-newsletter-campo input[type="email"] { flex: 1; min-width: 0; width: 100%; border: 0; padding: 11px 18px; font-family: var(--qse-sans); font-size: 14px; background: none; color: var(--qse-tinta); }
.qse-newsletter-campo input[type="email"]:focus { outline: none; }
.qse-newsletter-campo .qse-boton { border-radius: 999px; padding: 11px 20px; font-size: 14px; }

.qse-newsletter .qse-form-consent { font-size: 12px; color: var(--qse-apagado); margin: 12px 0 0; }
.qse-newsletter .qse-form-consent a { text-decoration: underline; }
.qse-newsletter .qse-form-msg { font-size: 13px; margin: 10px 0 0; }

/* ---------- texto SEO y cierre ---------- */

.qse-texto-seo { border-top: 1px solid var(--qse-borde); margin-top: 56px; padding-top: 38px; max-width: 70ch; }
.qse-texto-seo h2 { font-family: var(--qse-serif); font-size: 27px; font-weight: 400; margin: 0 0 20px; }
.qse-texto-seo p { margin: 0 0 16px; color: var(--qse-tinta-2); }
.qse-texto-seo a { text-decoration: underline; }
.qse-texto-seo ul { margin: 0 0 16px; padding-left: 20px; color: var(--qse-tinta-2); }

.qse-relacionados { margin-top: 44px; }
.qse-relacionados h2 { font-family: var(--qse-serif); font-size: 21px; font-weight: 400; margin: 0 0 14px; }
.qse-relacionados ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.qse-relacionados a { text-decoration: none; border: 1px solid var(--qse-borde); border-radius: 999px; padding: 5px 14px; font-size: 13.5px; display: inline-block; }
.qse-relacionados a:hover { border-color: var(--qse-tinta); }
.qse-relacionados .qse-n { display: none; }

.qse-pasados-enlace, .qse-sugerir { margin-top: 26px; font-size: 14px; color: var(--qse-apagado); }
.qse-pasados-enlace a, .qse-sugerir a { text-decoration: underline; }

/* ---------- ficha de evento (diseño Evento_4a) ---------- */

.qse-ficha { padding-bottom: 60px; }
.qse-ficha-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 56px; align-items: start; }

.qse-eyebrow { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--qse-apagado); margin: 0; }
.qse-ficha .qse-h1 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; margin: 10px 0 0; }
.qse-ficha-organiza { margin: 14px 0 0; font-size: 15px; color: var(--qse-tinta-2); }
.qse-ficha-organiza a { text-decoration: underline; }

.qse-ficha-imagen { margin: 28px 0 0; }
.qse-ficha-imagen img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--qse-hover); }

.qse-ficha-seccion { margin-top: 40px; }
.qse-ficha-seccion > h2 { font-family: var(--qse-serif); font-size: 26px; font-weight: 500; margin: 0 0 14px; }
.qse-descripcion { color: var(--qse-tinta-2); }
.qse-descripcion p { margin: 0 0 16px; }
.qse-descripcion a { text-decoration: underline; }

.qse-ficha-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

/* Tarjeta lateral: es la que lleva la acción, así que va con borde de tinta, no del gris suave. */
.qse-ficha-tarjeta { position: sticky; top: 80px; border: 1px solid var(--qse-tinta); border-radius: 8px; background: var(--qse-papel); padding: 22px 22px 20px; }
.qse-ficha-cuando { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; }
.qse-chip-fecha { text-align: center; border: 1px solid var(--qse-borde-suave); border-radius: 6px; padding: 6px 0; }
.qse-chip-fecha__mes { display: block; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--qse-apagado); }
.qse-chip-fecha__dia { display: block; font-family: var(--qse-serif); font-size: 26px; font-weight: 500; line-height: 1; margin-top: 2px; }
.qse-ficha-cuando__fecha { font-size: 15px; font-weight: 600; }
.qse-ficha-cuando__hora { font-size: 14px; color: var(--qse-apagado); margin-top: 2px; }

.qse-campo { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--qse-borde-suave); }
.qse-campo dt, .qse-campo__et { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--qse-apagado); }
.qse-campo dd, .qse-campo__val { margin: 4px 0 0; font-size: 15px; font-weight: 600; }
.qse-campo__extra { font-size: 13px; font-weight: 400; color: var(--qse-apagado); margin-top: 2px; }
.qse-campo--par { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qse-campo--par > div { min-width: 0; }

.qse-cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; margin-top: 20px; border: 0; border-radius: 999px; background: var(--qse-tinta); color: var(--qse-papel); font-family: var(--qse-sans); font-size: 14px; font-weight: 700; text-decoration: none; }
.qse-cta:hover { background: #000; color: var(--qse-papel); }
.qse-cta span { font-size: 12px; }
.qse-acciones-par { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.qse-boton-linea { display: grid; place-items: center; height: 40px; border: 1px solid var(--qse-tinta); border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none; text-align: center; }
.qse-boton-linea:hover { background: var(--qse-tinta); color: var(--qse-papel); }
.qse-ficha-nota { font-size: 11px; color: var(--qse-tenue); text-align: center; margin: 14px 0 0; }

.qse-boton { display: inline-block; background: var(--qse-tinta); color: var(--qse-papel); border: 0; border-radius: 999px; padding: 12px 26px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.qse-boton:hover { background: #000; color: var(--qse-papel); }
.qse-fuente { font-size: 13px; color: var(--qse-tenue); margin-top: 26px; }
.qse-aviso-pasado { border: 1px solid var(--qse-borde); border-radius: 8px; padding: 12px 16px; font-size: 14px; margin: 20px 0 0; }

/* Relacionados en tres columnas, con su ficha compacta. */
.qse-rel { margin-top: 64px; border-top: 1px solid var(--qse-tinta); padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.qse-rel h2 { font-family: var(--qse-serif); font-size: 26px; font-weight: 500; margin: 0; }
.qse-rel a { font-size: 12px; color: var(--qse-apagado); text-decoration: underline; }
.qse-rel-lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 22px; }
.qse-rel-item { min-width: 0; }
.qse-rel-item__fecha { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--qse-apagado); }
.qse-rel-item__titulo { font-family: var(--qse-serif); font-size: 19px; font-weight: 500; line-height: 1.3; margin: 4px 0 0; }
.qse-rel-item__titulo a { text-decoration: none; }
.qse-rel-item__titulo a:hover { text-decoration: underline; }
.qse-rel-item__lugar { font-size: 13px; color: #555; margin: 4px 0 0; }

/* Banda oscura del boletín. */
/* El consentimiento es largo: sin tope, la columna del formulario se comía el titular. */
.qse-banda { margin-top: 48px; background: var(--qse-tinta); color: var(--qse-papel); border-radius: 8px; padding: 32px 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 32px; align-items: center; }
.qse-banda h2 { font-family: var(--qse-serif); font-size: 26px; font-weight: 500; line-height: 1.2; margin: 0; }
.qse-banda p { font-size: 14px; color: #bbb; margin: 6px 0 0; }
.qse-banda .qse-newsletter-campo { border-color: var(--qse-papel); }
.qse-banda .qse-newsletter-campo input[type="email"] { width: 100%; }
.qse-banda .qse-boton { background: var(--qse-papel); color: var(--qse-tinta); }
.qse-banda .qse-boton:hover { background: var(--qse-hover); color: var(--qse-tinta); }
.qse-banda .qse-form-consent { color: #bbb; }
.qse-banda .qse-form-consent a { color: var(--qse-papel); }

/* Telegram: enlace en el resumen y bloque del lateral. */
.qse-telegram { text-decoration: underline; }
.qse-telegram-grupo { display: inline-block; font-weight: 600; text-decoration: underline; margin-bottom: 10px; }
.qse-telegram-ayuda { font-size: 13.5px; color: var(--qse-apagado); margin: 0 0 10px; }

/* Bloque de enlaces internos del pie de la ficha. */
.qse-enlaces { margin-top: 64px; border-top: 1px solid var(--qse-tinta); padding: 24px 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; font-size: 13px; line-height: 2; color: var(--qse-tinta-2); }
.qse-enlaces h2 { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--qse-apagado); margin: 0 0 6px; line-height: 1.6; }
.qse-enlaces ul { list-style: none; margin: 0; padding: 0; }
.qse-enlaces a { text-decoration: none; }
.qse-enlaces a:hover { text-decoration: underline; }

/* ---------- hoja de filtros en móvil (3m / 3n) ---------- */

.qse-hoja-fondo { position: fixed; inset: 0; background: rgba(17, 17, 17, .38); z-index: 60; }
.qse-hoja-fondo[hidden] { display: none; }
.qse-hoja {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 61;
    background: var(--qse-papel);
    border-radius: 18px 18px 0 0;
    padding: 8px 18px 26px;
    max-height: 82vh;
    overflow-y: auto;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, .16);
}
.qse-hoja[hidden] { display: none; }
.qse-hoja__asa { width: 42px; height: 4px; border-radius: 999px; background: var(--qse-borde); margin: 6px auto 16px; }
.qse-hoja__cabecera { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.qse-hoja__cabecera h2 { font-family: var(--qse-serif); font-size: 25px; font-weight: 400; margin: 0; flex: 1; text-align: left; }
.qse-hoja__volver { width: 34px; height: 34px; border: 1px solid var(--qse-borde); border-radius: 50%; background: none; font-size: 15px; line-height: 1; cursor: pointer; color: var(--qse-tinta); }
.qse-hoja__grupo { border: 1px solid var(--qse-tinta); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; width: 100%; text-align: left; background: none; font: inherit; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.qse-hoja__grupo small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--qse-apagado); }
.qse-hoja__grupo b { font-weight: 600; font-size: 16px; }
.qse-hoja__seccion { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--qse-tenue); padding: 18px 14px 6px; }

/* Botón flotante abajo a la derecha (1m). Solo en móvil: en escritorio los filtros ya están en la barra. */
.qse-fab {
    display: none;
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 55;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 18px 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--qse-tinta);
    color: var(--qse-papel);
    font-family: var(--qse-sans);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.qse-fab__icono { width: 16px; height: 2px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor; display: inline-block; }
.qse-fab__n { width: 20px; height: 20px; border-radius: 50%; background: var(--qse-papel); color: var(--qse-tinta); display: grid; place-items: center; font-size: 11px; }

@media (max-width: 900px) {
    .qse-cuerpo { grid-template-columns: 1fr; gap: 40px; }
    .qse-lateral { position: static; }
    /* La tarjeta de la ficha sube por delante de la descripción: es la que lleva la acción. */
    .qse-ficha-cuerpo { grid-template-columns: 1fr; gap: 32px; }
    .qse-ficha-tarjeta { position: static; order: -1; }
    .qse-rel-lista { grid-template-columns: repeat(2, 1fr); }
    .qse-banda { grid-template-columns: 1fr; gap: 22px; }
    .qse-banda .qse-newsletter-campo input[type="email"] { width: 100%; }
    .qse-enlaces { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 700px) {
    .qse-contenedor { padding: 0 18px; }
    .qse-barra-interior { padding: 10px 18px; }
    .qse-filtro-grupo { display: none; }
    .qse-limpiar { margin-left: auto; }
    .qse-fab { display: inline-flex; }
    /* En móvil la barra se queda sin pastillas; si tampoco hay «Limpiar», sobra entera. */
    .qse-barra--sin-filtros { display: none; }
    .qse-tarjeta { grid-template-columns: 74px minmax(0, 1fr); gap: 16px; }
    .qse-tarjeta-lado { grid-column: 2; text-align: left; }
    .qse-tarjeta-imagen { width: 100%; height: 150px; }
    .qse-dia { font-size: 34px; }
    .qse-rejilla td { height: auto; min-height: 62px; }
    .qse-celda__evento { font-size: 11.5px; }
    .qse-mes__titulo { font-size: 25px; }
    .qse-rel-lista { grid-template-columns: 1fr; gap: 22px; }
    .qse-enlaces { grid-template-columns: 1fr; }
    .qse-banda { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .qse-pastilla { transition: none; }
}
