/* ==========================================================================
   gdl.buzz — estilos del sitio público
   Tipografías: Poppins (títulos) e Inter (texto), las mismas del sitio en WordPress.
   Colores del kit de Elementor: azul #0B4773 / #13547F, rojo #F52F4A, amarillo #E9B50A, texto #122B3A.
   ========================================================================== */
:root {
    --primary: #0B4773;
    --primary-2: #13547F;
    --primary-dark: #082f4d;
    --accent: #F52F4A;
    --accent-dark: #d81d38;
    --yellow: #E9B50A;
    --sky: #35A7FF;
    --text: #122B3A;
    --muted: #5f7385;
    --line: #dde6ef;
    --bg: #ffffff;
    --tint: #F3F8FE;
    --tint-2: #D9E7F2;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 6px 24px rgba(11, 71, 115, .10);
    --shadow-lg: 0 18px 50px rgba(11, 71, 115, .18);
    --font-head: 'Poppins', system-ui, sans-serif;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --header-h: 72px;
    /* Escala de z-index: todo lo que se despliega queda por encima del contenido */
    --z-raised: 2;
    --z-sticky: 80;
    --z-header: 90;
    --z-dropdown: 95;
    --z-fab: 120;
    --z-offcanvas: 150;
    --z-search: 160;
    --z-lightbox: 170;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-2); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: inherit; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.container { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(860px, 100% - 2.5rem); }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-sm { padding: 2rem 0 3rem; }
.section-tint { background: var(--tint); }
.section-dark { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 1000; }
.skip-link:focus { left: 1rem; }
.hp { position: absolute; left: -9999px; }

/* Botones y chips --------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: 999px; border: 2px solid transparent; font-family: var(--font-head); font-weight: 600; font-size: .95rem; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; line-height: 1.2; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(245, 47, 74, .35); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-light { background: var(--tint); color: var(--primary); border-color: var(--tint-2); }
.btn-light:hover { background: var(--tint-2); color: var(--primary); }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .25); color: #fff; }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: inherit; font-size: 1.1rem; }
.icon-btn:hover { background: rgba(11, 71, 115, .08); }
.icon-btn.round { background: var(--tint); color: var(--primary); width: 38px; height: 38px; font-size: 1rem; }
.icon-btn.round:hover { background: var(--primary); color: #fff; }
.link-more { font-family: var(--font-head); font-weight: 600; font-size: .95rem; display: inline-flex; gap: .4rem; align-items: center; }
.link-more i { transition: transform .15s; }
.link-more:hover i { transform: translateX(3px); }

.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: .8rem; font-weight: 600; border: 1px solid var(--tint-2); cursor: pointer; white-space: nowrap; }
.chip small { opacity: .6; font-weight: 500; }
a.chip:hover, label.chip:hover { background: var(--tint-2); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
a.chip-accent:hover { background: var(--accent-dark); color: #fff; }
.chip-dark { background: var(--text); color: #fff; border-color: var(--text); }
.chip-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(4px); padding: .45rem .95rem; font-size: .85rem; }
a.chip-glass:hover { background: #fff; color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.kicker { display: inline-block; font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
.kicker.light { color: var(--yellow); }

/* Header ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.85rem; color: var(--primary); letter-spacing: -.03em; line-height: 1; }
.logo-text .dot { color: var(--accent); }
.logo-light .logo-text { color: #fff; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .5rem .9rem; border-radius: 999px; color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--accent); }
.main-nav a.active { color: var(--accent); background: rgba(245, 47, 74, .08); }
.header-actions { display: flex; align-items: center; gap: .25rem; }
.menu-toggle { display: none; }
/* Header sobre el hero del home */
.header-over { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; transition: background .25s; }
.header-over .logo-text, .header-over .main-nav a, .header-over .icon-btn { color: #fff; }
.header-over .main-nav a.active { background: rgba(255, 255, 255, .15); color: #fff; }
.header-over.scrolled { background: rgba(255, 255, 255, .97); border-bottom-color: var(--line); backdrop-filter: blur(10px); }
.header-over.scrolled .logo-text { color: var(--primary); }
.header-over.scrolled .main-nav a, .header-over.scrolled .icon-btn { color: var(--text); }
.header-over.scrolled .main-nav a.active { color: var(--accent); background: rgba(245, 47, 74, .08); }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; color: #fff; background: var(--primary-dark) var(--hero, none) center / cover no-repeat; padding: calc(var(--header-h) + 2rem) 0 3rem; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 25, 40, .82) 0%, rgba(8, 25, 40, .45) 55%, rgba(8, 25, 40, .15) 100%), linear-gradient(0deg, rgba(8, 25, 40, .5), transparent 40%); }
.hero-inner { position: relative; }
.hero-title { font-family: var(--font-head); font-size: clamp(2.6rem, 7.5vw, 5.2rem); font-weight: 700; line-height: 1.05; max-width: 11ch; margin-bottom: 1.25rem; text-shadow: 0 4px 30px rgba(0, 0, 0, .3); }
.hero-title .accent { color: var(--accent); }
.hero-text { font-size: clamp(1rem, 1.8vw, 1.2rem); font-weight: 500; max-width: 46ch; opacity: .95; }
.hero-search { display: flex; align-items: center; gap: .5rem; background: #fff; border-radius: 999px; padding: .35rem .35rem .35rem 1.2rem; max-width: 560px; box-shadow: var(--shadow-lg); margin: 1.75rem 0 1.25rem; color: var(--text); }
.hero-search > i { color: var(--muted); }
.hero-search input { flex: 1; border: 0; outline: 0; background: transparent; padding: .6rem .25rem; min-width: 0; }
.hero-search.small { margin: 1.25rem 0 0; max-width: 480px; }
.quick-chips { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Encabezados de sección -------------------------------------------------- */
.section-head { margin-bottom: 1.75rem; }
.section-head h2 { display: flex; align-items: center; gap: .6rem; margin-bottom: .25rem; }
.section-head h2 i { color: var(--accent); }
.section-head p { color: var(--muted); margin: 0; }
.section-head.center h2 { justify-content: center; color: var(--primary); }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-dark .section-head p { color: rgba(255, 255, 255, .7); }
.section-dark .link-more { color: #fff; }

.page-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, var(--primary-2)); color: #fff; padding: 2.5rem 0 2.75rem; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 47, 74, .35), transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: .35rem; }
.page-hero .lead { font-size: 1.1rem; opacity: .9; max-width: 70ch; margin: 0; }
.page-hero .lead.small { font-size: .95rem; }
.page-hero .intro { max-width: 80ch; opacity: .85; margin-top: 1rem; font-size: .95rem; }
.page-hero.compact { padding: 2rem 0 2.25rem; }
.top-hero { background: var(--primary-dark) var(--hero, none) center / cover; }
.top-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 25, 40, .92), rgba(8, 25, 40, .55)); }
.counter { display: inline-flex; align-items: baseline; gap: .45rem; margin-top: 1.25rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: .4rem 1.1rem; font-family: var(--font-head); }
.counter strong { font-size: 1.6rem; color: var(--yellow); }
.term-head { display: flex; align-items: center; gap: 1.25rem; }
.term-icon { display: grid; place-items: center; width: 76px; height: 76px; flex: none; border-radius: 20px; background: var(--accent); font-size: 2rem; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .82rem; margin-bottom: 1rem; color: var(--muted); }
.breadcrumbs i { font-size: .6rem; opacity: .6; }
.breadcrumbs a { color: inherit; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs.light { color: rgba(255, 255, 255, .75); }
.breadcrumbs.light a:hover { color: #fff; }

/* Grids ------------------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
.grid-events { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-places { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-tops { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-posts { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-venues { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-ad { grid-column: 1 / -1; }
.cover { width: 100%; height: 100%; object-fit: cover; }
.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: rgba(255, 255, 255, .5); font-size: 2.5rem; }

/* Tarjeta de evento (como la del sitio actual: imagen con degradado, fecha en rojo) */
.event-card { border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.event-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.event-card-link:hover { color: inherit; }
.event-card-media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--primary); }
.event-card-media .cover { transition: transform .4s; }
.event-card:hover .event-card-media .cover { transform: scale(1.05); }
.event-card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(168, 168, 168, .05) 30%, rgba(0, 0, 0, .88) 92%); }
.date-badge { position: absolute; top: .75rem; right: .75rem; z-index: 2; background: var(--accent); color: #fff; border-radius: 10px; min-width: 58px; padding: .35rem .5rem .4rem; text-align: center; font-family: var(--font-head); line-height: 1; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: .15rem; }
.date-badge .dow, .date-badge .mon { font-size: .68rem; font-weight: 600; }
.date-badge .day { font-size: 1.45rem; font-weight: 700; }
.event-card-overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1rem; color: #fff; }
.event-card-overlay .chip { background: var(--primary-2); color: #fff; border-color: transparent; font-size: .72rem; margin-bottom: .45rem; }
.event-card-overlay h3 { font-size: 1.15rem; margin: 0; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-card-meta { padding: .7rem 1rem .85rem; display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; color: var(--muted); }
.event-card-meta .row { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.event-card-meta i { color: var(--primary-2); width: 1em; }
.event-card-meta > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { font-weight: 700; color: var(--text); }
.price.free { color: #1a8a4a; }
.event-card.is-past { opacity: .7; }
.ribbon { position: absolute; top: .9rem; left: -2.4rem; z-index: 3; transform: rotate(-35deg); background: var(--ribbon, var(--accent)); color: #fff; font-family: var(--font-head); font-size: .72rem; font-weight: 700; text-transform: uppercase; padding: .3rem 3rem; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.ribbon-lg { font-size: .9rem; top: 1.5rem; left: -2.6rem; }

/* Grupos de eventos (Esta semana, meses…) */
.event-group { margin-bottom: 3rem; scroll-margin-top: 140px; }
.group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--tint-2); }
.group-head h2 { margin: 0; color: var(--primary); }
.group-count { background: var(--accent); color: #fff; border-radius: 999px; padding: .15rem .7rem; font-size: .8rem; font-weight: 700; font-family: var(--font-head); }
.group-range { color: var(--muted); font-size: .9rem; margin-left: auto; }
.event-group.past .group-head h2 { color: var(--muted); }

/* Filtros */
.filters-bar { position: sticky; top: var(--header-h); z-index: var(--z-sticky); background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); box-shadow: 0 4px 16px rgba(11, 71, 115, .05); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .8rem 0; }
.filters select, .filter-search { height: 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--tint); padding: 0 1rem; font-size: .9rem; }
.filters select { padding-right: 2rem; max-width: 230px; cursor: pointer; }
.filter-search { display: flex; align-items: center; gap: .5rem; flex: 1 1 220px; max-width: 320px; }
.filter-search input { border: 0; outline: 0; background: transparent; width: 100%; height: 100%; }
.when-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.results-note { background: var(--tint); border-radius: var(--radius-sm); padding: .75rem 1rem; }
.facet-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.75rem; }

/* Tiles de tipos de evento */
.type-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.type-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; padding: 1.4rem 1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); transition: transform .2s, background .2s, color .2s; }
.type-tile i { font-size: 2rem; color: var(--accent); margin-bottom: .4rem; transition: color .2s; }
.type-tile strong { font-family: var(--font-head); font-weight: 600; }
.type-tile span { font-size: .8rem; color: var(--muted); }
.type-tile:hover { transform: translateY(-3px); background: var(--primary); color: #fff; }
.type-tile:hover i, .type-tile:hover span { color: #fff; }

/* Tarjetas de lugares */
.place-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.place-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.place-card a { color: inherit; display: block; height: 100%; }
.place-card-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--tint); }
.place-card-media .ribbon { top: .8rem; }
.place-logo { position: absolute; left: .75rem; bottom: -22px; width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); overflow: hidden; display: grid; place-items: center; border: 3px solid #fff; z-index: 2; }
.place-logo img { width: 100%; height: 100%; object-fit: contain; }
.place-logo.lg { position: static; width: 96px; height: 96px; flex: none; }
.place-card-body { padding: 1.6rem 1rem 1rem; }
.place-card-body h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.place-card-body p { margin: 0; font-size: .85rem; }
.place-card.is-closed { filter: grayscale(.7); opacity: .8; }
.featured-first > :first-child { grid-column: span 2; grid-row: span 2; }
.featured-first > :first-child .place-card-media { aspect-ratio: auto; height: calc(100% - 92px); min-height: 260px; }

/* Tops */
.top-card a { color: inherit; display: block; }
.top-card-media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; margin-bottom: .75rem; box-shadow: var(--shadow); }
.top-card-media .cover { transition: transform .4s; }
.top-card:hover .cover { transform: scale(1.05); }
.top-badge { position: absolute; top: .75rem; left: .75rem; background: var(--yellow); color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: .75rem; padding: .25rem .7rem; border-radius: 999px; }
.top-card h3 { margin-bottom: .2rem; }
.top-list { list-style: none; padding: 0; margin: 0; counter-reset: top; }
.top-item { position: relative; display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; padding: 1.25rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.top-item:not(:has(.top-item-media)) { grid-template-columns: 1fr; }
.top-rank { position: absolute; top: -12px; left: -12px; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; box-shadow: 0 6px 14px rgba(245, 47, 74, .4); z-index: 1; }
.top-item-media { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.top-item-media img { width: 100%; height: 100%; object-fit: cover; }
.top-item h2 { font-size: 1.3rem; margin-bottom: .25rem; }
.top-item-body { display: flex; flex-direction: column; min-width: 0; }
.top-address { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }
.top-address i { color: var(--accent); }
.top-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: auto; padding-top: .75rem; }
.votes { display: flex; gap: .5rem; }
.vote { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: .45rem .95rem; font-weight: 700; font-family: var(--font-head); cursor: pointer; transition: background .15s, color .15s, transform .1s, border-color .15s; }
.vote:hover { border-color: var(--primary-2); color: var(--primary); }
.vote:active { transform: scale(.94); }
.vote-up.active { background: #1a8a4a; border-color: #1a8a4a; color: #fff; }
.vote-down.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.vote[disabled] { opacity: .6; cursor: wait; }
.top-item.bump { animation: bump .6s ease; }
@keyframes bump { 30% { box-shadow: 0 0 0 4px rgba(245, 47, 74, .25), var(--shadow-lg); } }
.vote-hint { margin: 1rem 0 0; font-size: .9rem; opacity: .85; }
.vote-hint i { color: var(--yellow); }
.top-item-media .cover { aspect-ratio: 1; }
.top-item h2 a { color: var(--primary); }

/* Locaciones */
.venue-strip { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; }
.venue-pill { display: flex; align-items: center; gap: .75rem; flex: none; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 999px; padding: .4rem 1.2rem .4rem .4rem; color: #fff; transition: background .2s; }
.venue-pill:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.venue-pill strong { display: block; font-family: var(--font-head); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.venue-pill small { opacity: .7; font-size: .75rem; }
.venue-strip.light .venue-pill { background: var(--tint); color: var(--text); border-color: var(--tint-2); }
.venue-logo { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; color: var(--primary); }
.venue-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.venue-logo.lg { width: 96px; height: 96px; box-shadow: var(--shadow); }
.venue-logo.xl { width: 110px; height: 110px; border: 4px solid rgba(255, 255, 255, .3); }
.venue-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem 1rem; color: var(--text); transition: transform .2s; }
.venue-tile:hover { transform: translateY(-3px); color: var(--primary); }
.venue-tile strong { font-family: var(--font-head); font-weight: 600; }
.venue-tile .count { color: var(--accent); }
.venue-tile small { color: var(--muted); font-size: .78rem; }
.venue-tile.is-empty { opacity: .6; }
.venue-info { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem; margin-top: -1.25rem; position: relative; z-index: 2; }

/* Detalle de evento */
.event-hero { position: relative; color: #fff; padding: 2.5rem 0 3rem; background: var(--primary-dark); }
/* El fondo difuminado va en su propia capa recortada: así el menú «Agregar a calendario» ya no queda cortado */
.event-hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.event-hero-bg::before { content: ''; position: absolute; inset: -40px; background: var(--poster, none) center / cover; filter: blur(36px) saturate(1.2); opacity: .55; transform: scale(1.1); }
.event-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 25, 40, .92), rgba(8, 25, 40, .7)); }
.event-hero-inner { position: relative; z-index: var(--z-raised); display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 2.5rem; align-items: center; }
.event-poster { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 25px 60px rgba(0, 0, 0, .45); background: var(--primary); }
.event-poster img { width: 100%; }
.poster-placeholder { aspect-ratio: 3 / 4; display: grid; place-items: center; font-size: 4rem; color: rgba(255, 255, 255, .4); }
.event-head h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.event-facts { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .6rem; font-size: 1.05rem; }
.event-facts li { display: flex; gap: .75rem; align-items: center; }
.event-facts i { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: var(--yellow); font-size: .95rem; }
.event-facts a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.event-facts strong { color: var(--yellow); }
.event-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.layout-event { display: grid; grid-template-columns: 1fr 340px; gap: 1.75rem; padding: 2rem 0 3rem; align-items: start; }
.event-side { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1.25rem; }
.event-side .card { margin: 0; }
.card-title { font-size: 1.2rem; color: var(--primary); display: flex; align-items: center; gap: .5rem; }
.card-title i { color: var(--accent); }
.small-title { font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 1rem 0 .5rem; }
.info-list { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin: 0 0 1rem; font-size: .92rem; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 600; }
.info-list.cols { grid-template-columns: repeat(auto-fill, minmax(120px, auto) minmax(140px, 1fr)); }
.venue-card-head { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.venue-card-head h2 { font-size: 1.1rem; margin: 0 0 .2rem; }
.venue-card-head p { margin: 0; font-size: .85rem; }
.venue-card .venue-logo { width: 64px; height: 64px; box-shadow: var(--shadow); }
.map-embed { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 10; background: var(--tint); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-embed.tall { aspect-ratio: auto; height: 100%; min-height: 260px; }
.map-card { padding: .5rem; }
.price-table { width: 100%; border-collapse: collapse; margin-bottom: .75rem; }
.price-table th, .price-table td { padding: .65rem .25rem; border-bottom: 1px dashed var(--line); text-align: left; }
.price-table th { font-weight: 500; }
.price-table td { text-align: right; font-weight: 700; font-family: var(--font-head); color: var(--primary); white-space: nowrap; }
.map-image { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); margin-top: 1rem; }
.shows { list-style: none; padding: 0; margin: 0; }
.shows li { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.video { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + .4rem); left: 0; min-width: 230px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: .4rem; z-index: var(--z-dropdown); display: none; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 6px; color: var(--text); font-size: .92rem; }
.dropdown-menu a:hover { background: var(--tint); color: var(--primary); }

/* Detalle de lugar */
.place-hero { background: var(--tint); padding: 1.5rem 0 2rem; }
.place-head { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.place-head h1 { margin: 0 0 .25rem; }
.place-head p { margin: 0; }
.gallery { display: grid; gap: .5rem; border-radius: var(--radius); overflow: hidden; height: clamp(260px, 42vw, 440px); }
.gallery a { position: relative; overflow: hidden; display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery-2 { grid-template-columns: 2fr 1fr; }
.gallery-3, .gallery-4, .gallery-5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-3 .main, .gallery-4 .main, .gallery-5 .main { grid-row: span 2; }
.gallery-3 a:nth-child(2) { grid-column: span 2; } .gallery-3 a:nth-child(3) { grid-column: span 2; }
.gallery-4 a:nth-child(4) { grid-column: span 2; }
.gallery .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 25, 40, .55); color: #fff; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; }
.contact-list { list-style: none; padding: 0; margin: .75rem 0; display: grid; gap: .45rem; }
.contact-list a { color: var(--text); display: flex; gap: .6rem; align-items: center; }
.contact-list i { color: var(--primary-2); width: 1.1em; }
.contact-list a:hover { color: var(--accent); }
.price-line { font-size: 1.05rem; }
.hours { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hours th, .hours td { padding: .45rem .25rem; text-align: left; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; color: var(--muted); }
.hours tr.today th, .hours tr.today td { color: var(--accent); font-weight: 700; }
.branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.branch { background: var(--tint); border-radius: var(--radius-sm); padding: 1rem; }
.branch h3 { margin-bottom: .25rem; }
.branch p { font-size: .88rem; margin: 0; }
.promo { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; margin-bottom: 1rem; }
.promo img { border-radius: var(--radius-sm); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; }
.thumbs img { border-radius: var(--radius-sm); aspect-ratio: 1; object-fit: cover; width: 100%; }

/* Reportar como cerrado */
.report-box { text-align: center; }
.report-btn { background: none; border: 0; color: var(--muted); font-size: .85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: .25rem; }
.report-btn:hover { color: var(--accent); }
.report-thanks { font-size: .88rem; color: #146c3c; margin: 0; }
.report-dialog { border: 0; border-radius: var(--radius); padding: 1.75rem 1.5rem 1.5rem; width: min(440px, calc(100% - 2rem)); box-shadow: var(--shadow-lg); }
.report-dialog::backdrop { background: rgba(8, 25, 40, .6); backdrop-filter: blur(3px); }
.report-dialog h2 { font-size: 1.2rem; color: var(--primary); padding-right: 2rem; }
.report-dialog .field { margin-bottom: .9rem; }
.report-close { position: absolute; top: .6rem; right: .6rem; }
.report-msg { background: #e7f7ee; color: #146c3c; padding: .75rem 1rem; border-radius: var(--radius-sm); }

/* Blog y páginas */
.post-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.post-card a { color: inherit; display: block; }
.post-card-media { aspect-ratio: 16 / 9; overflow: hidden; }
.post-card-body { padding: 1rem 1.2rem 1.25rem; }
.post-cover { margin: 0 0 1.5rem; border-radius: var(--radius); overflow: hidden; }
.prose { font-size: 1.04rem; line-height: 1.75; }
.prose h2 { margin-top: 1.75em; color: var(--primary); font-size: 1.5rem; }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius-sm); margin: 1rem 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 4px solid var(--accent); margin: 1.5rem 0; padding: .5rem 1.25rem; background: var(--tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose iframe { max-width: 100%; }
.prose > :first-child { margin-top: 0; }
.prose.small { font-size: .95rem; line-height: 1.65; }
.prose.small p { margin-bottom: .5em; }

.share { display: flex; align-items: center; gap: .5rem; margin: 1.5rem 0; flex-wrap: wrap; }
.share-label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-right: .25rem; color: var(--muted); }
.share a, .share button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 0; cursor: pointer; font-size: 1rem; }
.share-wa { background: #25D366; } .share-fb { background: #4267B2; } .share-x { background: #000; }
.share button { background: var(--tint-2); color: var(--primary); }
.share a:hover { color: #fff; opacity: .85; }

/* Formularios */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .9rem; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary-2); outline-offset: 0; border-color: transparent; }
.field .error { color: var(--accent); }
.contact-card { margin-top: 2rem; }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); }
.alert-success { background: #e7f7ee; color: #146c3c; }

/* Estados vacíos y paginación */
.empty-state { text-align: center; padding: 3rem 1rem; max-width: 560px; margin: 0 auto; }
.empty-state > i { font-size: 3.5rem; color: var(--primary-2); margin-bottom: 1rem; }
.empty-state .hero-search { margin-inline: auto; }
.pagination { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; padding: 0; margin: 2rem 0 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .75rem; border-radius: 999px; background: var(--tint); color: var(--primary); font-weight: 600; }
.pagination .active span { background: var(--primary); color: #fff; }
.pagination .disabled span { opacity: .4; }

/* Publicidad (zonas) */
.ad { text-align: center; margin: 1.5rem auto; overflow: hidden; }
.ad-inner { min-height: var(--ad-h, 0); display: flex; align-items: center; justify-content: center; }
.ad-inner > * { max-width: 100%; }
.ad-inner ins.adsbygoogle { display: block; width: 100%; }
.ad-top { margin-top: 1rem; margin-bottom: 0; }
/* AdSense no llenó el espacio: se oculta la zona completa */
.ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
@media (max-width: 767px) { .ad-device-desktop { display: none; } }
@media (min-width: 768px) { .ad-device-mobile { display: none; } }
.ad-label { display: block; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.ad img { margin: 0 auto; border-radius: var(--radius-sm); }
.container-ad { width: min(1240px, 100% - 2.5rem); }

/* Búsqueda */
.search-overlay { position: fixed; inset: 0; z-index: var(--z-search); background: rgba(8, 25, 40, .7); backdrop-filter: blur(6px); padding: 10vh 1rem 1rem; }
.search-box { max-width: 680px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-form { display: flex; align-items: center; gap: .75rem; padding: .5rem .5rem .5rem 1.25rem; border-bottom: 1px solid var(--line); }
.search-form > i { color: var(--muted); }
.search-form input { flex: 1; border: 0; outline: 0; font-size: 1.15rem; padding: .75rem 0; }
.search-results { max-height: 60vh; overflow-y: auto; }
.search-results:empty { display: none; }
.sr-group { padding: .5rem 0; }
.sr-group h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: .5rem 1.25rem; }
.sr-item { display: flex; align-items: center; gap: .9rem; padding: .55rem 1.25rem; color: var(--text); }
.sr-item:hover, .sr-item.focus { background: var(--tint); color: var(--primary); }
.sr-item img, .sr-item .sr-ph { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex: none; background: var(--tint-2); }
.sr-item small { display: block; color: var(--muted); }
.sr-all { display: block; padding: .9rem 1.25rem; text-align: center; font-weight: 600; border-top: 1px solid var(--line); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: var(--z-lightbox); background: rgba(0, 0, 0, .9); display: grid; place-items: center; padding: 2rem; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; } .lightbox .lb-next { right: 1rem; top: 50%; }

/* Footer */
.site-footer { background: var(--text); color: rgba(255, 255, 255, .78); padding: 3.5rem 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin: .75rem 0 1rem; max-width: 32ch; }
.socials { display: flex; gap: .5rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.socials a:hover { background: var(--accent); }
.footer-cta p { font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.25rem 0; font-size: .85rem; }
.footer-bottom i { color: var(--accent); }

/* Responsivo */
@media (max-width: 1024px) {
    .layout-event { grid-template-columns: 1fr; }
    .event-side { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .featured-first > :first-child { grid-column: auto; grid-row: auto; }
    .featured-first > :first-child .place-card-media { aspect-ratio: 16 / 11; height: auto; min-height: 0; }
}
@media (max-width: 860px) {
    :root { --header-h: 64px; }
    .menu-toggle { display: inline-grid; }
    .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: .75rem 1rem 1rem; display: none; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav a, .header-over .main-nav a { color: var(--text); padding: .8rem 1rem; font-size: 1.05rem; }
    .header-actions { margin-left: auto; }
    .logo-text { font-size: 1.6rem; }
    .event-hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .event-poster { max-width: 380px; }
    .venue-info { grid-template-columns: 1fr; margin-top: 1rem; }
    .top-item { grid-template-columns: 1fr; }
    .top-item-media { aspect-ratio: 16 / 10; }
    .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .filters::-webkit-scrollbar { display: none; }
    .filters select, .filter-search { flex: none; }
    .filter-search { width: 220px; }
    .when-chips { flex-wrap: nowrap; }
    .group-range { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) {
    .container { width: calc(100% - 1.5rem); }
    .grid-events { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .event-card-overlay { padding: .7rem; }
    .event-card-overlay h3 { font-size: .95rem; }
    .event-card-overlay .chip { display: none; }
    .event-card-meta { padding: .55rem .7rem .7rem; font-size: .78rem; }
    .event-card-meta .row { flex-direction: column; align-items: flex-start; gap: .1rem; }
    .date-badge { min-width: 48px; top: .5rem; right: .5rem; }
    .date-badge .day { font-size: 1.15rem; }
    .grid-places { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .place-card-body { padding: 1.5rem .75rem .8rem; }
    .place-card-body h3 { font-size: .95rem; }
    .place-logo { width: 44px; height: 44px; bottom: -18px; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .gallery { height: 240px; grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; }
    .gallery a:not(.main) { display: none; }
    .gallery a.main { grid-row: auto; }
    .term-head { flex-direction: column; align-items: flex-start; }
    .place-head { flex-direction: column; align-items: flex-start; }
    .promo { grid-template-columns: 1fr; }
    .hero-search .btn { padding: .65rem 1rem; }
}

/* ==========================================================================
   Cartelera (/eventos) — rediseño
   ========================================================================== */
.events-hero { padding: 2rem 0 2.25rem; }
.events-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.events-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.events-hero .counter { margin-top: 0; }

.events-toolbar { position: sticky; top: var(--header-h); z-index: var(--z-sticky); background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(11, 71, 115, .06); padding: .9rem 0 .75rem; }
.live-search { position: relative; width: 95%; margin: 0 auto; display: flex; align-items: center; gap: .6rem; background: var(--tint); border: 2px solid var(--tint-2); border-radius: 999px; padding: 0 1.1rem; transition: border-color .15s, box-shadow .15s, background .15s; }
.live-search:focus-within { background: #fff; border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(19, 84, 127, .12); }
.live-search > i { color: var(--muted); }
.live-search input { flex: 1; border: 0; outline: 0; background: transparent; height: 50px; font-size: 1.02rem; min-width: 0; }
.live-spinner { color: var(--primary-2); }
.toolbar-row { width: 95%; margin: .65rem auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.toolbar-row .btn { padding: .55rem 1.05rem; }
.small-chevron { font-size: .7rem; opacity: .7; }
.badge-count { background: var(--accent); color: #fff; border-radius: 999px; font-size: .72rem; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 .35rem; }
.chip-remove i { font-size: .7rem; opacity: .8; }

/* Menú de navegación por periodos (como el de «Agregar a calendario») */
.nav-dropdown .dropdown-menu { min-width: 300px; max-height: min(70vh, 520px); overflow-y: auto; }
.nav-dropdown .dropdown-menu a, .dd-accordion summary { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 6px; color: var(--text); font-size: .93rem; }
.nav-dropdown .dropdown-menu a > i, .dd-accordion summary > i:first-child { width: 1.1em; color: var(--primary-2); }
.nav-dropdown .dropdown-menu a span, .dd-accordion summary span { flex: 1; }
.nav-dropdown .dropdown-menu small { display: block; color: var(--muted); font-size: .78rem; }
.nav-dropdown .dropdown-menu em, .dd-accordion summary em { font-style: normal; font-size: .75rem; font-weight: 700; background: var(--tint); color: var(--primary); border-radius: 999px; padding: .1rem .5rem; margin-left: auto; }
.nav-dropdown .dropdown-menu a:hover, .dd-accordion summary:hover { background: var(--tint); color: var(--primary); }
.nav-dropdown .dropdown-menu a.current { background: rgba(245, 47, 74, .08); color: var(--accent); font-weight: 600; }
.dd-accordion summary { cursor: pointer; list-style: none; }
.dd-accordion summary::-webkit-details-marker { display: none; }
.acc-chevron { font-size: .7rem; color: var(--muted); transition: transform .2s; margin-left: .25rem; }
.dd-accordion[open] .acc-chevron { transform: rotate(180deg); }
.dd-accordion > a { padding-left: 2.6rem !important; font-size: .88rem !important; }
.dd-accordion[open] { background: #fafcff; border-radius: 6px; padding-bottom: .25rem; }

.period-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.period-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--text); }
.empty-group { background: var(--tint); border-radius: var(--radius-sm); padding: 1rem 1.25rem; }
.more-periods { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 1.25rem; background: var(--tint); border-radius: var(--radius); margin-top: 1rem; }
.more-periods > span { font-family: var(--font-head); font-weight: 600; color: var(--primary); margin-right: .25rem; }
.events-intro { margin-top: 2.5rem; color: var(--muted); font-size: .92rem; max-width: 80ch; }
.small-empty { padding: 1.5rem 1rem; }

/* Eventos que ya pasaron (esta semana y locaciones): sombreados */
.event-card.is-past { opacity: .62; filter: grayscale(.85); box-shadow: none; }
.event-card.is-past:hover { opacity: .85; filter: grayscale(.4); }
.past-tag { position: absolute; top: .75rem; left: .75rem; z-index: 3; background: rgba(18, 43, 58, .85); color: #fff; font-family: var(--font-head); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .25rem .6rem; border-radius: 999px; }
.event-card-alt-title, .event-card-alt-date { display: none; }

/* Offcanvas de filtros */
.offcanvas-backdrop { position: fixed; inset: 0; background: rgba(8, 25, 40, .55); backdrop-filter: blur(2px); z-index: var(--z-offcanvas); opacity: 0; transition: opacity .25s; }
.offcanvas-backdrop.show { opacity: 1; }
.offcanvas { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); background: #fff; z-index: calc(var(--z-offcanvas) + 1); box-shadow: -20px 0 50px rgba(8, 25, 40, .25); transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); visibility: hidden; }
.offcanvas.open { transform: none; visibility: visible; }
.offcanvas-form { display: flex; flex-direction: column; height: 100%; }
.offcanvas-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.offcanvas-head h2 { margin: 0; font-size: 1.25rem; color: var(--primary); display: flex; gap: .5rem; align-items: center; }
.offcanvas-body { flex: 1; overflow-y: auto; padding: 1.25rem; display: grid; gap: 1.25rem; align-content: start; }
.offcanvas-body .field select, .offcanvas-body .field input[type="number"] { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .9rem; background: #fff; }
.price-filter { border: 0; padding: 0; margin: 0; }
.price-filter legend { font-weight: 600; font-size: .88rem; margin-bottom: .5rem; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.price-inputs label span { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
.price-presets { display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0; }
.price-presets .chip { background: #fff; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; margin: .4rem 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.offcanvas-foot { display: flex; gap: .6rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.offcanvas-foot .btn { flex: 1; }
body.no-scroll { overflow: hidden; }

/* Botón «Editar» (solo admin) */
.admin-edit { position: fixed; left: 1rem; bottom: 1rem; z-index: var(--z-fab); display: inline-flex; align-items: center; gap: .5rem; background: var(--text); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .9rem; padding: .7rem 1.1rem; border-radius: 999px; box-shadow: 0 10px 30px rgba(8, 25, 40, .35); }
.admin-edit:hover { background: var(--accent); color: #fff; }

@media (min-width: 861px) {
    .nav-dropdown .dropdown-menu { left: 0; }
}
@media (max-width: 860px) {
    .events-toolbar { position: static; }
    .live-search, .toolbar-row { width: 100%; }
    .nav-dropdown { flex: 1 1 55%; min-width: 55%; }
    .nav-dropdown > .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nav-dropdown > .btn { width: 100%; justify-content: space-between; }
    .nav-dropdown .dropdown-menu { left: 0; right: 0; min-width: 0; }
}
/* En celular la cartelera se ve como agenda: una fila por evento */
@media (max-width: 600px) {
    .grid-agenda { grid-template-columns: 1fr; gap: .6rem; }
    .grid-agenda .event-card { border-radius: 12px; }
    .grid-agenda .event-card:hover { transform: none; }
    .grid-agenda .event-card-link { flex-direction: row; align-items: stretch; }
    .grid-agenda .event-card-media { width: 104px; flex: none; aspect-ratio: auto; min-height: 118px; }
    .grid-agenda .event-card-media::after { display: none; }
    .grid-agenda .event-card-overlay { display: none; }
    .grid-agenda .date-badge { display: none; }
    .grid-agenda .ribbon { font-size: .58rem; top: auto; bottom: .9rem; left: -2.2rem; padding: .2rem 2.5rem; }
    .grid-agenda .past-tag { top: auto; bottom: .4rem; left: .4rem; font-size: .58rem; }
    .grid-agenda .event-card-meta { flex: 1; min-width: 0; justify-content: center; padding: .65rem .8rem; font-size: .8rem; gap: .15rem; }
    .grid-agenda .event-card-alt-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--font-head); font-size: .98rem; line-height: 1.25; color: var(--text); }
    .grid-agenda .event-card-alt-date { display: block; color: var(--accent); font-weight: 600; font-size: .8rem; }
    .grid-agenda .event-card-meta .row { flex-direction: row; justify-content: flex-start; gap: .75rem; }
    .grid-agenda .event-card-meta .row > span:first-child { display: none; }
    .events-hero-inner { align-items: flex-start; }
    .admin-edit { left: .75rem; bottom: .75rem; font-size: .82rem; padding: .6rem .9rem; }
}
