:root {
  --bg: #fff8ef;
  --paper: #ffffff;
  --ink: #221715;
  --muted: #6f625c;
  --red: #c9252d;
  --blue: #006fa6;
  --gold: #f2b441;
  --rose: #f05a77;
  --line: rgba(34, 23, 21, .13);
  --shadow: 0 18px 50px rgba(65, 31, 22, .12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% -10%, rgba(242,180,65,.28), transparent 36rem),
    radial-gradient(circle at 90% 4%, rgba(201,37,45,.20), transparent 36rem),
    var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a { color: inherit; }
.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -80px; background: #fff; padding: 10px 12px;
  border-radius: 999px; z-index: 20; box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 248, 239, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
}
.top-actions { display: flex; gap: 8px; align-items: center; }
.pill-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 8px 13px; border-radius: 999px;
  text-decoration: none; font-weight: 750; font-size: .92rem;
  border: 1px solid var(--line); background: rgba(255,255,255,.64);
}
.pill-link.primary { background: var(--red); color: #fff; border-color: var(--red); }

.hero { padding: 54px 0 34px; }
.hero-card {
  overflow: hidden;
  background: linear-gradient(135deg, #8c171f 0%, #c9252d 48%, #f2b441 148%);
  color: #fff;
  border-radius: 34px;
  box-shadow: var(--shadow);
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute; inset: -40% -20% auto auto; width: 440px; height: 440px; border-radius: 50%;
  background: rgba(255,255,255,.13);
}
.hero-inner { position: relative; padding: clamp(28px, 6vw, 64px); }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .18em; font-weight: 850; opacity: .88; font-size: .78rem; }
h1 { margin: 0; max-width: 850px; font-size: clamp(2.6rem, 9vw, 6.8rem); line-height: .9; letter-spacing: -.06em; }
.hero-subtitle { margin: 20px 0 0; font-size: clamp(1.05rem, 2.6vw, 1.45rem); font-weight: 700; max-width: 680px; }
.hero-meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.meta-chip { display: inline-flex; padding: 9px 13px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.2); font-weight: 750; }
.hero-buttons { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 18px; border-radius: 999px; background: #fff; color: var(--red); text-decoration: none;
  font-weight: 850; border: 0; cursor: pointer; font: inherit;
}
.button.secondary { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.34); }
.button.dark { background: var(--ink); color: #fff; }
.button.small { min-height: 38px; padding: 8px 13px; font-size: .92rem; }

.notice {
  margin-top: 18px; padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24);
  max-width: 780px;
}
.notice p { margin: 0; }

.section { padding: 36px 0; }
.section-header { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: end; gap: 14px; }
h2 { margin: 0; font-size: clamp(1.8rem, 5vw, 3.25rem); line-height: .96; letter-spacing: -.045em; }
.lead { color: var(--muted); font-size: 1.05rem; margin: 10px 0 0; max-width: 740px; }

.quick-nav {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 0;
}
.quick-nav a {
  text-decoration: none; padding: 14px 12px; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(65,31,22,.07);
  border: 1px solid var(--line); font-weight: 850; display: flex; flex-direction: column; gap: 2px;
}
.quick-nav span { color: var(--muted); font-size: .84rem; font-weight: 700; }


.day {
  margin: 28px 0 34px; border-radius: var(--radius-lg); background: rgba(255,255,255,.78); box-shadow: var(--shadow); overflow: clip;
  border: 1px solid rgba(255,255,255,.74);
}
.day-header {
  display: grid; grid-template-columns: minmax(156px, 180px) 1fr; gap: 0; align-items: stretch; background: #fff;
}
.date-box { background: var(--ink); color: #fff; display: grid; place-items: center; padding: 18px 16px; min-width: 0; }
.date-box strong { display: block; white-space: nowrap; font-size: clamp(2.35rem, 5.4vw, 3.45rem); line-height: .88; letter-spacing: -.055em; }
.date-box span { text-transform: uppercase; letter-spacing: .12em; font-weight: 850; font-size: .75rem; opacity: .82; }
.day-title { padding: 20px; border-left: 1px solid var(--line); }
.day-title p { margin: 0 0 3px; text-transform: uppercase; letter-spacing: .17em; font-weight: 850; color: var(--muted); font-size: .78rem; }
.day-title h3 { margin: 0; font-size: clamp(1.55rem, 4.4vw, 2.6rem); line-height: 1.02; letter-spacing: -.04em; }
.day-title .basque { display: block; color: var(--muted); margin-top: 8px; font-weight: 750; }
.day-body { padding: 18px; }
.event-list { display: grid; gap: 12px; }
.event {
  display: grid; grid-template-columns: 82px 1fr; gap: 14px; padding: 15px; border-radius: 18px; background: #fff; border: 1px solid var(--line);
}
.event-time { color: var(--red); font-size: 1.05rem; line-height: 1.1; font-weight: 950; font-variant-numeric: tabular-nums; }
.event h4 { margin: 0; font-size: 1.03rem; line-height: 1.25; }
.event p { margin: 5px 0 0; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { display: inline-flex; border-radius: 999px; padding: 4px 8px; background: rgba(0,111,166,.08); color: var(--blue); font-size: .78rem; font-weight: 850; }
.day-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.share-link { background: var(--red); color: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 12px; border-radius: 999px; font-weight: 850; }
.copy-link { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; min-height: 40px; font: inherit; font-weight: 850; cursor: pointer; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; box-shadow: 0 10px 30px rgba(65,31,22,.07); }
.info-card h3 { margin: 0 0 10px; font-size: 1.24rem; }
.info-card ul { margin: 10px 0 0; padding-left: 20px; }
.info-card li + li { margin-top: 6px; }

.footer { padding: 44px 0 54px; color: var(--muted); }
.footer-card { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center; font-weight: 750; }
.footer p { margin: 0; }

.back-to-top { position: fixed; right: 16px; bottom: 16px; z-index: 9; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.hidden { display: none !important; }

body.category-filter-active .day-actions,
.day-actions[hidden] { display: none !important; }



.category-panel {
  width: min(700px, 100%);
  margin: 12px auto 18px;
  overflow: hidden;
}
.filter-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.category-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-filters::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto;
  white-space: nowrap;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.76);
  color: var(--ink);
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 999px;
  font: inherit;
  font-size: .9rem;
  font-weight: 850;
  cursor: pointer;
}
.filter-chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.tag-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}
.tag-button:hover,
.tag-button:focus-visible,
.tag-button.is-active {
  background: rgba(201,37,45,.12);
  color: var(--red);
  outline: none;
}

@media (max-width: 760px) {
  .top-actions .hide-mobile { display: none; }
  .quick-nav { grid-template-columns: repeat(2, 1fr); }
  .day-header { grid-template-columns: 1fr; }
  .date-box { min-height: 118px; }
  .date-box strong { font-size: clamp(3rem, 16vw, 4.8rem); }
  .day-title { border-left: 0; border-top: 1px solid var(--line); }
  .event { grid-template-columns: 66px 1fr; padding: 13px; }
  .info-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 26px; }
}

@media (max-width: 760px) {
  .category-panel {
    width: min(100%, 640px);
  }
  .category-filters {
    margin-left: -2px;
    padding-right: 16px;
  }
  .filter-chip {
    min-height: 38px;
    padding: 8px 12px;
  }
}

@media print {
  .site-header, .day-actions, .back-to-top, .hero-buttons { display: none !important; }
  body { background: #fff; }
  .hero-card, .day, .info-card { box-shadow: none; break-inside: avoid; }
  .section { padding: 16px 0; }
}


/* Ajuste 20260507: categorías simplificadas y fila horizontal deslizable */
.category-filters {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
}
.category-filters .filter-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
}


/* Ajuste 20260507: filtros más grandes en escritorio */
@media (min-width: 761px) {
  .category-panel {
    width: 100%;
    max-width: var(--max);
    margin: 16px auto 28px;
  }

  .category-filters {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .category-filters .filter-chip {
    width: 100%;
    flex: 1 1 auto;
    min-height: 52px;
    justify-content: center;
    padding: 12px 14px;
    font-size: 1rem;
    box-shadow: 0 8px 22px rgba(65,31,22,.06);
  }
}



/* Lumbier v3: página sin marca superior + avisos */
.hero { padding-top: 28px; }
.hero-intro[hidden] { display: none !important; }
.alerts-strip { padding: 2px 0 12px; }
.alerts-card {
  border-radius: 28px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(201,37,45,.22);
  box-shadow: 0 14px 34px rgba(65,31,22,.08);
  padding: 18px;
}
.alerts-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom: 12px; }
.alerts-head h2 { margin:0; font-size: clamp(1.05rem, 2.1vw, 1.42rem); line-height:1.05; letter-spacing: -.035em; }
.alerts-list { display:grid; gap:10px; }
.alert-item {
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fffaf3);
  border: 1px solid var(--line);
  color: var(--ink);
}
.alert-label { flex: 0 0 auto; color: var(--red); font-weight: 950; }
@media (max-width: 560px) {
  .hero { padding-top: 18px; }
  .alerts-card { border-radius: 24px; padding: 14px; }
  .alert-item { display:block; }
  .alert-label { display:block; margin-bottom: 2px; }
}

/* Carrusel de comercio y anunciantes */
.sponsors-strip {
  padding: 2px 0 12px;
}
.sponsors-card {
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(65,31,22,.08);
  padding: 18px;
  overflow: hidden;
}
.sponsors-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.sponsors-head h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2.1vw, 1.42rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.sponsor-controls {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.sponsor-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(65,31,22,.08);
}
.sponsors-window {
  overflow: hidden;
}
.sponsors-track {
  display: flex;
  gap: 0;
  transition: transform .5s ease;
  will-change: transform;
}
.sponsor-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.sponsor-page-featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sponsor-card {
  min-height: 112px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fffaf3);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sponsor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(65,31,22,.10);
  border-color: rgba(201,37,45,.24);
}
.sponsor-card strong {
  display: block;
  font-size: clamp(.98rem, 1.45vw, 1.16rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.sponsor-card-featured {
  min-height: 138px;
  background: linear-gradient(180deg, #fff, #fff3f4);
}
.sponsor-card-featured strong {
  font-size: clamp(1.12rem, 2.25vw, 1.55rem);
  line-height: 1.02;
}
.sponsor-page:not(.sponsor-page-featured) .sponsor-card:nth-child(3n+1) { background: linear-gradient(180deg, #fff, #fff3f4); }
.sponsor-page:not(.sponsor-page-featured) .sponsor-card:nth-child(3n+2) { background: linear-gradient(180deg, #fff, #f4fbff); }
.sponsor-page:not(.sponsor-page-featured) .sponsor-card:nth-child(3n+3) { background: linear-gradient(180deg, #fff, #fff9e9); }
.sponsor-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.sponsor-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(34,23,21,.22);
  padding: 0;
  cursor: pointer;
}
.sponsor-dot.is-active {
  width: 22px;
  background: var(--red);
}
@media (max-width: 860px) {
  .sponsor-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sponsor-page-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .sponsors-card {
    border-radius: 24px;
    padding: 14px;
  }
  .sponsor-controls { display: none; }
  .sponsor-page {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sponsor-page-featured-mobile {
    grid-template-columns: 1fr;
  }
  .sponsor-card {
    min-height: 96px;
    border-radius: 18px;
    padding: 12px;
  }
  .sponsor-card strong { font-size: 1rem; }
  .sponsor-card-featured { min-height: 112px; }
  .sponsor-page-featured-mobile .sponsor-card-featured {
    min-height: 118px;
  }
  .sponsor-card-featured strong { font-size: 1.08rem; }
}
@media (max-width: 760px) {
  .top-actions .pill-link.primary {
    display: block;
  }
}

/* Lumbier v2: contenido separado + acordeón por días */
.brand-link { color: var(--ink); text-decoration: none; font-weight: 950; letter-spacing: -.02em; }
.hero-intro { max-width: 680px; margin: 12px auto 0; color: rgba(255,255,255,.9); font-weight: 650; }
.days-accordion { display: grid; gap: 14px; }
.day { scroll-margin-top: 88px; }
.day-header { display: block; grid-template-columns: none; width: 100%; text-align: left; border: 0; background: transparent; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.day-header:focus-visible { outline: 4px solid rgba(201,37,45,.35); outline-offset: 3px; border-radius: var(--radius-md); }
.day-header-inner { display: grid; grid-template-columns: 138px 1fr 48px; align-items: stretch; width: 100%; }
.day-toggle { display: grid; place-items: center; border-left: 1px solid var(--line); color: var(--ink); font-size: 1.5rem; font-weight: 950; }
.day-toggle-icon { display: inline-block; transform: rotate(0deg); transition: transform .18s ease; }
.day.is-open .day-toggle-icon { transform: rotate(180deg); }
.day-body { display: none; border-top: 1px solid var(--line); }
.day.is-open .day-body { display: block; }
.event { align-items: start; }
.event-place, .event-note { margin-top: 5px; font-size: .92rem; color: var(--muted); }
.event-note { font-style: italic; }
.event-highlight { box-shadow: inset 4px 0 0 var(--red); }
.tag-row, .category-panel, .filter-chip, .category-filters, .filter-label { display: none !important; }
.quick-nav button {
  appearance: none; border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 14px; text-align: left;
  box-shadow: 0 10px 30px rgba(65,31,22,.05); cursor: pointer; font: inherit; color: var(--ink);
}
.quick-nav button:hover, .quick-nav button:focus-visible { border-color: rgba(201,37,45,.45); outline: none; }
.quick-nav button strong { display: block; font-size: 1.05rem; }
.quick-nav button span { color: var(--muted); font-size: .84rem; font-weight: 700; }
.quick-nav button .quick-weekday { color:#c9252d; font-weight:bold; }

@media (max-width: 720px) {
  .day-header-inner { grid-template-columns: 112px 1fr 42px; }
  .day-toggle { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .day-header-inner { grid-template-columns: 1fr; }
  .day-toggle { min-height: 42px; }
}
@media print {
  .day-body { display: block !important; }
  .day-toggle { display: none; }
}


/* Lumbier v4: simplificación móvil + acordeón limpio */
.alerts-head h2::before { content: ""; }
.alerts-head h2 { color: var(--ink); }
#alerts-title { font-size: clamp(1.25rem, 3.6vw, 2rem); }
.alert-item { font-size: clamp(.98rem, 2.7vw, 1.08rem); line-height: 1.45; }
.alert-label { color: var(--red); }

.day-header-inner { grid-template-columns: 170px 1fr 48px; }
.date-box {
  min-width: 170px;
  padding: 18px 22px;
  overflow: visible;
}
.date-box span {
  color: var(--red);
  opacity: 1;
  letter-spacing: .13em;
}
.date-box strong {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  letter-spacing: -.045em;
}

@media (max-width: 720px) {
  .day-header-inner { grid-template-columns: 142px 1fr 42px; }
  .date-box { min-width: 142px; padding: 16px 18px; }
  .date-box strong { font-size: clamp(2.1rem, 8.8vw, 2.9rem); }
  .day-title { padding: 16px; }
}

@media (max-width: 520px) {
  .day-header-inner { grid-template-columns: 132px 1fr 40px; }
  .date-box { min-width: 132px; padding: 15px 16px; }
  .date-box strong { font-size: clamp(2rem, 10vw, 2.55rem); }
  .date-box span { font-size: .68rem; }
  .day-title { padding: 14px 12px; }
  .day-title p { font-size: .66rem; letter-spacing: .12em; }
  .day-title h3 { font-size: clamp(1.18rem, 6vw, 1.55rem); }
  .day-toggle { min-height: auto; border-left: 1px solid var(--line); border-top: 0; }
}


/* Lumbier v5: avisos en carrusel + acordeón más compacto */
.alerts-head h2,
#alerts-title {
  color: var(--red);
}
.alert-controls {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.alert-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(65,31,22,.08);
}
.alerts-window {
  overflow: hidden;
}
.alerts-track {
  display: flex;
  transition: transform .45s ease;
  will-change: transform;
}
.alert-card {
  flex: 0 0 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fffaf3);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(.98rem, 2.6vw, 1.08rem);
  line-height: 1.42;
}
.alert-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(34,23,21,.22);
  padding: 0;
  cursor: pointer;
}
.alert-dot.is-active {
  width: 22px;
  background: var(--red);
}
.alert-label,
.alert-item {
  display: none !important;
}
.days-accordion {
  gap: 12px;
}
.day {
  margin: 0;
}
.day-header-inner {
  grid-template-columns: 184px 1fr 48px;
}
.date-box {
  min-width: 184px;
  padding: 16px 22px;
  text-align: center;
  justify-items: center;
  overflow: hidden;
}
.date-box strong {
  width: 100%;
  text-align: center;
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  letter-spacing: -.055em;
}
@media (max-width: 720px) {
  .days-accordion { gap: 10px; }
  .day-header-inner { grid-template-columns: 164px 1fr 42px; }
  .date-box { min-width: 164px; padding: 15px 16px; }
  .date-box strong { font-size: clamp(2.05rem, 7.8vw, 2.62rem); }
}
@media (max-width: 560px) {
  .alert-controls { display: none; }
  .alert-card { min-height: 76px; padding: 14px; border-radius: 18px; }
}
@media (max-width: 520px) {
  .day-header-inner { grid-template-columns: 154px 1fr 40px; }
  .date-box { min-width: 154px; padding: 14px 13px; }
  .date-box strong { font-size: clamp(1.95rem, 8.8vw, 2.42rem); }
}
@media (max-width: 380px) {
  .day-header-inner { grid-template-columns: 144px 1fr 38px; }
  .date-box { min-width: 144px; padding-inline: 10px; }
  .date-box strong { font-size: 2.05rem; }
}


/* Lumbier v6: avisos con dos mensajes, texto de programa simplificado y botón Ver */
.day-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
}
.view-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: .74rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.day-toggle-icon {
  font-size: 1.18rem;
  line-height: 1;
}
@media (max-width: 720px) {
  .day-header-inner { grid-template-columns: 164px 1fr 64px; }
  .day-toggle { padding: 0 7px; }
  .view-pill { min-width: 30px; min-height: 22px; padding: 3px 7px; font-size: .66rem; }
}
@media (max-width: 520px) {
  .day-header-inner { grid-template-columns: 154px 1fr 58px; }
  .day-toggle { display: flex !important; }
  .day-toggle-icon { font-size: 1rem; }
}
@media (max-width: 380px) {
  .day-header-inner { grid-template-columns: 144px 1fr 54px; }
  .view-pill { min-width: 28px; padding-inline: 6px; }
}


/* Lumbier v7: avisos más lentos y botón Abrir/Cerrar */
.view-pill { min-width: 48px; }
@media (max-width: 520px) { .view-pill { min-width: 43px; } }


/* Lumbier v9: botón Abrir/Cerrar limpio, sin línea separadora y con flecha dentro */
.day-header-inner {
  grid-template-columns: 184px 1fr 104px;
}
.day-toggle {
  border-left: 0 !important;
  border-top: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  gap: 6px;
  min-width: 78px;
  width: auto;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}
.view-pill {
  min-width: auto !important;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}
.day-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: none !important;
  color: inherit;
  font-size: .7rem;
  line-height: 1;
  margin-top: 1px;
}
.day.is-open .day-toggle-icon { transform: none !important; }
@media (max-width: 720px) {
  .day-header-inner { grid-template-columns: 164px 1fr 92px; }
  .day-toggle { min-width: 76px; height: 29px; padding: 0 10px; font-size: .68rem; }
}
@media (max-width: 520px) {
  .day-header-inner { grid-template-columns: 154px 1fr 86px; }
  .day-toggle { min-width: 72px; height: 28px; padding: 0 9px; font-size: .64rem; gap: 5px; }
  .day-toggle-icon { font-size: .62rem; }
}
@media (max-width: 380px) {
  .day-header-inner { grid-template-columns: 144px 1fr 82px; }
  .day-toggle { min-width: 68px; padding: 0 8px; font-size: .6rem; }
}


/* Lumbier v10: responsive definitivo del botón Abrir/Cerrar.
   El botón sale del grid y queda posicionado como una pastilla absoluta.
   Así desaparece la raya gris heredada y no se corta en escritorio, tablet ni móvil. */
.day-header-inner {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 184px minmax(0, 1fr) !important;
  padding-right: 126px !important;
  overflow: visible !important;
}
.day-title {
  min-width: 0 !important;
  padding-right: 18px !important;
}
.day-toggle {
  position: absolute !important;
  right: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 92px !important;
  min-width: 92px !important;
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: var(--red) !important;
  color: #fff !important;
  font-size: .70rem !important;
  font-weight: 950 !important;
  letter-spacing: .015em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  z-index: 3 !important;
}
.day-toggle::before,
.day-toggle::after,
.day-header-inner::before,
.day-header-inner::after {
  content: none !important;
  display: none !important;
}
.view-pill {
  display: inline !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  color: inherit !important;
  border: 0 !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  white-space: nowrap !important;
}
.day-toggle-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  color: inherit !important;
  font-size: .70rem !important;
  line-height: 1 !important;
}
.day.is-open .day-toggle-icon { transform: none !important; }

@media (max-width: 820px) {
  .day-header-inner {
    grid-template-columns: 164px minmax(0, 1fr) !important;
    padding-right: 112px !important;
  }
  .day-toggle {
    right: 14px !important;
    width: 86px !important;
    min-width: 86px !important;
    height: 30px !important;
    font-size: .66rem !important;
    padding: 0 10px !important;
  }
  .date-box { min-width: 164px !important; }
}

@media (max-width: 560px) {
  .day-header-inner {
    grid-template-columns: 150px minmax(0, 1fr) !important;
    padding-right: 96px !important;
  }
  .date-box {
    min-width: 150px !important;
    padding: 14px 12px !important;
  }
  .date-box strong {
    font-size: clamp(2.05rem, 9.2vw, 2.42rem) !important;
    letter-spacing: -.06em !important;
  }
  .date-box span { font-size: .67rem !important; }
  .day-title {
    padding: 14px 10px !important;
    padding-right: 8px !important;
  }
  .day-title h3 { font-size: clamp(1.1rem, 5.7vw, 1.5rem) !important; }
  .day-toggle {
    right: 10px !important;
    width: 78px !important;
    min-width: 78px !important;
    height: 28px !important;
    gap: 5px !important;
    padding: 0 8px !important;
    font-size: .60rem !important;
  }
  .day-toggle-icon { font-size: .60rem !important; }
}

@media (max-width: 390px) {
  .day-header-inner {
    grid-template-columns: 138px minmax(0, 1fr) !important;
    padding-right: 86px !important;
  }
  .date-box {
    min-width: 138px !important;
    padding: 13px 9px !important;
  }
  .date-box strong { font-size: 1.95rem !important; }
  .date-box span { font-size: .62rem !important; letter-spacing: .10em !important; }
  .day-title p { font-size: .58rem !important; letter-spacing: .10em !important; }
  .day-title h3 { font-size: 1.08rem !important; }
  .day-toggle {
    right: 8px !important;
    width: 72px !important;
    min-width: 72px !important;
    height: 27px !important;
    font-size: .56rem !important;
    padding: 0 6px !important;
  }
  .day-toggle-icon { font-size: .56rem !important; }
}

/* Lumbier v11: banner principal en rojo sólido, blanco y negro */
.hero-card {
  background: var(--red) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.22) !important;
}
.hero-card::before {
  display: none !important;
}
.hero-inner {
  padding: clamp(30px, 6vw, 64px) !important;
}
.hero .eyebrow,
.hero-subtitle {
  color: #fff !important;
  opacity: 1 !important;
}
.hero .button {
  background: #fff !important;
  color: var(--red) !important;
  border: 2px solid #fff !important;
}
.hero .button.secondary {
  background: var(--ink) !important;
  color: #fff !important;
  border-color: var(--ink) !important;
}
.hero .button:hover,
.hero .button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(34,23,21,.18);
  outline: none;
}
@media (max-width: 560px) {
  .hero-inner {
    padding: 26px 22px !important;
  }
  .hero-buttons {
    gap: 10px !important;
  }
  .hero .button {
    min-height: 44px !important;
    padding: 10px 15px !important;
  }
}

/* Lumbier v12: banner sin botones y abrir/cerrar dentro de la fecha */
.hero-buttons {
  display: none !important;
}
.day-header-inner {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 184px minmax(0, 1fr) !important;
  padding-right: 0 !important;
  align-items: stretch !important;
  overflow: hidden !important;
}
.date-box {
  min-width: 184px !important;
  padding: 13px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  text-align: center !important;
  overflow: hidden !important;
}
.date-box > .date-weekday {
  color: #fff !important;
  opacity: .92 !important;
  text-transform: uppercase !important;
  letter-spacing: .13em !important;
  font-weight: 900 !important;
  font-size: .74rem !important;
  line-height: 1 !important;
}
.date-box strong {
  width: 100% !important;
  color: #fff !important;
  text-align: center !important;
  font-size: clamp(2.18rem, 4.7vw, 3.18rem) !important;
  line-height: .88 !important;
  letter-spacing: -.055em !important;
  white-space: nowrap !important;
}
.date-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  margin-top: 2px !important;
  color: #fff !important;
  font-size: .74rem !important;
  font-weight: 900 !important;
  letter-spacing: .10em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}
.date-toggle .view-pill {
  display: inline !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
  text-transform: inherit !important;
  white-space: nowrap !important;
}
.date-toggle .day-toggle-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  color: inherit !important;
  font-size: .78em !important;
  line-height: 1 !important;
}
.day-toggle {
  display: none !important;
}
.day-title {
  min-width: 0 !important;
  padding-right: 20px !important;
}

@media (max-width: 820px) {
  .day-header-inner { grid-template-columns: 166px minmax(0, 1fr) !important; }
  .date-box { min-width: 166px !important; padding: 13px 13px !important; }
  .date-box strong { font-size: clamp(2.05rem, 7.4vw, 2.62rem) !important; }
}
@media (max-width: 560px) {
  .day-header-inner { grid-template-columns: 148px minmax(0, 1fr) !important; }
  .date-box { min-width: 148px !important; padding: 12px 9px !important; gap: 3px !important; }
  .date-box > .date-weekday { font-size: .66rem !important; letter-spacing: .11em !important; }
  .date-box strong { font-size: clamp(1.96rem, 8.7vw, 2.38rem) !important; }
  .date-toggle { font-size: .64rem !important; letter-spacing: .08em !important; }
  .day-title { padding: 14px 12px !important; padding-right: 10px !important; }
}
@media (max-width: 390px) {
  .day-header-inner { grid-template-columns: 134px minmax(0, 1fr) !important; }
  .date-box { min-width: 134px !important; padding: 11px 7px !important; }
  .date-box > .date-weekday { font-size: .58rem !important; letter-spacing: .09em !important; }
  .date-box strong { font-size: 1.82rem !important; letter-spacing: -.06em !important; }
  .date-toggle { font-size: .56rem !important; gap: 4px !important; }
  .day-title p { font-size: .58rem !important; letter-spacing: .10em !important; }
  .day-title h3 { font-size: 1.08rem !important; }
}


/* Lumbier v13: Abrir/Cerrar en rojo y más bajo dentro de la fecha */
.date-box {
  padding-top: 12px !important;
  padding-bottom: 10px !important;
  gap: 6px !important;
}
.date-toggle {
  margin-top: 10px !important;
  color: var(--red) !important;
}
.date-toggle .view-pill,
.date-toggle .day-toggle-icon {
  color: var(--red) !important;
}
@media (max-width: 820px) {
  .date-box { padding-top: 12px !important; padding-bottom: 9px !important; gap: 5px !important; }
  .date-toggle { margin-top: 9px !important; }
}
@media (max-width: 560px) {
  .date-box { padding-top: 11px !important; padding-bottom: 8px !important; gap: 4px !important; }
  .date-toggle { margin-top: 8px !important; }
}
@media (max-width: 390px) {
  .date-box { padding-top: 10px !important; padding-bottom: 8px !important; gap: 3px !important; }
  .date-toggle { margin-top: 7px !important; }
}


/* Lumbier v16: controles visibles en móvil y título corto de colaboradores */
.sponsors-title-mobile { display: none; }
.sponsors-title-desktop { display: inline; }

@media (max-width: 560px) {
  .alerts-head,
  .sponsors-head {
    align-items: center !important;
    gap: 10px !important;
  }

  .alerts-head h2,
  .sponsors-head h2 {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .sponsors-title-desktop { display: none !important; }
  .sponsors-title-mobile { display: inline !important; }

  .alert-controls,
  .sponsor-controls {
    display: flex !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
  }

  .alert-btn,
  .sponsor-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    font-size: 1.12rem !important;
    line-height: 1 !important;
    box-shadow: 0 6px 14px rgba(65,31,22,.08) !important;
  }
}

@media (max-width: 360px) {
  .alert-btn,
  .sponsor-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 1.04rem !important;
  }
  .alerts-head,
  .sponsors-head { gap: 8px !important; }
}


/* Lumbier v17: tarjeta de descarga PDF y favicon rojo */
.info-card-download {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pdf-download-card {
  min-height: 132px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(201,37,45,.20);
  transition: transform .18s ease, box-shadow .18s ease;
}
.pdf-download-card:hover,
.pdf-download-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(201,37,45,.26);
  outline: 2px solid rgba(201,37,45,.22);
  outline-offset: 3px;
}
.pdf-download-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-size: 1.6rem;
  line-height: 1;
}
.pdf-download-card strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.15;
}
.pdf-download-card small {
  display: block;
  margin-top: 6px;
  font-size: .86rem;
  color: rgba(255,255,255,.86);
  font-weight: 750;
}
@media (max-width: 560px) {
  .pdf-download-card { min-height: 112px; padding: 14px; }
  .pdf-download-icon { width: 46px; height: 46px; flex-basis: 46px; font-size: 1.4rem; }
}


/* Lumbier v4: fotos de nuestras fiestas */
.photos-strip {
  padding: 2px 0 12px;
}
.photos-card {
  border-radius: 28px;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(65,31,22,.08);
  padding: 18px;
  overflow: hidden;
}
.photos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.photos-head h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2.1vw, 1.42rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.photo-controls {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.photo-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(65,31,22,.08);
}
.photos-window {
  overflow: hidden;
}
.photos-track {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}
.photo-slide {
  flex: 0 0 100%;
}
.photo-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(180deg, #fff, #fffaf3);
  box-shadow: 0 10px 24px rgba(65,31,22,.08);
}
.photo-card img {
  display: block;
  width: 100%;
  height: clamp(260px, 50vw, 600px);
  object-fit: cover;
}
.photo-overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: flex;
  justify-content: flex-end;
}
.photo-overlay-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(34,23,21,.68);
  color: #fff;
  font-size: .92rem;
  font-weight: 800;
  backdrop-filter: blur(4px);
}
.photo-overlay-text::before {
  content: '↔';
  font-size: 1rem;
}
.photo-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.photo-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(34,23,21,.22);
  padding: 0;
  cursor: pointer;
}
.photo-dot.is-active {
  width: 22px;
  background: var(--red);
}
.photo-modal[hidden] {
  display: none !important;
}
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 22px;
}
.photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 12, 11, .76);
}
.photo-modal-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border-radius: 24px;
  background: #fffdf9;
  box-shadow: 0 28px 60px rgba(0,0,0,.28);
  z-index: 1;
}
.photo-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(34,23,21,.7);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.photo-modal-figure {
  margin: 0;
}
.photo-modal-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 168px);
  object-fit: contain;
  background: #111;
}
.photo-modal-caption {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px 18px;
}
.photo-modal-actions {
  display: flex;
  justify-content: center;
  align-items: center;
}
.photo-download-btn {
  text-decoration: none;
}
.photo-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(65,31,22,.08);
}
.photo-nav-btn-prev { justify-self: start; }
.photo-nav-btn-next { justify-self: end; }
body.photo-modal-open {
  overflow: hidden;
}
@media (max-width: 560px) {
  .photos-card {
    border-radius: 24px;
    padding: 14px;
  }
  .photos-head {
    align-items: flex-start;
  }
  .photo-card {
    border-radius: 18px;
  }
  .photo-card img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .photo-overlay {
    inset: auto 10px 10px 10px;
  }
  .photo-overlay-text {
    width: 100%;
    justify-content: center;
    font-size: .86rem;
  }
  .photo-modal {
    padding: 12px;
  }
  .photo-modal-dialog {
    width: 100%;
    border-radius: 18px;
  }
  .photo-modal-image {
    max-height: calc(100vh - 156px);
  }
  .photo-modal-caption {
    grid-template-columns: 44px 1fr 44px;
    gap: 10px;
    padding: 14px;
  }
  .photo-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.35rem;
  }
}


/* Lumbier v6: prueba de fotos verticales y modal más seguro en móvil */
.photo-modal-caption { min-height: 74px; }
@media (max-width: 560px) {
  .photo-modal-caption { min-height: 66px; }
  .photo-download-btn { padding-inline: 14px; font-size: .92rem; }
}
