/*
 * 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;
}

/* La cabecera, la portada y la hoja de filtros se pintan fuera del <main> del plugin: si se quedan sin
   border-box, cualquier `width:100%` con padding se sale de su caja (el recuento de cada opción se
   salía del panel y el buscador quedaba recortado). */
.qse-listado, .qse-ficha, .qse-cab, .qse-home, .qse-hoja, .qse-pie,
.qse-listado *, .qse-ficha *, .qse-cab *, .qse-home *, .qse-hoja *, .qse-pie * { 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: 340px;
    max-width: min(420px, calc(100vw - 32px));
    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); }

/* Las opciones son casillas: se pueden marcar varias y no pasa nada hasta pulsar «Buscar». */
.qse-opcion { cursor: pointer; }
.qse-opcion input[type="checkbox"] { flex: 0 0 auto; width: 17px; height: 17px; margin: 0 2px 0 0; accent-color: var(--qse-tinta); cursor: pointer; }
.qse-opcion > [data-qse-nombre] { flex: 1 1 auto; min-width: 0; }
.qse-opcion__n { flex: 0 0 auto; }
.qse-opcion:has(input:checked) { background: var(--qse-tinta); color: var(--qse-papel); font-weight: 600; }
.qse-opcion:has(input:checked) .qse-opcion__n { color: rgba(255, 255, 255, .7); }
.qse-opcion:has(input:focus-visible) { outline: 2px solid var(--qse-tinta); outline-offset: 1px; }

/* Botón de buscar de la barra y de la hoja de móvil. */
.qse-barra__buscar {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    background: var(--qse-tinta);
    color: var(--qse-papel);
    padding: 9px 20px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.qse-barra__buscar:hover { opacity: .88; }

/* Controles del listado ofuscados: son botones, pero se leen como los enlaces que sustituyen. */
.qse-control {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.qse-control:hover { color: var(--qse-tinta); }
.qse-control--actual { text-decoration: none; font-weight: 700; cursor: default; }

/* Paginación: en fila, sin las viñetas del tema. Vale para los enlaces de paginate_links y para los
   botones ofuscados de las vistas filtradas, que se pintan igual. */
.qse-paginacion { margin: 32px 0 8px; }

.qse-paginacion ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qse-paginacion li { margin: 0; }

.qse-paginacion .page-numbers,
.qse-paginacion .qse-control {
    display: inline-block;
    min-width: 40px;
    padding: 8px 12px;
    border: 1px solid var(--qse-borde);
    border-radius: 8px;
    background: var(--qse-papel);
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    color: var(--qse-tinta);
}

.qse-paginacion .page-numbers:hover,
.qse-paginacion .qse-control:hover { border-color: var(--qse-tinta); }

.qse-paginacion .page-numbers.current,
.qse-paginacion .qse-control--actual {
    background: var(--qse-tinta);
    border-color: var(--qse-tinta);
    color: var(--qse-papel);
    font-weight: 700;
}

.qse-paginacion .page-numbers.dots { border-color: transparent; background: none; }

.qse-hoja__buscar {
    display: block;
    width: 100%;
    margin-top: 16px;
    border: 0;
    border-radius: 999px;
    background: var(--qse-tinta);
    color: var(--qse-papel);
    padding: 14px 20px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.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; margin-top: 5px; }
/* «+N más» abre los que no caben dentro de la propia celda. Sin JS: es un <details>. */
.qse-celda__mas > summary { font-size: 11.5px; color: var(--qse-tenue); cursor: pointer; list-style: none; display: inline-block; border-bottom: 1px dotted var(--qse-borde); }
.qse-celda__mas > summary::-webkit-details-marker { display: none; }
.qse-celda__mas > summary::marker { content: ''; }
.qse-celda__mas > summary:hover { color: var(--qse-tinta); border-bottom-color: var(--qse-tinta); }
.qse-celda__mas[open] > summary { color: var(--qse-tinta); margin-bottom: 2px; }
.qse-celda__mas[open] > summary::after { content: ' ✕'; font-size: 10px; }

/* ---------- mes compacto (móvil) ---------- */
/* Siete columnas con títulos no caben en 360 px. Bajo 700 px se pinta este mes con el número de
   eventos por día, sombreado según cuántos hay, y cada día abre su ventana con :target. */

.qse-mes__compacto { display: none; }

.qse-compacto__semana,
.qse-compacto__rejilla {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.qse-compacto__semana {
    margin-bottom: 6px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--qse-apagado);
}

label.qse-compacto__dia { cursor: pointer; }

.qse-compacto__dia {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 1px solid var(--qse-borde-suave);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    text-decoration: none;
    color: var(--qse-tinta);
    background: var(--qse-papel);
}

.qse-compacto__num { font-size: 16px; font-weight: 600; line-height: 1; }
.qse-compacto__cuenta { font-size: 11px; line-height: 1; opacity: .75; }

.qse-compacto__dia--fuera { border-color: transparent; background: transparent; color: var(--qse-tenue); }
.qse-compacto__dia--vacio { color: var(--qse-tinta); }

/* Tres niveles de densidad, los mismos que explica la leyenda. */
.qse-compacto__dia--n1 { background: #e8e5dc; border-color: #e8e5dc; }
.qse-compacto__dia--n2 { background: #8c8677; border-color: #8c8677; color: #fff; }
.qse-compacto__dia--n3 { background: var(--qse-tinta); border-color: var(--qse-tinta); color: var(--qse-papel); }

/* Días ya pasados: se ven, pero apagados y sin caja, como el resto del mes que no toca. */
.qse-compacto__dia--pasado { border-color: transparent; background: transparent; color: var(--qse-tenue); }

.qse-compacto__dia--hoy { border: 2px solid var(--qse-tinta); }

.qse-compacto__leyenda {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--qse-apagado);
}

.qse-compacto__muestra {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.qse-compacto__leyenda .qse-compacto__muestra + .qse-compacto__muestra { margin-left: 10px; }

/* ---------- ventana de un día ---------- */

/* La ventana la abre la casilla oculta de su día, no un enlace con #: así no hay href que rastrear y
   se sigue abriendo sin JavaScript. */
.qse-dia-modal { display: none; }

.qse-dia-interruptor:checked + .qse-dia-modal {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
}

.qse-dia-modal__velo {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, .55);
}

.qse-dia-modal__caja {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--qse-papel);
    border-radius: 14px 14px 0 0;
    padding: 18px 20px 28px;
}

.qse-dia-modal__fecha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    font-family: var(--qse-serif);
    font-size: 19px;
}

label.qse-dia-modal__velo, label.qse-dia-modal__cerrar { cursor: pointer; }

.qse-dia-modal__cerrar {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--qse-hover);
    color: var(--qse-tinta);
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
}

.qse-dia-modal__eventos .qse-celda__evento { margin-top: 0; font-size: 14px; line-height: 1.4; }
.qse-dia-modal__eventos .qse-celda__evento + .qse-celda__evento { margin-top: 12px; }

.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. */
/* ---------- llamada al grupo de Telegram ---------- */

.qse-telegram-ayuda { font-size: 13.5px; color: var(--qse-apagado); margin: 0 0 10px; }

/* ---------- ventana de aviso de los formularios ---------- */
/* El resultado de suscribirse se enseñaba bajo el formulario y se perdía. Ahora se destaca aquí. */

.qse-aviso-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.qse-aviso-modal[hidden] { display: none; }
.qse-aviso-modal__velo { position: absolute; inset: 0; background: rgba(17, 17, 17, .55); }

.qse-aviso-modal__caja {
    position: relative;
    max-width: 420px;
    width: 100%;
    background: #fff;
    border-radius: 14px;
    padding: 28px 26px 24px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
    font-family: 'Manrope', system-ui, sans-serif;
    color: #111;
}

.qse-aviso-modal__icono {
    width: 46px;
    height: 46px;
    margin: 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    background: #111;
}

.qse-aviso-modal.es-ok .qse-aviso-modal__icono { background: #1f9254; }
.qse-aviso-modal.es-error .qse-aviso-modal__icono { background: #b32d2e; }

.qse-aviso-modal__titulo { margin: 14px 0 0; font-family: 'Lora', Georgia, serif; font-weight: 500; font-size: 22px; }
.qse-aviso-modal__texto { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: #444; }

.qse-aviso-modal__boton {
    margin-top: 20px;
    min-height: 44px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* El espacio que ocupaba la llamada a sugerir fuente se mantiene: cierra el listado sin pegarlo al pie. */
.qse-cierre-listado { height: 28px; }

.qse-tg__icono { flex: 0 0 auto; }

/* Botón, común a las tres colocaciones. El azul es el de la marca de Telegram. */
.qse-tg-boton {
    --qse-tg-azul: #229ed9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--qse-tg-azul);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}

.qse-tg-boton:hover, .qse-tg-boton:focus { background: #1c8cc0; color: #fff; }

.qse-tg-boton--claro {
    width: auto;
    flex: 0 0 auto;
    background: var(--qse-papel);
    color: var(--qse-tinta);
    font-size: 14px;
    min-height: 42px;
}

.qse-tg-boton--claro:hover, .qse-tg-boton--claro:focus { background: #ece9e1; color: var(--qse-tinta); }

/* Tarjeta del lateral (9b) */
.qse-tg-tarjeta__eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--qse-apagado);
}

.qse-tg-tarjeta__eyebrow .qse-tg__icono { color: #229ed9; width: 30px; height: 30px; }
/* Gana a `.qse-bloque > h2`, que pone el titulillo en versalitas del resto del lateral. */
.qse-bloque > .qse-tg-tarjeta__titulo {
    margin: 6px 0 0;
    padding-top: 0;
    border-top: 0;
    font-family: var(--qse-serif);
    font-weight: 500;
    font-size: 22px;
    letter-spacing: normal;
    text-transform: none;
    color: var(--qse-tinta);
}

/* El separador superior del bloque lo pone el eyebrow, que es el primer hijo. */
.qse-tg-tarjeta > .qse-tg-tarjeta__eyebrow { padding-top: 12px; border-top: 1px solid var(--qse-tinta); }
.qse-tg-tarjeta__texto { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--qse-tinta-2); }
.qse-tg-tarjeta__miembros { margin: 12px 0 0; font-size: 13px; color: var(--qse-apagado); }
.qse-tg-tarjeta__miembros strong { color: var(--qse-tinta); }
.qse-tg-tarjeta .qse-tg-boton { margin-top: 16px; }

/* Franja entre el calendario y el listado (9c) */
.qse-tg-franja {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 28px 0;
    padding: 18px 22px;
    border-radius: 12px;
    background: var(--qse-tinta);
    color: var(--qse-papel);
}

.qse-tg-franja__icono { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #229ed9; color: #fff; flex: 0 0 auto; }
.qse-tg-franja__texto { flex: 1 1 auto; min-width: 0; }
.qse-tg-franja__titulo { margin: 0; font-family: var(--qse-serif); font-weight: 500; font-size: 21px; }
.qse-tg-franja__pie { margin: 4px 0 0; font-size: 13px; color: rgba(255, 255, 255, .72); }

/* Tira compacta de móvil (9d): oculta en escritorio, donde ya está la tarjeta del lateral. */
.qse-tg-tira { display: none; }

.qse-tg-tira__icono { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #229ed9; color: #fff; flex: 0 0 auto; }
.qse-tg-tira__titulo { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.qse-tg-tira__pie { margin: 2px 0 0; font-size: 12px; color: var(--qse-apagado); }
.qse-tg-tira__enlace { flex: 0 0 auto; margin-left: auto; font-size: 14px; font-weight: 700; color: #1c8cc0; text-decoration: none; }

/* Botón flotante, al lado del de filtros (9d). */
.qse-tg-flotante {
    display: none;
    position: fixed;
    right: calc(18px + 152px);
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 55;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #229ed9;
    color: #fff;
    place-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

/* 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 va detrás del contenido: primero se lee de qué va el evento y luego se decide. */
    .qse-ficha-cuerpo { grid-template-columns: 1fr; gap: 32px; }
    .qse-ficha-tarjeta { position: static; }
    .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; }
    .qse-tg-flotante { display: grid; }
    .qse-tg-tira { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 12px 14px; border: 1px solid var(--qse-borde); border-radius: 12px; }
    .qse-tg-franja { display: none; }
    /* 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 { display: none; }
    .qse-mes__compacto { display: block; }
    .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; }
}

/* ============================================================
   Portada del directorio ([qse_home], templates/home.php)
   Diseño Home_7b. Móvil primero; la rejilla de 3 columnas y el
   buscador en línea entran a partir de 900px.
   ============================================================ */

/* El pie usa los mismos componentes que nacieron en la portada. */
.qse-home,
.qse-pie {
    --qse-home-tinta: #111;
    --qse-home-suave: #777;
    --qse-home-borde: #d8d4cb;
    --qse-home-papel: #fbfaf7;
}

.qse-home-eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--qse-home-suave);
}

.qse-home-eyebrow--claro {
    color: #fff;
    opacity: .85;
    letter-spacing: .14em;
}

/* --- Cabecera ------------------------------------------------ */

/* El tema ya pone su cabecera y su pie: la portada no repite el título de la página. */
body:has(.qse-home) .wp-block-post-title,
body:has(.qse-home) .entry-title {
    display: none;
}

/* La portada no usa la columna estrecha del tema (650 px): va a 1440 y con sus propios márgenes. */
.wp-block-post-content > .qse-home,
.entry-content > .qse-home,
.qse-home,
.qse-pie {
    max-width: 1440px;
    width: 100%;
    margin-inline: auto;
}

/* El hero arranca pegado a la cabecera. El tema separa el <main> 72 px con un estilo EN LÍNEA
   (margin-top:var(--wp--preset--spacing--50)) puesto en su plantilla, así que sin !important no hay
   selector que lo gane. Va acotado a la portada. */
body:has(.qse-home) main.wp-block-group {
    margin-top: 0 !important;
}

body:has(.qse-home) .wp-block-post-content,
body:has(.qse-home) .entry-content {
    margin-block-start: 0;
}

/* La cabecera de la portada va superpuesta: ningún envoltorio del tema debe empujar el hero hacia
   abajo. El grupo interior de la plantilla trae su padding en un estilo en línea, de ahí el
   !important; solo se toca el de arriba y solo en la portada. */
body:has(.qse-home) .wp-site-blocks {
    position: relative;
    padding-top: 0;
}

body:has(.qse-home) main > .wp-block-group {
    padding-top: 0 !important;
}



/* 100vw incluye la barra de scroll, así que sin esto la portada desborda a lo ancho. */
html:has(.qse-home) {
    overflow-x: hidden;
}

/* A ancho completo aunque el tema encierre el contenido en una columna estrecha. */
.qse-home-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.qse-home-hero__fondo {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 20% 0%, #2f3a34 0%, transparent 60%),
        radial-gradient(100% 80% at 85% 20%, #3d3a2f 0%, transparent 55%),
        #16181a;
}

.qse-home-hero__velo {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(17, 17, 17, .55), rgba(17, 17, 17, .75));
}

/* Con foto: la imagen manda y el velo solo oscurece lo justo para que el titular se lea encima.
   El encuadre se ancla arriba porque el interés de la foto (cielo, skyline) está en la mitad alta. */
.qse-home-hero--foto .qse-home-hero__fondo {
    background-color: #0b1020;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.qse-home-hero--foto .qse-home-hero__velo {
    background: linear-gradient(to bottom, rgba(8, 12, 28, .35) 0%, rgba(8, 12, 28, .55) 55%, rgba(8, 12, 28, .8) 100%);
}

.qse-home-hero__contenido {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 88px 24px 56px;
    color: #fff;
    text-align: center;
}

.qse-home-titular {
    margin: 14px auto 0;
    max-width: 860px;
    font-family: Lora, Georgia, serif;
    font-weight: 400;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.02;
    letter-spacing: -.03em;
    text-wrap: balance;
    color: #fff;
}

.qse-home-buscador {
    margin: 32px auto 0;
    max-width: 900px;
    display: grid;
    gap: 1px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    overflow: hidden;
    text-align: left;
}

.qse-home-buscador__campo {
    margin: 0;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid #e3e0d8;
}

.qse-home-buscador__campo select {
    width: 100%;
    margin-top: 2px;
    border: 0;
    background: transparent;
    font-size: 16px;
    color: var(--qse-home-tinta);
    padding: 0;
}

.qse-home-buscador__enviar {
    margin: 0;
    padding: 8px;
    background: #fff;
}

.qse-home-buscador__enviar button {
    width: 100%;
    min-height: 48px;
    padding: 0 26px;
    border: 0;
    border-radius: 9px;
    background: var(--qse-home-tinta);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.qse-home-atajos {
    margin: 16px 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.qse-home-atajo {
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff;
    text-decoration: none;
}

.qse-home-atajo:hover,
.qse-home-atajo:focus {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

/* --- Secciones ----------------------------------------------- */

.qse-home-seccion {
    margin-top: 56px;
}

/* Separación del pie respecto al contenido de la página, sea cual sea. */
.qse-pie {
    margin-top: 64px;
    padding: 0 24px;
    font-family: Manrope, system-ui, sans-serif;
}

.qse-home-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--qse-home-tinta);
    padding-bottom: 10px;
}

.qse-home-cabecera h2 {
    margin: 0;
    font-family: Lora, Georgia, serif;
    font-weight: 500;
    font-size: 26px;
}

.qse-home-cabecera p {
    margin: 0;
    font-size: 12px;
    color: var(--qse-home-suave);
}

.qse-home-rejilla {
    margin-top: 20px;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

/* --- Eventos de la semana ------------------------------------ */

.qse-home-evento__imagen {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    border-radius: 6px;
    overflow: hidden;
    background: repeating-linear-gradient(135deg, #ecebe6 0 8px, #f4f3ef 8px 16px);
}

.qse-home-evento__imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qse-home-evento__ciudad {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff;
    color: var(--qse-home-tinta);
}

.qse-home-evento .qse-home-eyebrow {
    margin-top: 12px;
}

.qse-home-evento__titulo {
    margin: 4px 0 0;
    font-family: Lora, Georgia, serif;
    font-weight: 500;
    font-size: 19px;
    line-height: 1.3;
    text-wrap: pretty;
}

.qse-home-evento__titulo a {
    color: inherit;
    text-decoration: none;
}

.qse-home-evento__titulo a:hover,
.qse-home-evento__titulo a:focus {
    text-decoration: underline;
}

.qse-home-evento__lugar {
    margin: 4px 0 0;
    font-size: 13px;
    color: #555;
}

/* --- Ciudades ------------------------------------------------- */

.qse-home-rejilla--ciudades {
    gap: 16px;
}

.qse-home-ciudad {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    aspect-ratio: 16 / 10;
    padding: 16px 18px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background:
        linear-gradient(to top, rgba(17, 17, 17, .85), rgba(17, 17, 17, .15) 60%, transparent),
        radial-gradient(120% 100% at 30% 0%, #3a4740 0%, #22262a 70%);
}

.qse-home-ciudad__nombre {
    min-width: 0;
    font-family: Lora, Georgia, serif;
    font-weight: 500;
    font-size: clamp(20px, 3vw, 30px);
    letter-spacing: -.02em;
}

/* No se parte: es la etiqueta corta que va a la derecha del nombre. */
.qse-home-ciudad__n {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: .9;
}

/* Sin fuentes todavía: se ve, se entiende que llegará, pero no lleva a una página vacía. */
/* Con foto, el degradado del atributo style ya va encima: aquí solo el encuadre. */
.qse-home-ciudad--foto {
    background-size: cover;
    background-position: center;
    color: #fff;
}

.qse-home-ciudad--vacia {
    background: repeating-linear-gradient(135deg, #e6e3da 0 10px, #eeece5 10px 20px);
    color: #6b6659;
    cursor: default;
}

/* Una ciudad sin eventos pero con foto: se ve la foto, apagada, y sigue sin enlazar. */
.qse-home-ciudad--vacia.qse-home-ciudad--foto {
    color: #fff;
    filter: grayscale(.6) brightness(.85);
}

/* --- Categorías y etiquetas ----------------------------------- */

.qse-home-taxonomias {
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--qse-home-tinta);
    padding-top: 14px;
}

.qse-home-chips {
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qse-home-chip {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border: 1px solid var(--qse-home-borde);
    border-radius: 999px;
    color: #555;
    text-decoration: none;
}

.qse-home-chip--fuerte {
    border-color: var(--qse-home-tinta);
    color: var(--qse-home-tinta);
}

.qse-home-chip:hover,
.qse-home-chip:focus {
    background: var(--qse-home-tinta);
    border-color: var(--qse-home-tinta);
    color: #fff;
}

/* --- Cajas (organizadores / newsletter) ------------------------ */

.qse-home-cajas {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

.qse-home-caja {
    border-radius: 8px;
    padding: 28px 30px;
}

.qse-home-caja--borde {
    border: 1px solid var(--qse-home-tinta);
}

.qse-home-caja--oscura {
    background: var(--qse-home-tinta);
    color: #fff;
}

.qse-home-caja__titulo {
    margin: 8px 0 0;
    font-family: Lora, Georgia, serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.2;
}

.qse-home-caja__texto {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.qse-home-boton {
    display: inline-block;
    margin-top: 16px;
    height: 40px;
    line-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--qse-home-tinta);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.qse-home-caja--oscura .qse-form label,
.qse-home-caja--oscura .qse-form-consent {
    color: #ddd;
}

/* El consentimiento es letra pequeña: sin esto hereda el cuerpo grande del tema. */
.qse-home-caja--oscura .qse-form-consent {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.5;
}

.qse-home-caja--oscura .qse-form > p:first-of-type label {
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.qse-home-caja--oscura .qse-newsletter-campo {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-top: 18px;
}

.qse-home-caja--oscura .qse-newsletter-campo p {
    margin: 0;
}

.qse-home-caja--oscura .qse-newsletter-campo p:first-child {
    flex: 1;
}

.qse-home-caja--oscura .qse-form input[type="email"] {
    width: 100%;
    height: 42px;
    border: 1px solid #555;
    border-radius: 999px;
    padding: 0 16px;
    background: transparent;
    color: #fff;
}

.qse-home-caja--oscura .qse-boton-principal {
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--qse-home-tinta);
    font-size: 13px;
    font-weight: 700;
}

/* --- Sobre e índice -------------------------------------------- */

.qse-home-sobre p:last-child {
    margin: 8px 0 0;
    max-width: 680px;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    text-wrap: pretty;
}

.qse-home-indice {
    margin-top: 40px;
    border-top: 1px solid var(--qse-home-tinta);
    padding: 24px 0 40px;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, 1fr);
    font-size: 13px;
}

.qse-home-indice ul {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    line-height: 2;
}

.qse-home-indice a {
    color: #444;
    text-decoration: none;
}

.qse-home-indice a:hover,
.qse-home-indice a:focus {
    text-decoration: underline;
}

.qse-home-indice span {
    color: #9a9488;
}

@media (min-width: 700px) {
    .qse-home-taxonomias,
    .qse-home-cajas {
        grid-template-columns: 1fr 1fr;
    }

    .qse-home-indice {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 900px) {
    .qse-home-hero {
        min-height: 560px;
    }

    .qse-home-hero__contenido {
        padding: 104px 40px 72px;
    }

    .qse-home-buscador {
        grid-template-columns: 1fr 1fr 1fr auto;
        align-items: stretch;
    }

    .qse-home-buscador__campo {
        padding: 16px 22px;
        border-bottom: 0;
        border-right: 1px solid #e3e0d8;
    }

    .qse-home-buscador__enviar button {
        min-width: 150px;
        height: 100%;
    }

    .qse-home-rejilla {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ============================================================
   Cabecera del sitio (parts/cabecera-sitio.php)
   Sustituye a la del tema en todo el front. Dos modos: sobre el
   hero en la portada, barra clara con filtros en el resto.
   ============================================================ */

/* La cabecera se pinta fuera del <main> del plugin, así que necesita la misma paleta o las pastillas
   de filtro se quedan sin borde (un var() sin definir invalida la declaración entera). Solo las
   variables: el fondo y la tinta los pone cada modo. */
.qse-cab,
.qse-pie {
    --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;

    font-size: 16px;
    line-height: 1.6;
}

.qse-cab {
    --qse-cab-tinta: #111;
    font-family: var(--qse-sans);
}

/* En la portada la cabecera va sobre el hero: transparente sí o sí. */
.qse-cab--home {
    background: transparent;
    color: #fff;
}

.qse-cab__interior {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 1440px;
    margin-inline: auto;
    padding: 0 24px;
    min-height: 56px;
}

.qse-cab__logo {
    flex: 0 0 auto;
    font-family: Lora, Georgia, serif;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -.01em;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.qse-cab__logo em {
    font-weight: 400;
    font-style: italic;
}

.qse-cab__nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    font-weight: 600;
}

/* Los saltos a secciones son <button> para no dejar enlaces con #: se leen igual que los enlaces. */
.qse-cab__nav a,
.qse-cab__nav button {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.qse-cab__nav a:hover,
.qse-cab__nav a:focus,
.qse-cab__nav button:hover,
.qse-cab__nav button:focus {
    text-decoration: underline;
}

/* --- Modo portada: encima del hero, sin fondo --- */

.qse-cab--home {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    color: #fff;
}

/* --- Modo interior: barra clara y pegajosa con las pastillas --- */

/* El envoltorio del tema deja aire arriba; con una barra pegajosa a top:0 ese hueco sobra. */
body:has(.qse-cab) .wp-site-blocks {
    padding-top: 0;
}

.qse-cab--interior {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #e6e3da;
    color: var(--qse-cab-tinta);
}

/* La barra de filtros deja de ser una franja propia: se mete en la fila de la cabecera. */
.qse-cab--interior .qse-barra {
    position: static;
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.qse-cab--interior .qse-barra-interior {
    padding: 0;
    margin: 0;
    justify-content: flex-start;
}

/* El panel del filtro: con overflow-y:auto el navegador computa también el eje x a auto y salía una
   barra horizontal por unos pocos píxeles. */
.qse-cab .qse-panel {
    overflow-x: hidden;
}

/* --- Menú desplegable (móvil) --- */
/* Los enlaces van en el marcado dos veces: fila en escritorio y desplegable aquí. Es la única forma
   de que el mismo menú funcione sin JavaScript, porque un <details> cerrado no se abre por CSS. */

.qse-cab__menu { display: none; margin-left: auto; position: relative; }

.qse-cab__menu > summary {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    padding: 6px 2px;
}

.qse-cab__menu > summary::-webkit-details-marker { display: none; }
.qse-cab__menu > summary::marker { content: ''; }

.qse-cab__menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    min-width: 210px;
    display: flex;
    flex-direction: column;
    background: var(--qse-papel);
    color: var(--qse-tinta);
    border: 1px solid var(--qse-borde);
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
    padding: 6px;
}

.qse-cab__menu-panel a,
.qse-cab__menu-panel button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 11px 12px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--qse-tinta);
    text-decoration: none;
}

.qse-cab__menu-panel a:hover,
.qse-cab__menu-panel a:focus,
.qse-cab__menu-panel button:hover,
.qse-cab__menu-panel button:focus {
    background: var(--qse-hover);
}

/* En pantallas pequeñas los filtros los abre el botón flotante y los enlaces se pliegan en «Menú». */
@media (max-width: 899px) {
    .qse-cab--interior .qse-barra {
        display: none;
    }

    .qse-cab__nav {
        display: none;
    }

    .qse-cab__menu {
        display: block;
    }
}

/* Formularios que viven en una página propia (contacto, sugerir evento, sugerir fuente). Los que van
   dentro de una caja —newsletter, banda oscura— tienen sus reglas y no se tocan aquí. */
.qse-contacto,
.qse-sugerir,
.qse-sugerir-evento {
    max-width: 620px;
    margin: 8px 0 0;
}

.qse-contacto label,
.qse-sugerir label,
.qse-sugerir-evento label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--qse-tinta, #111);
    margin-bottom: 18px;
}

.qse-contacto input[type="text"],
.qse-contacto input[type="email"],
.qse-contacto input[type="url"],
.qse-contacto textarea,
.qse-contacto select,
.qse-sugerir input[type="text"],
.qse-sugerir input[type="email"],
.qse-sugerir input[type="url"],
.qse-sugerir textarea,
.qse-sugerir select,
.qse-sugerir-evento input[type="text"],
.qse-sugerir-evento input[type="email"],
.qse-sugerir-evento input[type="url"],
.qse-sugerir-evento textarea,
.qse-sugerir-evento select {
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    padding: 12px 14px;
    font: inherit;
    font-weight: 400;
    font-size: 16px; /* menos de 16px hace que iOS haga zoom al enfocar */
    line-height: 1.4;
    color: var(--qse-tinta, #111);
    background: #fff;
    border: 1px solid var(--qse-borde, #d8d4cb);
    border-radius: 8px;
}

.qse-contacto textarea,
.qse-sugerir textarea,
.qse-sugerir-evento textarea {
    resize: vertical;
    min-height: 96px;
}

.qse-contacto :is(input, textarea, select):focus,
.qse-sugerir :is(input, textarea, select):focus,
.qse-sugerir-evento :is(input, textarea, select):focus {
    outline: 2px solid var(--qse-tinta, #111);
    outline-offset: 1px;
    border-color: transparent;
}

.qse-contacto .qse-boton,
.qse-sugerir .qse-boton,
.qse-sugerir-evento .qse-boton {
    display: inline-block;
    padding: 13px 26px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--qse-papel, #fff);
    background: var(--qse-tinta, #111);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.qse-contacto .qse-boton:hover,
.qse-sugerir .qse-boton:hover,
.qse-sugerir-evento .qse-boton:hover {
    opacity: .88;
}

.qse-contacto .qse-boton[disabled],
.qse-sugerir .qse-boton[disabled],
.qse-sugerir-evento .qse-boton[disabled] {
    opacity: .5;
    cursor: default;
}

.qse-contacto .qse-form-msg,
.qse-sugerir .qse-form-msg,
.qse-sugerir-evento .qse-form-msg {
    font-size: 14px;
    margin: 12px 0 0;
}

/* Texto SEO con estructura: encabezados, bloque de enlaces y preguntas frecuentes. */
.qse-texto-seo h2 {
    font-family: var(--qse-serif, Georgia, serif);
    font-size: 24px;
    line-height: 1.25;
    margin: 34px 0 10px;
}

.qse-texto-seo h2:first-child { margin-top: 0; }

.qse-texto-seo h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 20px 0 6px;
}

.qse-enlaces-eje {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
}

.qse-enlaces-eje li { margin: 0; }

.qse-enlaces-eje a {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 7px 14px;
    font-size: 14px;
    text-decoration: none;
    color: var(--qse-tinta, #111);
    background: var(--qse-papel, #fff);
    border: 1px solid var(--qse-borde, #d8d4cb);
    border-radius: 999px;
}

.qse-enlaces-eje a:hover { background: var(--qse-hover, #f0eee9); }
.qse-enlaces-eje .qse-n { color: var(--qse-apagado, #777); font-size: 12px; }

.qse-faq { margin-top: 14px; }

.qse-faq__item {
    border-bottom: 1px solid var(--qse-borde-suave, #e3e0d8);
}

.qse-faq__item > summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 30px 14px 0;
    font-weight: 600;
    position: relative;
}

.qse-faq__item > summary::-webkit-details-marker { display: none; }

/* El signo cambia solo al abrir: sin JavaScript, con el estado del propio <details>. */
.qse-faq__item > summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 12px;
    font-size: 20px;
    line-height: 1;
    color: var(--qse-apagado, #777);
}

.qse-faq__item[open] > summary::after { content: '−'; }
.qse-faq__resp { padding: 0 0 16px; }
.qse-faq__resp p { margin: 0 0 10px; }
