/* ==========================================================================
   QUEDO — Sistema de diseño 2026
   Una sola hoja para web pública, panel de entidades y administración.
   Se carga DESPUÉS de Bootstrap 5.3 y lo tematiza mediante variables.
   --------------------------------------------------------------------------
   1. Fuentes
   2. Tokens
   3. Bootstrap: variables y componentes
   4. Base
   5. Piezas comunes (marca, header, footer, tarjetas, chips…)
   6. Web pública (hero, buscador, secciones, fichas)
   7. Panel (app shell)
   8. Librerías (DataTables, FullCalendar, jQuery UI, Dropzone)
   9. Compatibilidad con clases de Bootstrap 4 / SB Admin
   10. Utilidades
   ========================================================================== */

/* 1. Fuentes (autoalojadas: sin Google Fonts, más rápido y sin cesión de IP a terceros) */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/fredoka-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
}

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  --q-ink: #1f1135;
  --q-ink-2: #45355e;
  --q-muted: #6e6282;
  --q-line: #f1dde6;
  --q-line-2: #e6c9d6;
  --q-paper: #fff7fa;
  --q-paper-2: #fdebf1;
  --q-surface: #ffffff;

  --q-primary: #c92558;       /* rosa Quedo: AA como texto sobre blanco y fondos rosados (≥4,7:1) y con texto blanco encima (5,4:1) */
  --q-primary-600: #b91e4e;
  --q-primary-50: #ffeef4;
  --q-primary-100: #ffd3e1;
  --q-accent: #ffd23f;        /* amarillo — siempre con texto oscuro */
  --q-pop: #ff4f8b;           /* rosa chicle decorativo */
  --q-violet: #6c3ce9;
  --q-accent-50: #fff8d9;
  --q-success: #2e7d5b;
  --q-success-50: #e8f4ee;
  --q-info: #2f5fb3;
  --q-info-50: #eaf0fb;
  --q-warning: #a86400;
  --q-warning-50: #fff4dc;
  --q-danger: #c0262d;
  --q-danger-50: #fcebec;

  --q-font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --q-font-display: "Fredoka", "Nunito", system-ui, sans-serif;

  --q-radius-sm: 14px;
  --q-radius: 22px;
  --q-radius-lg: 32px;
  --q-radius-pill: 999px;

  --q-shadow-sm: 0 1px 2px rgba(31, 17, 53, .06);
  --q-shadow: 0 1px 2px rgba(31, 17, 53, .05), 0 6px 20px rgba(31, 17, 53, .06);
  --q-shadow-lg: 0 2px 6px rgba(31, 17, 53, .06), 0 24px 48px rgba(31, 17, 53, .12);

  --q-header-h: 68px;
  --q-sidebar-w: 248px;
  --q-ease: cubic-bezier(.2, .7, .2, 1);
}

/* 3. Bootstrap ------------------------------------------------------------ */
:root,
[data-bs-theme="light"] {
  --bs-body-font-family: var(--q-font);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.55;
  --bs-body-color: var(--q-ink);
  --bs-body-color-rgb: 31, 17, 53;
  --bs-body-bg: var(--q-paper);
  --bs-secondary-color: var(--q-muted);
  --bs-tertiary-bg: var(--q-paper-2);
  --bs-emphasis-color: var(--q-ink);
  --bs-heading-color: var(--q-ink);
  --bs-border-color: var(--q-line);
  --bs-border-radius: var(--q-radius-sm);
  --bs-border-radius-sm: 6px;
  --bs-border-radius-lg: var(--q-radius);
  --bs-border-radius-xl: var(--q-radius-lg);
  --bs-primary: var(--q-primary);
  --bs-primary-rgb: 201, 37, 88;
  --bs-primary-text-emphasis: var(--q-primary-600);
  --bs-primary-bg-subtle: var(--q-primary-50);
  --bs-primary-border-subtle: var(--q-primary-100);
  --bs-secondary-rgb: 69, 53, 94;
  --bs-success-rgb: 46, 125, 91;
  --bs-info-rgb: 47, 95, 179;
  --bs-warning-rgb: 255, 210, 63;
  --bs-danger-rgb: 192, 38, 45;
  --bs-dark-rgb: 31, 17, 53;
  --bs-link-color: var(--q-primary);
  --bs-link-color-rgb: 201, 37, 88;
  --bs-link-hover-color: var(--q-primary-600);
  --bs-link-hover-color-rgb: 185, 30, 78;
  --bs-focus-ring-color: rgba(201, 37, 88, .25);
}

/* Botones */
.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.1rem;
  --bs-btn-padding-y: .55rem;
  --bs-btn-border-radius: var(--q-radius-pill);
  --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(201, 37, 88, .25);
  letter-spacing: -.005em;
  transition: background-color .15s var(--q-ease), border-color .15s var(--q-ease), color .15s var(--q-ease), transform .15s var(--q-ease), box-shadow .15s var(--q-ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { --bs-btn-padding-x: .8rem; --bs-btn-padding-y: .3rem; --bs-btn-font-size: .85rem; }
.btn-lg { --bs-btn-padding-x: 1.5rem; --bs-btn-padding-y: .75rem; --bs-btn-font-size: 1.05rem; }
.btn-primary {
  --bs-btn-bg: var(--q-primary); --bs-btn-border-color: var(--q-primary);
  --bs-btn-hover-bg: var(--q-primary-600); --bs-btn-hover-border-color: var(--q-primary-600);
  --bs-btn-active-bg: var(--q-primary-600); --bs-btn-active-border-color: var(--q-primary-600);
  --bs-btn-disabled-bg: var(--q-primary); --bs-btn-disabled-border-color: var(--q-primary);
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
}
.btn-secondary, .btn-dark {
  --bs-btn-bg: var(--q-ink); --bs-btn-border-color: var(--q-ink);
  --bs-btn-hover-bg: #33204f; --bs-btn-hover-border-color: #33204f;
  --bs-btn-active-bg: #000; --bs-btn-active-border-color: #000;
  --bs-btn-disabled-bg: var(--q-ink); --bs-btn-disabled-border-color: var(--q-ink);
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
}
.btn-light, .btn-outline-secondary, .btn-default {
  --bs-btn-bg: var(--q-surface); --bs-btn-border-color: var(--q-line-2); --bs-btn-color: var(--q-ink);
  --bs-btn-hover-bg: var(--q-paper-2); --bs-btn-hover-border-color: var(--q-line-2); --bs-btn-hover-color: var(--q-ink);
  --bs-btn-active-bg: var(--q-paper-2); --bs-btn-active-border-color: var(--q-ink-2); --bs-btn-active-color: var(--q-ink);
}
.btn-outline-primary {
  --bs-btn-color: var(--q-primary); --bs-btn-border-color: var(--q-primary);
  --bs-btn-hover-bg: var(--q-primary); --bs-btn-hover-border-color: var(--q-primary); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--q-primary-600); --bs-btn-active-border-color: var(--q-primary-600);
}
.btn-success {
  --bs-btn-bg: var(--q-success); --bs-btn-border-color: var(--q-success);
  --bs-btn-hover-bg: #256a4c; --bs-btn-hover-border-color: #256a4c;
  --bs-btn-active-bg: #1e573e; --bs-btn-active-border-color: #1e573e;
}
.btn-danger {
  --bs-btn-bg: var(--q-danger); --bs-btn-border-color: var(--q-danger);
  --bs-btn-hover-bg: #a11f25; --bs-btn-hover-border-color: #a11f25;
  --bs-btn-active-bg: #8b1a20; --bs-btn-active-border-color: #8b1a20;
}
.btn-info {
  --bs-btn-bg: var(--q-info); --bs-btn-border-color: var(--q-info); --bs-btn-color: #fff;
  --bs-btn-hover-bg: #264f97; --bs-btn-hover-border-color: #264f97; --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #1f4280; --bs-btn-active-border-color: #1f4280; --bs-btn-active-color: #fff;
}
.btn-warning {
  --bs-btn-bg: var(--q-accent); --bs-btn-border-color: var(--q-accent); --bs-btn-color: var(--q-ink);
  --bs-btn-hover-bg: #ffc400; --bs-btn-hover-border-color: #ffc400; --bs-btn-hover-color: var(--q-ink);
  --bs-btn-active-bg: #f5b800; --bs-btn-active-border-color: #f5b800; --bs-btn-active-color: var(--q-ink);
}
.btn-link { --bs-btn-color: var(--q-primary); --bs-btn-hover-color: var(--q-primary-600); font-weight: 600; text-decoration: none; }
.btn-icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border-radius: 50%; border: 1px solid var(--q-line); background: var(--q-surface); color: var(--q-ink);
}
.btn-icon:hover { background: var(--q-paper-2); color: var(--q-ink); }

/* Formularios */
.form-control, .form-select {
  border-color: var(--q-line-2);
  border-radius: var(--q-radius-sm);
  background-color: var(--q-surface);
  padding: .6rem .85rem;
  color: var(--q-ink);
  transition: border-color .15s var(--q-ease), box-shadow .15s var(--q-ease);
}
.form-control::placeholder { color: #9a93a6; }
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: var(--q-primary);
  box-shadow: 0 0 0 .2rem rgba(201, 37, 88, .18);
}
.form-control:disabled, .form-control[readonly] { background-color: var(--q-paper-2); }
.form-label, label { font-weight: 500; color: var(--q-ink-2); }
.form-text { color: var(--q-muted); }
.form-check-input { border-color: var(--q-line-2); }
.form-check-input:checked { background-color: var(--q-primary); border-color: var(--q-primary); }
.form-switch .form-check-input:focus { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23f59ab8'/%3e%3c/svg%3e"); }
.input-group-text {
  background: var(--q-paper-2);
  border-color: var(--q-line-2);
  color: var(--q-ink-2);
  font-weight: 500;
  min-width: 2.75rem;
  justify-content: center;
}
.input-group > .form-control, .input-group > .form-select { min-width: 0; }
.form-floating > .form-control, .form-floating > .form-select { padding-top: 1.625rem; padding-bottom: .625rem; }
.form-floating > label { color: var(--q-muted); font-weight: 400; }
.was-validated .form-control:invalid, .form-control.is-invalid { border-color: var(--q-danger); }
.invalid-feedback { color: var(--q-danger); }

/* Tarjetas */
.card {
  --bs-card-border-color: var(--q-line);
  --bs-card-border-radius: var(--q-radius);
  --bs-card-inner-border-radius: calc(var(--q-radius) - 1px);
  --bs-card-cap-bg: transparent;
  --bs-card-bg: var(--q-surface);
  box-shadow: var(--q-shadow-sm);
}
.card-header { border-bottom-color: var(--q-line); padding: 1rem 1.25rem; font-weight: 600; }
.card-body { padding: 1.25rem; }
.card-footer { border-top-color: var(--q-line); }

/* Menús desplegables */
.dropdown-menu {
  --bs-dropdown-border-color: var(--q-line);
  --bs-dropdown-border-radius: var(--q-radius);
  --bs-dropdown-link-hover-bg: var(--q-paper-2);
  --bs-dropdown-link-active-bg: var(--q-primary);
  --bs-dropdown-padding-y: .4rem;
  --bs-dropdown-item-padding-y: .5rem;
  --bs-dropdown-font-size: .925rem;
  box-shadow: var(--q-shadow-lg);
  padding: .4rem;
}
.dropdown-item { border-radius: 8px; display: flex; align-items: center; gap: .6rem; }
.dropdown-item i { width: 1.1rem; text-align: center; color: var(--q-muted); }
.dropdown-header { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--q-muted); }
.dropdown-divider { border-color: var(--q-line); }

/* Modales */
.modal {
  --bs-modal-border-radius: var(--q-radius-lg);
  --bs-modal-inner-border-radius: calc(var(--q-radius-lg) - 1px);
  --bs-modal-border-color: transparent;
  --bs-modal-header-border-color: var(--q-line);
  --bs-modal-footer-border-color: var(--q-line);
  --bs-modal-padding: 1.5rem;
}
.modal-content { box-shadow: var(--q-shadow-lg); }
.modal-title { font-family: var(--q-font-display); font-weight: 700; }
.modal-backdrop { --bs-backdrop-bg: #17141f; --bs-backdrop-opacity: .55; }

/* Navegación / pestañas / paginación */
.nav-tabs { --bs-nav-tabs-border-color: var(--q-line); --bs-nav-tabs-link-active-color: var(--q-ink); --bs-nav-tabs-link-active-border-color: var(--q-line) var(--q-line) var(--q-surface); }
.nav-tabs .nav-link { color: var(--q-muted); font-weight: 600; }
.nav-pills { --bs-nav-pills-border-radius: var(--q-radius-pill); --bs-nav-pills-link-active-bg: var(--q-ink); }
.nav-pills .nav-link { color: var(--q-ink-2); font-weight: 600; }
.pagination {
  --bs-pagination-color: var(--q-ink);
  --bs-pagination-border-color: var(--q-line);
  --bs-pagination-hover-bg: var(--q-paper-2);
  --bs-pagination-hover-color: var(--q-ink);
  --bs-pagination-hover-border-color: var(--q-line);
  --bs-pagination-active-bg: var(--q-ink);
  --bs-pagination-active-border-color: var(--q-ink);
  --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(201, 37, 88, .2);
  gap: .35rem;
}
.pagination .page-link { border-radius: 10px !important; min-width: 2.4rem; text-align: center; font-weight: 600; }

/* Acordeón */
.accordion {
  --bs-accordion-border-color: var(--q-line);
  --bs-accordion-border-radius: var(--q-radius);
  --bs-accordion-inner-border-radius: calc(var(--q-radius) - 1px);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(201, 37, 88, .18);
  --bs-accordion-active-bg: var(--q-primary-50);
  --bs-accordion-active-color: var(--q-ink);
  --bs-accordion-bg: var(--q-surface);
}
.accordion-button { font-weight: 600; }

/* Alertas, badges, tablas, progreso */
.alert { --bs-alert-border-radius: var(--q-radius); border-width: 1px; }
.alert-primary { --bs-alert-bg: var(--q-primary-50); --bs-alert-border-color: var(--q-primary-100); --bs-alert-color: var(--q-primary-600); }
.alert-success { --bs-alert-bg: var(--q-success-50); --bs-alert-border-color: #c6e4d4; --bs-alert-color: #1e573e; }
.alert-info { --bs-alert-bg: var(--q-info-50); --bs-alert-border-color: #cddcf4; --bs-alert-color: #1f4280; }
.alert-warning { --bs-alert-bg: var(--q-warning-50); --bs-alert-border-color: #f6dea8; --bs-alert-color: #7a4a00; }
.alert-danger { --bs-alert-bg: var(--q-danger-50); --bs-alert-border-color: #f3c5c8; --bs-alert-color: #8b1a20; }
.alert-secondary, .alert-light { --bs-alert-bg: var(--q-paper-2); --bs-alert-border-color: var(--q-line); --bs-alert-color: var(--q-ink-2); }
.badge { font-weight: 600; letter-spacing: .01em; border-radius: var(--q-radius-pill); padding: .35em .65em; }
.table {
  --bs-table-border-color: var(--q-line);
  --bs-table-striped-bg: rgba(31, 17, 53, .025);
  --bs-table-hover-bg: rgba(201, 37, 88, .04);
  --bs-table-bg: transparent;
  vertical-align: middle;
}
.table > thead th {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--q-muted); font-weight: 700; border-bottom-width: 1px; white-space: nowrap;
}
.progress { --bs-progress-bg: var(--q-paper-2); --bs-progress-bar-bg: var(--q-primary); border-radius: var(--q-radius-pill); }

/* Carrusel */
.carousel-control-prev, .carousel-control-next { width: 56px; opacity: 1; }
.carousel-control-prev-icon, .carousel-control-next-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background-color: rgba(255, 255, 255, .92); background-size: 45%;
  box-shadow: var(--q-shadow);
  filter: invert(1) grayscale(1) brightness(.1);
}
.carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; border: 0; }

/* 4. Base ------------------------------------------------------------------ */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--q-font);
  background: var(--q-paper);
  color: var(--q-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, .h1, .h2, .h3, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--q-font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.08;
}
h4, h5, h6, .h4, .h5, .h6 { font-weight: 650; letter-spacing: -.01em; }
a { color: var(--q-primary); text-decoration: none; }
a:hover { color: var(--q-primary-600); }
img { max-width: 100%; }
::selection { background: var(--q-accent); color: var(--q-ink); }
:focus-visible { outline: 2px solid var(--q-primary); outline-offset: 2px; }
hr { border-color: var(--q-line); opacity: 1; }
.text-muted, .text-secondary { color: var(--q-muted) !important; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--q-ink); color: #fff; padding: .6rem 1rem; border-radius: var(--q-radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cfc7ba; border-radius: 10px; border: 2px solid var(--q-paper); }
::-webkit-scrollbar-thumb:hover { background: #b3aa9b; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 5. Piezas comunes ------------------------------------------------------- */

/* Marca */
.q-logo {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--q-font-display); font-weight: 700; font-size: 1.7rem;
  letter-spacing: -.01em; line-height: 1; color: var(--q-ink); text-decoration: none;
}
.q-logo:hover { color: var(--q-ink); }
.q-logo__mark { width: 32px; height: 32px; flex: none; }
.q-logo__dot { color: var(--q-primary); }
.q-logo--light, .q-logo--light:hover { color: #fff; }

/* Header público */
.q-header {
  position: sticky; top: 0; z-index: 1030;
  height: var(--q-header-h);
  background: rgba(255, 247, 250, .86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--q-ease), background-color .2s var(--q-ease);
}
.q-header.is-scrolled { border-bottom-color: var(--q-line); background: rgba(255, 247, 250, .95); }
.q-header__inner { height: 100%; display: flex; align-items: center; gap: 1.25rem; }
.q-header__nav { display: flex; align-items: center; gap: .25rem; margin-left: 1rem; }
.q-header__nav a {
  color: var(--q-ink-2); font-weight: 550; font-size: .95rem;
  padding: .45rem .8rem; border-radius: var(--q-radius-pill);
}
.q-header__nav a:hover, .q-header__nav a.active { background: var(--q-paper-2); color: var(--q-ink); }
.q-header__actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.q-header--overlay { position: fixed; left: 0; right: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.q-header--overlay .q-logo, .q-header--overlay .q-header__nav a { color: #fff; }
.q-header--overlay .q-header__nav a:hover { background: rgba(255, 255, 255, .14); }
.q-header--overlay.is-scrolled { background: rgba(255, 247, 250, .95); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.q-header--overlay.is-scrolled .q-logo, .q-header--overlay.is-scrolled .q-header__nav a { color: var(--q-ink); }
@media (max-width: 767.98px) { .q-header__nav { display: none; } }

.q-avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--q-paper-2); border: 2px solid var(--q-surface); box-shadow: 0 0 0 1px var(--q-line);
}
.q-avatar--lg { width: 72px; height: 72px; }
.q-user-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 3px 12px 3px 3px; border-radius: var(--q-radius-pill);
  border: 1px solid var(--q-line); background: var(--q-surface); color: var(--q-ink);
  font-weight: 600; font-size: .9rem;
}
.q-user-btn:hover, .q-user-btn[aria-expanded="true"] { background: var(--q-paper-2); color: var(--q-ink); }
.q-user-btn::after { display: none; }
.q-icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--q-ink-2); background: transparent; border: 0;
}
.q-icon-btn:hover { background: var(--q-paper-2); color: var(--q-ink); }
.q-icon-btn::after { display: none !important; }
.q-count {
  position: absolute; top: 3px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--q-primary); color: #fff; font-size: .68rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--q-paper);
}
.q-count:empty, .q-count[data-count="0"] { display: none; }

.q-noti-menu { width: min(360px, 92vw); }
.q-noti {
  display: flex; gap: .75rem; align-items: flex-start; padding: .6rem; border-radius: 10px;
  color: var(--q-ink); white-space: normal;
}
.q-noti:hover { background: var(--q-paper-2); color: var(--q-ink); }
.q-noti img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.q-noti__title { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.q-noti__meta { font-size: .78rem; color: var(--q-muted); }
.q-noti__dot { width: 8px; height: 8px; border-radius: 50%; margin-top: .4rem; flex: none; background: var(--q-accent); }
.q-noti__dot--U { background: var(--q-danger); }
.q-noti__dot--A { background: var(--q-info); }
.q-empty-note { padding: 1rem; text-align: center; color: var(--q-muted); font-size: .9rem; }

/* Footer */
.q-footer {
  background: var(--q-ink); color: #e2d8ee;
  padding: 4rem 0 2rem; margin-top: 0;
}
.q-footer a { color: #e2d8ee; }
.q-footer a:hover { color: #fff; }
.q-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.q-footer h2 {
  font-family: var(--q-font); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: #a393b8; font-weight: 700; margin-bottom: 1rem;
}
.q-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.q-footer__about { max-width: 34ch; font-size: .95rem; line-height: 1.6; }
.q-footer__social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.q-footer__social a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .07); color: #fff;
}
.q-footer__social a:hover { background: var(--q-primary); }
.q-footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: #a393b8;
}
@media (max-width: 991.98px) { .q-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .q-footer__grid { grid-template-columns: 1fr; } .q-footer { padding-top: 3rem; } }

/* Chips y etiquetas */
.q-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem; border-radius: var(--q-radius-pill);
  background: var(--q-surface); border: 1px solid var(--q-line);
  color: var(--q-ink-2); font-size: .85rem; font-weight: 550; white-space: nowrap;
}
a.q-chip:hover, .q-chip.is-active { border-color: var(--q-ink); color: var(--q-ink); }
.q-chip.is-active { background: var(--q-ink); color: #fff; }
.q-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--q-primary);
}
.q-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .6rem; border-radius: var(--q-radius-pill);
  font-size: .78rem; font-weight: 650; background: var(--q-paper-2); color: var(--q-ink-2);
}
.q-pill--accent { background: var(--q-accent); color: var(--q-ink); }
.q-pill--primary { background: var(--q-primary-50); color: var(--q-primary-600); }
.q-pill--success { background: var(--q-success-50); color: #1e573e; }

/* Tarjeta de evento */
.q-event {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--q-surface); border: 1px solid var(--q-line); border-radius: var(--q-radius);
  overflow: hidden; color: var(--q-ink);
  transition: transform .2s var(--q-ease), box-shadow .2s var(--q-ease), border-color .2s var(--q-ease);
}
.q-event:hover { transform: translateY(-3px); box-shadow: var(--q-shadow-lg); border-color: transparent; color: var(--q-ink); }
.q-event__media { position: relative; aspect-ratio: 16 / 10; background: var(--q-paper-2); overflow: hidden; }
.q-event__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--q-ease); }
.q-event:hover .q-event__media img { transform: scale(1.04); }
.q-event__date {
  position: absolute; left: .75rem; top: .75rem;
  background: var(--q-surface); border-radius: 10px; padding: .35rem .55rem; text-align: center;
  line-height: 1; box-shadow: var(--q-shadow); min-width: 48px;
}
.q-event__date b { display: block; font-family: var(--q-font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.q-event__date span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--q-primary); margin-top: .15rem; }
.q-event__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.q-event__title {
  font-family: var(--q-font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.005em; line-height: 1.2; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.q-event__meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; color: var(--q-muted); font-size: .85rem; margin-top: auto; padding-top: .35rem; }
.q-event__meta i { width: 1rem; color: var(--q-primary); }
.q-event__org { font-size: .85rem; color: var(--q-ink-2); font-weight: 550; }
.q-event--row { flex-direction: row; }
.q-event--row .q-event__media { aspect-ratio: auto; width: 38%; min-height: 150px; flex: none; }
@media (max-width: 575.98px) { .q-event--row { flex-direction: column; } .q-event--row .q-event__media { width: 100%; aspect-ratio: 16 / 10; } }

/* Tarjeta genérica */
.q-card {
  background: var(--q-surface); border: 1px solid var(--q-line); border-radius: var(--q-radius);
  padding: 1.5rem; box-shadow: var(--q-shadow-sm);
}
.q-card--flush { padding: 0; overflow: hidden; }
.q-card__title { font-family: var(--q-font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem; letter-spacing: -.005em; }

/* Estado vacío */
.q-empty {
  text-align: center; padding: 3rem 1.5rem; border: 1.5px dashed var(--q-line-2); border-radius: var(--q-radius);
  color: var(--q-muted); background: var(--q-surface);
}
.q-empty i { font-size: 2rem; color: var(--q-line-2); margin-bottom: .75rem; display: block; }

/* 6. Web pública ---------------------------------------------------------- */
.q-section { padding: 4.5rem 0; }
.q-section--tight { padding: 3rem 0; }
.q-section--alt { background: var(--q-surface); border-top: 1px solid var(--q-line); border-bottom: 1px solid var(--q-line); }
.q-section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.q-section__title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin: 0; }
.q-section__lead { color: var(--q-muted); margin: .5rem 0 0; max-width: 60ch; font-size: 1.05rem; }
.q-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--q-primary); margin-bottom: .6rem; display: block; }

/* Hero */
.q-hero {
  position: relative; isolation: isolate; color: #fff;
  min-height: min(680px, 88vh); display: grid; align-items: center;
  padding: calc(var(--q-header-h) + 3rem) 0 4rem;
  grid-template-columns: minmax(0, 1fr);
  background: var(--q-ink);
}
.q-hero__bg { position: absolute; inset: 0; z-index: -2; }
.q-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.q-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 70% at 0% 100%, rgba(255, 79, 139, .7), transparent 60%),
    radial-gradient(70% 60% at 100% 0%, rgba(108, 60, 233, .45), transparent 60%),
    linear-gradient(180deg, rgba(31, 17, 53, .55) 0%, rgba(31, 17, 53, .35) 45%, rgba(31, 17, 53, .85) 100%);
}
.q-hero__title {
  font-size: clamp(2.8rem, 7.5vw, 5.8rem); font-weight: 700; letter-spacing: -.01em; line-height: .98;
  max-width: 13ch; margin-bottom: 1.25rem; color: #fff;
}
.q-hero__title em { font-style: normal; color: var(--q-accent); }
.q-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .86); max-width: 46ch; margin-bottom: 2rem; }
.q-hero__quick { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.q-hero__quick a {
  color: #fff; font-size: .88rem; font-weight: 550; padding: .4rem .85rem; border-radius: var(--q-radius-pill);
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.q-hero__quick a:hover { background: rgba(255, 255, 255, .24); color: #fff; }

/* Buscador */
.q-search {
  display: flex; align-items: center; gap: .5rem;
  background: var(--q-surface); border-radius: var(--q-radius-pill);
  padding: .4rem .4rem .4rem 1.25rem; box-shadow: var(--q-shadow-lg); max-width: 720px;
}
.q-search > i { color: var(--q-muted); font-size: 1.05rem; }
.q-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 1.05rem; padding: .7rem .25rem; color: var(--q-ink);
}
.q-search input::placeholder { color: #8d8699; }
.q-search .btn { flex: none; }
.q-search__adv {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid var(--q-line); background: var(--q-surface); color: var(--q-ink-2);
}
.q-search__adv:hover, .q-search__adv[aria-expanded="true"] { background: var(--q-paper-2); color: var(--q-ink); }
@media (max-width: 575.98px) {
  .q-search { padding-left: 1rem; }
  .q-search .btn .q-btn-label { display: none; }
}

/* Panel de filtros avanzados */
.q-filters {
  margin-top: 1rem; max-width: 1100px; color: var(--q-ink); text-align: left;
  background: var(--q-surface); border-radius: var(--q-radius-lg); box-shadow: var(--q-shadow-lg);
}
.q-filters .accordion-item { border: 0; background: transparent; }
.q-filters .accordion-body { padding: 1.5rem; }
.q-filters .titlefilter {
  font-family: var(--q-font-display); font-size: 1.15rem; font-weight: 700;
  border: 0; margin: 0 0 1rem; width: auto; padding: 0 .75rem;
}
.q-filters .filterdiv, .q-filters .filterdivesp {
  border: 1px solid transparent; border-radius: 10px; padding: .45rem .7rem; margin-bottom: .25rem;
  font-size: 1rem; transition: background-color .15s var(--q-ease);
}
.q-filters .filterdiv:hover, .q-filters .filterdivesp:hover { background: var(--q-paper-2); }
.q-filters .filterdiv.active, .q-filters .filterdivesp.active {
  background: var(--q-primary-50) !important; border-color: var(--q-primary-100);
  border-bottom-width: 1px; padding: .45rem .7rem; font-size: 1rem;
}
.q-filters .filterdiv h2, .q-filters .filterdivesp h2,
.q-filters .filterdiv.active h2, .q-filters .filterdivesp.active h2 {
  font-family: var(--q-font); font-size: .95rem !important; font-weight: 600; margin: 0; color: var(--q-ink); letter-spacing: 0;
}
.q-filters .filterestart, .q-filters .filterload {
  border-radius: var(--q-radius-pill); padding: .55rem 1rem; border: 0; font-weight: 600; margin-top: .5rem;
}
.q-filters .filterestart { background: var(--q-paper-2); color: var(--q-ink); }
.q-filters .filterestart:hover { background: var(--q-line); transform: none; }
.q-filters .filterload { background: var(--q-primary); color: #fff; }
.q-filters .filterload:hover { background: var(--q-primary-600); transform: none; }
.q-filters .filterestart h2, .q-filters .filterload h2 { font-family: var(--q-font); font-size: .95rem; font-weight: 650; margin: 0; letter-spacing: 0; color: inherit; }
.q-filters .folder {
  height: auto; min-height: 44px; max-height: 140px; overflow-y: auto; gap: .35rem;
  padding: .5rem; border: 1px dashed var(--q-line-2); border-radius: 10px; background: var(--q-paper);
}
.innertag {
  display: inline-flex !important; align-items: center; gap: .15rem; height: auto !important;
  margin: 0 !important; padding: .2rem .25rem .2rem .7rem; width: auto !important;
  border: 1px solid var(--q-line) !important; border-radius: var(--q-radius-pill) !important; background: var(--q-surface) !important;
}
.innertag label { margin: 0 !important; font-size: .82rem !important; font-weight: 550 !important; }
.innertag .button { margin: 0 !important; width: 22px; height: 22px; border-radius: 50%; color: var(--q-muted) !important; font-size: .8rem !important; }
.innertag .button:hover { background: var(--q-danger-50) !important; color: var(--q-danger) !important; }

/* Categorías (mosaico) */
.q-cats { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.q-cat {
  position: relative; border-radius: var(--q-radius); overflow: hidden; color: #fff; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.25rem; grid-column: span 2;
}
.q-cat--wide { grid-column: span 3; }
.q-cat--tall { grid-row: span 2; }
.q-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--q-ease); }
.q-cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(31, 17, 53, .82)); }
.q-cat:hover { color: #fff; }
.q-cat:hover img { transform: scale(1.05); }
.q-cat h3 { font-size: 1.5rem; margin: 0; color: #fff; }
.q-cat span { font-size: .9rem; opacity: .85; font-weight: 500; }
.q-cat__arrow {
  position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--q-ink);
  transform: translateY(-6px); opacity: 0; transition: all .25s var(--q-ease);
}
.q-cat:hover .q-cat__arrow { transform: none; opacity: 1; }
@media (max-width: 991.98px) {
  .q-cats { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .q-cat, .q-cat--wide { grid-column: span 1; }
  .q-cat--tall { grid-row: span 1; }
}
@media (max-width: 479.98px) { .q-cats { grid-template-columns: 1fr; } }

/* Carril horizontal de tarjetas */
.q-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr);
  gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1.25rem;
  margin: 0 -.25rem; scrollbar-width: thin;
}
.q-rail > * { scroll-snap-align: start; }
@media (min-width: 1200px) { .q-rail { grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); } }
.q-rail-nav { display: flex; gap: .5rem; }

/* Destacado grande */
.q-feature {
  position: relative; display: grid; grid-template-columns: 1.25fr 1fr; min-height: 420px;
  border-radius: var(--q-radius-lg); overflow: hidden; background: var(--q-ink); color: #fff;
}
.q-feature__media { position: relative; }
.q-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.q-feature__body { padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; gap: .9rem; }
.q-feature__title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); color: #fff; margin: 0; }
.q-feature__meta { color: rgba(255, 255, 255, .78); display: grid; gap: .35rem; }
.q-feature__meta i { width: 1.25rem; color: var(--q-accent); }
@media (max-width: 767.98px) {
  .q-feature { grid-template-columns: 1fr; }
  .q-feature__media { aspect-ratio: 16 / 10; }
}
.q-feature-carousel .carousel-indicators { justify-content: flex-end; margin: 0 1.5rem 1.25rem; }

/* Banda de registro */
.q-cta {
  border-radius: var(--q-radius-lg); padding: clamp(2rem, 5vw, 4rem);
  background: var(--q-accent); color: var(--q-ink); position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center;
}
.q-cta h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.01em; margin-bottom: 1rem; }
.q-cta ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.q-cta li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 550; font-size: 1.02rem; }
.q-cta li i {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--q-ink); color: var(--q-accent); font-size: .75rem; margin-top: .05rem;
}
.q-cta::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  border: 40px solid rgba(31, 17, 53, .07);
}
@media (max-width: 767.98px) { .q-cta { grid-template-columns: 1fr; } }

/* Cabecera de página interior */
.q-pagehead { padding: 3rem 0 2rem; }
.q-pagehead h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0; }
.q-pagehead p { color: var(--q-muted); font-size: 1.1rem; margin: .75rem 0 0; max-width: 60ch; }
.q-breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--q-muted); margin-bottom: 1rem; }
.q-breadcrumb a { color: var(--q-muted); }
.q-breadcrumb a:hover { color: var(--q-ink); }

/* Texto largo (legales, FAQs, contenido de eventos) */
.q-prose { max-width: 72ch; font-size: 1.02rem; line-height: 1.7; color: var(--q-ink-2); }
.q-prose h1, .q-prose h2, .q-prose h3 { color: var(--q-ink); margin: 2rem 0 .75rem; }
.q-prose h2 { font-size: 1.6rem; }
.q-prose h3 { font-size: 1.25rem; }
.q-prose p { margin-bottom: 1rem; }
.q-prose a { text-decoration: underline; text-underline-offset: 2px; }
.q-prose ul, .q-prose ol { padding-left: 1.25rem; }
.q-prose li { margin-bottom: .35rem; }
.q-legal { background: var(--q-surface); border: 1px solid var(--q-line); border-radius: var(--q-radius-lg); padding: clamp(1.5rem, 4vw, 3rem); }
.q-legal h1, .q-legal h2, .q-legal h3, .q-legal h4 { font-family: var(--q-font-display); color: var(--q-ink) !important; }
.q-legal p, .q-legal li { color: var(--q-ink-2) !important; line-height: 1.7; }

/* Ficha (evento / entidad / ubicación) */
.q-ficha-hero {
  position: relative; border-radius: var(--q-radius-lg); overflow: hidden; background: var(--q-ink);
  aspect-ratio: 21 / 8; width: 100%;
}
.q-ficha-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.q-ficha-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(31, 17, 53, .6)); }
.q-ficha-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.q-ficha-aside { position: sticky; top: calc(var(--q-header-h) + 1rem); display: grid; gap: 1rem; }
.q-facts { display: grid; gap: 1rem; }
.q-fact { display: flex; gap: .85rem; align-items: flex-start; }
.q-fact i {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--q-primary-50); color: var(--q-primary);
}
.q-fact small { display: block; color: var(--q-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.q-fact strong { font-weight: 600; }
@media (max-width: 991.98px) {
  .q-ficha-grid { grid-template-columns: 1fr; }
  .q-ficha-aside { position: static; }
  .q-ficha-hero { aspect-ratio: 4 / 3; }
}

/* Auth (login / registro) */
.q-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--q-paper); }
.q-auth__art { position: relative; overflow: hidden; background: var(--q-ink); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.q-auth__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .75; }
.q-auth__art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(31, 17, 53, .2), rgba(31, 17, 53, .85)); }
.q-auth__quote { font-family: var(--q-font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; max-width: 16ch; }
.q-auth__panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 5vw, 4rem); }
.q-auth__box { width: 100%; max-width: 440px; margin: 0 auto; }
.q-auth__box h1 { font-size: 2.2rem; margin-bottom: .5rem; }
.q-auth__box > p { color: var(--q-muted); margin-bottom: 2rem; }
.q-divider { display: flex; align-items: center; gap: 1rem; color: var(--q-muted); font-size: .85rem; margin: 1.5rem 0; }
.q-divider::before, .q-divider::after { content: ""; flex: 1; height: 1px; background: var(--q-line); }
@media (max-width: 991.98px) { .q-auth { grid-template-columns: 1fr; } .q-auth__art { display: none; } }

/* Aviso de cookies */
.q-cookies {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1090;
  max-width: 560px; background: var(--q-surface); color: var(--q-ink);
  border: 1px solid var(--q-line); border-radius: var(--q-radius-lg); box-shadow: var(--q-shadow-lg);
  padding: 1.5rem; transform: translateY(20px); opacity: 0; transition: all .3s var(--q-ease);
}
.q-cookies.is-visible { transform: none; opacity: 1; }
.q-cookies h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.q-cookies p { font-size: .9rem; color: var(--q-ink-2); margin-bottom: 1rem; }
.q-cookies__opts { display: grid; gap: .6rem; margin-bottom: 1rem; }
.q-cookies__opt { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem .9rem; border: 1px solid var(--q-line); border-radius: var(--q-radius-sm); }
.q-cookies__opt small { display: block; color: var(--q-muted); font-weight: 400; }
.q-cookies__actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }

/* Visor embebible (iframes de medios) */
.q-visor { background: var(--q-surface); }
.q-visor-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid var(--q-line); background: var(--q-surface); }
.q-visor-credit { font-size: .78rem; color: var(--q-muted); display: inline-flex; align-items: center; gap: .35rem; }
.q-visor-credit .q-logo { font-size: 1rem; }

/* 7. Panel (app shell) ---------------------------------------------------- */
.q-app { display: grid; grid-template-columns: var(--q-sidebar-w) minmax(0, 1fr); min-height: 100vh; background: var(--q-paper); }
.q-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--q-ink); color: #e2d8ee; display: flex; flex-direction: column; padding: 1.25rem .9rem;
}
.q-side .q-logo { color: #fff; padding: 0 .6rem; margin-bottom: 1.5rem; }
.q-side__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: #9384a8; padding: 0 .75rem; margin: 1.25rem 0 .5rem; }
.q-side__nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.q-side__link, .q-side .nav-link {
  display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: 10px;
  color: #e2d8ee; font-weight: 550; font-size: .93rem; text-align: left;
  background: none; border: 0; width: 100%;
}
.q-side__link i, .q-side .nav-link i { width: 1.15rem; text-align: center; color: #a393b8; font-size: .95rem; }
.q-side__link:hover, .q-side .nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.q-side__link.active, .q-side .nav-link.active, .q-side .nav-item.active > .nav-link { background: rgba(255, 255, 255, .1); color: #fff; }
.q-side__link.active i, .q-side .nav-item.active > .nav-link i { color: var(--q-accent); }
.q-side .nav-link span { font-size: inherit !important; }
.q-side__link[data-bs-toggle="collapse"]::after {
  content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; font-size: .75rem;
  transition: transform .2s var(--q-ease); color: #a393b8;
}
.q-side__link[aria-expanded="true"]::after { transform: rotate(180deg); }
.q-side__sub { list-style: none; padding: .25rem 0 .35rem 2.6rem; margin: 0; display: grid; gap: 1px; }
.q-side__sub a { display: block; padding: .4rem .6rem; border-radius: 8px; font-size: .88rem; color: #c3b6d4; }
.q-side__sub a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.q-side__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.q-side__entity {
  display: flex; align-items: center; gap: .65rem; padding: .6rem; border-radius: 12px;
  background: rgba(255, 255, 255, .05); color: #fff; font-size: .88rem; font-weight: 600;
}
.q-side__entity img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: #33204f; }
.q-side__entity small { display: block; color: #a393b8; font-weight: 500; font-size: .75rem; }
/* lo que las vistas inyectan en @yield('lastpage') */
.q-side__back > a, .q-side__back .nav-link {
  display: flex; align-items: center; gap: .6rem; color: #fff !important; font-weight: 600; font-size: .9rem;
  padding: .6rem .75rem; border-radius: 10px; background: rgba(255, 255, 255, .06);
  flex-direction: row !important; justify-content: flex-start !important;
}
.q-side__back > a:hover { background: rgba(255, 255, 255, .1); }
.q-side__back:empty { display: none; }

.q-main { min-width: 0; display: flex; flex-direction: column; }
.q-topbar {
  position: sticky; top: 0; z-index: 1020; height: var(--q-header-h);
  display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem;
  background: rgba(255, 247, 250, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--q-line);
}
.q-topbar__title { font-family: var(--q-font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.005em; margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-topbar__title * { font-size: inherit !important; margin: 0 !important; color: var(--q-ink) !important; font-weight: inherit !important; }
.q-topbar__title a { color: var(--q-muted) !important; }
.q-topbar__actions { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.q-content { padding: 1.75rem 1.5rem 3rem; flex: 1; }
.q-content > .container-fluid { padding: 0; }
.q-burger { display: none; }
.q-scrim { display: none; }
@media (max-width: 991.98px) {
  .q-app { grid-template-columns: 1fr; }
  .q-side {
    position: fixed; inset: 0 auto 0 0; width: min(84vw, 300px); z-index: 1045;
    transform: translateX(-100%); transition: transform .25s var(--q-ease);
  }
  .q-app.is-nav-open .q-side { transform: none; box-shadow: var(--q-shadow-lg); }
  .q-scrim { display: block; position: fixed; inset: 0; background: rgba(31, 17, 53, .5); z-index: 1040; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .q-app.is-nav-open .q-scrim { opacity: 1; pointer-events: auto; }
  .q-burger { display: inline-grid; }
  .q-topbar { padding: 0 1rem; }
  .q-content { padding: 1.25rem 1rem 2.5rem; }
}

.q-stat { background: var(--q-surface); border: 1px solid var(--q-line); border-radius: var(--q-radius); padding: 1.25rem; }
.q-stat__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--q-muted); }
.q-stat__value { font-family: var(--q-font-display); font-size: 2rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; margin-top: .35rem; }

/* 8. Librerías ------------------------------------------------------------ */

/* DataTables */
div.dataTables_wrapper { font-size: .92rem; }
div.dataTables_wrapper div.dataTables_filter input,
div.dataTables_wrapper div.dataTables_length select,
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--q-line-2) !important; border-radius: var(--q-radius-pill) !important;
  padding: .4rem .9rem !important; background: var(--q-surface) !important; margin-left: .5rem;
}
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--q-primary) !important; outline: 0; box-shadow: 0 0 0 .2rem rgba(201, 37, 88, .15); }
.dataTables_wrapper .dataTables_info { color: var(--q-muted) !important; font-size: .85rem; }
table.dataTable { border-collapse: collapse !important; }
table.dataTable thead th, table.dataTable thead td { border-bottom: 1px solid var(--q-line) !important; }
table.dataTable.no-footer { border-bottom: 1px solid var(--q-line) !important; }
table.dataTable tbody td { border-top: 1px solid var(--q-line); }
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 10px !important; border: 1px solid transparent !important; padding: .35rem .75rem !important;
  color: var(--q-ink) !important; background: transparent !important; font-weight: 600;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--q-paper-2) !important; color: var(--q-ink) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { background: var(--q-ink) !important; color: #fff !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled { opacity: .45; }
table.dataTable > tbody > tr.child ul.dtr-details > li { border-bottom-color: var(--q-line); }
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before { background-color: var(--q-primary); border-radius: 50%; box-shadow: none; }

/* FullCalendar */
.fc {
  --fc-border-color: var(--q-line);
  --fc-button-bg-color: var(--q-surface);
  --fc-button-border-color: var(--q-line-2);
  --fc-button-text-color: var(--q-ink);
  --fc-button-hover-bg-color: var(--q-paper-2);
  --fc-button-hover-border-color: var(--q-line-2);
  --fc-button-active-bg-color: var(--q-ink);
  --fc-button-active-border-color: var(--q-ink);
  --fc-today-bg-color: var(--q-accent-50);
  --fc-event-bg-color: var(--q-primary);
  --fc-event-border-color: var(--q-primary);
  --fc-page-bg-color: var(--q-surface);
  --fc-neutral-bg-color: var(--q-paper-2);
  font-size: .9rem;
}
.fc .fc-toolbar-title { font-family: var(--q-font-display); font-weight: 700 !important; font-size: 1.5rem; letter-spacing: -.01em; text-transform: none; }
.fc .fc-toolbar-title::first-letter { text-transform: uppercase; }
.fc .fc-button { border-radius: var(--q-radius-pill) !important; font-weight: 600; text-transform: capitalize; padding: .4rem .9rem; box-shadow: none !important; }
.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active { color: #fff; }
.fc .fc-button-group > .fc-button { margin: 0 2px; }
.fc .fc-col-header-cell-cushion { color: var(--q-muted) !important; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; padding: .5rem; }
.fc th { background: transparent; }
.fc .fc-daygrid-day-number { color: var(--q-ink-2); font-weight: 600; font-size: .85rem; }
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  background: var(--q-primary); color: #fff; border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; margin: 3px;
}
.fc .fc-view-harness { background: var(--q-surface); border-radius: var(--q-radius); }
.fc-theme-standard .fc-scrollgrid { border-radius: var(--q-radius); overflow: hidden; }
.fc-direction-ltr .fc-daygrid-event.fc-event-end, .fc-direction-rtl .fc-daygrid-event.fc-event-start { background: transparent; color: var(--q-ink); border-radius: 6px; }
.fc .fc-daygrid-event:hover { background: var(--q-paper-2) !important; }
.fc .fc-daygrid-dot-event .fc-event-title { font-weight: 600; font-size: .78rem; }
.fc .fc-list-event:hover td { background: var(--q-paper-2); }

/* jQuery UI (autocompletar / datepicker) */
.ui-widget { font-family: var(--q-font) !important; }
.ui-menu.ui-widget.ui-widget-content { border: 1px solid var(--q-line); border-radius: var(--q-radius-sm); box-shadow: var(--q-shadow-lg); padding: .3rem; background: var(--q-surface); }
.ui-menu .ui-menu-item-wrapper { padding: .45rem .7rem; border-radius: 6px; }
.ui-menu .ui-state-active, .ui-widget-content .ui-state-active { background: var(--q-paper-2) !important; border-color: transparent !important; color: var(--q-ink) !important; margin: 0 !important; }

/* Dropzone */
.dropzone { border: 1.5px dashed var(--q-line-2) !important; border-radius: var(--q-radius) !important; background: var(--q-paper) !important; }
.dropzone .dz-message { color: var(--q-muted); font-weight: 550; }

/* 9. Compatibilidad Bootstrap 4 / SB Admin -------------------------------- */
/* Permite que las vistas antiguas sigan funcionando con Bootstrap 5.3 */
.mr-0 { margin-right: 0 !important; } .mr-1 { margin-right: .25rem !important; } .mr-2 { margin-right: .5rem !important; } .mr-3 { margin-right: 1rem !important; } .mr-4 { margin-right: 1.5rem !important; } .mr-5 { margin-right: 3rem !important; }
.ml-0 { margin-left: 0 !important; } .ml-1 { margin-left: .25rem !important; } .ml-2 { margin-left: .5rem !important; } .ml-3 { margin-left: 1rem !important; } .ml-4 { margin-left: 1.5rem !important; } .ml-5 { margin-left: 3rem !important; }
.mr-auto { margin-right: auto !important; } .ml-auto { margin-left: auto !important; }
.pr-0 { padding-right: 0 !important; } .pr-1 { padding-right: .25rem !important; } .pr-2 { padding-right: .5rem !important; } .pr-3 { padding-right: 1rem !important; } .pr-4 { padding-right: 1.5rem !important; }
.pl-0 { padding-left: 0 !important; } .pl-1 { padding-left: .25rem !important; } .pl-2 { padding-left: .5rem !important; } .pl-3 { padding-left: 1rem !important; } .pl-4 { padding-left: 1.5rem !important; }
.float-right { float: right !important; } .float-left { float: left !important; }
.text-left { text-align: left !important; } .text-right { text-align: right !important; }
.font-weight-bold, .font-weight-bolder { font-weight: 700 !important; } .font-weight-normal { font-weight: 400 !important; } .font-weight-light { font-weight: 300 !important; }
.font-italic { font-style: italic !important; }
.text-gray-100 { color: #f8f9fc !important; } .text-gray-200 { color: #eaecf4 !important; } .text-gray-300 { color: #d9d1c4 !important; }
.text-gray-400 { color: #9a93a6 !important; } .text-gray-500 { color: #857e91 !important; } .text-gray-600 { color: var(--q-muted) !important; }
.text-gray-700 { color: var(--q-ink-2) !important; } .text-gray-800, .text-gray-900 { color: var(--q-ink) !important; }
.text-xs { font-size: .75rem; } .text-lg { font-size: 1.15rem; }
.badge-primary { background: var(--q-primary); color: #fff; } .badge-secondary { background: var(--q-ink-2); color: #fff; }
.badge-success { background: var(--q-success); color: #fff; } .badge-danger { background: var(--q-danger); color: #fff; }
.badge-warning { background: var(--q-accent); color: var(--q-ink); } .badge-info { background: var(--q-info); color: #fff; }
.badge-light { background: var(--q-paper-2); color: var(--q-ink); } .badge-dark { background: var(--q-ink); color: #fff; }
.badge-pill { border-radius: var(--q-radius-pill); }
.dropdown-menu-right { right: 0; left: auto; --bs-position: end; }
.form-group { margin-bottom: 1rem; }
.form-row { display: flex; flex-wrap: wrap; margin-right: -5px; margin-left: -5px; }
.form-row > .col, .form-row > [class*="col-"] { padding-right: 5px; padding-left: 5px; }
.custom-select { display: block; width: 100%; padding: .6rem .85rem; border: 1px solid var(--q-line-2); border-radius: var(--q-radius-sm); background-color: var(--q-surface); }
.custom-file-input { max-width: 100%; }
.btn-block { display: block; width: 100%; }
.no-gutters { --bs-gutter-x: 0; --bs-gutter-y: 0; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.embed-responsive { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; }
.embed-responsive-16by9 { aspect-ratio: 16 / 9; }
.embed-responsive-item, .embed-responsive iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.input-group-append, .input-group-prepend { display: flex; }
/* botón de cierre antiguo (.close) con el aspecto de .btn-close */
button.close, .close {
  box-sizing: content-box; width: 1em; height: 1em; padding: .35em; border: 0; border-radius: 8px; opacity: .55;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2317141f'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center / .9em auto no-repeat;
  font-size: 1rem; color: transparent; text-shadow: none; float: none; margin-left: auto; cursor: pointer;
}
.close:hover { opacity: .9; background-color: var(--q-paper-2); }
.close > span { display: none; }
/* SB Admin */
.shadow { box-shadow: var(--q-shadow) !important; }
.border-left-primary { border-left: 4px solid var(--q-primary) !important; }
.border-left-success { border-left: 4px solid var(--q-success) !important; }
.border-left-info { border-left: 4px solid var(--q-info) !important; }
.border-left-warning { border-left: 4px solid var(--q-accent) !important; }
.border-left-danger { border-left: 4px solid var(--q-danger) !important; }
.icon-circle { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.img-profile { object-fit: cover; }
.animated--grow-in { animation: q-grow .18s var(--q-ease); }
@keyframes q-grow { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.no-arrow.dropdown-toggle::after, .no-arrow .dropdown-toggle::after { display: none; }
.bg-gradient-primary { background: var(--q-ink); }
.text-primary { color: var(--q-primary) !important; }
.bg-primary { background-color: var(--q-primary) !important; }
.bg-light { background-color: var(--q-paper-2) !important; }

/* Títulos de caja usados por las herramientas del panel */
.boxtitle { font-family: var(--q-font-display) !important; font-weight: 700 !important; color: var(--q-ink) !important; letter-spacing: -.01em; margin-left: 0 !important; }
.boxtitleseparator { border-color: var(--q-line) !important; width: 100% !important; margin-left: 0 !important; border-width: 1px !important; }

/* 10. Utilidades ----------------------------------------------------------- */
.q-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }
.q-stack { display: grid; gap: 1rem; }
.q-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.q-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.q-muted { color: var(--q-muted); }
.q-display { font-family: var(--q-font-display); }
.q-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ajustes de cabecera sobre foto */
.q-header__login { --bs-btn-color: var(--q-ink); --bs-btn-hover-color: var(--q-primary); }
.q-header--overlay:not(.is-scrolled) .q-header__login { --bs-btn-color: #fff; --bs-btn-hover-color: var(--q-accent); }
.q-header--overlay:not(.is-scrolled) .q-icon-btn { color: #fff; }
.q-header--overlay:not(.is-scrolled) .q-icon-btn:hover { background: rgba(255, 255, 255, .15); }
.q-header--overlay:not(.is-scrolled) .q-count { border-color: transparent; }

/* Registro por pasos (layouts/redux/regisform) */
.q-reg { max-width: 520px; }
.q-reg .progressbar { position: relative; display: flex; justify-content: space-between; counter-reset: step; margin: 1.5rem 0 3.25rem; }
.q-reg .progressbar::before, .q-reg .progress {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%); height: 3px; width: 100%;
  background: var(--q-line); z-index: 1; border-radius: 3px;
}
.q-reg .progress { background: var(--q-primary) !important; width: 0%; transition: width .3s var(--q-ease); }
.q-reg .progress-step {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; z-index: 2; position: relative;
  background: var(--q-surface); border: 2px solid var(--q-line); color: var(--q-muted); font-weight: 700; font-size: .85rem;
}
.q-reg .progress-step::before { counter-increment: step; content: counter(step); }
.q-reg .progress-step::after {
  content: attr(data-title); position: absolute; top: calc(100% + .45rem); left: 50%; transform: translateX(-50%);
  font-size: .72rem; font-weight: 600; color: var(--q-muted); white-space: nowrap;
}
.q-reg .progress-step-active { border-color: var(--q-primary); background: var(--q-primary); color: #fff; }
.q-reg .progress-step-check { background: var(--q-primary) !important; border-color: var(--q-primary); color: #fff; }
.q-reg .progress-step-check::before { content: "\2713"; }
@media (max-width: 480px) { .q-reg .progress-step::after { display: none; } .q-reg .progressbar { margin-bottom: 2rem; } }
.q-reg .step-forms { display: none; animation: q-step .25s var(--q-ease); text-align: left; }
.q-reg .step-forms-active { display: block; }
@keyframes q-step { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.q-reg .step-forms > .q-reg__q { font-size: 1.3rem; margin: .5rem 0 1.25rem; }
.q-reg #checkboxdiv, .q-reg #checkboxdiv2 {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; margin-bottom: .75rem;
  border: 1.5px solid var(--q-line); border-radius: var(--q-radius); background: var(--q-surface); cursor: pointer;
  transition: border-color .15s var(--q-ease), background-color .15s var(--q-ease);
}
.q-reg #checkboxdiv:hover, .q-reg #checkboxdiv2:hover { border-color: var(--q-line-2); }
.q-reg #checkboxdiv.is-selected, .q-reg #checkboxdiv2.is-selected { border-color: var(--q-primary); background: var(--q-primary-50); }
.q-reg #checkboxdiv .form-check-input, .q-reg #checkboxdiv2 .form-check-input { display: none; }
.q-reg #checkboxdiv label, .q-reg #checkboxdiv2 label { display: flex; align-items: center; gap: .9rem; margin: 0; font-weight: 650; font-size: 1.05rem; color: var(--q-ink); cursor: pointer; pointer-events: none; }
.q-reg__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--q-paper-2); color: var(--q-ink); font-size: 1.1rem; flex: none; }
.is-selected .q-reg__icon { background: var(--q-primary); color: #fff; }
.q-reg .group-inputs { position: relative; margin: 0 0 1rem; }
.q-reg .group-inputs label, .q-reg .step-forms > label, .q-reg .step-forms > div > label:not(.form-check-label) {
  display: block; position: static; font-size: .85rem; font-weight: 600; color: var(--q-ink-2); margin-bottom: .35rem; padding: 0; height: auto; background: none;
}
.q-reg input:not([type="checkbox"]):not([type="radio"]), .q-reg select {
  display: block; width: 100%; height: auto; padding: .7rem .9rem; border: 1px solid var(--q-line-2); border-radius: var(--q-radius-sm);
  background: var(--q-surface); color: var(--q-ink); font-size: 1rem;
}
.q-reg input:focus, .q-reg select:focus { outline: 0; border-color: var(--q-primary); box-shadow: 0 0 0 .2rem rgba(201, 37, 88, .18); }
.q-reg select[size] { padding: .35rem; }
.q-reg p[id$="e"] { font-size: .82rem; margin: .3rem 0 0; color: var(--q-danger) !important; }
.q-reg p[id$="e"]:empty { display: none; }
.q-reg .btns-group { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; }
.q-reg .btn-next, .q-reg .btn-prev { flex: 1; }
.q-reg .btn-next { --bs-btn-bg: var(--q-primary); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--q-primary-600); --bs-btn-hover-color: #fff; --bs-btn-border-color: var(--q-primary); --bs-btn-hover-border-color: var(--q-primary-600); }
.q-reg .btn-prev { --bs-btn-bg: var(--q-surface); --bs-btn-color: var(--q-ink); --bs-btn-border-color: var(--q-line-2); --bs-btn-hover-bg: var(--q-paper-2); --bs-btn-hover-color: var(--q-ink); }
.q-reg .step-forms-active > div > .btn-next:only-child { width: 100%; margin-top: 1rem; }
.q-reg .form-check { display: flex; gap: .65rem; padding-left: 0; text-align: left; }
.q-reg .form-check .form-check-input { flex: none; margin: .2rem 0 0; float: none; }
.q-reg .form-check-label { font-size: .88rem; color: var(--q-ink-2); font-weight: 400; }
.q-reg hr { margin: .9rem 0; }
.q-reg .alert { text-align: left; }

/* Herramientas y accesos directos del panel de entidad */
#containerflex2 { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .75rem; }
.cellcont2 {
  display: flex !important; flex-direction: column; align-items: center; justify-content: flex-start; gap: .5rem;
  margin: 0 !important; padding: 1rem .6rem .85rem; width: auto !important; height: auto !important;
  background: var(--q-surface); border: 1px solid var(--q-line); border-radius: var(--q-radius);
  text-align: center; cursor: pointer; transition: border-color .15s var(--q-ease), transform .15s var(--q-ease), box-shadow .15s var(--q-ease);
}
.cellcont2:hover { border-color: var(--q-primary-100); transform: translateY(-2px); box-shadow: var(--q-shadow); }
.cellcont2 p { margin: 0 !important; font-size: .82rem !important; font-weight: 600 !important; color: var(--q-ink) !important; line-height: 1.25; }
.q-tool-ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem;
  background: var(--q-primary-50); color: var(--q-primary);
}
.cellcont2:hover .q-tool-ico { background: var(--q-primary); color: #fff; }
.q-card.q-prose { max-width: none; }
.q-prose .accordion-header { margin: 0; font-size: 1rem; }
.q-prose .accordion { margin-top: 1rem; }
.q-pill { white-space: nowrap; }
.fc .fc-toolbar { flex-wrap: wrap; gap: .5rem; }
@media (max-width: 575.98px) { .fc .fc-toolbar-title { font-size: 1.15rem; } .fc .fc-button { padding: .3rem .65rem; } }

/* ==========================================================================
   Personalidad Quedo: rosa, redondito, juvenil
   ========================================================================== */
:root { --q-shadow-pop: 0 4px 0 var(--q-primary-600); }

/* Botones "de gominola": sombra sólida que se hunde al pulsar */
.btn { font-weight: 700; letter-spacing: 0; }
.btn-primary { box-shadow: 0 4px 0 var(--q-primary-600); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--q-primary-600); }
.btn-primary:active, .btn-primary.active { transform: translateY(3px); box-shadow: 0 1px 0 var(--q-primary-600); }
.btn-secondary, .btn-dark { box-shadow: 0 4px 0 #0d0618; }
.btn-secondary:active, .btn-dark:active { transform: translateY(3px); box-shadow: 0 1px 0 #0d0618; }
.btn-warning { box-shadow: 0 4px 0 #d9a800; }
.btn-warning:active { transform: translateY(3px); box-shadow: 0 1px 0 #d9a800; }
.btn-light { border-width: 2px; }

/* Etiquetas de sección como pegatinas */
.q-eyebrow {
  display: inline-block; background: var(--q-primary-50); color: var(--q-primary);
  padding: .35rem .8rem; border-radius: var(--q-radius-pill); letter-spacing: .08em; font-size: .72rem;
  transform: rotate(-2deg);
}
.q-hero .q-eyebrow { background: var(--q-accent); color: var(--q-ink) !important; }
.q-section__title, .q-pagehead h1 { font-weight: 700; }

/* Hero: burbujas flotantes */
.q-hero { border-radius: 0 0 48px 48px; overflow: hidden; }
.q-hero__title em { color: var(--q-accent); font-style: normal; position: relative; display: inline-block; transform: rotate(-3deg); }
.q-hero__blob { position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px); opacity: .9; pointer-events: none; }
.q-hero__blob--1 { width: 180px; height: 180px; right: 8%; top: 22%; background: radial-gradient(circle at 30% 30%, #ff8fb4, var(--q-pop)); animation: q-float 7s ease-in-out infinite; }
.q-hero__blob--2 { width: 90px; height: 90px; right: 26%; bottom: 14%; background: radial-gradient(circle at 30% 30%, #fff1a6, var(--q-accent)); animation: q-float 9s ease-in-out infinite reverse; }
.q-hero__blob--3 { width: 60px; height: 60px; right: 4%; bottom: 30%; background: radial-gradient(circle at 30% 30%, #a98bff, var(--q-violet)); animation: q-float 6s ease-in-out infinite; }
@keyframes q-float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-18px) } }
@media (max-width: 767.98px) { .q-hero__blob { display: none; } .q-hero { border-radius: 0 0 32px 32px; } }
.q-search { padding: .5rem .5rem .5rem 1.4rem; box-shadow: 0 10px 0 rgba(31, 17, 53, .18), var(--q-shadow-lg); }
.q-search__adv { border-width: 2px; }
.q-hero__quick a { border-width: 2px; font-weight: 700; }

/* Tarjetas de evento: más redondas, fecha tipo pegatina */
.q-event { border-width: 2px; }
.q-event:hover { border-color: var(--q-primary-100); box-shadow: 0 8px 0 var(--q-primary-100), var(--q-shadow-lg); }
.q-event__media { margin: 8px 8px 0; border-radius: calc(var(--q-radius) - 8px); }
.q-event__date { border-radius: 16px; transform: rotate(-4deg); border: 2px solid var(--q-ink); box-shadow: 3px 3px 0 var(--q-ink); }
.q-event__date span { color: var(--q-primary); }
.q-event__title { font-weight: 600; }
.q-event__meta i { color: var(--q-pop); }

/* Categorías */
.q-cat { border-radius: var(--q-radius-lg); }
.q-cat h3 { font-weight: 700; font-size: 1.7rem; }
.q-cat::after { background: linear-gradient(180deg, transparent 30%, rgba(201, 37, 88, .35) 60%, rgba(31, 17, 53, .85)); }
.q-cat__arrow { background: var(--q-accent); }

/* Destacados */
.q-feature { background: linear-gradient(135deg, var(--q-ink) 0%, #3a1a5c 100%); }
.q-feature__meta i { color: var(--q-accent); }

/* Llamada a registrarse: rosa a violeta */
.q-cta { background: linear-gradient(120deg, var(--q-primary) 0%, var(--q-pop) 45%, var(--q-violet) 110%); color: #fff; }
.q-cta h2 { color: #fff; }
.q-cta li i { background: var(--q-accent); color: var(--q-ink); }
.q-cta::after { border-color: rgba(255, 255, 255, .14); }
.q-cta .q-eyebrow { background: #fff; color: var(--q-primary) !important; }
.q-cta .btn-secondary { background: #fff; color: var(--q-ink); border-color: #fff; box-shadow: 0 4px 0 rgba(31, 17, 53, .35); }
.q-cta .btn-link { color: #fff !important; }

/* Pills y chips */
.q-pill { font-weight: 700; }
.q-pill--accent { transform: rotate(-2deg); }
.q-chip { border-width: 2px; font-weight: 700; }

/* Fichas */
.q-fact i { border-radius: 50%; background: var(--q-primary-50); color: var(--q-primary); }
.q-ficha-hero { border-radius: var(--q-radius-lg); }
.q-card { border-width: 2px; }
.q-tool-ico { border-radius: 50%; }

/* Formularios más blanditos */
.form-control, .form-select { border-width: 2px; }
.input-group-text { border-width: 2px; }
.form-check-input { border-width: 2px; }

/* Header / footer */
.q-logo__word { font-weight: 700; }
.q-logo__tld { color: var(--q-primary); }
.q-logo--light .q-logo__tld { color: var(--q-pop); }
.q-footer { border-radius: 48px 48px 0 0; }
.q-footer__social a:hover { background: var(--q-pop); }

/* Panel */
.q-side { border-radius: 0 28px 28px 0; }
.q-side__link.active, .q-side .nav-item.active > .nav-link { background: var(--q-primary); color: #fff; }
.q-side__link.active i { color: #fff !important; }
.q-auth__art { border-radius: 0 48px 48px 0; }
.q-auth__art::after { background: linear-gradient(160deg, rgba(255, 79, 139, .25), rgba(31, 17, 53, .85)); }
@media (max-width: 991.98px) { .q-side { border-radius: 0; } }
.q-header--overlay:not(.is-scrolled) .q-logo__tld { color: var(--q-accent); }
.q-logo__mark { width: 34px; height: 34px; filter: drop-shadow(0 2px 0 rgba(31, 17, 53, .18)); }

/* ==========================================================================
   v3 · Portada en bloque de color, accesos rápidos y navegación tipo app
   ========================================================================== */
.q-hl { background: linear-gradient(180deg, transparent 58%, var(--q-accent) 58%, var(--q-accent) 92%, transparent 92%); padding: 0 .1em; }
.q-link-more { font-weight: 800; color: var(--q-primary); display: inline-flex; align-items: center; gap: .4rem; }
.q-link-more i { transition: transform .2s var(--q-ease); }
.q-link-more:hover i { transform: translateX(4px); }
.q-eyebrow--light { background: rgba(255, 255, 255, .2); color: #fff !important; }
.q-eyebrow--yellow { background: var(--q-accent); color: var(--q-ink) !important; }

/* Hero */
.q-hero2 {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(108, 60, 233, .55), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(255, 210, 63, .35), transparent 60%),
    linear-gradient(135deg, var(--q-primary) 0%, var(--q-pop) 100%);
  padding: calc(var(--q-header-h) + 2.5rem) 0 4.5rem;
  border-radius: 0 0 56px 56px;
}
.q-hero2::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12;
  background-image: radial-gradient(#fff 1.5px, transparent 1.5px); background-size: 22px 22px;
}
.q-hero2__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; }
.q-hero2__title { font-size: clamp(3rem, 7.5vw, 6.2rem); font-weight: 700; line-height: .95; color: #fff; margin: 1rem 0 1.1rem; letter-spacing: -.01em; text-shadow: 0 4px 0 rgba(31, 17, 53, .15); }
.q-hero2__title em { font-style: normal; color: var(--q-ink); background: var(--q-accent); padding: 0 .18em; border-radius: .25em; display: inline-block; transform: rotate(-3deg); box-shadow: 6px 6px 0 var(--q-ink); }
.q-hero2__lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 44ch; color: rgba(255, 255, 255, .92); margin-bottom: 1.75rem; font-weight: 600; }
.q-hero2 .q-search { box-shadow: 0 8px 0 rgba(31, 17, 53, .28); max-width: 640px; }
.q-when { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.q-when__btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.05rem; border-radius: var(--q-radius-pill);
  background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .45); color: #fff; font-weight: 800;
  transition: all .15s var(--q-ease);
}
.q-when__btn:hover { background: #fff; color: var(--q-primary); border-color: #fff; transform: translateY(-2px) rotate(-1deg); }
.q-hero2 .q-filters { margin-top: 1.25rem; }

.q-hero2__collage { position: relative; height: 460px; }
.q-sticker {
  position: absolute; width: 250px; background: #fff; color: var(--q-ink); border-radius: 26px; padding: 10px 10px 14px;
  box-shadow: 0 10px 0 rgba(31, 17, 53, .25), 0 30px 60px rgba(31, 17, 53, .25);
  transition: transform .3s var(--q-ease);
}
.q-sticker img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; display: block; }
.q-sticker__title { display: block; font-family: var(--q-font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.15; margin: .6rem .3rem 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.q-sticker__date {
  position: absolute; top: -12px; right: -12px; width: 62px; height: 62px; border-radius: 50%; background: var(--q-accent); color: var(--q-ink);
  display: grid; place-content: center; text-align: center; font-weight: 800; font-size: .72rem; text-transform: uppercase; line-height: 1;
  border: 3px solid var(--q-ink); transform: rotate(12deg);
}
.q-sticker__date b { font-family: var(--q-font-display); font-size: 1.5rem; display: block; }
.q-sticker--1 { left: 4%; top: 6%; transform: rotate(-7deg); z-index: 2; }
.q-sticker--2 { right: 0; top: 0; transform: rotate(6deg); width: 220px; }
.q-sticker--3 { left: 30%; bottom: 0; transform: rotate(3deg); z-index: 3; width: 230px; }
.q-sticker:hover { transform: rotate(0) scale(1.04); z-index: 5; color: var(--q-ink); }
.q-hero2__star { position: absolute; color: var(--q-accent); font-size: 2.4rem; line-height: 1; animation: q-float 6s ease-in-out infinite; }
.q-hero2__star--1 { left: -4%; bottom: 22%; }
.q-hero2__star--2 { right: 8%; bottom: 8%; color: var(--q-ink); font-size: 1.4rem; animation-duration: 8s; }
.q-hero2__star--3 { right: 42%; top: -4%; color: #fff; font-size: 2rem; animation-duration: 7s; }
@media (max-width: 991.98px) {
  .q-hero2__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .q-hero2__collage { height: 230px; margin: 0 -1rem; overflow: hidden; }
  .q-sticker { width: 170px; padding: 7px 7px 10px; border-radius: 20px; }
  .q-sticker img { border-radius: 14px; }
  .q-sticker__title { font-size: .85rem; }
  .q-sticker__date { width: 48px; height: 48px; top: -6px; right: -6px; }
  .q-sticker__date b { font-size: 1.15rem; }
  .q-sticker--1 { left: 4%; top: 20px; } .q-sticker--2 { right: 4%; top: 10px; width: 160px; } .q-sticker--3 { left: 34%; bottom: -30px; width: 160px; }
  .q-hero2 { padding-bottom: 3rem; border-radius: 0 0 36px 36px; }
}
@media (max-width: 575.98px) { .q-when__btn { padding: .5rem .85rem; font-size: .9rem; } }

/* Cinta en movimiento */
.q-marquee { background: var(--q-ink); color: var(--q-accent); overflow: hidden; margin: -26px 0 0; transform: rotate(-1.5deg); position: relative; z-index: 2; box-shadow: 0 6px 0 rgba(31, 17, 53, .12); }
.q-marquee__track { display: flex; gap: 1.25rem; align-items: center; width: max-content; padding: .9rem 0; animation: q-marquee 40s linear infinite; }
.q-marquee span { font-family: var(--q-font-display); font-weight: 600; font-size: 1.35rem; white-space: nowrap; }
.q-marquee i { font-style: normal; color: var(--q-pop); }
@keyframes q-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .q-marquee__track { animation: none; } }

/* Categorías como botones */
.q-cats2 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.q-cat2 {
  display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1.25rem; min-height: 150px;
  border-radius: var(--q-radius); color: var(--q-ink); border: 2px solid var(--q-ink); box-shadow: 5px 5px 0 var(--q-ink);
  transition: transform .15s var(--q-ease), box-shadow .15s var(--q-ease);
}
.q-cat2:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--q-ink); color: var(--q-ink); }
.q-cat2:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--q-ink); }
.q-cat2__ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 1.3rem; margin-bottom: auto; border: 2px solid var(--q-ink); }
.q-cat2__name { font-family: var(--q-font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.1; margin-top: .75rem; }
.q-cat2__count { font-size: .82rem; font-weight: 700; opacity: .75; }
.q-cat2--pink { background: #ffb3cb; } .q-cat2--violet { background: #cbb8ff; } .q-cat2--yellow { background: var(--q-accent); }
.q-cat2--mint { background: #9ff0cf; } .q-cat2--sky { background: #a8dcff; } .q-cat2--ink { background: var(--q-ink); color: #fff; }
.q-cat2--ink:hover { color: #fff; } .q-cat2--ink .q-cat2__ico { color: var(--q-ink); }
@media (max-width: 991.98px) { .q-cats2 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .q-cats2 { grid-template-columns: repeat(2, 1fr); gap: .75rem; } .q-cat2 { min-height: 124px; padding: 1rem; } .q-cat2__name { font-size: 1.1rem; } }

.q-event__flag { position: absolute; right: .7rem; top: .7rem; z-index: 2; background: var(--q-accent); color: var(--q-ink); font-weight: 800; font-size: .72rem; padding: .3rem .6rem; border-radius: var(--q-radius-pill); border: 2px solid var(--q-ink); transform: rotate(3deg); }

/* Doble llamada */
.q-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.q-duo__card { border-radius: var(--q-radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem); position: relative; overflow: hidden; }
.q-duo__card h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: .9rem 0 1.1rem; font-weight: 700; }
.q-duo__card ul { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .7rem; font-weight: 700; }
.q-duo__card li { display: flex; gap: .7rem; align-items: center; }
.q-duo__card li i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .85rem; }
.q-duo__card--pink { background: linear-gradient(135deg, var(--q-primary), var(--q-pop)); color: #fff; }
.q-duo__card--pink h2 { color: #fff; }
.q-duo__card--pink li i { background: #fff; color: var(--q-primary); }
.q-duo__card--ink { background: var(--q-ink); color: #e2d8ee; }
.q-duo__card--ink h2 { color: #fff; }
.q-duo__card--ink li i { background: var(--q-accent); color: var(--q-ink); }
.q-duo__card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; bottom: -90px; background: rgba(255, 255, 255, .1); }
@media (max-width: 767.98px) { .q-duo { grid-template-columns: 1fr; } }

/* Barra inferior tipo app (móvil) */
.q-tabbar { display: none; }
@media (max-width: 767.98px) {
  body { padding-bottom: 76px; }
  .q-tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 1040;
    background: var(--q-ink); border-radius: 26px; padding: .45rem; box-shadow: 0 10px 30px rgba(31, 17, 53, .35);
  }
  .q-tabbar a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .45rem 0; border-radius: 18px; color: #c3b6d4; font-size: .7rem; font-weight: 800; }
  .q-tabbar a i { font-size: 1.15rem; }
  .q-tabbar a.is-active { background: var(--q-primary); color: #fff; }
  .q-cookies { bottom: 86px; }
  .q-header__actions .btn-primary { display: none; }
}
.q-hero2__grid > * { min-width: 0; }
html, body { overflow-x: clip; }
.q-header--overlay:not(.is-scrolled) .q-logo__mark path:first-child { fill: #fff; }
.q-header--overlay:not(.is-scrolled) .q-logo__mark circle, .q-header--overlay:not(.is-scrolled) .q-logo__mark path + circle + path { stroke: var(--q-primary); }
.q-header--overlay:not(.is-scrolled) .btn-primary { --bs-btn-bg: #fff; --bs-btn-color: var(--q-primary); --bs-btn-border-color: #fff; --bs-btn-hover-bg: var(--q-accent); --bs-btn-hover-color: var(--q-ink); --bs-btn-hover-border-color: var(--q-accent); box-shadow: 0 4px 0 rgba(31, 17, 53, .25); }
.q-hero2__collage { height: 520px; }
.q-sticker--1 { left: 0; top: 0; }
.q-sticker--2 { right: 0; top: 120px; }
.q-sticker--3 { left: 14%; bottom: 0; }
.q-sticker--3 { left: 0; } .q-sticker--2 { top: 150px; }
@media (max-width: 767.98px) { .q-hero2__collage { display: none; } .q-marquee { margin-top: -18px; } }

/* Búsqueda: cabecera con buscador y chips de filtro siempre visibles */
.q-searchhead { background: linear-gradient(135deg, var(--q-primary), var(--q-pop)); padding: calc(var(--q-header-h) * 0 + 1.5rem) 0 1.25rem; border-radius: 0 0 36px 36px; }
.q-search--compact { max-width: 760px; box-shadow: 0 6px 0 rgba(31, 17, 53, .22); padding: .35rem .35rem .35rem 1.2rem; }
.q-search--compact input { padding: .55rem .25rem; }
.q-filterbar { display: flex; gap: .5rem; overflow-x: auto; padding: 1rem .15rem .35rem; scrollbar-width: none; align-items: center; }
.q-filterbar::-webkit-scrollbar { display: none; }
.q-filterbar .q-chip { background: rgba(255, 255, 255, .92); border-color: transparent; color: var(--q-ink); flex: none; }
.q-filterbar .q-chip:hover { background: #fff; }
.q-filterbar .q-chip.is-active { background: var(--q-ink); color: #fff; }
.q-filterbar .q-chip--strong { background: var(--q-accent); border: 2px solid var(--q-ink); cursor: pointer; }
.q-chip__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--q-primary); color: #fff; font-size: .7rem; }
.q-filterbar__sep { width: 2px; height: 22px; background: rgba(255, 255, 255, .45); flex: none; border-radius: 2px; }
.q-daygroup { font-size: 1.35rem; font-weight: 600; margin: .5rem 0 1rem; display: flex; align-items: center; gap: .75rem; }
.q-daygroup::after { content: ""; flex: 1; height: 2px; background: var(--q-line); border-radius: 2px; }
.q-header:not(.q-header--overlay) + main .q-searchhead { margin-top: 0; }

/* Ficha: datos rápidos y barra de acciones en móvil */
.q-quickfacts { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; font-weight: 700; }
.q-quickfacts i { color: var(--q-primary); width: 1.4rem; }
.q-actionbar { display: none; }
@media (max-width: 991.98px) {
  body.has-actionbar { padding-bottom: 90px; }
  body.has-actionbar .q-tabbar { display: none; }
  .q-actionbar {
    display: flex; position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 1040; gap: .35rem;
    background: var(--q-ink); border-radius: 26px; padding: .45rem; box-shadow: 0 10px 30px rgba(31, 17, 53, .35);
  }
  .q-actionbar__btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem .25rem; border-radius: 18px; border: 0; background: transparent; color: #e2d8ee; font-size: .72rem; font-weight: 800; }
  .q-actionbar__btn i { font-size: 1.15rem; }
  .q-actionbar__btn--main { background: var(--q-primary); color: #fff; }
  .q-actionbar__btn:hover { color: #fff; }
}

/* ==========================================================================
   v3.1 · Punto medio: misma estructura, menos estridencia
   ========================================================================== */
/* Hero: degradado rosa limpio, sin trama ni sombras duras */
.q-hero2 {
  background: radial-gradient(70% 90% at 100% 0%, rgba(108, 60, 233, .28), transparent 60%),
              linear-gradient(135deg, var(--q-primary) 0%, var(--q-pop) 100%);
  border-radius: 0 0 40px 40px; padding-bottom: 4rem;
}
.q-hero2::before { display: none; }
.q-hero2__title { font-size: clamp(2.6rem, 6vw, 4.8rem); text-shadow: none; line-height: 1; }
.q-hero2__title em { background: none; color: var(--q-accent); padding: 0; box-shadow: none; transform: none; }
.q-hero2 .q-search { box-shadow: 0 12px 30px rgba(31, 17, 53, .22); }
.q-when__btn { background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .4); font-weight: 700; }
.q-when__btn:hover { transform: translateY(-1px); }
.q-hero2__collage { height: 440px; }
.q-sticker { box-shadow: 0 18px 40px rgba(31, 17, 53, .25); border-radius: 24px; }
.q-sticker--1 { transform: rotate(-3deg); } .q-sticker--2 { transform: rotate(3deg); top: 130px; } .q-sticker--3 { transform: rotate(-1deg); left: 8%; }
.q-sticker__date { border: 0; transform: none; box-shadow: 0 4px 12px rgba(31, 17, 53, .2); width: 56px; height: 56px; }

/* Etiquetas y resaltados más sobrios */
.q-eyebrow { transform: none; }
.q-hl { background: linear-gradient(180deg, transparent 62%, rgba(255, 210, 63, .7) 62%, rgba(255, 210, 63, .7) 90%, transparent 90%); }

/* Categorías: pastel suave, sin borde negro ni sombra dura */
.q-cat2 { border: 0; box-shadow: none; min-height: 132px; }
.q-cat2:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(31, 17, 53, .12); }
.q-cat2:active { transform: translateY(0); box-shadow: none; }
.q-cat2__ico { border: 0; box-shadow: 0 2px 6px rgba(31, 17, 53, .08); }
.q-cat2--pink { background: #ffd6e3; } .q-cat2--violet { background: #e3d9ff; } .q-cat2--yellow { background: #fff0b3; }
.q-cat2--mint { background: #d2f5e6; } .q-cat2--sky { background: #d6eeff; }
.q-cat2--ink { background: var(--q-ink); }

/* Tarjetas de evento */
.q-event { border-width: 1.5px; }
.q-event:hover { box-shadow: var(--q-shadow-lg); }
.q-event__date { border: 0; box-shadow: var(--q-shadow); transform: none; border-radius: 14px; }
.q-event__flag { border: 0; transform: none; box-shadow: var(--q-shadow); }

/* Botones: sombra suave en lugar del efecto "gominola" completo */
.btn-primary { box-shadow: 0 3px 0 var(--q-primary-600); }
.btn-primary:hover { box-shadow: 0 4px 0 var(--q-primary-600); }
.btn-secondary, .btn-dark { box-shadow: 0 3px 0 #0d0618; }
.btn-warning { box-shadow: 0 3px 0 #d9a800; }

/* Barras inferiores del móvil: blancas y discretas */
@media (max-width: 767.98px) {
  .q-tabbar { background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--q-line); box-shadow: 0 8px 24px rgba(31, 17, 53, .14); }
  .q-tabbar a { color: var(--q-muted); }
  .q-tabbar a.is-active { background: var(--q-primary-50); color: var(--q-primary); }
}
@media (max-width: 991.98px) {
  .q-actionbar { background: rgba(255, 255, 255, .97); border: 1px solid var(--q-line); box-shadow: 0 8px 24px rgba(31, 17, 53, .14); }
  .q-actionbar__btn { color: var(--q-ink-2); }
  .q-actionbar__btn:hover { color: var(--q-primary); }
  .q-actionbar__btn--main, .q-actionbar__btn--main:hover { color: #fff; }
}

/* Cabecera de búsqueda más ligera */
.q-searchhead { background: var(--q-paper-2); border-radius: 0 0 32px 32px; }
.q-search--compact { box-shadow: var(--q-shadow); }
.q-filterbar .q-chip { background: #fff; border: 1.5px solid var(--q-line); }
.q-filterbar .q-chip--strong { background: var(--q-ink); color: #fff; border-color: var(--q-ink); }
.q-filterbar__sep { background: var(--q-line-2); }
.q-sticker--3 { display: none; }
.q-sticker--1 { left: 2%; top: 20px; width: 260px; }
.q-sticker--2 { right: 0; top: 150px; width: 240px; }
.q-hero2__collage { height: 420px; }

/* Inicio de la entidad: acciones principales a mano */
.q-entityhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.q-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .85rem; }
.q-action { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; border-radius: var(--q-radius); color: var(--q-ink); transition: transform .15s var(--q-ease), box-shadow .15s var(--q-ease); }
.q-action:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(31, 17, 53, .1); color: var(--q-ink); }
.q-action .q-cat2__ico { margin: 0; flex: none; width: 46px; height: 46px; font-size: 1.1rem; }
.q-action strong { font-family: var(--q-font-display); font-weight: 600; font-size: 1.08rem; }
.q-action small { color: var(--q-ink-2); font-weight: 600; }
.q-side__entity { margin: 0 .25rem; }
/* En el inicio de la entidad, las herramientas ya están en el menú y en las acciones: quitamos los bloques duplicados */
.q-actions ~ .row .card-body:has(#containerflex2) { display: none; }
#buttonactivity, #buttonactivity2 { border: 1.5px solid var(--q-line); background: #fff; border-radius: var(--q-radius-pill); padding: .35rem .9rem; font-weight: 700; margin: 0 .35rem .75rem 0; }

/* ==========================================================================
   v3.2 · Más sobrio: foto en portada, rosa + tinta + neutros, menos adornos
   ========================================================================== */
:root { --q-radius-sm: 12px; --q-radius: 18px; --q-radius-lg: 26px; }

/* Portada con foto (sin burbujas) */
.q-hero { min-height: min(620px, 82vh); border-radius: 0 0 32px 32px; }
.q-hero::before {
  background: linear-gradient(180deg, rgba(31, 17, 53, .55) 0%, rgba(31, 17, 53, .35) 45%, rgba(31, 17, 53, .8) 100%),
              linear-gradient(90deg, rgba(201, 37, 88, .35), transparent 60%);
}
.q-hero__blob { display: none; }
.q-hero__copy { max-width: 720px; }
.q-hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: 0; }
.q-hero__title em { color: #fff; transform: none; box-shadow: inset 0 -.22em 0 var(--q-primary); padding: 0 .06em; }
.q-hero .q-search { box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.q-hero .q-when__btn { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.q-hero .q-when__btn:hover { background: #fff; color: var(--q-ink); border-color: #fff; transform: none; }

/* Un solo color de acento: fuera amarillo y violeta decorativos */
.q-hl { background: none; color: var(--q-primary); padding: 0; }
.q-eyebrow { background: var(--q-primary-50); color: var(--q-primary); }
.q-eyebrow--light { background: rgba(255, 255, 255, .15); color: #fff !important; }
.q-pill--accent { background: var(--q-ink); color: #fff; transform: none; }
.q-event__flag { background: var(--q-primary); color: #fff; }
.q-event__date span { color: var(--q-primary); }
.q-event__meta i { color: var(--q-muted); }
.q-feature { background: var(--q-ink); }
.q-feature__meta i { color: #fff; opacity: .7; }

/* Categorías y acciones: tarjetas blancas con icono rosa */
.q-cat2--plain { background: var(--q-surface); border: 1px solid var(--q-line); }
.q-cat2--plain .q-cat2__ico { background: var(--q-primary-50); color: var(--q-primary); box-shadow: none; }
.q-cat2--plain:hover { border-color: var(--q-primary-100); box-shadow: var(--q-shadow); transform: translateY(-2px); }
.q-cats2 .q-cat2 { min-height: 118px; }
.q-cat2__name { font-size: 1.15rem; }
.q-action.q-cat2--plain small { color: var(--q-muted); }

/* Llamadas finales */
.q-duo__card--light { background: var(--q-surface); border: 1px solid var(--q-line); color: var(--q-ink-2); }
.q-duo__card--light h2 { color: var(--q-ink); }
.q-duo__card--light li i { background: var(--q-primary-50); color: var(--q-primary); }
.q-duo__card--ink li i { background: rgba(255, 255, 255, .1); color: #fff; }
.q-duo__card::after { display: none; }

/* Botones planos, sin efecto gominola */
.btn-primary, .btn-primary:hover, .btn-primary:active, .btn-secondary, .btn-dark, .btn-warning, .btn-secondary:active, .btn-dark:active, .btn-warning:active { box-shadow: none; transform: none; }
.q-header--overlay:not(.is-scrolled) .btn-primary { box-shadow: none; }
.btn-light { border-width: 1px; }

/* Bordes más finos */
.q-card, .q-event, .form-control, .form-select, .input-group-text, .q-chip, .q-search__adv, .q-hero__quick a { border-width: 1px; }
.q-event__media { margin: 0; border-radius: 0; }
.q-event__date { transform: none; }
.q-footer, .q-side { border-radius: 0; }
.q-auth__art { border-radius: 0; }
.q-logo__tld { color: var(--q-primary); }
.q-header--overlay:not(.is-scrolled) .q-logo__tld { color: #fff; opacity: .8; }
.q-hl { color: inherit; }
.q-section__title, .q-pagehead h1, .q-duo__card h2 { font-weight: 600; }

/* ==========================================================================
   Panel: actividad en lista, tablas limpias y sin animaciones bruscas
   ========================================================================== */
.q-feedcard { padding: 1.25rem 1.25rem 1rem; }
.q-feedcard__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.q-seg { display: inline-flex; background: var(--q-paper-2); border-radius: var(--q-radius-pill); padding: 3px; }
.q-seg button { border: 0; background: transparent; padding: .35rem .85rem; border-radius: var(--q-radius-pill); font-weight: 700; font-size: .85rem; color: var(--q-muted); }
.q-seg button.is-active { background: var(--q-surface); color: var(--q-ink); box-shadow: var(--q-shadow-sm); }
.q-feedcard__search { position: relative; margin-bottom: .5rem; }
.q-feedcard__search i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--q-muted); font-size: .85rem; }
.q-feedcard__search .form-control { padding-left: 2.3rem; border-radius: var(--q-radius-pill); background: var(--q-paper); }
.q-feed { list-style: none; margin: 0; padding: 0; }
.q-feed__item { display: flex; align-items: center; gap: .85rem; padding: .75rem .25rem; border-bottom: 1px solid var(--q-line); }
.q-feed__item:last-child { border-bottom: 0; }
.q-feed__ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--q-primary-50); color: var(--q-primary); font-size: .9rem; }
.q-feed__img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.q-feed__body { flex: 1; min-width: 0; }
.q-feed__text { font-weight: 600; font-size: .93rem; line-height: 1.35; }
.q-feed__meta { font-size: .8rem; color: var(--q-muted); margin-top: .1rem; }
.q-feed__empty { padding: 1.5rem .5rem; text-align: center; color: var(--q-muted); }
.q-feed .btn-sm { flex: none; }

/* Tablas de las herramientas: filas limpias y clicables */
.q-content .dataTables_length { display: none; }
.q-content .dataTables_wrapper .dataTables_filter { float: none; text-align: left; margin-bottom: .75rem; }
.q-content .dataTables_wrapper .dataTables_filter label { font-size: 0; display: block; }
.q-content .dataTables_wrapper .dataTables_filter input { font-size: .92rem; margin: 0 !important; width: 100% !important; max-width: 360px; padding-left: 1rem !important; }
.q-content table.dataTable { box-shadow: none !important; border-radius: 0 !important; }
.q-content table.dataTable tbody tr { cursor: pointer; background: transparent !important; transition: background-color .12s; }
.q-content table.dataTable tbody tr:hover { background: var(--q-primary-50) !important; }
.q-content table.dataTable tbody td { padding: .8rem .75rem !important; border-top: 1px solid var(--q-line) !important; font-size: .93rem; color: var(--q-ink); }
.q-content table.dataTable tbody td:nth-child(2) { font-weight: 700; }
.q-content table.dataTable thead th { background: transparent !important; color: var(--q-muted) !important; }
.q-content table.dataTable td img[width="25px"] { width: 22px; height: 22px; object-fit: contain; }
.q-content table.dataTable .highlighted {
  background: transparent !important; color: var(--q-danger) !important; border: 1px solid transparent !important;
  border-radius: var(--q-radius-pill) !important; padding: .3rem .7rem !important; font-weight: 700; font-size: .82rem; min-height: 0 !important; transform: none !important;
}
.q-content table.dataTable .highlighted:hover { background: var(--q-danger-50) !important; border-color: #f3c5c8 !important; }
.q-content .dataTables_wrapper .dataTables_paginate { margin-top: 1rem; }
.q-rowico { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--q-primary-50); color: var(--q-primary); font-size: .85rem; }

/* Fuera los "saltos" y zooms de las vistas antiguas del panel */
.q-content :not([class*="q-"]):hover { transform: none !important; }
.q-content .w3-button, .q-content [class*="animated"] { animation: none !important; }
.q-content .dataTables_length, .q-content [id$="_length"] { display: none !important; }
.q-content .dataTables_wrapper .top { display: block !important; }
.q-content .dataTables_wrapper .dataTables_filter, .q-content [id$="_filter"] { float: none !important; text-align: left !important; margin: 0 0 .75rem !important; width: 100% !important; }
.q-content .dataTables_wrapper .dataTables_paginate .paginate_button { min-width: 2.2rem; padding: .35rem .75rem !important; background: transparent !important; border: 0 !important; color: var(--q-ink) !important; font-size: .9rem; }
.q-content .dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--q-ink) !important; color: #fff !important; }
.q-content .dataTables_wrapper .dataTables_paginate .paginate_button.disabled { opacity: .35; }
body .q-content [id$="_filter"], body .q-content .dataTables_filter { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; }
body .q-content .dataTables_wrapper .dataTables_paginate .paginate_button,
body .q-content .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
body .q-content .dataTables_wrapper .dataTables_paginate .paginate_button:not(.current) { background: transparent !important; box-shadow: none !important; height: auto !important; border: 0 !important; color: var(--q-ink) !important; }
body .q-content .dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--q-ink) !important; color: #fff !important; }
body .q-content .dataTables_wrapper .dataTables_paginate .paginate_button.disabled { color: var(--q-muted) !important; opacity: .5; }
@media (max-width: 575.98px) {
  .q-actions { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .q-action { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .85rem; }
  .q-action small { display: none; }
  .q-action strong { font-size: .95rem; }
  .q-entityhead .btn { width: 100%; }
}

/* ==========================================================================
   Intranet v2 · barra lateral clara, selector de entidad, cabecera de página
   ========================================================================== */
.q-app { background: #faf8fb; }
.q-side { background: var(--q-surface); color: var(--q-ink-2); border-right: 1px solid var(--q-line); padding: 1rem .85rem; }
.q-side__top { display: flex; align-items: center; margin-bottom: 1rem; padding: 0 .35rem; }
.q-side .q-logo { color: var(--q-ink); margin: 0; padding: 0; font-size: 1.5rem; }
.q-side__label { color: var(--q-muted); font-size: .68rem; margin: 1.1rem 0 .35rem; }
.q-side__link, .q-side .nav-link { color: var(--q-ink-2); font-weight: 600; padding: .5rem .7rem; border-radius: 10px; font-size: .92rem; }
.q-side__link i, .q-side .nav-link i { color: var(--q-muted); }
.q-side__link:hover, .q-side .nav-link:hover { background: var(--q-paper-2); color: var(--q-ink); }
.q-side__link.active, .q-side .nav-item.active > .nav-link { background: var(--q-primary-50); color: var(--q-primary); }
.q-side__link.active i { color: var(--q-primary) !important; }
.q-side__foot { border-top: 1px solid var(--q-line); }
.q-side__scroll { flex: 1; overflow-y: auto; margin: 0 -.35rem; padding: 0 .35rem; }
.q-side__back, .q-side__entity { display: none !important; }

.q-ctx { margin-bottom: .5rem; }
.q-ctx__btn {
  width: 100%; display: flex; align-items: center; gap: .65rem; padding: .55rem .65rem; text-align: left;
  border: 1px solid var(--q-line); border-radius: 14px; background: var(--q-surface); color: var(--q-ink);
}
.q-ctx__btn:hover, .q-ctx__btn[aria-expanded="true"] { border-color: var(--q-line-2); background: var(--q-paper); }
.q-ctx__btn::after { margin-left: auto; color: var(--q-muted); }
.q-ctx__ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--q-ink); color: #fff; font-size: .9rem; }
.q-ctx__txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.q-ctx__txt b { font-weight: 700; font-size: .92rem; }
.q-ctx__txt small { color: var(--q-muted); font-size: .75rem; font-weight: 600; }
.q-ctx .dropdown-item.active { background: var(--q-primary-50); color: var(--q-primary); }
.q-ctx .dropdown-item.active i { color: var(--q-primary); }

.q-topbar { background: rgba(250, 248, 251, .9); border-bottom: 0; justify-content: flex-end; }
.q-topbar .q-burger { margin-right: auto; }
.q-pagehead2 { padding: .25rem 1.5rem 0; }
.q-pagehead2:has(.q-crumbs:empty):has(.q-pagehead2__title:empty) { display: none; }
.q-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .82rem; color: var(--q-muted); font-weight: 600; }
.q-crumbs a { color: var(--q-muted); }
.q-crumbs a:hover { color: var(--q-primary); }
.q-crumbs i { font-size: 0; }
.q-crumbs i::before { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .6rem; margin: 0 .15rem; opacity: .6; }
.q-pagehead2__title > * { font-family: var(--q-font-display) !important; font-size: clamp(1.5rem, 2.4vw, 2rem) !important; font-weight: 600 !important; color: var(--q-ink) !important; margin: .35rem 0 0 !important; line-height: 1.15; }
.q-content { padding-top: 1.25rem; }
@media (max-width: 991.98px) { .q-pagehead2 { padding: .25rem 1rem 0; } .q-topbar { justify-content: space-between; } }

/* ==========================================================================
   Formularios del panel (se aplica a todas las pantallas de crear/editar)
   ========================================================================== */
/* Etiqueta encima del campo en lugar de "pegada" a la izquierda */
.q-content form .input-group:not(.q-keep) { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: .35rem; }
.q-content form .input-group:not(.q-keep) > .input-group-text:first-child {
  background: none !important; border: 0 !important; padding: 0 !important; width: auto !important; min-width: 0 !important;
  justify-content: flex-start; font-size: .82rem; font-weight: 700; color: var(--q-ink-2); white-space: normal; text-align: left; height: auto !important;
}
.q-content form .input-group:not(.q-keep) > .form-control,
.q-content form .input-group:not(.q-keep) > .form-select,
.q-content form .input-group:not(.q-keep) > select,
.q-content form .input-group:not(.q-keep) > textarea { width: 100% !important; min-width: 0 !important; border-radius: 12px !important; margin: 0 !important; }
/* Botones auxiliares dentro de un campo (p. ej. "+ ubicación") quedan en línea */
.q-content form .input-group:not(.q-keep) > .input-group-text:not(:first-child) {
  position: absolute; right: 0; bottom: 0; width: auto !important; height: 44px; border-radius: 12px !important; cursor: pointer;
  background: var(--q-primary-50) !important; color: var(--q-primary) !important; border: 0 !important; padding: 0 .8rem !important;
}
.q-content form .input-group:not(.q-keep):has(> .input-group-text:not(:first-child)) > select { padding-right: 6.5rem; }
.q-content form .input-group:not(.q-keep) > .input-group-text:not(:first-child) + .input-group-text:not(:first-child) { right: 3rem; }
.q-content form .form-control, .q-content form .form-select, .q-content form select { min-height: 44px; background-color: var(--q-surface); }
.q-content form textarea.form-control { min-height: 140px; }

/* Títulos de sección antiguos (labels con borde inferior) */
.q-content form > div label[style*="font-size: 24px"], .q-content label[style*="font-size: 24px"] {
  font-family: var(--q-font-display); font-weight: 600 !important; font-size: 1.2rem !important; color: var(--q-ink);
  border: 0 !important; padding: 0 !important; margin: 1.75rem 0 .25rem !important; display: block !important; width: auto !important;
}
.q-content form > div > .row > .col-lg-10 > div > label[style*="font-size: 24px"]:first-child { margin-top: 0 !important; }
.q-content .row[style*="margin-top: 20px"] { margin-top: .75rem !important; }

/* Pestañas laterales de los formularios (Datos principales, Imágenes, Entradas…) */
.q-content .submenu {
  display: flex !important; align-items: center; gap: .65rem; padding: .6rem .8rem !important; margin-bottom: .3rem !important;
  border-radius: 12px !important; background: transparent !important; border: 0 !important; cursor: pointer; color: var(--q-ink-2) !important;
  box-shadow: none !important; transform: none !important; width: auto !important; height: auto !important;
}
.q-content .submenu i { font-size: 1rem !important; margin: 0 !important; color: var(--q-muted); width: 1.2rem !important; height: auto !important; }
.q-content .submenu label { margin: 0 !important; font-size: .92rem !important; font-weight: 700; cursor: pointer; color: inherit !important; }
.q-content .submenu:hover { background: var(--q-paper-2) !important; }
.q-content .submenu.active { background: var(--q-primary-50) !important; color: var(--q-primary) !important; }
.q-content .submenu.active i { color: var(--q-primary) !important; }
@media (max-width: 991.98px) {
  .q-content .col-lg-2:has(> .submenu) { display: flex; gap: .35rem; overflow-x: auto; margin-bottom: 1rem !important; padding-bottom: .25rem; }
  .q-content .col-lg-2:has(> .submenu) .submenu { flex: none; }
  .q-content .col-lg-10[style*="padding-left: 30px"] { padding-left: calc(var(--bs-gutter-x) * .5) !important; }
}

/* El bloque del formulario, en una tarjeta */
.q-content form.form > div[style*="min-height"] { background: var(--q-surface); border: 1px solid var(--q-line); border-radius: var(--q-radius); padding: 1.25rem 1.25rem 5.5rem; position: relative; min-height: 0 !important; }

/* Guardar / Volver: barra fija abajo, siempre a mano */
.q-content .btn-group:has(#submit-form) {
  position: fixed !important; left: calc(var(--q-sidebar-w) + 1.5rem); right: 1.5rem; bottom: 1rem; z-index: 1030;
  float: none !important; width: auto !important; margin: 0 !important; display: flex; justify-content: flex-end; gap: .5rem;
  padding: .65rem; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--q-line); border-radius: 18px; box-shadow: 0 10px 30px rgba(31, 17, 53, .12);
}
@media (max-width: 991.98px) { .q-content .btn-group:has(#submit-form) { left: .75rem; right: .75rem; bottom: .75rem; } }
#submit-form, #linkdel, #linkback {
  display: inline-flex !important; align-items: center; justify-content: center; gap: .45rem; height: 42px !important; width: auto !important;
  padding: 0 1.2rem !important; border-radius: var(--q-radius-pill) !important; font-weight: 700 !important; font-size: .95rem !important;
  text-decoration: none !important; cursor: pointer; margin: 0 !important; box-shadow: none !important; transform: none !important;
}
#submit-form { background: var(--q-primary) !important; color: #fff !important; border: 0 !important; order: 2; }
#submit-form:hover { background: var(--q-primary-600) !important; }
#submit-form::after { content: "Guardar"; }
#submit-form:not(:empty)::after { content: none; }
#linkdel, #linkback { background: var(--q-surface) !important; color: var(--q-ink) !important; border: 1px solid var(--q-line-2) !important; order: 1; }
#linkdel:hover, #linkback:hover { background: var(--q-paper-2) !important; }

/* Interruptores (Para niños, Benéfico…) */
.q-content .switch2 { position: relative; display: inline-block; width: 44px !important; height: 26px !important; margin: 0 .6rem 0 0 !important; flex: none; }
.q-content .switch2 input { opacity: 0; width: 0; height: 0; }
.q-content .switch2 .slider { position: absolute; inset: 0; cursor: pointer; background: var(--q-line-2) !important; border-radius: 26px !important; transition: background-color .15s; border: 0 !important; }
.q-content .switch2 .slider::before { content: ""; position: absolute; width: 20px !important; height: 20px !important; left: 3px !important; top: 3px !important; bottom: auto !important; background: #fff !important; border-radius: 50% !important; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.q-content .switch2 input:checked + .slider { background: var(--q-primary) !important; }
.q-content .switch2 input:checked + .slider::before { transform: translateX(18px) !important; }
.q-content form .input-group:has(> .switch2) { flex-direction: row !important; align-items: center; }
.q-content form .input-group:has(> .switch2) > .input-group-text { background: none !important; border: 0 !important; padding: 0 !important; width: auto !important; font-weight: 700; font-size: .9rem; color: var(--q-ink); position: static !important; height: auto !important; }

/* Validación: marco rojo fino en vez del borde de 3px */
.q-content .is-invalid, .q-content [style*="3px solid red"] { border: 1px solid var(--q-danger) !important; box-shadow: 0 0 0 .2rem rgba(192, 38, 45, .12) !important; }
.q-content p[id$="e"][style*="color:red"], .q-content .validator { color: var(--q-danger) !important; font-size: .82rem; font-weight: 600; }

/* Botones de estilo antiguo dentro del panel */
.q-content .highlighted:not(table .highlighted), .q-content #btnevent, .q-content #btnmodal1, .q-content #btnmodal2, .q-content #filebutton {
  background: var(--q-primary) !important; color: #fff !important; border: 0 !important; border-radius: var(--q-radius-pill) !important;
  padding: .5rem 1.1rem !important; font-weight: 700 !important; min-height: 0 !important; height: auto !important; transform: none !important; box-shadow: none !important;
}
.q-content .card, .q-content .card-body { border-radius: var(--q-radius) !important; }
body .q-content #submit-form, body .q-content #submit-form:hover { background: var(--q-primary) !important; background-color: var(--q-primary) !important; color: #fff !important; border: 0 !important; padding: 0 1.3rem !important; height: 42px !important; }
body .q-content #submit-form:hover { background-color: var(--q-primary-600) !important; }
body .q-content #submit-form i { color: #fff !important; }
body .q-content #linkdel, body .q-content #linkback { height: 42px !important; padding: 0 1.2rem !important; }
/* Interruptores: la etiqueta de al lado, sin fondo */
body .q-content form .input-group:not(.q-keep):has(> .switch2) > .input-group-text:not(:first-child) { position: static !important; background: none !important; color: var(--q-ink) !important; height: auto !important; padding: 0 !important; }
body .q-content .switch2 .slider { background-color: var(--q-line-2) !important; }
body .q-content .switch2 input:checked + .slider { background-color: var(--q-primary) !important; }
/* Si el formulario solo tiene una pestaña, se quita la columna lateral */
.q-content .col-lg-2:has(> .submenu:only-of-type) { display: none !important; }
.q-content .col-lg-2:has(> .submenu:only-of-type) + .col-lg-10 { flex: 0 0 100%; max-width: 100%; padding-left: calc(var(--bs-gutter-x) * .5) !important; }
body .q-content .switch2 { transform: none !important; margin: 0 .6rem 0 0 !important; }
body .q-content .switch2 .slider { box-shadow: none !important; background-color: #d9d2de !important; }
body .q-content .switch2 .slider::before, body .q-content .switch2 .slider:before { content: "" !important; display: block !important; position: absolute !important; width: 20px !important; height: 20px !important; left: 3px !important; top: 3px !important; transform: translateX(0) !important; background: #fff !important; border-radius: 50% !important; }
body .q-content .switch2 input:checked + .slider::before, body .q-content .switch2 input:checked + .slider:before { transform: translateX(18px) !important; }
body .q-content #submit-form { width: auto !important; flex: 0 0 auto !important; }
body .q-content > .container-fluid > #submit-form, body .q-content form > #submit-form { display: flex !important; margin: 1rem auto 0 !important; }
/* Ilustraciones antiguas de las pantallas del panel */
.q-content img[src*="passchange.png"], .q-content img[src*="notificationsend.png"], .q-content img[src*="supportsend.png"], .q-content img[src*="visorsend.png"] { display: none !important; }
.q-content img[src*="camera.png"] { width: 100% !important; max-width: 260px; height: auto !important; aspect-ratio: 1; object-fit: contain; padding: 3.5rem; border: 2px dashed var(--q-line-2); border-radius: var(--q-radius); background: var(--q-paper); opacity: .6; cursor: pointer; margin: 0 !important; }

/* ==========================================================================
   Panel de filtros público (.qf): portada y búsqueda
   ========================================================================== */
.qf-lock { overflow: hidden; }
.qf { position: fixed; inset: 0; z-index: 1060; }
.qf[hidden] { display: none; }
.qf__back { position: absolute; inset: 0; background: rgba(23, 20, 31, .5); opacity: 0; transition: opacity .2s; }
.qf__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(500px, 100vw); background: var(--q-surface, #fff); display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(23, 20, 31, .2); transform: translateX(100%); transition: transform .24s var(--q-ease, ease); color: var(--q-ink); text-align: left; }
.qf.is-in .qf__back { opacity: 1; }
.qf.is-in .qf__panel { transform: none; }
.qf__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--q-line); }
.qf__head h2 { font-family: var(--q-font-display); font-size: 1.5rem; margin: 0; }
.qf__x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--q-paper-2); color: var(--q-ink); font-size: 1.05rem; }
.qf__x:hover { background: var(--q-primary-50); }
.qf__body { flex: 1; overflow-y: auto; padding: .5rem 1.5rem 1.5rem; overscroll-behavior: contain; }
.qf__text { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 0; padding: 0 1rem; height: 48px; border-radius: 999px; border: 1.5px solid var(--q-line); color: var(--q-muted); }
.qf__text:focus-within { border-color: var(--q-primary); }
.qf__text input { border: 0; outline: 0; flex: 1; min-width: 0; background: none; font-size: 1rem; color: var(--q-ink); }
.qf__sec { border: 0; margin: 0; padding: 1.25rem 0 1.4rem; min-width: 0; }
.qf__sec + .qf__sec { border-top: 1px dashed var(--q-line); }
.qf__sec legend { float: left; width: 100%; display: flex; align-items: center; gap: .55rem; font-family: var(--q-font-display); font-weight: 600; font-size: 1.2rem; margin: 0 0 .8rem; padding: 0; }
.qf__sec legend i { color: var(--q-primary); font-size: .95rem; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--q-primary-50); }
.qf__sec legend + * { clear: both; }
.qf__sub { margin: 1.1rem 0 .5rem; font-weight: 700; font-size: .9rem; color: var(--q-ink-2); }
.qf__pills, .qf__subs { display: flex; flex-wrap: wrap; gap: .45rem; }
.qf-pill { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .48rem .9rem; border-radius: 999px; border: 1.5px solid var(--q-line); background: #fff; color: var(--q-ink); font-weight: 700; font-size: .9rem; cursor: pointer; line-height: 1.2; transition: background .15s, border-color .15s, color .15s; user-select: none; }
.qf-pill i { color: var(--q-primary); font-size: .9em; }
.qf-pill:hover { border-color: var(--q-primary); }
.qf-pill--check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.qf-pill.is-on, .qf-pill--check:has(input:checked) { background: var(--q-ink); border-color: var(--q-ink); color: #fff; }
.qf-pill.is-on i, .qf-pill--check:has(input:checked) i { color: #ffb3c9; }
.qf-pill--check:has(input:focus-visible), .qf-day:has(input:focus-visible), .qf-cat:has(input:focus-visible) { outline: 3px solid var(--q-primary); outline-offset: 2px; }
.qf-pill[hidden] { display: none; }
.qf__dates { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .8rem; }
.qf__dates label, .qf__where label { display: grid; gap: .3rem; margin: 0; min-width: 0; }
.qf__dates span, .qf__where label > span:first-child { font-size: .8rem; font-weight: 700; color: var(--q-muted); }
.qf__dates input, .qf__where select { height: 44px; border-radius: 12px; border: 1.5px solid var(--q-line); padding: 0 .75rem; font: inherit; color: var(--q-ink); background: #fff; min-width: 0; width: 100%; }
.qf__dates input:focus, .qf__where select:focus { outline: 0; border-color: var(--q-primary); }
.qf__dates--time { grid-template-columns: 1fr 1fr; }
.qf__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; max-width: 360px; }
.qf-day { position: relative; margin: 0; cursor: pointer; }
.qf-day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qf-day > span[aria-hidden] { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--q-line); font-weight: 800; background: #fff; transition: background .15s, color .15s; }
.qf-day:hover > span[aria-hidden] { border-color: var(--q-primary); }
.qf-day:has(input:checked) > span[aria-hidden] { background: var(--q-primary); border-color: var(--q-primary); color: #fff; }
.qf__cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin-bottom: .8rem; }
.qf-cat { position: relative; display: grid; gap: .15rem; padding: .85rem .8rem .8rem; border-radius: 16px; border: 1.5px solid var(--q-line); background: #fff; cursor: pointer; margin: 0; transition: border-color .15s, background .15s; }
.qf-cat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qf-cat i { font-size: 1.25rem; color: var(--q-primary); margin-bottom: .3rem; }
.qf-cat b { font-size: .98rem; }
.qf-cat small { font-size: .75rem; color: var(--q-muted); line-height: 1.3; }
.qf-cat:hover { border-color: var(--q-primary); }
.qf-cat:has(input:checked) { background: var(--q-primary-50); border-color: var(--q-primary); }
.qf-cat:has(input:checked)::after { content: "\f00c"; font: var(--fa-font-solid); position: absolute; top: .6rem; right: .65rem; width: 20px; height: 20px; border-radius: 50%; background: var(--q-primary); color: #fff; font-size: .65rem; display: grid; place-items: center; }
.qf__subhead { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.qf__mini { display: flex; align-items: center; gap: .4rem; height: 34px; padding: 0 .7rem; border-radius: 999px; border: 1px solid var(--q-line); color: var(--q-muted); font-size: .8rem; margin: .6rem 0 .3rem; }
.qf__mini input { border: 0; outline: 0; width: 110px; font-size: .85rem; background: none; }
.qf__subs .qf-pill { font-size: .85rem; padding: .4rem .8rem; }
.qf__where { display: grid; gap: .8rem; }
.qf__pair { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: .5rem; }
.qf__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.qf__tags:empty { display: none; }
.qf-tag { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .35rem .3rem .75rem; border-radius: 999px; background: var(--q-primary-50); color: var(--q-primary-600); font-weight: 700; font-size: .88rem; }
.qf-tag.is-new { animation: qfIn .2s ease; }
@keyframes qfIn { from { transform: scale(.85); opacity: 0; } }
.qf-tag button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .7); color: inherit; font-size: .7rem; display: grid; place-items: center; }
.qf-tag button:hover { background: #fff; }
.qf__foot { display: flex; align-items: center; gap: .5rem; padding: .9rem 1.5rem; border-top: 1px solid var(--q-line); background: #fff; }
.qf__clear { white-space: nowrap; border: 0; background: none; font-weight: 700; color: var(--q-ink); text-decoration: underline; text-underline-offset: 3px; padding: .5rem .4rem; display: inline-flex; align-items: center; gap: .4rem; }
.qf__clear i { color: var(--q-primary); }
.qf__clear:disabled { opacity: .5; }
.qf__go { white-space: nowrap; margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; padding-left: 1.5rem; padding-right: 1.5rem; }
.qf__n { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: #fff; color: var(--q-primary); font-size: .78rem; }
.qf__n[hidden] { display: none; }
.qf__go.is-busy { opacity: .75; pointer-events: none; }
@media (max-width: 575.98px) {
  .qf__panel { top: auto; left: 0; width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; transform: translateY(100%); }
  .qf__head, .qf__body, .qf__foot { padding-left: 1.1rem; padding-right: 1.1rem; }
  .qf__cats { grid-template-columns: 1fr; }
  .qf-cat { grid-template-columns: 28px 1fr; column-gap: .6rem; align-items: center; padding: .7rem .8rem; }
  .qf-cat i { grid-row: span 2; margin: 0; }
  .qf__foot { padding-bottom: calc(.9rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .qf__panel, .qf__back { transition: none; } .qf-tag.is-new { animation: none; } }
@media (max-width: 575.98px) { .qf__foot { gap: .2rem; } .qf__clear { padding: .5rem .3rem; font-size: .92rem; } .qf__go { padding-left: 1.1rem; padding-right: 1.1rem; } }
.q-search__adv { position: relative; }
.q-search__n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--q-primary); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px #fff; }
.q-search__n[hidden] { display: none; }

/* Portada: la palabra del titular cambia (hoy, este finde…) */
.q-hero__word > span { display: inline-block; transition: transform .28s ease, opacity .28s ease; }
.q-hero__word > span.is-out { opacity: 0; transform: translateY(-35%); }
.q-hero__word > span.is-in { animation: qWordIn .35s ease; }
@keyframes qWordIn { from { opacity: 0; transform: translateY(35%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .q-hero__word > span { transition: none; } .q-hero__word > span.is-in { animation: none; } }

/* Esta semana */
.q-wk__card { padding: 1rem 1.1rem 1.1rem; background: var(--q-surface); border: 1px solid var(--q-line); border-radius: 28px; }
.q-wk__days { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .9rem; margin-bottom: .4rem; border-bottom: 1px dashed var(--q-line-2); }
.q-wk__days::-webkit-scrollbar { display: none; }
.q-wk__day { flex: 1 0 84px; display: grid; justify-items: center; gap: .1rem; padding: .55rem .4rem .5rem; border-radius: 18px; border: 1px solid var(--q-line); background: #fff; color: var(--q-ink); line-height: 1.05; transition: background .15s, border-color .15s; }
.q-wk__day span { font-weight: 800; font-size: .85rem; }
.q-wk__day b { font-family: var(--q-font-display); font-size: 1.75rem; color: var(--q-primary); }
.q-wk__day small { font-size: .72rem; color: var(--q-muted); font-weight: 700; }
.q-wk__day:hover { border-color: var(--q-primary); }
.q-wk__day.is-on { background: var(--q-primary); border-color: var(--q-primary); color: #fff; }
.q-wk__day.is-on b, .q-wk__day.is-on small { color: #fff; }
.q-wk__day:focus-visible { outline: 3px solid var(--q-primary); outline-offset: 2px; }
.q-wk__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1rem; }
.q-wk__list[hidden] { display: none; }
.q-wk__row { display: grid; grid-template-columns: 50px 42px minmax(0, 1fr) 16px; align-items: center; gap: .7rem; padding: .7rem .75rem; border-radius: 18px; color: var(--q-ink); text-decoration: none; transition: background .15s; }
.q-wk__row:hover { background: var(--q-paper); color: var(--q-ink); }
.q-wk__row:hover .q-wk__go { color: var(--q-primary); transform: translateX(2px); }
.q-wk__time { font-family: var(--q-font-display); font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.q-wk__ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 1.05rem; background: var(--q-primary-50); color: var(--q-primary); }
.q-wk__ico--c2 { background: var(--q-success-50); color: var(--q-success); }
.q-wk__ico--c3 { background: var(--q-info-50); color: var(--q-info); }
.q-wk__txt { display: grid; min-width: 0; }
.q-wk__txt b { font-weight: 800; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-wk__txt small { color: var(--q-muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-wk__kids { font-style: normal; color: var(--q-success); font-weight: 700; margin-left: .35rem; }
.q-wk__kids i { margin-right: .2rem; }
.q-wk__go { color: var(--q-line-2); font-size: .8rem; transition: transform .15s, color .15s; }
@media (max-width: 991.98px) { .q-wk__list { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) {
  .q-wk__card { padding: .75rem; border-radius: 22px; }
  .q-wk__day { flex: 0 0 70px; }
  .q-wk__row { grid-template-columns: 44px 36px minmax(0, 1fr); padding: .6rem .35rem; gap: .55rem; }
  .q-wk__ico { width: 36px; height: 36px; border-radius: 12px; font-size: .9rem; }
  .q-wk__go { display: none; }
}

/* Resultados de búsqueda: lista por días (como un programa) o carteles */
.q-res-tools { display: flex; justify-content: flex-end; gap: .35rem; margin: -.5rem 0 .75rem; }
.q-res-tool { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--q-line); background: #fff; color: var(--q-ink-2); font-weight: 700; font-size: .88rem; }
.q-res-tool i { color: var(--q-muted); }
.q-res-tool.is-on { background: var(--q-ink); border-color: var(--q-ink); color: #fff; }
.q-res-tool.is-on i { color: #ffb3c9; }
.q-res__day { margin-bottom: 1.75rem; }
.q-res__dayh { display: flex; align-items: center; gap: .65rem; font-family: var(--q-font-display); font-size: 1.45rem; font-weight: 600; margin: 0 0 .5rem; padding-bottom: .55rem; border-bottom: 2px solid var(--q-ink); }
.q-res__dayn { display: grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .3rem; border-radius: 14px; background: var(--q-primary); color: #fff; font-size: 1.35rem; }
.q-res__list { list-style: none; margin: 0; padding: 0; display: grid; }
.q-res__item + .q-res__item { border-top: 1px dashed var(--q-line-2); }
.q-res__a { display: grid; grid-template-columns: 58px 104px minmax(0, 1fr) 20px; align-items: center; gap: 1rem; padding: .8rem .6rem; border-radius: 18px; color: var(--q-ink); text-decoration: none; transition: background .15s; }
.q-res__a:hover { background: #fff; color: var(--q-ink); }
.q-res__a:hover .q-res__go { color: var(--q-primary); transform: translateX(3px); }
.q-res__time { font-family: var(--q-font-display); font-size: 1.3rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; color: var(--q-ink); }
.q-res__img { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--q-paper-2); }
.q-res__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q-res__txt { display: grid; gap: .15rem; min-width: 0; }
.q-res__sub { font-size: .8rem; font-weight: 800; color: var(--q-primary); display: inline-flex; align-items: center; gap: .35rem; }
.q-res__sub--c2 { color: var(--q-success); } .q-res__sub--c3 { color: var(--q-info); }
.q-res__title { font-size: 1.12rem; font-weight: 800; line-height: 1.25; }
.q-res__where { color: var(--q-ink-2); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-res__where i { color: var(--q-muted); margin-right: .35rem; }
.q-res__org { color: var(--q-muted); font-size: .82rem; }
.q-res__go { color: var(--q-line-2); transition: transform .15s, color .15s; }
/* Vista carteles */
.q-res.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.q-res.is-grid .q-res__day, .q-res.is-grid .q-res__list { display: contents; }
.q-res.is-grid .q-res__dayh { display: none; }
.q-res__date { display: none; }
.q-res.is-grid .q-res__date { display: grid; justify-items: center; position: absolute; top: 1.1rem; left: 1.1rem; z-index: 1; min-width: 46px; padding: .3rem .4rem; border-radius: 12px; background: #fff; color: var(--q-primary); font-size: .7rem; font-weight: 800; text-transform: uppercase; line-height: 1; box-shadow: var(--q-shadow-sm); }
.q-res.is-grid .q-res__date b { font-family: var(--q-font-display); font-size: 1.3rem; color: var(--q-ink); }
.q-res.is-grid .q-res__item + .q-res__item { border-top: 0; }
.q-res.is-grid .q-res__a { position: relative; grid-template-columns: 1fr; gap: .6rem; padding: .6rem .6rem .9rem; background: #fff; border: 1px solid var(--q-line); border-radius: 20px; align-items: start; }
.q-res.is-grid .q-res__a:hover { box-shadow: var(--q-shadow); transform: translateY(-2px); }
.q-res.is-grid .q-res__img { order: -1; aspect-ratio: 4 / 3; border-radius: 14px; }
.q-res.is-grid .q-res__time { position: absolute; top: 1.1rem; right: 1.1rem; z-index: 1; background: rgba(31, 17, 53, .78); color: #fff; border-radius: 999px; padding: .2rem .6rem; font-size: .95rem; }
.q-res.is-grid .q-res__txt { padding: 0 .35rem; }
.q-res.is-grid .q-res__go { display: none; }
@media (max-width: 575.98px) {
  .q-res__a { grid-template-columns: 46px 72px minmax(0, 1fr); gap: .65rem; padding: .7rem .2rem; }
  .q-res__time { font-size: 1.05rem; }
  .q-res__title { font-size: 1rem; }
  .q-res__go, .q-res__org { display: none; }
  .q-res.is-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .q-res.is-grid .q-res__date { top: .75rem; left: .75rem; min-width: 38px; }
  .q-res.is-grid .q-res__date b { font-size: 1.05rem; }
  .q-res.is-grid .q-res__a { padding: .4rem .4rem .7rem; }
  .q-res.is-grid .q-res__where { font-size: .8rem; }
  .q-res.is-grid .q-res__time { top: .75rem; right: .75rem; font-size: .78rem; }
}

/* Acceso (ronda 7, revisado): se mantiene la foto; solo campos y registro */
.q-auth__box h1 { font-family: var(--q-font-display); font-weight: 600; font-size: 2.4rem; }
.q-auth__panel .form-floating > .form-control { border-radius: 16px; border: 1.5px solid var(--q-line); }
.q-auth__panel .form-floating > .form-control:focus { border-color: var(--q-primary); box-shadow: 0 0 0 .2rem rgba(201, 37, 88, .15); }
.q-auth__panel .btn-lg { border-radius: 999px; }
/* Registro */
.q-reg .step-forms > .q-reg__q { font-family: var(--q-font-display); font-weight: 600; font-size: 1.4rem; }
.q-reg #checkboxdiv, .q-reg #checkboxdiv2 { position: relative; padding: 1rem 1.1rem; border-radius: 20px; border-width: 1.5px; margin-bottom: .75rem; }
.q-reg #checkboxdiv.is-selected::after, .q-reg #checkboxdiv2.is-selected::after { content: "\f00c"; font: var(--fa-font-solid); position: absolute; right: 1rem; top: 50%; margin-top: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--q-primary); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.q-reg #checkboxdiv:focus-visible, .q-reg #checkboxdiv2:focus-visible { outline: 3px solid var(--q-primary); outline-offset: 2px; }
.q-reg__icon { width: 52px; height: 52px; border-radius: 16px; font-size: 1.25rem; background: var(--q-primary-50); color: var(--q-primary); }
.q-reg__opt { display: grid; gap: .15rem; padding-right: 2rem; }
.q-reg__opt b { font-size: 1.08rem; }
.q-reg__opt small { font-weight: 500; color: var(--q-muted); font-size: .88rem; line-height: 1.35; }
.q-reg .group-inputs input, .q-reg .group-inputs select { border: 1.5px solid var(--q-line) !important; border-radius: 14px !important; }
.q-reg .group-inputs input:focus, .q-reg .group-inputs select:focus { border-color: var(--q-primary) !important; }
.q-reg .group-inputs [style*="red"] { border-color: var(--q-danger) !important; box-shadow: 0 0 0 3px var(--q-danger-50) !important; }
.q-reg__err { font-size: .82rem; margin: .3rem 0 0; color: var(--q-danger); font-weight: 600; }
.q-reg__err:empty { display: none; }
.q-req { color: var(--q-primary); margin-left: .15rem; }
.q-reg .btn-next, .q-reg .btn-prev, .q-reg #submit-form { border-radius: 999px; padding: .7rem 1.2rem; font-weight: 800; }
.q-reg #submit-form { flex: 1; background: var(--q-primary); color: #fff; border: 0; }
.q-reg #submit-form:disabled { background: var(--q-line-2); color: #fff; opacity: 1; }
.q-reg .form-check { padding: .75rem .9rem; border-radius: 16px; background: #fff; border: 1px solid var(--q-line); }
.q-reg .step-forms hr { display: none; }
.q-reg .step-forms .form-check + .form-check { margin-top: .5rem; }
.q-ftags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.q-ftags .q-tag { margin: 0; }
.q-tag--kids { background: var(--q-success-50); color: var(--q-success); }
.q-tag--sol { background: var(--q-accent-50); color: var(--q-warning); }
.q-tag--hash { background: var(--q-info-50); color: var(--q-info); }
.q-ftags .q-tag { padding: .32rem .75rem; border-radius: 999px; text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 800; background: var(--q-primary-50); color: var(--q-primary); }
.q-ftags .q-tag--kids { background: var(--q-success-50); color: var(--q-success); }
.q-ftags .q-tag--sol { background: var(--q-accent-50); color: var(--q-warning); }
.q-ftags .q-tag--hash { background: var(--q-info-50); color: var(--q-info); }
.q-fact small { text-transform: none !important; letter-spacing: 0 !important; font-size: .8rem !important; font-weight: 700; }
/* Programas de fiestas en la ficha de entidad */
.q-progs { display: grid; gap: .6rem; }
.q-prog { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: 20px; background: #fff; border: 1px solid var(--q-line); color: var(--q-ink); text-decoration: none; box-shadow: inset 5px 0 0 var(--c); transition: transform .15s, box-shadow .15s; }
.q-prog:hover { color: var(--q-ink); transform: translateY(-2px); box-shadow: inset 5px 0 0 var(--c), var(--q-shadow); }
.q-prog__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 1.25rem; }
.q-prog__txt { display: grid; min-width: 0; }
.q-prog__txt b { font-family: var(--q-font-display); font-size: 1.2rem; font-weight: 600; }
.q-prog__txt small { color: var(--q-muted); font-weight: 700; }
.q-prog__go { font-weight: 800; color: var(--c); white-space: nowrap; }
@media (max-width: 575.98px) { .q-prog__go { display: none; } .q-prog { grid-template-columns: 44px minmax(0, 1fr); } .q-prog__ico { width: 44px; height: 44px; } }
/* Ficha de evento dentro de un visor */
.q-visor-back { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--q-line); background: #fff; color: var(--q-ink); font-weight: 800; font-size: .9rem; text-decoration: none; }
.q-visor-back:hover { border-color: var(--q-primary); color: var(--q-ink); }
.q-visor-back i { color: var(--q-primary); }
.q-ficha--visor { padding-top: 1rem !important; }
.q-event__sub { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 800; color: var(--q-primary); }
.q-event__sub--c2 { color: var(--q-success); } .q-event__sub--c3 { color: var(--q-info); }

/* Cabecera de la ficha de evento: el cartel entero (sin recortes) sobre su propia imagen difuminada */
.q-eh { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: 32px; background: var(--q-ink); color: #fff; margin-bottom: 2rem; }
.q-eh::before { content: ""; position: absolute; inset: -40px; z-index: -2; background: var(--eh-bg) center / cover no-repeat; filter: blur(34px) saturate(1.2); transform: scale(1.1); }
.q-eh::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(31, 17, 53, .55), rgba(31, 17, 53, .82)); }
.q-eh__poster { display: grid; place-items: center; }
.q-eh__poster img { display: block; width: auto; max-width: 100%; max-height: 430px; border-radius: 16px; box-shadow: 0 18px 44px rgba(0, 0, 0, .4); background: rgba(255, 255, 255, .08); }
.q-eh__info { min-width: 0; }
.q-eh__title { font-family: var(--q-font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; color: #fff; margin: .4rem 0 .5rem; text-wrap: balance; }
.q-eh__sub { font-size: 1.15rem; color: rgba(255, 255, 255, .82); margin: 0 0 1.1rem; }
.q-eh__facts { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .7rem; }
.q-eh__facts li { display: flex; gap: .8rem; align-items: center; }
.q-eh__facts i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; flex: none; }
.q-eh__facts b { display: block; font-weight: 800; font-size: 1.05rem; }
.q-eh__facts small { display: block; color: rgba(255, 255, 255, .75); }
.q-eh__acts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.q-eh__acts .btn-light { background: #fff; border-color: #fff; }
.q-eh__likes { font-size: .85rem; color: rgba(255, 255, 255, .8); margin-left: .25rem; }
.q-eh .q-ftags .q-tag { background: rgba(255, 255, 255, .92); }
@media (max-width: 767.98px) {
  .q-eh { grid-template-columns: 1fr; border-radius: 24px; padding: 1rem 1rem 1.25rem; }
  .q-eh__poster img { max-height: 380px; }
}

/* Fotos que no se recortan: la imagen entera sobre una versión difuminada de sí misma (carteles verticales incluidos) */
.q-fit { position: relative; isolation: isolate; overflow: hidden; background: var(--q-ink); }
.q-fit::before { content: ""; position: absolute; inset: -24px; z-index: -1; background: var(--fit-bg) center / cover no-repeat; filter: blur(18px) brightness(.8) saturate(1.15); }
.q-fit > img { position: relative; width: 100%; height: 100%; object-fit: contain !important; }
.q-event:hover .q-event__media.q-fit img { transform: none; }

/* Panel de filtros compacto (revisión): una fila por filtro, etiqueta corta a la izquierda */
.qf__panel { width: min(460px, 100vw); }
.qf__head { padding: .85rem 1.25rem; }
.qf__head h2 { font-size: 1.3rem; }
.qf__body { padding: 0 1.25rem 1rem; }
.qf-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--q-line); }
.qf-row:last-child { border-bottom: 0; }
.qf-row__l { display: grid; justify-items: start; gap: .25rem; align-content: start; padding-top: .35rem; font-size: .78rem; font-weight: 800; color: var(--q-muted); }
.qf-row__l i { color: var(--q-primary); font-size: .95rem; }
.qf-row__c { min-width: 0; }
.qf-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 14px; background: var(--q-paper-2); max-width: 100%; }
.qf-seg button { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: none; padding: .38rem .7rem; border-radius: 11px; font-weight: 700; font-size: .84rem; color: var(--q-ink-2); }
.qf-seg button i { color: var(--q-muted); font-size: .8rem; }
.qf-seg button:hover { color: var(--q-ink); }
.qf-seg button.is-on { background: #fff; color: var(--q-primary); box-shadow: 0 1px 3px rgba(31, 17, 53, .14); }
.qf-seg button.is-on i { color: var(--q-primary); }
.qf-range { display: flex; align-items: center; gap: .4rem; margin-top: .5rem; }
.qf-range input { flex: 1; min-width: 0; height: 38px; padding: 0 .55rem; border: 1px solid var(--q-line-2); border-radius: 10px; font: inherit; font-size: .86rem; color: var(--q-ink); background: #fff; }
.qf-range input:focus { outline: 0; border-color: var(--q-primary); }
.qf-range > i { color: var(--q-muted); font-size: .75rem; }
.qf-more summary { display: inline-block; margin-top: .45rem; font-size: .8rem; font-weight: 800; color: var(--q-primary); cursor: pointer; list-style: none; }
.qf-more summary::-webkit-details-marker { display: none; }
.qf-more summary::after { content: " ▾"; }
.qf-more[open] summary::after { content: " ▴"; }
.qf-row .qf__days { display: flex; flex-wrap: wrap; gap: .3rem; max-width: none; }
.qf-row .qf-day > span[aria-hidden] { width: 36px; height: 36px; aspect-ratio: auto; font-size: .85rem; border-width: 1px; }
.qf-row .qf__pills { gap: .35rem; }
.qf-row .qf-pill { padding: .38rem .75rem; font-size: .84rem; border-width: 1px; }
.qf__subs { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }
.qf-chip { position: relative; display: inline-flex; align-items: center; gap: .35rem; margin: 0; padding: .28rem .6rem; border-radius: 999px; border: 1px solid var(--q-line); background: #fff; color: var(--q-ink-2); font-weight: 700; font-size: .78rem; cursor: pointer; line-height: 1.25; }
.qf-chip i { color: var(--q-primary); font-size: .85em; }
.qf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.qf-chip:hover { border-color: var(--q-primary); }
.qf-chip:has(input:checked) { background: var(--q-ink); border-color: var(--q-ink); color: #fff; }
.qf-chip:has(input:checked) i { color: #ffb3c9; }
.qf-chip:has(input:focus-visible) { outline: 3px solid var(--q-primary); outline-offset: 2px; }
.qf-chip--more { border-style: dashed; color: var(--q-primary); }
.qf__subs:not(.is-open) label.qf-chip:nth-of-type(n+11):not(:has(input:checked)) { display: none; }
.qf-where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: .4rem; align-items: center; }
.qf-where select { height: 38px; min-width: 0; padding: 0 .5rem; border: 1px solid var(--q-line-2); border-radius: 10px; font: inherit; font-size: .86rem; color: var(--q-ink); background: #fff; }
.qf-where select:focus { outline: 0; border-color: var(--q-primary); }
.qf-where .qf-chip { height: 38px; border-radius: 10px; }
.qf__tags { margin-top: .5rem; }
.qf-tag { font-size: .82rem; }
.qf__foot { padding: .75rem 1.25rem; }
@media (max-width: 575.98px) {
  .qf-row { grid-template-columns: 1fr; gap: .45rem; padding: .75rem 0; }
  .qf-row__l { display: flex; align-items: center; gap: .4rem; padding: 0; }
  .qf__head, .qf__body, .qf__foot { padding-left: 1rem; padding-right: 1rem; }
}

/* Tarjetas de resultados (revisión): foto a sangre, sin tarjeta dentro de tarjeta, más compactas */
.q-res.is-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.q-res.is-grid .q-res__a { padding: 0; gap: 0; overflow: hidden; border-radius: 18px; border-color: var(--q-line); }
.q-res.is-grid .q-res__img { aspect-ratio: 16 / 11; border-radius: 0; }
.q-res.is-grid .q-res__txt { padding: .75rem .9rem .9rem; gap: .2rem; }
.q-res.is-grid .q-res__title { font-size: 1rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.q-res.is-grid .q-res__where { font-size: .84rem; }
.q-res.is-grid .q-res__org { font-size: .78rem; }
.q-res.is-grid .q-res__date { top: .6rem; left: .6rem; }
.q-res.is-grid .q-res__time { top: .6rem; right: .6rem; font-size: .82rem; }
.q-res.is-grid .q-res__a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 17, 53, .1); }

/* Cabecera de fichas de entidad y de lugar */
.q-sec-t { font-family: var(--q-font-display); font-weight: 600; font-size: 1.45rem; }
.q-ph { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem 1.75rem; align-items: center; padding: 0 0 1.75rem; margin-bottom: 2rem; border-bottom: 1px solid var(--q-line); }
.q-ph__logo { width: 120px; height: 120px; border-radius: 30px; object-fit: cover; background: var(--q-paper-2); box-shadow: 0 0 0 5px #fff, 0 10px 30px rgba(31, 17, 53, .12); }
.q-ph__info { min-width: 0; }
.q-ph__type { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .9rem; color: var(--q-primary); }
.q-ph__title { font-family: var(--q-font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: .3rem 0 .6rem; text-wrap: balance; }
.q-ph__stats { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; padding: 0; color: var(--q-muted); font-weight: 600; }
.q-ph__stats b { color: var(--q-ink); font-family: var(--q-font-display); font-size: 1.15rem; font-weight: 600; margin-right: .15rem; }
.q-ph__acts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.q-ph--place { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; padding: 0; border: 0; gap: 2rem; }
.q-ph__photo { border-radius: 28px; min-height: 320px; aspect-ratio: 16 / 11; }
.q-ph--place .q-ph__info { display: flex; flex-direction: column; justify-content: center; }
.q-ph__desc { color: var(--q-ink-2); line-height: 1.6; margin: 0 0 1rem; max-width: 52ch; }
.q-ph__facts { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .55rem; color: var(--q-ink-2); }
.q-ph__facts li { display: flex; align-items: baseline; gap: .65rem; }
.q-ph__facts i { width: 1.1rem; text-align: center; color: var(--q-primary); }
.q-ph__facts a { color: var(--q-ink); font-weight: 700; }
@media (max-width: 767.98px) {
  .q-ph { grid-template-columns: auto minmax(0, 1fr); }
  .q-ph__logo { width: 84px; height: 84px; border-radius: 22px; }
  .q-ph__acts { grid-column: 1 / -1; }
  .q-ph--place { grid-template-columns: 1fr; gap: 1.25rem; }
  .q-ph__photo { min-height: 0; border-radius: 22px; }
}

/* Cuerpo de la ficha de evento (revisión): menos cajas, mejor lectura */
.q-ficha-grid .q-sec-t { font-size: 1.35rem; }
.q-desc { font-size: 1.06rem; line-height: 1.75; color: var(--q-ink-2); max-width: 68ch; }
.q-desc p { margin-bottom: .9rem; }
.q-credits { display: grid; gap: .35rem; margin: 1.1rem 0 0; padding: .9rem 1rem; border-radius: 16px; background: var(--q-paper-2); font-size: .9rem; }
.q-credits div { display: flex; gap: .6rem; flex-wrap: wrap; }
.q-credits dt { font-weight: 800; color: var(--q-ink); min-width: 80px; }
.q-credits dd { margin: 0; color: var(--q-ink-2); }
.q-credits a { color: var(--q-primary); font-weight: 700; }
.q-hor { max-width: 68ch; }
.q-hor ul { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--q-primary-100); }
.q-hor li { position: relative; padding: .35rem 0 .35rem 1rem; margin: 0; }
.q-hor li::before { content: ""; position: absolute; left: -7px; top: .85rem; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid var(--q-primary); }
.q-tix { list-style: none; margin: 0; padding: 0; border: 1px solid var(--q-line); border-radius: 20px; background: #fff; overflow: hidden; }
.q-tix li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: .9rem 1.1rem; }
.q-tix li + li { border-top: 1px solid var(--q-line); }
.q-tix li.is-off { opacity: .55; }
.q-tix__n { font-weight: 700; display: grid; }
.q-tix__n small { font-weight: 600; color: var(--q-muted); }
.q-tix__p { font-family: var(--q-font-display); font-weight: 600; font-size: 1.35rem; }
.q-note { margin-top: .6rem; font-size: .85rem; color: var(--q-muted); }
.q-note summary { cursor: pointer; font-weight: 700; }
.q-note p { margin: .5rem 0 0; line-height: 1.55; }
.q-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.q-thumb { display: block; aspect-ratio: 1; border-radius: 16px; }
.q-ficha-aside .q-card { border-radius: 20px; }
@media (max-width: 575.98px) { .q-tix li { grid-template-columns: 1fr auto; } .q-tix li .btn { grid-column: 1 / -1; } }
/* Ficha de lugar con la misma cabecera que la de evento; la foto suele ser horizontal */
.q-eh--place { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }
.q-eh--place .q-eh__poster img { max-height: 340px; }
@media (max-width: 767.98px) { .q-eh--place { grid-template-columns: 1fr; } }

/* Accesibilidad (revisión) */
.q-reg__q { font-family: var(--q-font-display); font-weight: 600; font-size: 1.4rem; margin: .5rem 0 1.25rem; }
.q-tix li.is-off { opacity: 1; background: var(--q-paper); }
.q-tix li.is-off .q-tix__n, .q-tix li.is-off .q-tix__p { color: var(--q-muted); }
.q-tix li.is-off .q-tix__p { text-decoration: line-through; }
.q-tix__n small { color: var(--q-muted); }
.q-credits a { color: var(--q-primary-600); }
.q-wk [role="tabpanel"]:focus-visible { outline: 3px solid var(--q-primary); outline-offset: 4px; border-radius: 12px; }
a:not([class]) { text-underline-offset: 2px; }
.q-visually-hidden-focusable:not(:focus):not(:focus-within) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
.fc .fc-col-header-cell-cushion { color: #6e6282; }
.fc .fc-day-other .fc-daygrid-day-top { opacity: 1; }
.fc .fc-day-other .fc-daygrid-day-number { color: #6e6282; }
p a:not(.btn):not([class]) { text-decoration: underline; }
/* Logo sobre la foto de portada: el pin conserva su rosa (antes salía blanco) */
.q-header--overlay:not(.is-scrolled) .q-logo__mark path:first-child { fill: var(--q-primary); }
.q-header--overlay:not(.is-scrolled) .q-logo__mark circle, .q-header--overlay:not(.is-scrolled) .q-logo__mark path + circle + path { stroke: #fff; }
.q-header--overlay:not(.is-scrolled) .q-logo__mark { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.q-header--overlay:not(.is-scrolled) .q-logo__tld { color: #ff8fb4; }
.q-header--overlay:not(.is-scrolled) .q-logo__word { text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }

/* Portada: palabra enlazada, de un vistazo y «Sorpréndeme» */
.q-hero__word { color: #fff; text-decoration: none; border-bottom: 0; box-shadow: inset 0 -.22em 0 var(--q-primary); padding: 0 .06em; border-radius: 2px; transition: box-shadow .2s; }
.q-hero__word:hover, .q-hero__word:focus-visible { color: #fff; box-shadow: inset 0 -1.05em 0 var(--q-primary); }
.q-when__btn.is-hint { background: rgba(255, 255, 255, .28) !important; border-color: #fff !important; }
.q-glance { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; margin-top: 1.1rem; color: rgba(255, 255, 255, .92); font-weight: 600; }
.q-glance a { color: #fff; text-decoration: none; border-bottom: 1px dashed rgba(255, 255, 255, .5); }
.q-glance a:hover { border-bottom-style: solid; color: #fff; }
.q-glance b { font-family: var(--q-font-display); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.q-glance__live { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: qLive 1.8s ease-out infinite; }
@keyframes qLive { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.q-glance__dice { display: inline-flex; align-items: center; gap: .45rem; margin-left: .25rem; padding: .35rem .9rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .14); color: #fff; font-weight: 800; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.q-glance__dice:hover { background: #fff; color: var(--q-primary); }
.q-glance__dice.is-rolling i { animation: qRoll .5s linear infinite; }
@keyframes qRoll { to { transform: rotate(360deg); } }
.q-surprise { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: .9rem; align-items: center; max-width: 640px; margin-top: .9rem; padding: .7rem; border-radius: 20px; background: #fff; color: var(--q-ink); box-shadow: 0 16px 40px rgba(0, 0, 0, .3); text-align: left; }
.q-surprise[hidden] { display: none; }
.q-surprise img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.q-surprise b { display: block; font-weight: 800; line-height: 1.25; }
.q-surprise small { color: var(--q-muted); }
.q-surprise__when { display: block; font-size: .8rem; font-weight: 800; color: var(--q-primary); }
.q-surprise__act { display: flex; align-items: center; gap: .35rem; }
.q-surprise__x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--q-paper-2); }
.q-surprise.is-flip { transform: translateY(-2px) rotate(-.6deg); }
.q-surprise.is-done { animation: qPopIn .35s ease; }
@keyframes qPopIn { 50% { transform: scale(1.03); } }
@media (max-width: 575.98px) { .q-surprise { grid-template-columns: 56px minmax(0, 1fr); } .q-surprise img { width: 56px; height: 56px; } .q-surprise__act { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .q-glance__live { animation: none; } .q-surprise.is-done { animation: none; } }

/* Esta semana: densidad del día de un vistazo y cambio de día animado */
.q-wk__day i.q-wk__dens { display: flex; gap: 2px; justify-content: center; height: 6px; margin-top: .25rem; }
.q-wk__dens span { width: 5px; height: 5px; border-radius: 50%; background: var(--q-primary); opacity: .55; }
.q-wk__day.is-on .q-wk__dens span { background: #fff; opacity: .9; }
.q-wk [role="tabpanel"]:not([hidden]) .q-wk__row { animation: qRowIn .3s ease both; }
.q-wk [role="tabpanel"] li:nth-child(2) .q-wk__row { animation-delay: .04s; } .q-wk [role="tabpanel"] li:nth-child(3) .q-wk__row { animation-delay: .08s; } .q-wk [role="tabpanel"] li:nth-child(4) .q-wk__row { animation-delay: .12s; } .q-wk [role="tabpanel"] li:nth-child(n+5) .q-wk__row { animation-delay: .16s; }
@keyframes qRowIn { from { opacity: 0; transform: translateY(6px); } }
.q-wk__now { display: inline-flex; align-items: center; gap: .3rem; margin-left: .4rem; padding: .05rem .5rem; border-radius: 999px; background: #157048; color: #fff; font-size: .7rem; font-weight: 800; font-style: normal; }
@media (prefers-reduced-motion: reduce) { .q-wk [role="tabpanel"] .q-wk__row { animation: none !important; } }
/* Tarjetas y categorías con un poco de vida */
.q-cat2 .q-cat2__ico i { transition: transform .25s ease; }
.q-cat2:hover .q-cat2__ico i { transform: rotate(-12deg) scale(1.15); }
@media (prefers-reduced-motion: reduce) { .q-cat2:hover .q-cat2__ico i { transform: none; } }
.q-hero__word, .q-hero__word:hover, .q-hero__word:focus-visible { box-shadow: none; padding: 0; }
.q-hero__word > span { box-shadow: inset 0 -.22em 0 var(--q-primary); padding: 0 .06em; transition: box-shadow .2s, transform .28s ease, opacity .28s ease; }
.q-hero__word:hover > span, .q-hero__word:focus-visible > span { box-shadow: inset 0 -1.05em 0 var(--q-primary); }
.q-ftags .q-tag--when { background: #fff; color: var(--q-ink); }
.q-ftags .q-tag--when.is-now { background: #157048; color: #fff; }
.q-ftags .q-tag--when.is-soon { background: #ffd23f; color: var(--q-ink); }
.q-ftags .q-tag--when.is-past { background: rgba(255, 255, 255, .7); color: var(--q-muted); }

/* ==========================================================================
   Ronda 9 — fichas sin cajas, muro de carteles, entidad
   ========================================================================== */
/* Lateral sin tarjetas: bloques separados por una línea fina */
.q-aside { gap: 0; }
.q-aside__blk { padding: 1.25rem 0; border-top: 1px solid var(--q-line); }
.q-aside > .q-aside__blk:first-child, .q-aside > .q-map + .q-aside__blk { border-top: 0; padding-top: 0; }
.q-aside > .q-map { margin-bottom: 1.25rem; }
.q-aside__t { font-family: var(--q-font-body, inherit); font-size: .82rem; font-weight: 800; color: var(--q-muted); margin: 0 0 .65rem; }
.q-aside__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1rem; margin: 0 0 1.1rem; }
.q-aside__facts dt { font-size: .82rem; font-weight: 800; color: var(--q-muted); }
.q-aside__facts dd { margin: 0; }
.q-aside__big { font-family: var(--q-font-display); font-size: 1.7rem; font-weight: 600; line-height: 1.1; color: var(--q-ink); }
.q-aside__big small { font-family: var(--q-font-body, inherit); font-size: .8rem; font-weight: 700; color: var(--q-muted); }
.q-aside__btns { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; }
.q-aside__btns .btn { flex: 1 1 100%; }
.q-aside__org { display: flex; align-items: center; gap: .85rem; color: var(--q-ink); text-decoration: none; }
.q-aside__org img { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; background: var(--q-paper-2); }
.q-aside__org span { display: grid; }
.q-aside__org small { color: var(--q-primary); font-weight: 800; }
.q-aside__org:hover b { text-decoration: underline; text-underline-offset: 3px; }
.q-aside__social { display: flex; gap: .35rem; margin-top: .85rem; }
.q-aside__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--q-ink); background: var(--q-paper-2); transition: background .15s, color .15s; }
.q-aside__social a:hover { background: var(--q-primary); color: #fff; }
.q-aside__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.q-aside__list li { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: .7rem; align-items: baseline; }
.q-aside__list i { color: var(--q-primary); text-align: center; }
.q-aside__list a { color: var(--q-ink); font-weight: 700; }
.q-aside__list small { display: block; color: var(--q-muted); }
.q-aside__about { font-size: .95rem; }
.q-aside__places { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.q-aside__places a { display: flex; align-items: center; gap: .8rem; padding: .35rem; margin: 0 -.35rem; border-radius: 14px; color: var(--q-ink); text-decoration: none; transition: background .15s; }
.q-aside__places a:hover { background: var(--q-paper-2); }
.q-aside__places img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.q-aside__places span { display: grid; min-width: 0; }
.q-aside__places small { color: var(--q-muted); }

/* Mapa y lugar sin tarjeta */
.q-map { height: 260px; border-radius: 22px; overflow: hidden; background: var(--q-paper-2); }
.q-map--tall { height: 300px; }
.q-place-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: start; margin-top: 1rem; }
.q-place-line__pin { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--q-primary); color: #fff; }
.q-place-line__txt { display: grid; gap: .1rem; color: var(--q-ink-2); }
.q-place-line__name { font-family: var(--q-font-display); font-size: 1.3rem; font-weight: 600; color: var(--q-ink); text-decoration: none; }
.q-place-line__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.q-place-line__det { font-size: .88rem; color: var(--q-muted); }
.q-place-line__acts { display: grid; justify-items: end; gap: .4rem; }
@media (max-width: 575.98px) { .q-place-line { grid-template-columns: auto minmax(0, 1fr); } .q-place-line__acts { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; align-items: center; } }

/* Créditos y entradas sin caja */
.q-credits { padding: .9rem 0 0; border-radius: 0; background: none; border-top: 1px solid var(--q-line); }
.q-tix { border: 0; border-radius: 0; background: none; border-top: 2px solid var(--q-ink); }
.q-tix li { padding: .9rem 0; }
.q-tix li + li { border-top: 1px dashed var(--q-line-2); }
.q-tix li.is-off { background: none; color: var(--q-muted); }

/* Muro de carteles: sin tarjetas, la imagen manda */
.q-res.is-wall .q-res__day { margin-bottom: 2rem; scroll-margin-top: calc(var(--q-header-h, 72px) + 70px); }
.q-res.is-wall .q-res__list { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.6rem 1.2rem; }
.q-res.is-wall .q-res__item + .q-res__item { border-top: 0; }
.q-res.is-wall .q-res__a { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 0; border-radius: 0; background: none; }
.q-res.is-wall .q-res__a:hover { background: none; }
.q-res.is-wall .q-res__img { order: -1; width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; transition: transform .2s ease, box-shadow .2s ease; }
.q-res.is-wall .q-res__a:hover .q-res__img { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 16px 30px -14px rgba(31, 17, 53, .5); }
.q-res.is-wall .q-res__time { position: absolute; top: .6rem; left: .6rem; z-index: 2; padding: .15rem .55rem; border-radius: 999px; background: #fff; color: var(--q-ink); font-size: .9rem; box-shadow: 0 2px 8px rgba(31, 17, 53, .2); }
.q-res.is-wall .q-res__txt { padding: 0 .1rem; }
.q-res.is-wall .q-res__a:hover .q-res__title { color: var(--q-primary); }
.q-res.is-wall .q-res__go, .q-res.is-wall .q-res__date { display: none; }
@media (max-width: 575.98px) { .q-res.is-wall .q-res__list { grid-template-columns: 1fr 1fr; gap: 1.2rem .8rem; } .q-res.is-wall .q-res__title { font-size: .95rem; } .q-res.is-wall .q-res__where { font-size: .8rem; } }

/* De un vistazo: barras de los próximos 14 días */
.q-gl { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: .3rem; margin: 0 0 1.75rem; padding: .75rem .6rem .55rem; border-radius: 20px; background: var(--q-paper-2); }
.q-gl__d { display: grid; justify-items: center; gap: .15rem; padding: .25rem 0; border-radius: 12px; color: var(--q-ink); text-decoration: none; transition: background .15s; }
a.q-gl__d:hover { background: #fff; color: var(--q-ink); }
.q-gl__bar { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 54px; font-style: normal; }
.q-gl__bar em { display: grid; place-items: start center; width: min(26px, 80%); height: var(--h, 0); min-height: 18px; padding-top: 2px; border-radius: 8px 8px 4px 4px; background: var(--q-primary); color: #fff; font-style: normal; font-size: .7rem; font-weight: 800; transform-origin: bottom; animation: q-grow .6s cubic-bezier(.2, .8, .2, 1) both; }
.q-gl__d:nth-child(2n) .q-gl__bar em { animation-delay: .05s; } .q-gl__d:nth-child(3n) .q-gl__bar em { animation-delay: .1s; }
@keyframes q-grow { from { transform: scaleY(0); } }
.q-gl__d.is-0 .q-gl__bar::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--q-line-2); }
.q-gl__d small { font-size: .7rem; font-weight: 800; color: var(--q-muted); }
.q-gl__d b { font-family: var(--q-font-display); font-weight: 600; font-size: 1rem; line-height: 1; }
.q-gl__d.is-we small { color: var(--q-primary); }
.q-gl__d.is-today b { color: var(--q-primary); }
.q-gl__d.is-0 b { color: var(--q-muted); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .q-gl__bar em { animation: none; } }
@media (max-width: 767.98px) { .q-gl { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44px; overflow-x: auto; scrollbar-width: none; } }

/* Página de entidad */
.q-eph { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--q-ink); margin-top: calc(-1 * var(--q-header-gap, 0px)); }
.q-eph::before { content: ""; position: absolute; inset: -60px; z-index: -2; background: var(--eh-bg) center / cover no-repeat; filter: blur(40px) saturate(1.4); transform: scale(1.15); opacity: .85; }
.q-eph::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 140% at 0% 0%, rgba(201, 37, 88, .55), transparent 55%), linear-gradient(180deg, rgba(31, 17, 53, .55), rgba(31, 17, 53, .88)); }
.q-eph__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem 2rem; align-items: center; padding-top: clamp(1.75rem, 4vw, 3rem); padding-bottom: clamp(1.75rem, 4vw, 3rem); }
.q-eph__logo { width: 132px; height: 132px; border-radius: 34px; object-fit: cover; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .9), 0 20px 40px rgba(0, 0, 0, .35); animation: q-eph-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes q-eph-in { from { opacity: 0; transform: scale(.85) rotate(-6deg); } }
.q-eph__type { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .35rem; font-weight: 800; color: #ffc2d5; }
.q-eph__title { font-family: var(--q-font-display); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.02; margin: 0 0 1rem; color: #fff; text-wrap: balance; }
.q-eph__acts { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.q-eph__acts .btn-light { background: #fff; border-color: #fff; }
.q-eph__ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; transition: background .15s, transform .15s; }
.q-eph__ic:hover { background: #fff; color: var(--q-ink); transform: translateY(-2px); }
.q-eph__stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(96px, auto)); gap: .9rem 1.6rem; }
.q-eph__stats li { display: grid; }
.q-eph__stats b { font-family: var(--q-font-display); font-weight: 600; font-size: 2.4rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.q-eph__stats span { font-size: .85rem; font-weight: 700; color: rgba(255, 255, 255, .78); }
.q-etabs { position: sticky; top: var(--q-header-h, 72px); z-index: 20; background: color-mix(in srgb, var(--q-bg, #fff7fa) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--q-line); }
.q-etabs__in { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.q-etabs a { position: relative; flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .95rem .9rem; color: var(--q-ink-2); font-weight: 800; text-decoration: none; }
.q-etabs a span { font-size: .75rem; padding: .05rem .45rem; border-radius: 999px; background: var(--q-paper-2); color: var(--q-muted); }
.q-etabs a::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--q-primary); transform: scaleX(0); transition: transform .2s; }
.q-etabs a.is-on { color: var(--q-ink); }
.q-etabs a.is-on::after { transform: scaleX(1); }
.q-ent-sec { margin-bottom: 2.5rem; }
#q-ent-ev, #q-ent-pr, #q-ent-ub, #q-ent-info { scroll-margin-top: calc(var(--q-header-h, 72px) + 70px); }
/* Programas de fiestas como entradas de calendario */
.q-fest { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem 1.5rem; }
.q-fest__it { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem; padding: .25rem 0; color: var(--q-ink); text-decoration: none; }
.q-fest__date { width: 74px; height: 80px; display: grid; place-content: center; justify-items: center; border-radius: 18px; background: var(--c); color: #fff; box-shadow: 0 12px 24px -12px var(--c); transition: transform .2s; }
.q-fest__it:hover .q-fest__date { transform: rotate(-4deg) scale(1.05); }
.q-fest__date b { font-family: var(--q-font-display); font-size: 2rem; font-weight: 600; line-height: .95; }
.q-fest__date small { font-weight: 800; text-transform: lowercase; }
.q-fest__txt { display: grid; min-width: 0; }
.q-fest__txt b { font-family: var(--q-font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.q-fest__txt small { color: var(--q-muted); font-weight: 700; }
.q-fest__st { display: inline-flex; align-items: center; gap: .35rem; font-style: normal; font-size: .78rem; font-weight: 800; color: var(--q-primary); }
.q-fest__live { width: 8px; height: 8px; border-radius: 50%; background: #18a058; box-shadow: 0 0 0 0 rgba(24, 160, 88, .5); animation: q-pulse 1.6s infinite; }
@keyframes q-pulse { 70% { box-shadow: 0 0 0 8px rgba(24, 160, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 160, 88, 0); } }
.q-fest__it.is-live .q-fest__st { color: #127a43; }
.q-fest__it.is-past { opacity: .6; }
.q-fest__go { grid-column: 2; font-size: .85rem; font-weight: 800; color: var(--q-primary); }
.q-fest__it:hover .q-fest__go i { transform: translateX(3px); }
.q-fest__go i { transition: transform .15s; }
@media (max-width: 991.98px) { .q-eph__in { grid-template-columns: auto minmax(0, 1fr); } .q-eph__stats { grid-column: 1 / -1; grid-template-columns: repeat(4, auto); justify-content: start; } }
@media (max-width: 575.98px) { .q-eph__logo { width: 84px; height: 84px; border-radius: 24px; } .q-eph__in { gap: 1rem; } .q-eph__acts { grid-column: 1 / -1; } .q-eph__stats b { font-size: 1.8rem; } .q-eph__stats { gap: .6rem 1.2rem; } .q-fest { grid-template-columns: 1fr; } }
/* Muro continuo: todos los carteles seguidos, con su fecha encima */
.q-res.is-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.6rem 1.2rem; }
.q-res.is-wall .q-res__day, .q-res.is-wall .q-res__list { display: contents; }
.q-res.is-wall .q-res__dayh { display: none; }
.q-res.is-wall .q-res__item { scroll-margin-top: calc(var(--q-header-h, 72px) + 80px); }
.q-res.is-wall .q-res__date { display: grid; justify-items: center; position: absolute; top: .6rem; left: .6rem; z-index: 2; min-width: 44px; padding: .3rem .4rem; border-radius: 12px; background: #fff; color: var(--q-primary); font-size: .68rem; font-weight: 800; text-transform: uppercase; line-height: 1; box-shadow: 0 2px 8px rgba(31, 17, 53, .2); }
.q-res.is-wall .q-res__date b { font-family: var(--q-font-display); font-size: 1.25rem; color: var(--q-ink); }
.q-res.is-wall .q-res__time { left: auto; right: .6rem; background: rgba(31, 17, 53, .8); color: #fff; }
.q-res.is-wall .q-res__item.is-flash .q-res__img { animation: q-flash 1.2s ease; }
@keyframes q-flash { 0%, 60% { box-shadow: 0 0 0 4px var(--q-primary); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 575.98px) { .q-res.is-wall { grid-template-columns: 1fr 1fr; gap: 1.2rem .8rem; } }
.q-res.is-wall { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.q-res.is-wall .q-res__a, .q-res.is-wall .q-res__txt { min-width: 0; }
@media (max-width: 575.98px) { .q-res.is-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } .q-eph__type { font-size: .82rem; } }
.q-ficha-grid > * { min-width: 0; }
.q-place-line__txt a[href^="tel:"] { color: var(--q-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Ronda 10 — Entrar y crear cuenta: la foto a pantalla completa y la hoja encima
   ========================================================================== */
.q-door { position: relative; isolation: isolate; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); grid-template-rows: auto 1fr auto; gap: 1.5rem clamp(2rem, 6vw, 6rem); align-items: center; padding: 1.5rem clamp(1.25rem, 5vw, 5rem) 1.25rem; color: #fff; }
.q-door--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 580px); }
.q-door__bg { position: fixed; inset: 0; z-index: -1; background: var(--q-ink); }
.q-door__bg img { width: 100%; height: 100%; object-fit: cover; animation: q-door-zoom 24s ease-in-out infinite alternate; }
.q-door__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(31, 17, 53, .82) 0%, rgba(120, 22, 62, .55) 55%, rgba(31, 17, 53, .7) 100%); }
@keyframes q-door-zoom { to { transform: scale(1.08); } }
.q-door__top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.q-door__back { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; padding: .5rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .15s; }
.q-door__back:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.q-door__say { align-self: center; max-width: 34rem; }
.q-door__h { font-family: var(--q-font-display); font-weight: 600; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.04; margin: 0 0 1.75rem; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.q-door__word { display: block; min-height: 2.1em; color: #ffb3c9; }
.q-door__word span { display: inline-block; transition: opacity .28s, transform .28s; }
.q-door__word span.is-out { opacity: 0; transform: translateY(-.35em); }
.q-door__word span.is-in { animation: q-door-in .35s ease; }
@keyframes q-door-in { from { opacity: 0; transform: translateY(.35em); } }
.q-door__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; font-size: 1.05rem; font-weight: 600; color: rgba(255, 255, 255, .92); }
.q-door__list li { display: flex; align-items: center; gap: .8rem; }
.q-door__list i { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: .85rem; }
.q-door__sheet { align-self: center; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 32px; background: var(--q-bg, #fff7fa); color: var(--q-ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); animation: q-door-up .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes q-door-up { from { opacity: 0; transform: translateY(18px); } }
.q-door__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 1.5rem; border-radius: 999px; background: var(--q-paper-2); }
.q-door__tabs a { padding: .6rem 1rem; border-radius: 999px; text-align: center; font-weight: 800; color: var(--q-ink-2); text-decoration: none; transition: background .15s, color .15s; }
.q-door__tabs a:hover { color: var(--q-ink); }
.q-door__tabs a.is-on { background: var(--q-ink); color: #fff; }
.q-door__sheet .q-auth__box { max-width: none; }
.q-door__sheet .q-auth__box h1 { font-size: 1.9rem; margin-bottom: .25rem; }
.q-door__sheet .q-auth__box > p { margin-bottom: 1.4rem; }
.q-door__sheet .form-floating > .form-control { border-radius: 16px; border: 1.5px solid var(--q-line); }
.q-door__sheet .form-floating > .form-control:focus { border-color: var(--q-primary); box-shadow: 0 0 0 .2rem rgba(201, 37, 88, .15); }
.q-door__sheet .btn-lg { border-radius: 999px; }
.q-door__alt { margin: 1.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--q-line); text-align: center; color: var(--q-ink-2); }
.q-door__alt a { font-weight: 800; color: var(--q-primary); text-decoration: underline; text-underline-offset: 3px; }
.q-door__foot { grid-column: 1 / -1; margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .8); text-align: center; }
.q-door__foot a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .q-door__bg img, .q-door__sheet { animation: none; } }
@media (max-width: 991.98px) {
  .q-door, .q-door--wide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; gap: 1rem; padding: 1rem 12px; align-items: start; }
  .q-door__say { max-width: none; padding: .5rem .5rem 0; }
  .q-door__h { font-size: 1.9rem; margin-bottom: .25rem; }
  .q-door__word { min-height: 1.1em; }
  .q-door__list { display: none; }
  .q-door__sheet { width: 100%; max-width: 580px; margin: 0 auto; border-radius: 26px; }
  .q-door__back { font-size: 0; gap: 0; width: 40px; height: 40px; padding: 0; justify-content: center; }
  .q-door__back i { font-size: 1rem; }
}
.q-reg .progress-step:last-child::after { left: auto; right: 0; transform: none; }
.q-reg .progress-step:nth-child(2)::after { left: 0; transform: none; }
.q-door__sheet .q-reg { max-width: none; }
.q-door { background-color: #2a1740; }

/* ==========================================================================
   Ronda 11 — Planes en el mapa
   ========================================================================== */
@media (max-width: 767.98px) { .q-tabbar { grid-template-columns: repeat(5, 1fr); } }
.q-nav a[aria-current="page"] { color: var(--q-primary); }
.q-mp { --mp-h: calc(100dvh - var(--q-header-h, 68px)); position: relative; display: grid; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); height: var(--mp-h); background: var(--q-bg, #fff7fa); }
.q-mp-body #cookies { z-index: 2000; }
.q-mp__side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--q-line); background: var(--q-bg, #fff7fa); }
.q-mp__head { display: grid; gap: .65rem; padding: 1rem 1.1rem .8rem; }
.q-mp__t { font-family: var(--q-font-display); font-size: 1.55rem; font-weight: 600; margin: 0; }
.q-mp__when { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 999px; background: var(--q-paper-2); }
.q-mp__when button { padding: .45rem .2rem; border: 0; border-radius: 999px; background: none; color: var(--q-ink-2); font-weight: 800; font-size: .86rem; cursor: pointer; white-space: nowrap; }
.q-mp__when button[aria-pressed="true"] { background: var(--q-ink); color: #fff; }
.q-mp__dates { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: .5rem; color: var(--q-muted); }
.q-mp__dates label { display: grid; gap: .1rem; font-size: .74rem; font-weight: 800; color: var(--q-muted); }
.q-mp__dates input { width: 100%; padding: .4rem .6rem; border: 1.5px solid var(--q-line); border-radius: 12px; background: #fff; color: var(--q-ink); font-weight: 700; font-size: .9rem; }
.q-mp__dates > i { padding-bottom: .65rem; font-size: .8rem; }
.q-mp__days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(30px, 1fr); gap: 2px; overflow-x: auto; scrollbar-width: none; padding: .45rem .3rem .3rem; border-radius: 16px; background: var(--q-paper-2); }
.q-mp__days::-webkit-scrollbar { display: none; }
.q-mp__day { display: grid; justify-items: center; gap: 1px; padding: .2rem 0 .25rem; border: 0; border-radius: 10px; background: none; color: var(--q-ink); cursor: pointer; }
.q-mp__day i { display: block; width: 14px; height: 30px; position: relative; }
.q-mp__day i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); min-height: 3px; border-radius: 5px 5px 2px 2px; background: var(--q-primary); transition: height .35s cubic-bezier(.2, .8, .2, 1); }
.q-mp__day small { font-size: .66rem; font-weight: 800; color: var(--q-muted); }
.q-mp__day b { font-family: var(--q-font-display); font-size: .92rem; font-weight: 600; line-height: 1; }
.q-mp__day.is-we small { color: var(--q-primary); }
.q-mp__day:not(:disabled):hover { background: #fff; }
.q-mp__day:disabled { cursor: default; }
.q-mp__day:disabled i::after { background: var(--q-line-2); height: 3px; }
.q-mp__day:disabled b { color: var(--q-muted); font-weight: 500; }
.q-mp__day.is-on { background: var(--q-ink); color: #fff; }
.q-mp__day.is-on small { color: #ffc2d5; }
.q-mp__day.is-on i::after { background: #ff8fb4; }
.q-mp__chips { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; margin: 0 -1.1rem; padding: 2px 1.1rem; }
.q-mp__chips::-webkit-scrollbar { display: none; }
.q-mp__chip { flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; border: 1.5px solid var(--q-line); background: #fff; color: var(--q-ink-2); font-weight: 800; font-size: .85rem; cursor: pointer; }
.q-mp__chip i { color: var(--q-primary); font-size: .8rem; }
.q-mp__chip[aria-pressed="true"] { background: var(--q-primary); border-color: var(--q-primary); color: #fff; }
.q-mp__chip[aria-pressed="true"] i { color: #fff; }
.q-mp__q { display: flex; align-items: center; gap: .6rem; padding: 0 .9rem; border: 1.5px solid var(--q-line); border-radius: 999px; background: #fff; color: var(--q-muted); }
.q-mp__q input { flex: 1; min-width: 0; padding: .55rem 0; border: 0; background: none; outline: 0; color: var(--q-ink); }
.q-mp__q:focus-within { border-color: var(--q-primary); box-shadow: 0 0 0 .2rem rgba(201, 37, 88, .15); }
.q-mp__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1rem; padding: .6rem 1.1rem; border-top: 1px solid var(--q-line); border-bottom: 1px solid var(--q-line); }
.q-mp__count { margin: 0; font-weight: 600; color: var(--q-ink-2); }
.q-mp__count b { font-family: var(--q-font-display); font-size: 1.15rem; color: var(--q-ink); }
.q-mp__zone { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700; color: var(--q-ink-2); cursor: pointer; }
.q-mp__zone input { accent-color: var(--q-primary); width: 1rem; height: 1rem; }
.q-mp__sel { display: flex; align-items: center; gap: .75rem; padding: .5rem 1.1rem; background: var(--q-ink); color: #fff; font-size: .9rem; }
.q-mp__sel span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-mp__sel span i { margin-right: .4rem; color: #ff8fb4; }
.q-mp__sel a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.q-mp__sel button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.q-mp__list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 1.1rem 1.5rem; scrollbar-width: thin; }
.q-mp.is-loading .q-mp__list { opacity: .5; }
.q-mp__dh { position: sticky; top: 0; z-index: 2; margin: 0 -1.1rem; padding: .7rem 1.1rem .4rem; background: color-mix(in srgb, var(--q-bg, #fff7fa) 94%, transparent); backdrop-filter: blur(6px); font-family: var(--q-font-display); font-size: 1.05rem; font-weight: 600; }
.q-mp__ol { list-style: none; margin: 0; padding: 0; }
.q-mp__ol li { position: relative; display: flex; align-items: center; }
.q-mp__ol li + li { border-top: 1px dashed var(--q-line-2); }
.q-mp__row { flex: 1; min-width: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: .8rem; align-items: center; padding: .65rem 0; color: var(--q-ink); text-decoration: none; }
.q-mp__img { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--q-paper-2); }
.q-mp__txt { display: grid; gap: .1rem; min-width: 0; }
.q-mp__meta { display: flex; align-items: center; gap: .6rem; font-size: .8rem; }
.q-mp__meta b { font-family: var(--q-font-display); font-size: .95rem; font-weight: 600; }
.q-mp__sub { display: inline-flex; align-items: center; gap: .3rem; font-weight: 800; color: var(--q-primary); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-mp__sub--c2 { color: var(--q-success); } .q-mp__sub--c3 { color: var(--q-info); }
.q-mp__title { font-weight: 800; line-height: 1.25; }
.q-mp__row:hover .q-mp__title, .q-mp__row:focus-visible .q-mp__title { color: var(--q-primary); }
.q-mp__where { font-size: .84rem; color: var(--q-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-mp__where i { margin-right: .35rem; color: var(--q-muted); }
.q-mp__where em { font-style: normal; font-weight: 800; color: #2356b8; }
.q-mp__pin { flex: none; width: 38px; height: 38px; margin-left: .4rem; border: 0; border-radius: 50%; background: var(--q-paper-2); color: var(--q-primary); cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.q-mp__pin:hover { background: var(--q-primary); color: #fff; transform: translateY(-2px); }
.q-mp__more { margin: 1rem 0 0; font-size: .85rem; color: var(--q-muted); text-align: center; }
.q-mp__empty { display: grid; justify-items: center; gap: .6rem; padding: 3rem 1rem; text-align: center; color: var(--q-ink-2); }
.q-mp__empty > i { font-size: 2rem; color: var(--q-line-2); }
.q-mp__empty p { margin: 0; max-width: 28ch; }
.q-mp__mapwrap { position: relative; min-width: 0; }
.q-mp__map { position: absolute; inset: 0; background: #e9e4ea; }
.q-mp__loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .6rem; padding: 2rem; text-align: center; color: var(--q-muted); font-weight: 700; }
.q-mp__loading i { font-size: 2.4rem; color: var(--q-line-2); }
.q-mp__tools { position: absolute; top: .9rem; right: .9rem; z-index: 5; display: flex; gap: .4rem; }
.q-mp__tool { display: inline-flex; align-items: center; gap: .45rem; height: 42px; padding: 0 .95rem; border: 0; border-radius: 999px; background: #fff; color: var(--q-ink); font-weight: 800; font-size: .88rem; box-shadow: 0 4px 14px rgba(31, 17, 53, .22); cursor: pointer; }
.q-mp__tool i { color: var(--q-primary); }
.q-mp__tool:hover { transform: translateY(-1px); }
.q-mp__tool[aria-pressed="true"] { background: var(--q-ink); color: #fff; }
.q-mp__tool[aria-pressed="true"] i { color: #ff8fb4; }
.q-mp__tool.is-busy i { animation: q-spin 1s linear infinite; }
@keyframes q-spin { to { transform: rotate(360deg); } }
.q-mp__card { position: absolute; left: .9rem; bottom: 1.4rem; z-index: 6; width: min(340px, calc(100% - 1.8rem)); padding: 1rem 1.1rem 1.1rem; border-radius: 22px; background: #fff; box-shadow: 0 18px 44px rgba(31, 17, 53, .3); animation: q-door-up .25s ease both; }
.q-mp__cardx { position: absolute; top: .6rem; right: .6rem; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--q-paper-2); color: var(--q-ink); cursor: pointer; }
.q-mp__cardk { margin: 0; font-size: .8rem; font-weight: 800; color: var(--q-primary); }
.q-mp__card h2 { margin: 0 2rem .6rem 0; font-family: var(--q-font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.q-mp__card ul { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .1rem; }
.q-mp__card li a { display: grid; padding: .35rem 0; color: var(--q-ink); text-decoration: none; font-weight: 700; line-height: 1.25; border-top: 1px dashed var(--q-line-2); }
.q-mp__card li a:hover { color: var(--q-primary); }
.q-mp__card li b { font-size: .76rem; font-weight: 800; color: var(--q-primary); }
.q-mp__cardmore { margin: -.3rem 0 .8rem; font-size: .82rem; color: var(--q-muted); }
.q-mp__cardact { display: flex; flex-wrap: wrap; gap: .4rem; }
.q-mp__flip { display: none; }
.q-mp.is-nomap { grid-template-columns: minmax(0, 720px); justify-content: center; }
.q-mp.is-nomap .q-mp__mapwrap, .q-mp.is-nomap .q-mp__zone { display: none; }
.q-when__btn--map { border-style: dashed; }
@media (max-width: 899.98px) {
  .q-mp { --mp-h: calc(100dvh - var(--q-header-h, 68px) - 76px); grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .q-mp__side { display: contents; }
  .q-mp__head { grid-row: 1; padding: .6rem .8rem .5rem; gap: .45rem; border-bottom: 1px solid var(--q-line); }
  .q-mp__t, .q-mp__dates, .q-mp__q { display: none; }
  .q-mp__chips { margin: 0 -.8rem; padding: 2px .8rem; }
  .q-mp__mapwrap { grid-row: 2; grid-column: 1; }
  .q-mp__bar, .q-mp__sel, .q-mp__list { display: none; }
  .q-mp.is-list .q-mp__mapwrap { visibility: hidden; }
  .q-mp.is-list .q-mp__list { display: block; grid-row: 2; grid-column: 1; padding: 2.6rem .8rem 5rem; }
  .q-mp.is-list .q-mp__bar { display: flex; grid-row: 2; grid-column: 1; align-self: start; z-index: 3; padding: .5rem .8rem; background: var(--q-bg, #fff7fa); }
  .q-mp.is-list .q-mp__zone { display: none; }
  .q-mp__dh { margin: 0 -.8rem; padding-left: .8rem; }
  .q-mp__tools { top: .6rem; right: .6rem; }
  .q-mp__tool span { display: none; }
  .q-mp__tool { width: 42px; padding: 0; justify-content: center; }
  .q-mp__card { left: .6rem; right: .6rem; bottom: 4.2rem; width: auto; }
  .q-mp__flip { display: inline-flex; align-items: center; gap: .5rem; position: absolute; left: 50%; bottom: .8rem; transform: translateX(-50%); z-index: 8; height: 44px; padding: 0 1.2rem; border: 0; border-radius: 999px; background: var(--q-ink); color: #fff; font-weight: 800; box-shadow: 0 8px 22px rgba(31, 17, 53, .4); }
}
@media (min-width: 900px) { .q-mp__chips { flex-wrap: wrap; overflow: visible; } }
/* Mapa grande de la ficha de lugar */
.q-pmap { position: relative; margin: 0 0 2rem; border-radius: 28px; overflow: hidden; background: #e9e4ea; }
.q-pmap__map { position: relative; height: clamp(300px, 46vh, 460px); }
.q-pmap__tools { position: absolute; top: .9rem; right: .9rem; z-index: 5; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; max-width: calc(100% - 1.8rem); }
.q-pmap__tools .q-mp__tool span { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-pmap__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .8rem 1.1rem; background: #fff; }
.q-pmap__addr { flex: 1 1 220px; min-width: 0; font-weight: 700; color: var(--q-ink); }
.q-pmap__addr i { margin-right: .5rem; color: var(--q-primary); }
.q-pmap .q-mp__card { bottom: 5rem; }
/* Filtro por fechas del muro */
.q-wf { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: -.75rem 0 1.5rem; }
.q-wf button { padding: .4rem .9rem; border-radius: 999px; border: 1.5px solid var(--q-line); background: #fff; color: var(--q-ink-2); font-weight: 800; font-size: .86rem; cursor: pointer; }
.q-wf button[aria-pressed="true"] { background: var(--q-ink); border-color: var(--q-ink); color: #fff; }
.q-wf__n { margin-left: .4rem; font-size: .88rem; font-weight: 700; color: var(--q-muted); }
.q-res.is-wall .q-res__item[hidden] { display: none; }
@media (max-width: 575.98px) { .q-pmap { border-radius: 22px; margin-left: -4px; margin-right: -4px; } .q-pmap__tools .q-mp__tool span { display: none; } .q-pmap__tools .q-mp__tool { width: 42px; padding: 0; justify-content: center; } }
.q-mp__loading { color: var(--q-ink-2); }

/* ==========================================================================
   Ronda 12 — relacionados, vistos hace poco
   ========================================================================== */
.q-rel { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--q-line); }
.q-res--rel { grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); }
.q-seen__rail { list-style: none; margin: 0; padding: 2px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: .5rem 1.5rem; overflow-x: auto; scrollbar-width: none; }
.q-seen__rail::-webkit-scrollbar { display: none; }
.q-seen__it { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .8rem; align-items: center; color: var(--q-ink); text-decoration: none; }
.q-seen__it img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: var(--q-paper-2); transition: transform .2s; }
.q-seen__it:hover img { transform: rotate(-3deg) scale(1.05); }
.q-seen__it span { display: grid; min-width: 0; line-height: 1.25; }
.q-seen__it small { font-size: .78rem; font-weight: 800; color: var(--q-primary); }
.q-seen__it b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-seen__it:hover b { color: var(--q-primary); }
.q-seen__it em { font-style: normal; font-size: .84rem; color: var(--q-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.q-link-more { border: 0; background: none; padding: 0; cursor: pointer; }

/* ==========================================================================
   Ronda 13 — interruptores: letra grande, ampliar, carteles/lista, a pie de calle
   ========================================================================== */
html.q-big { font-size: 118%; }
.q-header__big { width: 42px; height: 42px; border: 1.5px solid var(--q-line); border-radius: 50%; background: #fff; color: var(--q-ink); font-family: var(--q-font-display); font-weight: 600; font-size: .8rem; line-height: 1; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.q-header__big b { font-size: 1.25rem; font-weight: 600; }
.q-header__big:hover { border-color: var(--q-primary); }
.q-header__big[aria-pressed="true"] { background: var(--q-ink); border-color: var(--q-ink); color: #fff; }
.q-header--overlay:not(.is-scrolled) .q-header__big { background: rgba(255, 255, 255, .16); border-color: transparent; color: #fff; }
.q-header--overlay:not(.is-scrolled) .q-header__big[aria-pressed="true"] { background: #fff; color: var(--q-ink); }
.q-tog { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px; border: 1.5px solid var(--q-line); background: #fff; color: var(--q-ink-2); font-weight: 800; font-size: .88rem; cursor: pointer; }
.q-tog i { color: var(--q-success, #127a43); }
.q-tog[aria-pressed="true"] { background: var(--q-ink); border-color: var(--q-ink); color: #fff; }
.q-tog[aria-pressed="true"] i { color: #9be7bd; }
.q-wk .q-section__head .q-tog { margin-left: 1rem; margin-right: auto; }
.q-wk__day.is-empty { opacity: .45; }
.q-wk__none { margin: 0; padding: 1.5rem 1rem; text-align: center; color: var(--q-muted); font-weight: 700; }
.q-wk__list li[hidden] { display: none; }
/* Ampliar imágenes */
.q-zoomable { position: relative; display: block; padding: 0; border: 0; background: none; border-radius: 16px; cursor: zoom-in; }
.q-zoomable > i { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--q-ink); font-size: .8rem; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); opacity: 0; transform: scale(.8); transition: opacity .15s, transform .15s; }
.q-zoomable:hover > i, .q-zoomable:focus-visible > i { opacity: 1; transform: none; }
.q-zoomable img { transition: transform .25s ease; }
.q-zoomable:hover img { transform: scale(1.02) rotate(-.5deg); }
a.q-thumb[data-q-zoom] { cursor: zoom-in; }
.q-zoom { max-width: 94vw; max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.q-zoom::backdrop { background: rgba(20, 10, 35, .86); backdrop-filter: blur(4px); }
.q-zoom[open] { animation: q-zoom-in .2s ease; }
@keyframes q-zoom-in { from { opacity: 0; transform: scale(.95); } }
.q-zoom img { display: block; max-width: 94vw; max-height: 88vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.q-zoom__x, .q-zoom__nav { position: fixed; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: var(--q-ink); box-shadow: 0 4px 16px rgba(0, 0, 0, .35); cursor: pointer; }
.q-zoom__x { top: 16px; right: 16px; }
.q-zoom__nav { top: 50%; transform: translateY(-50%); }
.q-zoom__nav--p { left: 16px; } .q-zoom__nav--n { right: 16px; }
.q-zoom__nav[hidden] { display: none; }
.q-zoom__n { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); color: #fff; font-weight: 800; font-size: .9rem; }
/* Carteles / lista */
.q-wf__view { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--q-paper-2); }
.q-wf .q-wf__view button { width: 36px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--q-ink-2); }
.q-wf .q-wf__view button[aria-pressed="true"] { background: #fff; color: var(--q-primary); box-shadow: 0 1px 4px rgba(31, 17, 53, .15); }
.q-res.is-rows .q-res__day[hidden], .q-res.is-rows .q-res__item[hidden] { display: none; }
.q-res.is-rows .q-res__dayh { font-size: 1.15rem; border-bottom-width: 1px; }
.q-res.is-rows .q-res__dayn { min-width: 2.1rem; height: 2.1rem; font-size: 1.05rem; border-radius: 11px; }
/* Mapa de la ficha de evento con interruptores */
.q-map .q-pmap__tools { top: .7rem; right: .7rem; }

/* Ronda 14 — guía de secciones en la ficha de evento */
.q-etabs--ficha { margin: -1rem 0 1.75rem; border-radius: 0; }
.q-etabs--ficha .q-etabs__in { position: relative; }
.q-etabs--ficha a { padding: .85rem .8rem; font-size: .95rem; }
.q-etabs--ficha a i { font-size: .82rem; color: var(--q-muted); transition: color .15s; }
.q-etabs--ficha a.is-on i { color: var(--q-primary); }
.q-etabs--ficha a::after { display: none; }
.q-etabs--ficha a.is-on { color: var(--q-ink); }
.q-etabs__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; overflow: hidden; pointer-events: none; }
.q-etabs__bar i { display: block; height: 100%; background: var(--q-primary); border-radius: 0 3px 3px 0; transform-origin: left; transform: scaleX(0); transition: transform .12s linear; }
.q-etabs--ficha.is-stuck { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 0 calc(50vw - 50%); box-shadow: 0 6px 16px -12px rgba(31, 17, 53, .35); }
.q-ficha--visor .q-etabs--ficha { top: 0; }
#q-desc, #q-hor, #q-ent, #q-ubi, #q-img, #q-rel-t { scroll-margin-top: calc(var(--q-header-h, 68px) + 70px); }
.q-ficha-grid section:focus { outline: 0; }
@media (max-width: 575.98px) { .q-etabs--ficha a { padding: .75rem .65rem; font-size: .9rem; } }
@media (prefers-reduced-motion: reduce) { .q-etabs__bar i { transition: none; } }
@media (max-width: 899.98px) { .q-mp__tools .q-mp__tool span { display: inline; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (max-width: 575.98px) { .q-pmap__tools .q-mp__tool span { display: inline; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.q-etabs--ficha { background: var(--q-bg, #fff7fa); backdrop-filter: none; }

/* ==========================================================================
   Ronda 15 — Ficha de evento rehecha: cabecera a sangre y mapa siempre a la vista
   ========================================================================== */
.q-evh { position: relative; isolation: isolate; overflow: hidden; background: var(--q-ink); color: #fff; padding: 1.1rem 0 clamp(2rem, 4vw, 3.25rem); }
.q-evh::before { content: ""; position: absolute; inset: -80px; z-index: -2; background: var(--eh-bg) center / cover no-repeat; filter: blur(46px) saturate(1.35); transform: scale(1.15); }
.q-evh::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(31, 17, 53, .9) 0%, rgba(31, 17, 53, .72) 55%, rgba(120, 22, 62, .55) 100%); }
.q-evh__crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: clamp(1.25rem, 3vw, 2.25rem); }
.q-evh__crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.q-evh__crumbs a:hover { color: #fff; text-decoration: underline; }
.q-evh__back { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .15); color: #fff; font-weight: 800; font-size: .9rem; text-decoration: none; }
.q-evh__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.q-evh__poster { display: grid; place-items: center; }
.q-evh__poster img { display: block; width: auto; max-width: 100%; max-height: 460px; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); transform: rotate(-1.5deg); transition: transform .3s ease; }
.q-evh__poster .q-zoomable:hover img { transform: rotate(0) scale(1.02); }
.q-evh__info { min-width: 0; }
.q-evh .q-ftags .q-tag { background: rgba(255, 255, 255, .93); }
.q-evh__title { font-family: var(--q-font-display); font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.02; color: #fff; margin: .7rem 0 .5rem; text-wrap: balance; }
.q-evh__sub { font-size: 1.2rem; color: rgba(255, 255, 255, .85); margin: 0; max-width: 46ch; }
.q-evh__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 0; margin: 1.6rem 0 1.5rem; padding: 1.1rem 0; border-top: 1px solid rgba(255, 255, 255, .22); border-bottom: 1px solid rgba(255, 255, 255, .22); }
.q-evh__fact { display: flex; align-items: center; gap: .85rem; padding-right: 1.75rem; margin-right: 1.75rem; border-right: 1px solid rgba(255, 255, 255, .22); }
.q-evh__fact:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.q-evh__ft { display: grid; line-height: 1.25; }
.q-evh__ft b { font-size: 1.12rem; font-weight: 800; }
.q-evh__ft b a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 4px; }
.q-evh__ft b a:hover { text-decoration-color: #fff; }
.q-evh__ft small { font-size: .9rem; color: rgba(255, 255, 255, .78); }
.q-evh__leaf { flex: none; width: 54px; border-radius: 13px; overflow: hidden; background: #fff; color: var(--q-ink); text-align: center; line-height: 1; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.q-evh__leaf small { display: block; padding: .22rem 0 .2rem; background: var(--q-primary); color: #fff; font-size: .7rem; font-weight: 800; }
.q-evh__leaf b { display: block; padding: .28rem 0 .34rem; font-family: var(--q-font-display); font-size: 1.55rem; font-weight: 600; }
.q-evh__ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: 1.05rem; }
.q-evh__acts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.q-evh__acts .btn-lg { border-radius: 999px; padding: .7rem 1.5rem; font-size: 1.02rem; font-weight: 800; }
.q-evh__acts .btn-light { background: #fff; border-color: #fff; }
.q-evh__ic { width: 50px; height: 50px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.05rem; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.q-evh__ic:hover { background: #fff; color: var(--q-ink); transform: translateY(-2px); }
.q-evh__likes { margin: 1rem 0 0; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.q-evh__dot { margin: 0 .5rem; opacity: .6; }
/* Cuerpo */
.q-ev .q-etabs--ficha { margin: 0 0 2rem; }
.q-ev .q-ficha-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: clamp(2rem, 4vw, 3.5rem); }
.q-ev .q-desc { font-size: 1.12rem; line-height: 1.75; max-width: 64ch; }
.q-ev .q-desc > p:first-child { font-size: 1.28rem; line-height: 1.6; color: var(--q-ink); }
.q-ev .q-sec-t { font-size: 1.6rem; }
.q-evaside { top: calc(var(--q-header-h, 68px) + 64px); }
.q-evmap .q-map { height: 300px; border-radius: 24px; }
.q-evmap .q-place-line { grid-template-columns: auto minmax(0, 1fr); }
.q-evmap .q-place-line__acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-top: .25rem; }
.q-evmap .q-place-line__acts .btn { background: var(--q-ink); border-color: var(--q-ink); color: #fff; padding: .5rem 1.1rem; border-radius: 999px; font-weight: 800; }
.q-evaside > .q-evmap + .q-aside__blk { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--q-line); }
.q-ev .q-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.q-ev .q-thumb { aspect-ratio: 4 / 3; border-radius: 18px; transition: transform .2s; }
.q-ev .q-thumb:hover { transform: translateY(-3px) rotate(-.6deg); }
@media (min-width: 992px) { .q-ev .q-etabs--ficha a[href="#q-ubi"] { display: none; } }
@media (max-width: 991.98px) {
  .q-ev .q-ficha-grid { grid-template-columns: minmax(0, 1fr); }
  .q-evaside { position: static; }
}
@media (max-width: 767.98px) {
  .q-evh { padding-top: .75rem; }
  .q-evh__grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .q-evh__poster img { max-height: 320px; }
  .q-evh__facts { display: grid; gap: .9rem; margin: 1.2rem 0; }
  .q-evh__fact { border-right: 0; margin: 0; padding: 0; }
  .q-evh__acts .btn-lg { flex: 1 1 auto; }
  .q-evh__sub { font-size: 1.05rem; }
  .q-ev .q-desc { font-size: 1.05rem; } .q-ev .q-desc > p:first-child { font-size: 1.15rem; }
}
.q-evh__grid--place { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
.q-evh__grid--place .q-evh__poster img { max-height: 340px; transform: rotate(-1deg); }
.q-evh__acts > a.btn-primary { border-color: transparent; }
@media (max-width: 767.98px) { .q-evh__grid--place { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575.98px) { .q-ev .q-thumbs { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Ronda 16 — carteles sin foto, tarjetas del muro más limpias, carril de «Más planes», cabecera con el color del cartel
   ========================================================================== */
/* La cabecera toma el color de su imagen: se ve el difuminado, solo oscurecido lo justo para leer */
.q-evh::before { inset: -120px; filter: blur(60px) saturate(1.9) brightness(.62); transform: scale(1.25); }
.q-evh::after { background: linear-gradient(180deg, rgba(10, 6, 18, .28), rgba(10, 6, 18, .5)); }
.q-evh { background: #1b1326; }
.q-evh__title, .q-evh__sub, .q-evh__ft b, .q-evh__ft small, .q-evh__likes, .q-evh__crumbs { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }

/* Cuando un plan no tiene foto: un cartel de letras con su día, en vez de un recuadro oscuro */
.q-res__when { display: none; }
.q-res__ph { container-type: inline-size; display: grid; place-content: center; justify-items: center; gap: 0; line-height: 1; background: linear-gradient(150deg, #ffe1ea, #ffc9d9); color: var(--q-primary); position: relative; overflow: hidden; }
.q-res__ph--c2 { background: linear-gradient(150deg, #dcf5e7, #b9ebd1); color: #127a43; }
.q-res__ph--c3 { background: linear-gradient(150deg, #e2ebff, #c5d6ff); color: #2356b8; }
.q-res__ph i { position: absolute; right: -6%; bottom: -12%; font-size: 46cqw; opacity: .16; transform: rotate(-12deg); }
.q-res__ph b { font-family: var(--q-font-display); font-weight: 600; font-size: 34cqw; letter-spacing: -.02em; color: var(--q-ink); }
.q-res__ph small { font-size: 9.5cqw; font-weight: 800; }
.q-res__ph:not(:has(b)) i { position: static; font-size: 30cqw; opacity: .55; transform: none; }

/* Tarjetas del muro: la foto limpia y la fecha escrita debajo, sin etiquetas encima */
.q-res.is-wall .q-res__date, .q-res.is-wall .q-res__time { display: none; }
.q-res.is-wall .q-res__when { display: block; font-size: .82rem; font-weight: 800; color: var(--q-primary); }
.q-res.is-wall .q-res__sub { order: 3; font-size: .78rem; color: var(--q-muted); font-weight: 700; }
.q-res.is-wall .q-res__sub i { color: inherit; }
.q-res.is-wall .q-res__title { font-size: 1.08rem; }
.q-res.is-wall .q-res__org { display: none; }
.q-res.is-wall .q-res__txt { gap: .12rem; }
.q-res.is-wall .q-res__img { aspect-ratio: 5 / 4; border-radius: 20px; }

/* «Más planes en…»: una franja propia con carril y flechas */
.q-rel { margin: 3.5rem calc(50% - 50vw) -3rem; padding: clamp(2rem, 4vw, 3rem) calc(50vw - 50%) clamp(2.5rem, 5vw, 3.5rem); border-top: 0; background: var(--q-paper-2); }
.q-rel__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.q-rel__t { font-family: var(--q-font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; margin: 0; }
.q-rel__lead { margin: .3rem 0 0; color: var(--q-ink-2); }
.q-rel__nav { display: flex; gap: .4rem; }
.q-rel__arrow { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--q-line-2); background: #fff; color: var(--q-ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.q-rel__arrow:hover:not(:disabled) { background: var(--q-ink); border-color: var(--q-ink); color: #fff; }
.q-rel__arrow:disabled { opacity: .35; cursor: default; }
.q-res.is-wall.q-res--rail { display: block; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -6px; padding: 6px; }
.q-res--rail::-webkit-scrollbar { display: none; }
.q-res.is-wall.q-res--rail .q-res__list { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(210px, 23%, 270px); grid-template-columns: none; gap: 1.25rem; }
.q-res--rail .q-res__item { scroll-snap-align: start; }
.q-rel__all a { height: 100%; min-height: 200px; display: grid; place-content: center; justify-items: center; gap: .8rem; padding: 1.25rem; border-radius: 20px; border: 2px dashed var(--q-line-2); color: var(--q-ink); text-align: center; text-decoration: none; transition: background .15s, border-color .15s; }
.q-rel__all a i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--q-primary); color: #fff; transition: transform .2s; }
.q-rel__all a:hover { background: #fff; border-color: var(--q-primary); }
.q-rel__all a:hover i { transform: translateX(4px); }
@media (max-width: 575.98px) { .q-res.is-wall.q-res--rail .q-res__list { grid-auto-columns: 62%; gap: .9rem; } .q-rel__nav { display: none; } .q-rel { margin-bottom: -3rem; } }
.q-res.is-grid .q-res__a:has(.q-res__ph) .q-res__date { display: none; }
/* Cabecera: el color sale de la propia imagen (difuminada) y el velo se ajusta a lo clara que sea */
.q-evh { --eh-dim: .42; --eh-c: 60, 40, 80; background: rgb(var(--eh-c)); transition: background-color .4s; }
.q-evh::before { inset: -140px; filter: blur(56px) saturate(2.1) brightness(1.05); transform: scale(1.3); opacity: .95; }
.q-evh::after { background: radial-gradient(90% 120% at 15% 40%, rgba(var(--eh-c), .35), transparent 60%), linear-gradient(180deg, rgba(8, 5, 14, calc(var(--eh-dim) - .12)), rgba(8, 5, 14, calc(var(--eh-dim) + .14))); }

/* ==========================================================================
   Ronda 17 — El contenido de la ficha de evento: de un vistazo, texto, día paso a paso, entradas, fotos
   ========================================================================== */
.q-evb { min-width: 0; }
.q-evs { margin-bottom: 3rem; }
.q-evs__t { font-family: var(--q-font-display); font-weight: 600; font-size: 1.7rem; line-height: 1.1; margin: 0 0 1.1rem; }
.q-evs__t span { margin-left: .35rem; padding: .1rem .55rem; border-radius: 999px; background: var(--q-paper-2); color: var(--q-primary); font-family: var(--q-font-body, inherit); font-size: .85rem; font-weight: 800; vertical-align: middle; }

/* De un vistazo: pegatinas redondas, sin cajas */
.q-evgl { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.4rem 1.25rem; }
.q-evgl__it { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.q-evgl__it span:last-child { display: grid; min-width: 0; line-height: 1.2; }
.q-evgl__it b { font-family: var(--q-font-display); font-size: 1.18rem; font-weight: 600; color: var(--q-ink); }
.q-evgl__it small { font-size: .84rem; color: var(--q-muted); font-weight: 600; }
.q-evgl__ico { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; font-size: 1.35rem; transform: rotate(-6deg); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.q-evgl__it:nth-child(even) .q-evgl__ico { transform: rotate(5deg); border-radius: 54% 46% 44% 56% / 46% 56% 44% 54%; }
.q-evgl__it:hover .q-evgl__ico { transform: rotate(0) scale(1.12); }
.q-evgl__it--a .q-evgl__ico { background: #ffd9e4; color: #b01f4c; }
.q-evgl__it--b .q-evgl__ico { background: #ffe9b8; color: #8a5a00; }
.q-evgl__it--c .q-evgl__ico { background: #cdeedd; color: #127a43; }
.q-evgl__it--d .q-evgl__ico { background: #d6e3ff; color: #2356b8; }
.q-evgl.is-wait .q-evgl__it { opacity: 0; transform: translateY(10px) scale(.92); }
.q-evgl.is-in .q-evgl__it { opacity: 1; transform: none; transition: opacity .35s ease, transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.q-evgl.is-in .q-evgl__it:nth-child(2) { transition-delay: .07s; } .q-evgl.is-in .q-evgl__it:nth-child(3) { transition-delay: .14s; } .q-evgl.is-in .q-evgl__it:nth-child(4) { transition-delay: .21s; } .q-evgl.is-in .q-evgl__it:nth-child(5) { transition-delay: .28s; } .q-evgl.is-in .q-evgl__it:nth-child(6) { transition-delay: .35s; }

/* Texto: recortado si es largo */
.q-evmore.is-clamped { position: relative; max-height: 340px; overflow: hidden; }
.q-evmore.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(180deg, transparent, var(--q-bg, #fff7fa)); pointer-events: none; }
.q-evmore.is-clamped.is-open { max-height: none; } .q-evmore.is-open::after { display: none; }
.q-evmore__btn { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--q-ink); background: none; color: var(--q-ink); font-weight: 800; cursor: pointer; transition: background .15s, color .15s; }
.q-evmore__btn:hover { background: var(--q-ink); color: #fff; }
.q-evmore__btn i { font-size: .75rem; transition: transform .2s; } .q-evmore__btn[aria-expanded="true"] i { transform: rotate(180deg); }
.q-ev .q-credits { margin-top: 1.5rem; max-width: 64ch; }

/* Horario y entradas, lado a lado cuando hay los dos */
.q-evduo.is-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(1.5rem, 3vw, 3rem); align-items: start; }
@media (max-width: 1199.98px) { .q-evduo.is-two { grid-template-columns: minmax(0, 1fr); } }

/* Cómo va el día */
.q-evtl.is-steps ul { border-left: 0; display: grid; gap: 0; position: relative; }
.q-evtl.is-steps ul::before { content: ""; position: absolute; left: 31px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--q-primary-100, #ffd9e4); transform-origin: top; }
.q-evtl.is-steps li { display: grid; grid-template-columns: 66px minmax(0, 1fr); align-items: center; gap: .9rem; padding: .45rem 0; }
.q-evtl.is-steps li::before { display: none; }
.q-evtl__h { position: relative; z-index: 1; justify-self: start; padding: .3rem .55rem; border-radius: 999px; background: var(--q-ink); color: #fff; font-family: var(--q-font-display); font-size: .98rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.q-evtl__w { font-size: 1.05rem; font-weight: 700; color: var(--q-ink); }
.q-evtl li.is-done .q-evtl__h { background: var(--q-line-2); color: var(--q-ink-2); } .q-evtl li.is-done .q-evtl__w { color: var(--q-muted); font-weight: 600; }
.q-evtl li.is-now .q-evtl__h { background: var(--q-primary); box-shadow: 0 0 0 0 rgba(201, 37, 88, .5); animation: q-pulse-p 1.8s infinite; }
.q-evtl li.is-now .q-evtl__w::after { content: "Ahora"; margin-left: .6rem; padding: .1rem .5rem; border-radius: 999px; background: var(--q-primary); color: #fff; font-size: .72rem; font-weight: 800; vertical-align: middle; }
@keyframes q-pulse-p { 70% { box-shadow: 0 0 0 9px rgba(201, 37, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 37, 88, 0); } }
.q-evtl.is-wait ul::before { transform: scaleY(0); } .q-evtl.is-wait li { opacity: 0; transform: translateX(-10px); }
.q-evtl.is-in ul::before { transform: none; transition: transform .7s ease; }
.q-evtl.is-in li { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease; }
.q-evtl.is-in li:nth-child(2) { transition-delay: .1s; } .q-evtl.is-in li:nth-child(3) { transition-delay: .2s; } .q-evtl.is-in li:nth-child(4) { transition-delay: .3s; } .q-evtl.is-in li:nth-child(5) { transition-delay: .4s; } .q-evtl.is-in li:nth-child(n+6) { transition-delay: .5s; }

/* Entradas con forma de entrada */
.q-tk { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .8rem; }
.q-tk__it { --tk: var(--q-primary); position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; min-height: 78px; border-radius: 18px; background: #fff; filter: drop-shadow(0 6px 14px rgba(31, 17, 53, .1)); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1);
  -webkit-mask: radial-gradient(circle 9px at 96px 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 9px at 96px 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 9px at 96px 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 9px at 96px 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
.q-tk__it:hover { transform: rotate(-.8deg) translateY(-2px); }
.q-tk__price { align-self: stretch; display: flex; align-items: center; justify-content: center; gap: .15rem; background: var(--tk); color: #fff; border-radius: 18px 0 0 18px; border-right: 2px dashed rgba(255, 255, 255, .65); }
.q-tk__price b { font-family: var(--q-font-display); font-size: 1.7rem; font-weight: 600; line-height: 1; }
.q-tk__price small { font-size: 1rem; font-weight: 800; }
.q-tk__txt { display: grid; padding: .7rem 1rem; min-width: 0; line-height: 1.25; }
.q-tk__txt b { font-size: 1.05rem; font-weight: 800; }
.q-tk__txt small { font-size: .84rem; color: var(--q-muted); font-weight: 600; }
.q-tk__buy { display: inline-flex; align-items: center; gap: .45rem; margin-right: .9rem; padding: .55rem 1rem; border-radius: 999px; background: var(--q-ink); color: #fff; font-weight: 800; font-size: .88rem; text-decoration: none; white-space: nowrap; transition: background .15s; }
.q-tk__buy:hover { background: var(--q-primary); color: #fff; }
.q-tk__buy i { font-size: .75rem; transition: transform .15s; } .q-tk__buy:hover i { transform: translateX(3px); }
.q-tk__it.is-off { --tk: #8d819e; filter: none; background: var(--q-paper-2); }
.q-tk__it.is-off .q-tk__price b { text-decoration: line-through; }
.q-tk__it.is-off .q-tk__txt b { color: var(--q-ink-2); }
.q-tk.is-wait .q-tk__it { opacity: 0; transform: translateY(12px) rotate(1.5deg); }
.q-tk.is-in .q-tk__it { opacity: 1; transform: none; transition: opacity .35s ease, transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.q-tk.is-in .q-tk__it:nth-child(2) { transition-delay: .09s; } .q-tk.is-in .q-tk__it:nth-child(n+3) { transition-delay: .18s; }
.q-tk.is-in .q-tk__it:hover { transform: rotate(-.8deg) translateY(-2px); transition-delay: 0s; }
@media (max-width: 420px) { .q-tk__it { grid-template-columns: 84px minmax(0, 1fr); -webkit-mask: none; mask: none; } .q-tk__buy { grid-column: 2; justify-self: start; margin: 0 0 .7rem 1rem; } }

/* Fotos: mosaico según cuántas haya */
.q-evph { display: grid; gap: .6rem; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; }
.q-evph__it { position: relative; display: block; border-radius: 18px; overflow: hidden; background: var(--q-paper-2); cursor: zoom-in; }
.q-evph__it[hidden] { display: none; }
.q-evph__it img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.q-evph__it:hover img { transform: scale(1.06); }
.q-evph__it:first-child { grid-column: span 2; grid-row: span 2; }
.q-evph--2 .q-evph__it { grid-column: span 2; grid-row: span 2; }
.q-evph--3 .q-evph__it:not(:first-child) { grid-column: span 2; }
.q-evph--4 .q-evph__it:nth-child(2) { grid-column: span 2; }
.q-evph__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(31, 17, 53, .62); color: #fff; font-family: var(--q-font-display); font-size: 1.8rem; font-weight: 600; }
.q-evph.is-wait .q-evph__it { opacity: 0; transform: scale(.94); }
.q-evph.is-in .q-evph__it { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s ease; }
.q-evph.is-in .q-evph__it:nth-child(2) { transition-delay: .06s; } .q-evph.is-in .q-evph__it:nth-child(3) { transition-delay: .12s; } .q-evph.is-in .q-evph__it:nth-child(4) { transition-delay: .18s; } .q-evph.is-in .q-evph__it:nth-child(5) { transition-delay: .24s; }
@media (max-width: 575.98px) { .q-evph { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; } .q-evph--3 .q-evph__it:not(:first-child), .q-evph--4 .q-evph__it:nth-child(2) { grid-column: span 1; } }

/* ¿Te apuntas? */
.q-evgo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem 0 0; border-top: 3px solid var(--q-ink); }
.q-evgo__t { font-family: var(--q-font-display); font-weight: 600; font-size: 2rem; line-height: 1; margin: 0 0 .25rem; }
.q-evgo p { margin: 0; color: var(--q-ink-2); }
.q-evgo__acts { display: flex; flex-wrap: wrap; gap: .5rem; }
.q-evgo__btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--q-line-2); background: #fff; color: var(--q-ink); font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background .15s, color .15s, border-color .15s; }
.q-evgo__btn:hover { transform: translateY(-3px) rotate(-1.5deg); color: var(--q-ink); border-color: var(--q-ink); }
.q-evgo__btn--main { background: var(--q-primary); border-color: var(--q-primary); color: #fff; }
.q-evgo__btn--main:hover { background: var(--q-primary); border-color: var(--q-primary); color: #fff; }
.q-evgo__btn--wa i { color: #128c4b; font-size: 1.15rem; }
.q-evgo.is-wait { opacity: 0; transform: translateY(14px); } .q-evgo.is-in { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s ease; }
@media (prefers-reduced-motion: reduce) { .q-evgl__ico, .q-tk__it, .q-evgo__btn, .q-evph__it img { transition: none; } .q-evtl li.is-now .q-evtl__h { animation: none; } }
.q-tk { container-type: inline-size; }
.q-tk__it { --tkw: 96px; grid-template-columns: var(--tkw) minmax(0, 1fr) auto;
  -webkit-mask: radial-gradient(circle 9px at var(--tkw) 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 9px at var(--tkw) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 9px at var(--tkw) 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 9px at var(--tkw) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
@container (max-width: 470px) {
  .q-tk__it { --tkw: 84px; grid-template-columns: var(--tkw) minmax(0, 1fr); }
  .q-tk__price { grid-row: 1 / span 2; }
  .q-tk__txt { padding-bottom: .35rem; }
  .q-tk__buy { grid-column: 2; justify-self: start; margin: 0 0 .75rem 1rem; }
  .q-tk__it:not(:has(.q-tk__buy)) .q-tk__price { grid-row: 1; }
}
.q-evtl.is-steps ul { padding-left: 0; }
.q-evtl.is-steps ul::before { z-index: 0; }
.q-ev .q-etabs--ficha.is-stuck { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
@media (max-width: 575.98px) {
  .q-evgl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .75rem; margin-bottom: 2.25rem; }
  .q-evgl__ico { width: 46px; height: 46px; font-size: 1.05rem; } .q-evgl__it { gap: .6rem; } .q-evgl__it b { font-size: 1rem; } .q-evgl__it small { font-size: .78rem; }
  .q-evph--2 .q-evph__it, .q-evph--2 .q-evph__it:first-child { grid-column: span 1; grid-row: span 1; } .q-evph--2 { grid-auto-rows: 150px; }
  .q-evs { margin-bottom: 2.25rem; } .q-evs__t { font-size: 1.45rem; }
  .q-evgo__btn { flex: 1 1 auto; justify-content: center; }
}
.q-wk__all { display: inline-flex; align-items: center; gap: .5rem; margin: .5rem 0 .25rem 1rem; font-weight: 800; color: var(--q-primary); }
.q-mp__img.q-res__ph { aspect-ratio: 4 / 3; }
/* Carteles de letras: cuatro tonos por categoría para que una cuadrícula sin fotos no salga toda igual */
.q-res__ph--c1.q-res__ph--v1 { background: linear-gradient(150deg, #fff0d9, #ffd9a8); color: #a8480b; }
.q-res__ph--c1.q-res__ph--v2 { background: linear-gradient(150deg, #efe3ff, #d9c2ff); color: #5f3dc4; }
.q-res__ph--c1.q-res__ph--v3 { background: linear-gradient(150deg, #ffe1f0, #ffbfdc); color: #a61e6d; }
.q-res__ph--c2.q-res__ph--v1 { background: linear-gradient(150deg, #e3f7f1, #bfeadd); color: #0b6b5a; }
.q-res__ph--c2.q-res__ph--v2 { background: linear-gradient(150deg, #eef7d6, #d7ecaa); color: #4a6b0c; }
.q-res__ph--c2.q-res__ph--v3 { background: linear-gradient(150deg, #dff1fb, #b9def3); color: #0f6e8c; }
.q-res__ph--c3.q-res__ph--v1 { background: linear-gradient(150deg, #e6e9ff, #c9cfff); color: #3b3fb0; }
.q-res__ph--c3.q-res__ph--v2 { background: linear-gradient(150deg, #e0f3f7, #bfe3ec); color: #155e75; }
.q-res__ph--c3.q-res__ph--v3 { background: linear-gradient(150deg, #ecebf3, #d6d3e6); color: #3d3660; }

/* Portada más corta: lo primero que se ve tras el buscador son ya las tarjetas */
.q-home .q-hero { min-height: 0; padding-top: clamp(5.25rem, 9vw, 6.5rem); padding-bottom: clamp(1.4rem, 3vw, 2.25rem); }
.q-home .q-hero__title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-bottom: .5rem; }
.q-home .q-hero__lead { font-size: clamp(1rem, 1.3vw, 1.12rem); margin-bottom: 1.1rem; max-width: 60ch; }
.q-home .q-hero ~ .q-section--tight, .q-home .q-section--tight { padding: 1.9rem 0; }
.q-home .q-section__head { margin-bottom: 1.1rem; align-items: center; }
.q-home .q-section__head .q-section__title { margin-right: auto; }
@media (max-width: 767.98px) {
  .q-home .q-hero__lead { display: none; }
  .q-home .q-hero__title { margin-bottom: 1rem; }
  .q-home .q-hero { padding-bottom: 1.1rem; }
}

/* Ronda 21 · Destacados dentro de la cabecera de la portada: baraja de carteles (.q-deck) y fondo con el color del cartel */
.q-hero__bg .q-stage__bg { position: absolute; inset: -70px; background-position: center; background-size: cover; background-repeat: no-repeat; filter: blur(48px) saturate(1.4); transform: scale(1.12); opacity: 0; transition: opacity 1s ease; }
.q-hero__bg .q-stage__bg.is-on { opacity: .9; }
.q-stage__bg--c1 { background-image: linear-gradient(135deg, #dc2f64, #7a2bbf); }
.q-stage__bg--c2 { background-image: linear-gradient(135deg, #0f9d6b, #1f6fd1); }
.q-stage__bg--c3 { background-image: linear-gradient(135deg, #2a62c9, #6a3fc4); }
.q-home .q-hero--deck::before { background: linear-gradient(100deg, rgba(31, 17, 53, .86) 0%, rgba(31, 17, 53, .62) 50%, rgba(60, 18, 58, .5) 100%), linear-gradient(180deg, rgba(31, 17, 53, .35), transparent 30%); }
.q-deck { --dk-w: clamp(170px, 17vw, 232px); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--dk-w) + 50px); gap: 1.1rem 1.5rem; align-items: center; margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .22); color: #fff; }
.q-deck__txt { min-width: 0; display: flex; flex-direction: column; align-self: stretch; }
.q-deck__kick { align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .9rem; padding: .3rem .8rem .3rem .65rem; border-radius: 999px; background: #fff; color: var(--q-ink); font-family: var(--q-font); font-weight: 800; font-size: .82rem; letter-spacing: 0; line-height: 1.3; }
.q-deck__kick i { color: var(--q-primary); font-size: .8em; }
.q-deck__caps { display: grid; flex: 1; align-content: center; }
.q-deck__cap { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .2, 1), visibility 0s .45s; }
.q-deck__cap.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease .1s, transform .6s cubic-bezier(.2, .8, .2, 1) .1s; }
.q-deck__when { display: flex; align-items: center; gap: .7rem; margin: 0 0 .65rem; font-weight: 700; color: rgba(255, 255, 255, .94); }
.q-deck__day { display: grid; justify-items: center; min-width: 48px; padding: .3rem .45rem .35rem; border-radius: 13px; background: #fff; color: var(--q-primary-dark, #c92558); font-size: .64rem; font-weight: 800; text-transform: uppercase; line-height: 1; }
.q-deck__day b { font-family: var(--q-font-display); font-size: 1.4rem; font-weight: 600; color: var(--q-ink); line-height: 1.05; }
.q-deck__title { margin: 0; font-family: var(--q-font-display); font-weight: 600; font-size: clamp(1.45rem, 2.3vw, 2.05rem); line-height: 1.08; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.q-deck__title a { color: #fff; text-decoration: none; }
.q-deck__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--q-primary); }
.q-deck__where { margin: .6rem 0 0; color: rgba(255, 255, 255, .9); font-weight: 600; font-size: .95rem; }
.q-deck__where i { margin-right: .4rem; opacity: .8; }
.q-deck__cta { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .6rem 1.1rem; border-radius: 999px; background: var(--q-primary); color: #fff; font-weight: 800; font-size: .95rem; text-decoration: none; transition: gap .2s, background .15s, color .15s; }
.q-deck__cta:hover { gap: .8rem; background: #fff; color: var(--q-ink); }
.q-deck__ctl { grid-column: 1 / -1; display: flex; align-items: center; gap: .4rem; margin-top: .2rem; }
.q-deck__segs { flex: 1; display: flex; gap: 5px; margin: 0 .5rem 0 0; padding: 0; list-style: none; }
.q-deck__segs li { flex: 1; max-width: 64px; }
.q-deck__seg { display: block; width: 100%; padding: 10px 0; border: 0; background: none; cursor: pointer; }
.q-deck__seg::before { content: ""; display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .32); }
.q-deck__seg.is-done::before { background: rgba(255, 255, 255, .85); }
.q-deck__seg i { display: block; height: 4px; margin-top: -4px; border-radius: 4px; background: #fff; transform: scaleX(0); transform-origin: left; }
.q-deck__seg.is-on i { transform: scaleX(.12); }
.q-deck.is-run .q-deck__seg.is-on i { animation: q-deck-prog var(--stage-t, 5.2s) linear forwards; }
@keyframes q-deck-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.q-deck__btn { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: .72rem; cursor: pointer; transition: background .15s, color .15s; }
.q-deck__btn:hover { background: #fff; color: var(--q-ink); }
.q-deck :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* La baraja: el de delante recto (casi), los dos siguientes asomando en abanico */
.q-deck__cards { position: relative; width: var(--dk-w); aspect-ratio: 3 / 4; margin-right: 50px; justify-self: end; }
.q-deck__card { position: absolute; inset: 0; display: block; border-radius: 18px; overflow: hidden; background: #2a1c44; box-shadow: 0 20px 36px -16px rgba(0, 0, 0, .7); transform-origin: 50% 110%; transform: translateX(58px) rotate(12deg) scale(.84); opacity: 0; z-index: 0; pointer-events: none; transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s ease, filter .5s ease; }
.q-deck__card img, .q-deck__card .q-res__ph { width: 100%; height: 100%; object-fit: cover; }
.q-deck__card.is-on { transform: rotate(-3deg); opacity: 1; z-index: 3; pointer-events: auto; }
.q-deck__card.is-on:hover { transform: rotate(-1deg) scale(1.03); }
.q-deck__card.is-n1 { transform: translateX(26px) rotate(5deg) scale(.94); opacity: 1; z-index: 2; filter: brightness(.72); pointer-events: auto; cursor: pointer; }
.q-deck__card.is-n2 { transform: translateX(46px) rotate(11deg) scale(.87); opacity: 1; z-index: 1; filter: brightness(.5); pointer-events: auto; cursor: pointer; }
.q-deck__card.is-n1:hover, .q-deck__card.is-n2:hover { filter: brightness(.95); }
.q-deck__card.is-out { transform: translateX(-70px) rotate(-16deg) scale(.96); opacity: 0; z-index: 4; }
.q-deck__card .q-res__ph { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.q-deck__card .q-res__ph i { position: absolute; right: -8%; bottom: -4%; font-size: 6rem; opacity: .16; }
.q-deck__card .q-res__ph b { font-family: var(--q-font-display); font-weight: 600; font-size: clamp(2.6rem, 5vw, 4.2rem); color: var(--q-ink); }
.q-deck__card .q-res__ph small { font-family: var(--q-font-display); font-weight: 600; font-size: 1.3rem; }
/* Escritorio ancho: buscador a la izquierda y baraja a la derecha, todo en la misma cabecera */
@media (min-width: 1200px) {
  .q-home .q-hero--deck > .q-container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 545px); gap: clamp(2rem, 3.5vw, 3.5rem); align-items: center; }
  .q-home .q-hero--deck .q-hero__copy { max-width: none; }
  .q-deck { margin-top: 0; padding-top: 0; border-top: 0; --dk-w: 226px; }
  .q-deck__cards { margin-right: 92px; }
  .q-deck { grid-template-columns: minmax(0, 1fr) calc(var(--dk-w) + 92px); }
  .q-home .q-hero--deck .q-when { gap: .4rem; flex-wrap: nowrap; }
  .q-home .q-hero--deck .q-when__btn { padding: .5rem .8rem; font-size: .9rem; white-space: nowrap; }
}
@media (max-width: 575.98px) {
  .q-deck { --dk-w: 96px; grid-template-columns: calc(var(--dk-w) + 22px) minmax(0, 1fr); gap: .9rem; margin-top: 1.1rem; padding-top: 1rem; align-items: start; }
  .q-deck__cards { order: -1; margin: .15rem 22px 0 6px; justify-self: start; }
  .q-deck { grid-template-columns: calc(var(--dk-w) + 28px) minmax(0, 1fr); }
  .q-home .q-hero--deck .q-when, .q-home .q-hero--deck .q-glance { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -20px; padding-right: 20px; }
  .q-home .q-hero--deck .q-when::-webkit-scrollbar, .q-home .q-hero--deck .q-glance::-webkit-scrollbar { display: none; }
  .q-home .q-hero--deck .q-when > *, .q-home .q-hero--deck .q-glance > * { flex: none; white-space: nowrap; }
  .q-deck__card { border-radius: 12px; }
  .q-deck__card.is-n1 { transform: translateX(12px) rotate(5deg) scale(.94); }
  .q-deck__card.is-n2 { transform: translateX(22px) rotate(11deg) scale(.87); }
  .q-deck__card .q-res__ph b { font-size: 2.1rem; } .q-deck__card .q-res__ph small { font-size: .85rem; } .q-deck__card .q-res__ph i { font-size: 3rem; }
  .q-deck__kick { margin-bottom: .6rem; font-size: .76rem; }
  .q-deck__when { gap: .5rem; font-size: .86rem; margin-bottom: .4rem; }
  .q-deck__day { min-width: 40px; border-radius: 10px; } .q-deck__day b { font-size: 1.15rem; }
  .q-deck__title { font-size: 1.22rem; }
  .q-deck__where { margin-top: .35rem; font-size: .85rem; }
  .q-deck__cta { display: none; }
  .q-deck__ctl { margin-top: 0; }
  .q-deck__btn[data-q-stage-step] { display: none; }
}
@media (prefers-reduced-motion: reduce) { .q-hero__bg .q-stage__bg, .q-deck__card, .q-deck__cap { transition: none; } .q-deck.is-run .q-deck__seg.is-on i { animation: none; } }
/* «Para ti»: mismos carteles que el resto de la web */
.q-mine .q-rel__nav { align-items: center; }
.q-mine .q-rel__arrow[data-q-auto-pause] { width: 38px; height: 38px; font-size: .75rem; }
.q-mine .q-rel__arrow[hidden] { display: none; }
/* Destacados de la cabecera, versión tranquila: más pequeños, cambio lento y suave, y el color solo tiñe el fondo */
.q-hero__bg .q-stage__bg { transition: opacity 2.2s ease; }
.q-hero__bg .q-stage__bg.is-on { opacity: .42; }
.q-home .q-hero--deck::before { background: linear-gradient(100deg, rgba(31, 17, 53, .8) 0%, rgba(31, 17, 53, .55) 55%, rgba(90, 22, 62, .5) 100%), linear-gradient(180deg, rgba(31, 17, 53, .35), transparent 30%); }
.q-deck__card { transition: transform 1.1s cubic-bezier(.3, .7, .2, 1), opacity .9s ease, filter .9s ease; box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .6); }
.q-deck__card.is-on { transform: rotate(-2deg); }
.q-deck__card.is-out { transform: translateX(-18px) rotate(-5deg) scale(.98); }
.q-deck__cap { transform: none; transition: opacity .8s ease, visibility 0s .8s; }
.q-deck__cap.is-on { transition: opacity .8s ease .15s; }
.q-deck__cta { display: none; }
.q-deck__title { font-size: clamp(1.3rem, 1.9vw, 1.7rem); }
.q-deck__seg::before, .q-deck__seg i { height: 3px; } .q-deck__seg i { margin-top: -3px; }
.q-deck__btn { width: 30px; height: 30px; background: rgba(255, 255, 255, .12); }
@media (min-width: 1200px) {
  .q-home .q-hero--deck > .q-container { grid-template-columns: minmax(0, 1fr) minmax(0, 455px); }
  .q-deck { --dk-w: 186px; grid-template-columns: minmax(0, 1fr) calc(var(--dk-w) + 78px); }
  .q-deck__cards { margin-right: 78px; }
  .q-deck__card.is-n1 { transform: translateX(22px) rotate(4deg) scale(.94); }
  .q-deck__card.is-n2 { transform: translateX(40px) rotate(9deg) scale(.87); }
}
@media (min-width: 576px) and (max-width: 1199.98px) { .q-deck { --dk-w: 150px; } }
/* Cabecera de portada con menos cosas: sin frase de apoyo, una sola fila de accesos y el destacado en dos líneas */
.q-home .q-hero__lead { display: none; }
.q-home .q-hero__title { margin-bottom: 1.1rem; }
.q-home .q-when__btn b { margin-left: .15rem; padding: .05rem .42rem; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: .8em; font-weight: 800; font-variant-numeric: tabular-nums; }
.q-home .q-when__btn:hover b { background: var(--q-paper-2, #f6eef2); }
.q-home .q-when__btn.is-hint { background: rgba(255, 255, 255, .12) !important; border-color: rgba(255, 255, 255, .35) !important; }
.q-home .q-when__btn--dice { cursor: pointer; color: #fff; font-family: inherit; }
.q-home .q-when__btn--dice.is-rolling i { animation: qRoll .5s linear infinite; }
.q-home .q-when__btn--map { border-style: solid; }
.q-deck__kick { background: none; padding: 0; color: rgba(255, 255, 255, .85); font-size: .8rem; margin-bottom: .55rem; }
.q-deck__kick i { color: #ffd166; }
.q-deck__where { margin-top: .5rem; font-weight: 600; font-size: .92rem; line-height: 1.45; color: rgba(255, 255, 255, .85); }
.q-deck__ctl { justify-content: flex-start; }
.q-deck__segs { flex: 0 1 auto; }
.q-deck__segs li { flex: none; width: 22px; }
.q-deck__btn { background: none; opacity: .7; }
.q-deck__btn:hover { opacity: 1; }
/* Barra para comparar las dos portadas (se quita con PORTADA_COMPARAR=0) */
.q-cmp { position: fixed; top: 0; left: 0; right: 0; height: 38px; z-index: 1040; display: flex; align-items: center; justify-content: center; gap: .8rem; padding: 0 .75rem; white-space: nowrap; background: #1f1135; color: #fff; font-size: .88rem; }
.q-cmp__t i { margin-right: .45rem; color: #ffd166; }
.q-cmp__sw { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.q-cmp__sw a { padding: .22rem .9rem; border-radius: 999px; color: #fff; font-weight: 800; text-decoration: none; }
.q-cmp__sw a:hover { background: rgba(255, 255, 255, .16); }
.q-cmp__sw a.is-on { background: #fff; color: #1f1135; }
body:has(.q-cmp) .q-header { top: 38px; }
body:has(.q-cmp) #bg_search { margin-top: 38px; }
@media (max-width: 400px) { .q-cmp { font-size: .8rem; gap: .5rem; } .q-cmp__sw a { padding: .2rem .7rem; } }
@media print { .q-cmp { display: none; } }

/* Ronda 22 · Lo principal primero */
/* Ficha de lugar: cabecera más baja, los planes justo debajo y el mapa en la columna lateral (en móvil, después de los planes) */
.q-evh__grid--place { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
.q-evh__grid--place .q-evh__poster img { max-height: 230px; }
.q-evh:has(.q-evh__grid--place) { padding-bottom: clamp(1.4rem, 2.5vw, 2rem); }
.q-evh__grid--place .q-evh__facts { margin: 1rem 0; }
.q-ficha-grid--place { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
.q-ficha-grid--place #q-ubi-ev { scroll-margin-top: calc(var(--q-header-h, 68px) + 16px); }
.q-pmap--side { margin: 0; border-radius: 24px; border: 1px solid var(--q-line); }
.q-pmap--side .q-pmap__map { height: clamp(240px, 38vh, 330px); }
.q-pmap--side .q-pmap__tools { top: .6rem; right: .6rem; gap: .3rem; }
.q-pmap--side .q-pmap__tools .q-mp__tool { width: 40px; height: 40px; padding: 0; justify-content: center; }
.q-pmap--side .q-pmap__tools .q-mp__tool span { display: inline; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; max-width: none; }
.q-pmap--side .q-pmap__foot { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .8rem .9rem .9rem; }
.q-pmap--side .q-pmap__addr { grid-column: 1 / -1; flex: none; font-size: .95rem; }
.q-pmap--side .q-pmap__foot .btn { white-space: nowrap; }
.q-pmap--side .q-mp__card { bottom: 7.2rem; left: .6rem; right: .6rem; width: auto; }
@media (max-width: 991.98px) { .q-ficha-grid--place { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767.98px) {
  .q-evh__grid--place { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
  .q-evh__grid--place .q-evh__poster, .q-evh__grid--place .q-evh__poster .q-zoomable { display: block; width: 100%; }
  .q-evh__grid--place .q-evh__poster img { width: 100%; max-height: none; height: 132px; object-fit: cover; transform: none; border-radius: 16px; }
  /* Ficha de evento en móvil: el cartel no ocupa toda la primera pantalla; título y fecha se ven sin bajar */
  .q-ev .q-evh__poster img { max-height: 235px; }
}
@media (max-width: 767.98px) {
  /* Lugar en móvil: la descripción en dos líneas y el teléfono solo como botón, para llegar antes a los planes */
  .q-evh__grid--place .q-evh__sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1rem; }
  .q-evh__grid--place .q-evh__fact:has(.fa-phone) { display: none; }
  .q-evh__grid--place .q-evh__facts { margin: .8rem 0; }
}
@media (max-width: 575.98px) {
  /* Entidad en móvil: los programas en una tira deslizable, para que no tapen los planes */
  .q-fest { display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -16px; padding: .25rem 16px .5rem; }
  .q-fest::-webkit-scrollbar { display: none; }
  .q-fest__it { flex: none; width: min(78%, 290px); scroll-snap-align: start; gap: .75rem; }
  .q-fest__date { width: 58px; height: 62px; border-radius: 15px; }
  .q-fest__date b { font-size: 1.55rem; }
  .q-fest__txt b { font-size: 1.12rem; }
  .q-fest__go { display: none; }
}
@media (max-width: 767.98px) { .q-evh__grid--place .q-evh__acts .btn-lg { padding-left: .85rem; padding-right: .85rem; } .q-evh__grid--place .q-evh__acts .btn-primary { flex-basis: 100%; } }
