/* =========================================================
   Fiestas Palmares 2027 · Hoja de estilos
   Identidad tomada del logo 2027: bloques rectos, negro tinta,
   y barras de color (fucsia, verde, naranja) + amarillo de afiches.
   Cada tipo de evento tiene un color fijo que se repite en todo el sitio.
   ========================================================= */

:root {
  --ink: #161616;
  --ink-2: #242424;
  --paper: #ffffff;
  --mist: #f2f2f2;
  --line: #dcdcdc;
  --muted: #545454;
  --muted-dark: #b9b9b9;

  --pink: #f93ca8;
  --green: #1ed97a;
  --orange: #f98a22;
  --sun: #ffd21f;
  --red: #f23a2e;
  --blue: #2f5bea;

  /* color por tipo de evento */
  --c-toros: var(--red);
  --c-tope: var(--sun);
  --c-fiesta: var(--pink);
  --c-deportes: var(--blue);
  --c-cultura: var(--orange);
  --c-familia: var(--green);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gut: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 64px;
  --r-sm: 6px;
  --r-md: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .site-header :focus-visible { outline-color: var(--sun); }
.agenda :focus-visible, .tope :focus-visible, .tint :focus-visible, .carnaval :focus-visible, .sponsors :focus-visible { outline-color: var(--blue); }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--sun); color: var(--ink); padding: .7rem 1rem; font-weight: 700; border-radius: var(--r-sm);
}
.skip:focus { top: 1rem; }

/* ---------- Display type ---------- */
.hero h1, .section-head h2, .cat-title, .split-body h2, .contacto h2, .quick-title, .sponsors-title {
  font-stretch: 125%;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.25rem;
  font-weight: 800; font-stretch: 112%; font-size: 1rem; line-height: 1.15;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--r-sm);
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.0625rem; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffe15e; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #3a3a3a; }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.dark .btn-line { border-color: #fff; color: #fff; }
.dark .btn-line:hover { background: #fff; color: var(--ink); }

.text-link { font-weight: 700; text-underline-offset: 3px; text-decoration-thickness: 2px; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); color: #fff;
  border-bottom: 1px solid #2c2c2c;
}
.header-inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-stretch: 112%; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 6px; }
.brand b { color: var(--sun); }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.main-nav a:not(.btn) {
  display: block; white-space: nowrap; padding: .5rem .65rem; text-decoration: none; font-weight: 600; font-size: .95rem;
  border-radius: var(--r-sm); position: relative; color: #e8e8e8;
}
.main-nav a:not(.btn):hover { color: #fff; background: #2a2a2a; }
.main-nav a.is-active { color: #fff; }
.main-nav a.is-active::after {
  content: ""; position: absolute; left: .65rem; right: .65rem; bottom: .2rem; height: 3px; background: var(--sun);
}
.nav-cta { white-space: nowrap; min-height: 42px; padding: .5rem 1rem; font-size: .95rem; }

.menu-btn {
  display: none; margin-left: auto; align-items: center; gap: .55rem;
  background: transparent; border: 2px solid #3a3a3a; border-radius: var(--r-sm);
  padding: .5rem .8rem; min-height: 44px; cursor: pointer; font-weight: 700;
}
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; transition: transform .2s, background .2s; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -6px; } .menu-lines::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
  .menu-btn { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: var(--ink); flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 1.25rem var(--gut) 2rem; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a:not(.btn) { font-size: 1.35rem; font-weight: 800; font-stretch: 115%; padding: .85rem 0; border-bottom: 1px solid #2c2c2c; border-radius: 0; }
  .main-nav a:not(.btn):hover { background: transparent; color: var(--sun); }
  .main-nav a.is-active::after { display: none; }
  .nav-cta { min-height: 56px; font-size: 1.0625rem; }
}

/* ---------- Portada ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
}
.hero-photo {
  position: absolute; inset: 0 0 0 38%;
  background: url("../img/hero-campo-ferial.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 45%);
          mask-image: linear-gradient(to right, transparent 0, #000 45%);
  opacity: .55;
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-logo img { width: 100%; height: auto; }
.hero-copy { max-width: 40rem; }

.hero-dates {
  display: flex; align-items: center; flex-wrap: wrap; gap: .1em .16em;
  font-weight: 900; font-stretch: 125%; letter-spacing: -0.04em; line-height: .85;
  font-size: clamp(4rem, 11vw, 8.5rem);
  margin-bottom: 1.25rem;
}
.hero-dates em { font-style: normal; font-size: clamp(1rem, 1.8vw, 1.35rem); font-weight: 700; font-stretch: 110%; letter-spacing: 0; line-height: 1.2; width: 100%; color: var(--muted-dark); margin-top: .5rem; }
.hero-dash { display: inline-block; width: .55em; height: .16em; background: var(--green); margin-inline: .05em; }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.02; margin-bottom: 1rem; text-wrap: balance; }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #dedede; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.countdown { margin-top: 1.5rem; font-weight: 700; color: var(--sun); min-height: 1.5em; }

.hero-bars { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 3fr 1fr 2fr 1.2fr 4fr; height: 12px; }
.hero-bars i { display: block; transform-origin: left; animation: bar-in .9s cubic-bezier(.2,.8,.2,1) both; }
.hero-bars i:nth-child(1) { background: var(--pink); }
.hero-bars i:nth-child(2) { background: var(--green); animation-delay: .08s; }
.hero-bars i:nth-child(3) { background: var(--orange); animation-delay: .16s; }
.hero-bars i:nth-child(4) { background: var(--sun); animation-delay: .24s; }
.hero-bars i:nth-child(5) { background: var(--blue); animation-delay: .32s; }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hero-bars i { animation: none; } }

@media (max-width: 820px) {
  .hero { padding-top: 1.75rem; }
  .hero-photo { inset: 0; opacity: .28; -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 85%); mask-image: linear-gradient(to bottom, #000 0, transparent 85%); }
  .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-logo { width: min(52vw, 220px); }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Accesos rápidos ---------- */
.quick { background: var(--paper); padding-block: clamp(2rem, 4vw, 3rem) 0; }
.quick-title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: 1rem; }
.quick-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; }
.quick-item {
  --c: var(--ink);
  display: flex; flex-direction: column; gap: .2rem; height: 100%;
  padding: 1rem 1rem 1.1rem; text-decoration: none;
  background: var(--mist); border-radius: var(--r-sm);
  transition: background-color .15s;
}
.quick-item:hover { background: #e6e6e6; }
.quick-item b { font-weight: 800; font-stretch: 112%; font-size: 1.05rem; line-height: 1.15; }
.quick-item small { color: var(--muted); font-size: .9rem; line-height: 1.3; }
.q-bar { display: block; width: 36px; height: 8px; background: var(--c); margin-bottom: .55rem; }
[data-cat="toros"] { --c: var(--c-toros); }
[data-cat="tope"] { --c: var(--c-tope); }
[data-cat="fiesta"] { --c: var(--c-fiesta); }
[data-cat="deportes"] { --c: var(--c-deportes); }
[data-cat="cultura"] { --c: var(--c-cultura); }
[data-cat="familia"] { --c: var(--c-familia); }
@media (max-width: 1000px) { .quick-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .quick-list { grid-template-columns: repeat(2, 1fr); } .quick-item { padding: .85rem; } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.dark { background: var(--ink); color: #fff; }
.tint { background: var(--mist); }
.section-head { max-width: 44rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: .75rem; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.dark .section-head p { color: var(--muted-dark); }
.section-head .btn { margin-top: 1.25rem; }

/* título con barra de color del tipo de evento */
.cat-title { font-size: clamp(2rem, 4.4vw, 3.4rem); text-wrap: balance; }
.cat-title::before { content: ""; display: block; width: 64px; height: 10px; background: var(--c); margin-bottom: 1rem; }
.cat-title-sm { font-size: 1.5rem; }
.cat-title-sm::before { width: 40px; height: 7px; margin-bottom: .7rem; }

.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); margin-top: 1rem; max-width: 34rem; }
.dark .lead { color: #dedede; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.poster .lb-trigger { width: 100%; }
.poster img { width: 100%; height: auto; border-radius: var(--r-md); }
@media (max-width: 860px) {
  .split, .split-rev { grid-template-columns: 1fr; }
  .split .poster { max-width: 420px; }
  .split-rev .poster { order: -1; }
}

/* ---------- Agenda ---------- */
.days {
  display: grid; grid-template-columns: repeat(13, minmax(64px, 1fr)); gap: 6px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
  scrollbar-width: thin;
}
.day {
  scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: flex-start; gap: .1rem;
  min-height: 92px; padding: .6rem .65rem .55rem;
  background: var(--mist); border: 2px solid transparent; border-radius: var(--r-sm);
  cursor: pointer; text-align: left;
  transition: background-color .15s, border-color .15s;
}
.day:hover { border-color: var(--ink); }
.day .d-wd { font-size: .85rem; font-weight: 600; color: var(--muted); }
.day .d-num { font-size: 1.9rem; font-weight: 900; font-stretch: 125%; line-height: 1; letter-spacing: -0.03em; }
.day .d-all { font-size: 1rem; font-weight: 800; font-stretch: 112%; line-height: 1.1; margin-top: auto; }
.d-dots { display: flex; gap: 3px; margin-top: auto; min-height: 6px; }
.d-dots i { width: 12px; height: 6px; background: var(--c); }
.day[aria-selected="true"] { background: var(--ink); color: #fff; }
.day[aria-selected="true"] .d-wd { color: var(--muted-dark); }
.day.is-today .d-wd { color: var(--pink); font-weight: 800; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.75rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 42px; padding: .45rem .9rem;
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-sm);
  font-weight: 700; font-size: .95rem; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip i { width: 14px; height: 8px; background: var(--c, var(--ink)); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.agenda-panel { border-top: 3px solid var(--ink); }
.day-group + .day-group { margin-top: 2.25rem; }
.day-group h3 { font-size: 1.2rem; font-weight: 800; font-stretch: 112%; padding: 1rem 0 .25rem; }
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev {
  display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 1.25rem; align-items: center;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.ev-time { font-weight: 900; font-stretch: 118%; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.1; }
.ev-time small { display: block; font-weight: 600; font-stretch: 100%; font-size: .85rem; color: var(--muted); letter-spacing: 0; }
.ev-cat { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 700; color: var(--muted); }
.ev-cat i { width: 18px; height: 8px; background: var(--c); }
.ev-title { font-size: 1.2rem; font-weight: 800; font-stretch: 108%; line-height: 1.2; margin: .15rem 0 .2rem; }
.ev-meta { color: var(--muted); font-size: .95rem; }
.ev-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.ev-actions .btn { min-height: 44px; padding: .55rem 1rem; font-size: .93rem; }
.btn-cal svg { flex: none; }
.tag-tbc { display: inline-block; margin-left: .35rem; padding: .05rem .45rem; font-size: .8rem; font-weight: 700; background: #fff3c4; color: #5b4500; border-radius: 4px; vertical-align: 1px; }
.dark .btn-cal svg { flex: none; }
.tag-tbc { background: #4a3d00; color: #ffe57a; }

.allday { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; padding: .85rem 1rem; margin: .5rem 0 .25rem; background: var(--mist); border-radius: var(--r-sm); }
.allday-title { font-weight: 800; font-size: .92rem; font-stretch: 110%; }
.allday ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .95rem; }
.allday small { color: var(--muted); font-size: .88rem; }
.empty { padding: 2rem 0; }
.empty p { color: var(--muted); margin-bottom: 1rem; max-width: 34rem; }
.agenda-note { margin-top: 1.5rem; color: var(--muted); font-size: .95rem; }

@media (max-width: 760px) {
  .days { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
  .ev { grid-template-columns: 5.2rem 1fr; gap: .35rem 1rem; align-items: start; }
  .ev-time { font-size: 1.05rem; padding-top: .15rem; }
  .ev-actions { grid-column: 2; justify-content: flex-start; margin-top: .5rem; }
  .ev-actions .btn { padding-inline: .8rem; }
  .btn-cal { width: 44px; padding: 0 !important; }
  .btn-cal span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Toros ---------- */
.schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.sch-group h3 { font-size: 1.1rem; font-weight: 800; font-stretch: 112%; padding-bottom: .6rem; border-bottom: 2px solid var(--c-toros); margin-bottom: .4rem; }
.sch-dates { list-style: none; margin: 0; padding: 0; }
.sch-dates li { padding: .5rem 0; border-bottom: 1px solid #2f2f2f; color: #e6e6e6; }
.sch-dates b { display: inline-block; min-width: 4.2rem; color: #fff; font-stretch: 112%; }
@media (max-width: 560px) { .schedule { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Tope ---------- */
.facts { margin: 2rem 0 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 800; font-stretch: 110%; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts > div { grid-template-columns: 1fr; gap: .15rem; } }

/* ---------- Galerías ---------- */
.gallery { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(130px, 14vw, 190px); gap: 8px; }
.gallery .g-item { position: relative; padding: 0; border: 0; background: #2a2a2a; border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in; }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery .g-item:hover img { transform: scale(1.04); }
.gallery .g-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery .g-item:nth-child(n+6) { display: none; }
.gallery .g-more { display: grid; place-items: center; position: absolute; inset: 0; background: rgba(22,22,22,.62); color: #fff; font-weight: 800; font-stretch: 112%; font-size: 1.05rem; }
@media (max-width: 760px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); grid-auto-rows: auto; }
  .gallery .g-item { flex: 0 0 78%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .gallery .g-item:first-child { grid-column: auto; grid-row: auto; }
  .gallery .g-more { display: none; }
  .gallery .g-item:nth-child(n+6) { display: block; }
}
@media (prefers-reduced-motion: reduce) { .gallery .g-item img { transition: none; } }

.lb-trigger { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }

/* ---------- Deportes ---------- */
.sports { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.sport { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-md); overflow: hidden; }
.sport-img img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.sport-body { display: flex; flex-direction: column; gap: .6rem; padding: 1.25rem 1.25rem 1.5rem; flex: 1; }
.sport-body h3 { font-size: 1.3rem; font-weight: 800; font-stretch: 112%; }
.sport-body .btn { margin-top: auto; }
.when { font-weight: 700; }
.fine { font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .sports { grid-template-columns: 1fr; max-width: 520px; } .sport { display: grid; grid-template-columns: 38% 1fr; } .sport-img img { height: 100%; } }
@media (max-width: 460px) { .sport { grid-template-columns: 1fr; } .sport-img img { aspect-ratio: 16 / 10; } }

/* ---------- Fiesta ---------- */
.announce { margin-top: 2.25rem; padding: 1.5rem; border: 2px solid var(--c-fiesta); border-radius: var(--r-md); max-width: 34rem; }
.announce h3 { font-size: 1.3rem; font-weight: 800; font-stretch: 112%; margin-bottom: .5rem; }
.announce p { color: #dedede; margin-bottom: 1.25rem; }
.poster-photo img { height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Carnaval y familia ---------- */
.carnaval .gallery { margin-top: 0; }
.family { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2.5rem); margin-top: clamp(3rem, 6vw, 5rem); }
.fam-card { display: grid; grid-template-columns: 42% 1fr; gap: 1.25rem; align-items: start; }
.fam-card img { width: 100%; height: auto; border-radius: var(--r-md); }
.fam-card .when { margin: .5rem 0; }
@media (max-width: 860px) { .family { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .fam-card { grid-template-columns: 1fr; } .fam-card .lb-trigger { max-width: 260px; } }

/* ---------- Tu visita ---------- */
.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tip { background: var(--paper); padding: 1.4rem; border-radius: var(--r-md); border-top: 6px solid var(--green); display: flex; flex-direction: column; gap: .6rem; }
.tip h3 { font-size: 1.15rem; font-weight: 800; font-stretch: 112%; }
.tip p { color: #333; }
.tip .text-link { margin-top: auto; }
.tip-alert { border-top-color: var(--red); }
.tip-alert a { color: var(--ink); }
@media (max-width: 1000px) { .tips { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tips { grid-template-columns: 1fr; } }

/* ---------- Patrocinadores ---------- */
.sponsors-title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: 1.5rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.sponsor-track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: marquee var(--marquee-dur, 30s) linear infinite; }
.sponsor-track li { flex: none; display: grid; place-items: center; height: 96px; margin-right: clamp(2.5rem, 6vw, 5rem); }
.sponsor-track img { max-height: 64px; max-width: 200px; width: auto; height: auto; object-fit: contain; }
.marquee:hover .sponsor-track, .marquee:focus-within .sponsor-track, .marquee.is-paused .sponsor-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-toggle { margin-top: .75rem; padding: .35rem 0; background: none; border: 0; font-weight: 700; font-size: .9rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .sponsor-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 1rem; }
  .sponsor-track [aria-hidden="true"] { display: none; }
  .marquee-toggle { display: none; }
}
.crono-btn { margin-top: 1.5rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contacto h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.contact-list a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; background: var(--ink-2); border-radius: var(--r-sm); text-decoration: none; transition: background-color .15s; }
.contact-list a:hover { background: #333; }
.contact-list b { display: block; font-stretch: 112%; }
.contact-list span:last-child { color: #d6d6d6; }
.c-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: var(--sun); border-radius: var(--r-sm); }
.c-ico svg { width: 24px; height: 24px; fill: var(--ink); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); border-top: 1px solid #2c2c2c; padding-block: 1.75rem; font-size: .95rem; }
.footer-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-inner img { border-radius: 6px; }
.footer-inner a { margin-left: auto; color: #fff; font-weight: 700; }

/* ---------- Barra móvil ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--ink); border-top: 1px solid #2c2c2c;
  }
  .mobile-bar a { display: grid; place-items: center; min-height: 50px; border-radius: var(--r-sm); text-decoration: none; font-weight: 800; font-stretch: 112%; color: #fff; border: 2px solid #4a4a4a; }
  .mobile-bar .mb-cta { background: var(--sun); color: var(--ink); border-color: var(--sun); }
}

/* ---------- Visor de fotos ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10,10,10,.94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(10,10,10,.94); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lb-count { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); font-weight: 700; color: #cfcfcf; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: var(--r-sm); background: #2a2a2a; color: #fff; font-size: 1.6rem; cursor: pointer; }
.lb-btn:hover { background: #444; }
.lb-close { top: 1rem; right: 1rem; font-size: 1.25rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-count { display: none; }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: .75rem; transform: none; } .lb-count { bottom: 1.6rem; } }
