/* ===== MAIN CSS - NOCHE DE PRIMAVERA ===== */
/* Este archivo importa todos los módulos CSS */

@import 'variables.css';
@import 'reset.css';
@import 'layout.css';
@import 'cards.css';
@import 'carousel.css';
@import 'modal.css';
@import 'filters.css';
@import 'responsive.css';

/* ===== UTILIDADES ADICIONALES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.visible { display: block !important; }

.invisible { visibility: hidden; }
.visible { visibility: visible; }

/* ===== ANIMACIONES GLOBALES ===== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== CARTELERA HEADER (3 NIVELES) ===== */
body {
  background: #0d0d0d;
  color: #e8e8e8;
}

html {
  scroll-behavior: smooth;
}

.cartelera-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #111111;
  box-shadow:  0 8px 20px rgba(0,0,0,0.5);
}

.cartelera-header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 0.8rem 1.2rem;
  background: #111111;
}

.cartelera-logo-cultura {
  height: 58px;
  max-width: min(95vw, 620px);
  width: auto;
  object-fit: contain;
}

.cartelera-header-pleca {
  width: 100%;
  line-height: 0;
  background: var(--pleca-bg, #f5f5f5);
}

.cartelera-pleca-image {
  width: 100%;
  height: auto;
  display: block;
}

.cartelera-header-nav {
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  background: #1a1a1a;
  border-bottom:  1px solid #2e2e2e;
}

.cartelera-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.cartelera-brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.cartelera-menu {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 1.4rem;
}

.cartelera-menu-item {
  font-family: 'Cabin', sans-serif;
  font-weight: 600;
  color: #cccccc;
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cartelera-menu-item.is-active {
  color: #8ddb00;
  border-color: #8ddb00;
}

.cartelera-search-container {
  justify-self: end;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
}

.cartelera-search-icon {
  display: flex;
  order: 0;
  align-items: center;
  justify-content: center;
  color: #aaaaaa;
  font-size: 1.25rem;
  pointer-events: none;
  flex-shrink: 0;
}

.cartelera-search-input {
  order: 1;
  width: 240px;
  height: 34px;
  border:  2px solid #444444;
  border-radius: 20px;
  padding: 0 0.75rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  color: #e8e8e8;
  background: #2a2a2a;
}

.cartelera-search-input::placeholder {
  color: #666666;
}

.cartelera-search-input:focus {
  outline: none;
  border-color: #8ddb00;
  box-shadow:  0 0 0 2px rgba(141,219,0,0.15);
}

.cartelera-search-clear {
  order: 2;
  flex-shrink: 0;
  background: none;
  border: none;
  color: #aaaaaa;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
  transition: color 0.15s;
}

.cartelera-search-clear:hover {
  color: #8ddb00;
}

body.is-search-results-mode > *:not(.cartelera-header):not(#searchResultsMount) {
  display: none !important;
}

.search-results-view {
  display: none;
  min-height: 52vh;
  background:
    radial-gradient(900px 500px at 10% -10%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, color-mix(in srgb, var(--bg-elev) 40%, transparent), transparent 60%),
    var(--bg-page);
  color: var(--text-main);
}

body.is-search-results-mode .search-results-view {
  display: block;
}

.search-results-shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

.search-results-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.search-results-title {
  margin: 0;
  font-family: 'Cabin', sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: 0.02em;
}

.search-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.search-share-panel {
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 220px;
  display: none;
}

.search-share-panel.is-open {
  display: block;
}

.search-share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.search-share-link,
.search-share-copy {
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: 'Cabin', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-main);
  background: color-mix(in srgb, var(--bg-input) 70%, transparent);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.search-share-link svg {
  width: 18px;
  height: 18px;
}

#shareWhatsapp {
  color: #25d366;
}

#shareFacebook {
  color: #1877f2;
}

#shareX {
  color: #f5f5f5;
}

#shareTelegram {
  color: #27a5e7;
}

.search-share-link:hover,
.search-share-copy:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.search-share-copy {
  background: var(--accent);
  color: #101010;
}

.search-share-panel.is-disabled .search-share-link {
  opacity: 0.5;
  pointer-events: none;
}

.search-share-panel.is-disabled .search-share-copy {
  opacity: 0.6;
}

.search-results-btn.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.search-results-btn {
  border: 1px solid var(--border-strong);
  background: var(--accent);
  color: #101010;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-family: 'Cabin', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.search-results-btn.is-hidden {
  display: none;
}

.search-copy-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  pointer-events: none;
  user-select: none;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border-soft) 70%, transparent);
  background: color-mix(in srgb, var(--bg-elev) 88%, #000 12%);
  color: var(--text-main);
  font-family: 'Cabin', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.search-copy-toast.is-visible {
  opacity: 0.92;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .search-share-panel {
    width: 100%;
    min-width: 0;
  }
}

.search-results-summary {
  margin: 0.85rem 0 1rem;
  color: var(--text-soft);
  font-family: 'Roboto', sans-serif;
}

.search-results-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
}

.search-result-card {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--bg-elev);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.search-result-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-input);
}

.search-result-content {
  padding: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.search-result-title {
  margin: 0;
  font-family: 'Cabin', sans-serif;
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.25;
}

.search-result-meta {
  margin: 0;
  color: var(--text-soft);
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
}

.search-result-detail {
  max-height: 300px;
  overflow-y: auto;
  border-top: 1px solid var(--border-soft);
  padding-top: 0.55rem;
}

.search-result-detail p {
  margin: 0.35rem 0;
  color: var(--text-soft);
  font-family: 'Roboto', sans-serif;
  font-size: 0.88rem;
  line-height: 1.4;
}

.search-result-tag {
  margin-top: 0.1rem;
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.72rem;
  font-family: 'Cabin', sans-serif;
  font-weight: 700;
  color: #101010;
}

.search-results-empty {
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  padding: 1.3rem;
  text-align: center;
  color: var(--text-soft);
  font-family: 'Roboto', sans-serif;
}

.cartelera-main {
  min-height: 52vh;
  background: #0d0d0d;
}

.cartelera-main-blank {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 48vh;
  padding: 2rem 1.2rem;
}

/* ===== HERO SLIDE VACÍO ===== */
.hero-slide-blank {
  width: 100%;
  height: 100%;
  background: #111;
}

/* ===== SECCIÓN EVENTOS DESTACADOS ===== */
.destacados-section {
  background: #0d0d0d;
  padding: 2.5rem 0 3rem;
  width: 100%;
}

.destacados-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.destacados-titulo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #ffffff;
  font-family: 'Cabin', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.destacados-titulo-icono {
  display: inline-flex;
  color: #f5c518;
  flex-shrink: 0;
}

/* Wrapper con botones a los lados */
.destacados-carousel-wrapper {
  position: relative;
  width: min(1120px, calc(100vw - 5rem));
  margin: 0 auto;
}

.destacados-carousel {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  aspect-ratio: 16 / 9;
}

.destacados-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.destacados-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.destacados-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent;
  cursor: default;
}

.destacados-slide img.is-actionable {
  cursor: pointer;
}

.dest-blank {
  background: #2a2a2a;
  border-radius: 10px;
}

/* Botones prev/next circulares */
.dest-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.dest-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.55);
}

.dest-btn-prev {
  left: 12px;
}

.dest-btn-next {
  right: 12px;
}

/* Dots bajo el carrusel */
.destacados-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* ===== CARTELEA BOARD ===== */
.cartelera-board-section {
  background:
    radial-gradient(1200px 420px at 50% -180px, rgba(115, 115, 115, 0.22), rgba(13, 13, 13, 0) 60%),
    linear-gradient(180deg, #121212 0%, #0b0b0b 100%);
  padding: 0.5rem 0 3rem;
}

.cartelera-board-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cartelera-board-title {
  color: #ffffff;
  text-align: center;
  font-family: 'Cabin', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
}

.cartelera-board-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.board-tab {
  border: 2px solid #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0.35rem 0.9rem;
  font-family: 'Cabin', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.board-tab.is-active {
  background: #ddec62;
  border-color: #ddec62;
  color: #181818;
}

.discipline-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 1.2rem;
}

.discipline-filter {
  border: none;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-family: 'Cabin', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: var(--discipline-color, #ffffff);
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.discipline-filter.is-active {
  outline: 2px solid #ffffff;
  outline-offset: 1px;
}

.week-carousel-wrapper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
}

.week-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--nav-btn-bg, #0a0a0a);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.week-nav-btn:hover {
  background: var(--nav-btn-bg-hover, #1d1d1d);
}

.week-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb, #8ddb00) var(--scrollbar-track, #1d1d1d);
}

.week-scroller::-webkit-scrollbar {
  height: 10px;
}

.week-scroller::-webkit-scrollbar-track {
  background: var(--scrollbar-track, #1d1d1d);
}

.week-scroller::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb, #8ddb00);
  border-radius: 999px;
}

.week-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 0.7rem;
  min-width: max-content;
  padding-bottom: 0.45rem;
}

.week-day-column {
  background: #1a1a1a;
  border-radius: 12px;
  min-height: 370px;
  max-height: 600px;
  overflow: hidden;
  border: 2px solid #b8d800;
  min-width: 0;
  width: 280px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
}

.week-day-header {
  background: #111111;
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cabin', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.week-day-date {
  color: #d7d7d7;
  letter-spacing: 0.03em;
  font-size: 0.86rem;
}

.week-day-events {
  padding: 0.65rem 0.55rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
  max-height: 520px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.week-event-item {
  background: #242424;
  border:  1px solid #333333;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 64px;
}

.week-event-item:not(.is-open) {
  height: 64px;
}

.week-event-item.is-open {
  height: auto;
  min-height: 320px;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  border-color: #8ddb00;
  box-shadow: 0 0 0 1px rgba(141, 219, 0, 0.25);
}

.week-event-summary {
  width: 100%;
  border: none;
  background: transparent;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.55rem;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.week-event-item:not(.is-open) .week-event-summary {
  padding: 0.36rem 0.5rem;
  height: 64px;
}

.week-event-item.is-open .week-event-summary {
  height: auto;
  flex-shrink: 0;
}

.week-event-main {
  min-width: 0;
  max-width: 100%;
}

.week-event-title {
  font-family: 'Cabin', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: #eeeeee;
  line-height: 1.15;
  margin: 0 0 0.12rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.week-event-meta {
  font-family: 'Roboto', sans-serif;
  font-size: 0.72rem;
  color: #999999;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.week-event-item:not(.is-open) .week-event-title {
  font-size: 0.78rem;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.week-event-item:not(.is-open) .week-event-meta {
  font-size: 0.69rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.week-event-item:not(.is-open) .week-event-dot {
  width: 7px;
  height: 7px;
}

.week-event-item:not(.is-open) .week-event-chevron {
  font-size: 0.64rem;
}

.week-event-chevron {
  color: #aaa;
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.week-event-detail {
  display: none;
  border-top:  1px solid #333333;
  background: #1c1c1c;
  padding: 0.45rem 0.55rem 0.55rem;
  max-height: 260px;
  overflow-y: auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.week-event-detail p {
  margin: 0.25rem 0;
  font-size: 0.74rem;
  line-height: 1.3;
  color: #bbbbbb;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.week-event-detail strong {
  color: #e8e8e8;
}

.week-event-item.is-open .week-event-detail {
  display: block;
  min-height: 220px;
  max-height: none;
  flex: 1;
}

.week-event-item.is-open .week-event-chevron {
  transform: rotate(180deg);
}

.week-empty {
  padding: 1rem 0.7rem;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: 0.78rem;
  color: #666666;
}

.week-day-column--nodate {
  border-color: #555 !important;
  opacity: 0.85;
}

.week-event-dot {
  position: static;
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.week-event-detail-img,
.month-event-detail-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.45rem;
}

.event-discipline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
}

.event-discipline-badge {
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-family: 'Cabin', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

/* ===== CALENDARIO MENSUAL ===== */
.month-calendar {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.8rem 0 1.2rem;
}

.month-nav-btn {
  background: none;
  border: 2px solid #8ddb00;
  color: #8ddb00;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.month-nav-btn:hover {
  background: #8ddb0022;
}

.month-nav-label {
  font-family: 'Cabin', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 200px;
  text-align: center;
}

.month-grid-wrapper {
  width: 100%;
  position: relative;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.month-day-header-cell {
  text-align: center;
  padding: 0.4rem 0;
  font-family: 'Cabin', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 0.05em;
}

.month-day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 5px;
  font-family: 'Cabin', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ccc;
  background: transparent;
  transition: background 0.15s, color 0.15s;
  position: relative;
  user-select: none;
}

.month-day-cell:hover {
  background: #8ddb0022;
  color: #8ddb00;
}

.month-day-cell.is-empty {
  cursor: default;
  pointer-events: none;
}

.month-day-cell.is-other-month {
  color: #444;
}

.month-day-cell.has-events::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8ddb00;
}

.month-day-cell.is-today {
  background: #334155;
  color: #f8fafc;
  font-weight: 800;
}

.month-day-cell.is-today:hover {
  background: #475569;
  color: #f8fafc;
}

.month-day-cell.is-selected {
  background: #8ddb00;
  color: #0d0d0d;
  font-weight: 800;
}

.month-day-cell.is-selected.is-today {
  outline: 2px solid #334155;
  outline-offset: -2px;
}

/* Panel de día: overlay encima del calendario */
.month-day-panel {
  position: absolute;
  top: 2.8rem;
  left: 50%;
  width: min(380px, calc(100% - 2rem));
  max-height: min(460px, calc(100% - 3rem));
  transform: translateX(-50%);
  background: #e8e8e4;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: panelFadeIn 0.2s ease;
  z-index: 10;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* Botón X: dentro del panel, esquina superior derecha */
.month-day-panel-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 11;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}

.month-day-panel-close:hover {
  background: #333;
}

.month-day-panel-header {
  background: #c8e060;
  padding: 0.8rem 3rem 0.72rem 0.95rem;
  flex-shrink: 0;
  position: relative;
}

.month-day-panel-num {
  font-family: 'Cabin', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 0.02em;
  display: block;
}

.month-day-events-list {
  flex: 1;
  max-height: 340px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.2rem 0;
}

.month-event-row {
  border-bottom: 1px solid #d0d0c8;
}

.month-event-row:last-child {
  border-bottom: none;
}

.month-event-summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  transition: background 0.12s;
}

.month-event-summary:hover {
  background: rgba(0,0,0,0.05);
}

.month-event-info {
  min-width: 0;
}

.month-event-name {
  font-family: 'Cabin', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.month-event-lugar {
  font-size: 0.78rem;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.month-event-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.month-event-chevron {
  color: #555;
  font-size: 0.75rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.month-event-row.is-open .month-event-chevron {
  transform: rotate(180deg);
}

.month-event-detail {
  display: none;
  padding: 0.55rem 1.2rem 1rem;
  border-top: 1px solid #d0d0c8;
  background: rgba(0,0,0,0.04);
  max-height: 260px;
  overflow-y: auto;
  position: relative;
}

.month-event-row.is-open .month-event-detail {
  display: block;
}

.month-event-detail-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: rgba(0,0,0,0.12);
  border: none;
  color: #444;
  font-size: 0.75rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.month-event-detail-close:hover {
  background: rgba(0,0,0,0.22);
}

/* Sección de eventos sin fecha en vista mensual */
.month-no-dates-section {
  margin-top: 1.5rem;
  background: #1e1e1e;
  border-radius: 12px;
  border: 1px solid #333;
  overflow: hidden;
}

.month-no-dates-title {
  font-family: 'Cabin', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.65rem 1rem;
  background: #151515;
  margin: 0;
}

.month-no-dates-list {
  max-height: 340px;
  overflow-y: auto;
}

.search-results-list {
  max-height: 72vh;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.month-no-dates-section .month-event-row {
  border-bottom: 1px solid #2a2a2a;
}

.month-no-dates-section .month-event-row:last-child {
  border-bottom: none;
}

.month-no-dates-section .month-event-name {
  color: #e8e8e8;
}

.month-no-dates-section .month-event-lugar {
  color: #999;
}

.month-no-dates-section .month-event-summary:hover {
  background: rgba(255,255,255,0.06);
}

.month-no-dates-section .month-event-detail {
  background: rgba(255,255,255,0.04);
  border-top-color: #2a2a2a;
}

.month-no-dates-section .month-event-detail p {
  color: #ccc;
}

.month-no-dates-section .month-event-detail strong {
  color: #e8e8e8;
}

.month-no-dates-section .month-event-chevron {
  color: #888;
}

.month-event-detail p {
  font-size: 0.82rem;
  color: #333;
  margin: 0.4rem 0;
  line-height: 1.5;
}

.month-event-detail strong {
  color: #111;
}

.month-empty-day {
  padding: 1.5rem;
  text-align: center;
  color: #777;
  font-size: 0.88rem;
}

@media screen and (max-width: 700px) {
  .destacados-inner {
    padding: 0 1rem;
  }

  .destacados-carousel-wrapper {
    width: calc(100vw - 2rem);
  }

  .dest-btn {
    width: 40px;
    height: 40px;
  }

  .dest-btn-prev {
    left: 8px;
  }

  .dest-btn-next {
    right: 8px;
  }

  .month-day-panel {
    top: 1.8rem;
    width: calc(100% - 1.25rem);
    max-height: calc(100% - 2.2rem);
  }

  .month-day-panel-close {
    top: -12px;
    right: -2px;
  }
}

@media screen and (max-width: 900px) {
  .cartelera-header-top {
    min-height: 68px;
    padding: 0.7rem 0.8rem;
  }

  .cartelera-logo-cultura {
    height: 46px;
  }

  .cartelera-header-nav {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1rem;
  }

  .cartelera-brand,
  .cartelera-menu,
  .cartelera-search-container {
    justify-self: center;
  }

  .cartelera-search-container {
    width: min(420px, 100%);
  }

  .week-carousel-wrapper {
    grid-template-columns: 1fr;
  }

  .week-nav-btn {
    display: none;
  }

  .week-track {
    grid-auto-columns: minmax(250px, 85vw);
  }
}

/* ===== FOOTER ===== */
.footer {
  background: #111111;
  color: #cccccc;
  width: 100%;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  margin-top: auto;
  padding: 3rem 0 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 2rem 3rem;
  width: 100%;
  box-sizing: border-box;
}

.footer-column:first-child {
  padding-left: 0;
}

.footer-column:last-child {
  padding-right: 0;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 0.5rem;
}

.footer-logo {
  width: auto;
  height: 70px;
  object-fit: contain;
}

/* Información de contacto */
.footer-info-text {
  font-family: var(--font-text);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a3a40;
  margin-bottom: 0.5rem;
}

/* ===== REDES SOCIALES ===== */
.footer-social-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
}

.footer-social-icons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: white;
  font-size: 1.3rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.footer-social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.footer-social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Colores específicos para hover */
.footer-social-link.facebook:hover { background: #1877f2; }
.footer-social-link.twitter:hover { background: #1da1f2; }
.footer-social-link.youtube:hover { background: #ff0000; }
.footer-social-link.instagram:hover { background: #e4405f; }
.footer-social-link.flickr:hover { background: #0063dc; }

/* ===== TEXTO DESCRIPTIVO DEL FESTIVAL EN COLUMNA 2 ===== */
.footer-description {
  font-family: var(--font-text);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4a3a40;
}

.footer-description-text {
  margin-bottom: 1rem;
  text-align: justify;
}

.footer-description-text:last-child {
  margin-bottom: 0;
}

/* ===== SITIOS RELACIONADOS ===== */
.footer-info-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0;
  list-style: none;
  padding: 0;
}

.footer-link-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link-bullet {
  color: var(--accent-color);
  font-size: 1.2rem;
  line-height: 1;
  display: inline-block;
}

.footer-link {
  font-family: var(--font-text);
  font-size: 0.95rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.1rem 0;
  border-bottom: 1px solid transparent;
  display: inline-block;
}

.footer-link:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  transform: translateX(3px);
}

/* ===== PLECA INFERIOR ===== */
.footer-pleca {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 0;
  line-height: 0;
  position: relative;
  left: 0;
  right: 0;
}

.footer-pleca-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===== RESPONSIVE DEL FOOTER ===== */
@media screen and (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem 2rem;
  }
  
  .footer-column {
    text-align: center;
    align-items: center;
  }
  
  .footer-logo {
    height: 50px;
  }
  
  .footer-info-title {
    text-align: center;
    border-left: none;
    border-bottom: 2px solid var(--accent-color);
    padding-left: 0;
    padding-bottom: 0.5rem;
  }
  
  .footer-link-item {
    justify-content: center;
  }
  
  .footer-social-icons {
    justify-content: center;
  }
  
  .footer-description {
    text-align: center;
  }
  
  .footer-description-text {
    text-align: center;
  }
}
/* ===== TEMA AUTOMATICO CLARO/OSCURO ===== */
:root {
  color-scheme: light dark;
  --bg-page: #f1f3f6;
  --bg-header: #f1f3f6;
  --bg-nav: #f1f3f6;
  --bg-section: #eef1f6;
  --bg-elev: #ffffff;
  --bg-input: #ffffff;
  --bg-board: radial-gradient(1200px 420px at 50% -180px, rgba(120, 130, 160, 0.16), rgba(241, 243, 246, 0) 60%), linear-gradient(180deg, #eef1f6 0%, #e7ebf1 100%);
  --bg-week-col: #edf1f6;
  --bg-week-card: #ffffff;
  --bg-week-detail: #f4f6f9;
  --bg-month-panel: #f2f4f7;
  --bg-month-panel-header: #d7e773;
  --bg-footer: #f1f3f6;

  --text-main: #1c2230;
  --text-soft: #5f687a;
  --text-contrast: #f5f7fb;
  --text-input: #1c2230;
  --text-placeholder: #79839a;

  --border-soft: #cfd6e3;
  --border-strong: #b7c0d1;
  --accent: #8ddb00;
  --shadow-header: none;
  --scrollbar-track: #cfd6e3;
  --scrollbar-thumb: #8ddb00;
  --nav-btn-bg: #ffffff;
  --nav-btn-bg-hover: #edf1f6;
  --month-panel-bg: #f2f4f7;
  --month-panel-header-bg: #d7e773;
  --month-panel-title: #1b2430;
  --month-panel-text: #1f2937;
  --month-panel-muted: #5f687a;
  --month-panel-divider: #cfd6e3;
  --month-panel-hover: #e8edf5;
  --month-panel-detail-bg: #e9edf4;
  --month-panel-close-bg: #1f2937;
  --month-panel-close-border: #1f2937;
  --month-panel-close-text: #f5f7fb;
  --pleca-bg: #f5f5f5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #0d0f12;
    --bg-header: #0d0f12;
    --bg-nav: #0d0f12;
    --bg-section: #0e1117;
    --bg-elev: #1e232c;
    --bg-input: #232a35;
    --bg-board: radial-gradient(1200px 420px at 50% -180px, rgba(115, 115, 115, 0.22), rgba(13, 13, 13, 0) 60%), linear-gradient(180deg, #121722 0%, #0b0f16 100%);
    --bg-week-col: #1a202a;
    --bg-week-card: #242b36;
    --bg-week-detail: #1d242f;
    --bg-month-panel: #e8e8e4;
    --bg-month-panel-header: #c8e060;
    --bg-footer: #0d0f12;
    --pleca-bg: #0d0f12;

    --text-main: #e5e9f2;
    --text-soft: #9ca7ba;
    --text-contrast: #f5f7fb;
    --text-input: #e5e9f2;
    --text-placeholder: #7f8aa0;

    --border-soft: #333d4d;
    --border-strong: #46536a;
    --accent: #8ddb00;
    --shadow-header: none;
    --scrollbar-track: #1d242f;
    --scrollbar-thumb: #8ddb00;
    --nav-btn-bg: #0f141c;
    --nav-btn-bg-hover: #1a202a;
    --month-panel-bg: #1b2330;
    --month-panel-header-bg: #8ddb00;
    --month-panel-title: #0f141c;
    --month-panel-text: #e5e9f2;
    --month-panel-muted: #b2bccd;
    --month-panel-divider: #334055;
    --month-panel-hover: #243042;
    --month-panel-detail-bg: #202a39;
    --month-panel-close-bg: #8ddb00;
    --month-panel-close-border: #8ddb00;
    --month-panel-close-text: #0f141c;
  }
}

body,
.cartelera-main,
.destacados-section {
  background: var(--bg-page);
  color: var(--text-main);
}

.cartelera-header,
.cartelera-header-top {
  background: var(--bg-header);
  box-shadow: var(--shadow-header);
}

.cartelera-header-nav {
  background: var(--bg-nav);
  border-bottom: none;
}

.hero-carousel-section,
.hero-poster,
.carousel-track-poster,
.carousel-slide-poster {
  border-radius: 0 !important;
}

#inicio,
#destacados,
#cartelera {
  scroll-margin-top: 180px;
}

.hero-poster {
  box-shadow: none !important;
}

.cartelera-menu-item {
  color: var(--text-main);
}

.cartelera-menu-item.is-active {
  color: var(--accent);
  border-color: var(--accent);
}

.cartelera-search-icon {
  color: var(--text-soft);
}

.cartelera-search-input {
  background: var(--bg-input);
  color: var(--text-input);
  border: 2px solid var(--border-strong);
}

.cartelera-search-input::placeholder {
  color: var(--text-placeholder);
}

.cartelera-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(141, 219, 0, 0.15);
}

.hero-slide-blank,
.destacados-carousel,
.dest-blank {
  background: var(--bg-page);
}

.dest-btn {
  border: 2px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg-elev) 85%, transparent);
  color: var(--text-main);
}

.dest-btn:hover {
  background: color-mix(in srgb, var(--bg-elev) 100%, transparent);
}

.destacados-titulo,
.cartelera-board-title,
.month-nav-label {
  color: var(--text-main);
}

.cartelera-board-section {
  background: var(--bg-page);
}

.board-tab {
  border: 2px solid var(--border-strong);
  color: var(--text-main);
  background: color-mix(in srgb, var(--bg-elev) 75%, transparent);
}

.board-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}

.week-day-column {
  background: var(--bg-week-col);
  border-color: var(--accent);
}

.week-day-header {
  background: var(--bg-header);
  color: var(--text-contrast);
}

.week-day-name {
  color: var(--text-soft);
}

.week-day-number {
  color: var(--text-soft);
}

.week-event-item {
  background: var(--bg-week-card);
  border: 1px solid var(--border-soft);
}

.week-event-title {
  color: var(--text-main);
}

.week-event-meta,
.week-empty,
.week-event-detail p,
.month-day-header-cell,
.month-day-cell,
.month-event-lugar,
.month-event-chevron,
.month-empty-day {
  color: var(--text-soft);
}

.week-event-detail {
  background: var(--bg-week-detail);
  border-top: 1px solid var(--border-soft);
}

.week-event-detail strong,
.month-event-name,
.month-event-detail strong {
  color: var(--text-main);
}

.month-day-panel {
  background: var(--month-panel-bg);
}

.month-day-panel-header {
  background: var(--month-panel-header-bg);
}

.month-day-panel-num {
  color: var(--month-panel-title);
}

.month-event-row {
  border-bottom: 1px solid var(--month-panel-divider);
}

.month-event-summary:hover {
  background: var(--month-panel-hover);
}

.month-event-detail {
  border-top: 1px solid var(--month-panel-divider);
  background: var(--month-panel-detail-bg);
}

.month-event-detail p {
  color: var(--month-panel-text);
}

.month-event-name,
.month-event-detail strong {
  color: var(--month-panel-text);
}

.month-event-lugar,
.month-event-chevron,
.month-empty-day {
  color: var(--month-panel-muted);
}

.month-day-panel-close {
  background: var(--month-panel-close-bg);
  border-color: var(--month-panel-close-border);
  color: var(--month-panel-close-text);
}

.footer {
  background: var(--bg-footer);
  color: var(--text-main);
}

.footer-info-text {
  color: var(--text-soft);
}

/* Ajustes finales de consistencia en footer para ambos modos */
.footer-description,
.footer-description-text,
.footer-link,
.footer-info-text {
  color: var(--text-soft);
}

.footer-info-title,
.footer-social-title {
  color: var(--text-main);
}

.footer-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
