/* ===== Web oficial Parroquia Sagrada Familia — mobile first ===== */

/* Fuentes alojadas en la web (sin pedirle nada a Google en cada visita). Licencia SIL OFL.
   Solo el juego latino: alcanza para el español. Montserrat es variable (400 a 600 en un archivo). */
@font-face {
  font-family: "League Spartan"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/league-spartan-600.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/fonts/montserrat.woff2") format("woff2");
}
:root {
  --ink: #1d2623;
  --text: #3a4441;
  --muted: #6b7571;
  --line: #e3e6e3;
  --bg: #ffffff;
  --tint: #f5f3ee;
  --sage: #4e5f58;
  --sage-dark: #26342f;
  --sage-soft: #e8ede9;
  --wine: #7d3434;
  --radius: 14px;
  --wrap: 1160px;
  --head: "League Spartan", "Montserrat", system-ui, sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -0.01em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 9vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 6vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-family: var(--head); font-size: .78rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sage); margin: 0 0 .6rem;
}
.eyebrow--light { color: rgba(255,255,255,.78); }
.section { padding: 48px 0; }
.section--tint { background: var(--tint); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.section__head h2 { margin: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; font-family: var(--head); font-weight: 600; font-size: 1rem;
  padding: .7rem 1.4rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  background: var(--sage-dark); color: #fff; border: 1.5px solid var(--sage-dark);
  transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--sage); border-color: var(--sage); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn--small { min-height: 44px; padding: .5rem 1rem; font-size: .92rem; }
.link {
  font-family: var(--head); font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding: 14px 0 2px; display: inline-block; line-height: 1.6;
}
.link:hover { color: var(--sage); }

/* ---------- Logo (recoloreable) ---------- */
.logo {
  display: inline-block; aspect-ratio: 3840 / 1240; width: 64px; background: currentColor;
  -webkit-mask: url(/img/logo.svg) center / contain no-repeat; mask: url(/img/logo.svg) center / contain no-repeat;
}

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--sage-dark); min-height: 44px; }
.brand span:last-child { font-family: var(--head); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; color: var(--ink); padding: 0;
}
.menu-toggle svg { width: 26px; height: 26px; }
.nav-desktop { display: none; }

/* Panel del menú (celular) */
.menu-panel {
  position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 32px;
  display: none;
}
.menu-panel.is-open { display: block; }
.menu-panel__head { display: flex; align-items: center; justify-content: space-between; height: 52px; margin-bottom: 8px; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel li a {
  display: flex; align-items: center; min-height: 52px; text-decoration: none; border-bottom: 1px solid var(--line);
  font-family: var(--head); font-size: 1.25rem; font-weight: 600; color: var(--ink);
}
.menu-panel li a[aria-current="page"] { color: var(--sage); }
.menu-acc {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px;
  padding: 0; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left;
  font-family: var(--head); font-size: 1.25rem; font-weight: 600; color: var(--ink);
}
.menu-acc svg { width: 22px; height: 22px; color: var(--sage); transition: transform .2s; }
.menu-acc[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-panel .menu-sub { padding-left: 16px; border-left: 2px solid var(--sage-soft); margin: 4px 0 4px 2px; }
.menu-panel .menu-sub[hidden] { display: none; }
.menu-panel .menu-sub li a { font-size: 1.05rem; font-weight: 500; font-family: var(--body); min-height: 48px; }

/* ---------- Franja de avisos ---------- */
.avisos:empty { display: none; }
.aviso {
  display: flex; align-items: center; gap: .6rem; padding: 9px 16px; min-height: 40px;
  background: var(--sage-soft); color: var(--sage-dark); font-size: .88rem; font-weight: 500;
  text-decoration: none; border-top: 1px solid rgba(38,52,47,.08);
}
.aviso svg { flex: none; width: 18px; height: 18px; }
a.aviso:hover { background: #dde5df; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 62svh; display: flex; align-items: flex-end; color: #fff; background: var(--sage-dark); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(29,38,35,.88), rgba(29,38,35,.15) 55%, rgba(29,38,35,0)); }
.hero__content { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 72px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.05rem; max-width: 34ch; opacity: .92; margin: .8rem 0 1.3rem; }

.page-hero { background: var(--tint); padding: 40px 0 32px; }
.page-hero p { max-width: 60ch; margin: 0; }
.page-hero--foto { position: relative; color: #fff; background: var(--sage-dark); padding: 0; min-height: 300px; display: flex; align-items: flex-end; }
.page-hero--foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero--foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(29,38,35,.85), rgba(29,38,35,.1) 70%); }
.page-hero--foto .wrap { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 28px; }
.page-hero--foto h1 { color: #fff; }
.page-hero--foto p { color: rgba(255,255,255,.92); font-size: 1.05rem; margin-top: .6rem; }
.page-hero--jovenes { min-height: 420px; }
.page-hero--jovenes img { object-position: 30% center; }
.page-hero--sacramentos img { object-position: 25% 42%; }

/* ---------- Tarjeta Hoy ---------- */
.hoy-wrap { position: relative; z-index: 2; margin-top: -44px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 18px 18px 10px;
  box-shadow: 0 10px 30px rgba(29,38,35,.12), 0 1px 3px rgba(29,38,35,.08);
}
.hoy__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hoy__row:last-of-type { border-bottom: 0; }
.hoy__row b { font-family: var(--head); font-size: 1.15rem; color: var(--sage-dark); white-space: nowrap; }
.hoy__row.pasada { opacity: .5; }
.hoy__tipo { font-weight: 500; color: var(--ink); }
.hoy__nota { display: block; font-size: .82rem; color: var(--muted); }
.hoy__vermas { font-size: .8rem; font-weight: 500; color: var(--muted); white-space: nowrap; display: inline-block; padding: 12px 6px 12px 2px; margin: -12px 0; }
.hoy__vermas:hover { color: var(--sage); }
.hoy__foot { padding: 6px 0 8px; }

/* ---------- Novedades ---------- */
.novedades { display: grid; gap: 12px; }
.nov { display: grid; grid-template-columns: 108px 1fr; background: var(--tint); border-radius: var(--radius); overflow: hidden; }
.nov__img { width: 100%; height: 100%; min-height: 120px; object-fit: cover; background: var(--sage-soft); }
.nov__body { padding: 14px 14px 12px; }
.nov__fecha { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }
.nov h3 { margin: 4px 0 6px; }
.nov p { font-size: .92rem; margin: 0 0 .4rem; white-space: pre-line; }
.novedades--full .nov { grid-template-columns: 1fr; }
.novedades--full .nov__img { aspect-ratio: 16 / 9; min-height: 0; }
.novedades--full .nov__body { padding: 16px 18px 18px; }
.novedades--full .nov p { font-size: 1rem; }

/* ---------- Flyers (imagen entera, tocar para ampliar) ---------- */
.flyer { display: block; width: 100%; padding: 0; border: 0; background: var(--tint); cursor: zoom-in; }
.flyer__img { width: 100%; height: auto; max-height: 75vh; object-fit: contain; margin: 0 auto; }
.nov .nov__img { object-fit: contain; background: var(--sage-soft); }
.novedades--full .nov--full { display: block; background: #fff; border: 1px solid var(--line); }
.novedades--full .nov--full .flyer { border-bottom: 1px solid var(--line); }
.ins { overflow: hidden; }
.ins--flyer .flyer { margin: -16px -18px 14px; width: calc(100% + 36px); border-bottom: 1px solid var(--line); }
.lightbox { padding: 0; border: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(10, 14, 13, .92); }
.lightbox__img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.lightbox__close {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 10px); right: 10px; z-index: 1;
  width: 48px; height: 48px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); display: flex; align-items: center; justify-content: center;
}
.lightbox__close svg { width: 24px; height: 24px; }

a.flyer { cursor: pointer; }
.nov--full .flyer__img, .ins .flyer__img { max-height: 420px; }
.ins__acciones { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.ins__acciones .btn { margin-top: 0; }
.ins__secretaria { margin: 0; font-size: .9rem; font-weight: 600; color: var(--sage-dark); width: 100%; }

/* ---------- Detalle de una publicación ---------- */
.detalle { padding-top: 20px; }
.detalle__volver { margin-bottom: 12px; }
.detalle__grid { display: grid; gap: 22px; }
.detalle__flyer .flyer { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.detalle__cuerpo h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); margin: 10px 0 12px; }
.detalle__fechas { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; color: var(--sage-dark); margin: -4px 0 12px; }
.detalle__fechas svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.detalle__texto { white-space: pre-line; font-size: 1.05rem; }
.detalle__acciones { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 8px; }
.ayuda { margin-top: 24px; background: var(--tint); border-radius: var(--radius); padding: 18px; }
.ayuda p { margin: 0 0 .5rem; }
.ayuda__titulo { font-family: var(--head); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.ayuda__acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ---------- Grilla de áreas ---------- */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.area-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 112px;
  padding: 16px 14px; border-radius: var(--radius); background: var(--tint); text-decoration: none;
  font-family: var(--head); font-weight: 600; font-size: 1.02rem; line-height: 1.15; color: var(--ink);
  transition: background .2s;
}
.section--tint .area-tile:not(.area-tile--jovenes) { background: #fff; }
.area-tile:hover, .section--tint .area-tile:not(.area-tile--jovenes):hover { background: var(--sage-soft); }
.area-tile svg { width: 26px; height: 26px; color: var(--sage); }
.area-tile--jovenes { background: var(--sage-dark); color: #fff; }
.area-tile--jovenes svg { color: #fff; }
.area-tile--jovenes:hover { background: var(--sage); }

/* ---------- Bloque donar ---------- */
.donar-cta { background: var(--tint); border-radius: var(--radius); padding: 28px 22px; }
.donar-cta h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); }

/* ---------- Horarios ---------- */
.horarios-grupo { margin-bottom: 28px; }
.horarios-grupo h2 { font-size: 1.5rem; }
.horario { display: flex; justify-content: space-between; gap: 1rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
.horario__dia { font-weight: 600; color: var(--ink); }
.horario__hora { font-family: var(--head); font-weight: 600; color: var(--sage-dark); text-align: right; }
.horario__nota { display: block; font-size: .85rem; color: var(--muted); font-family: var(--body); font-weight: 400; }

/* ---------- Inscripciones ---------- */
.inscripciones { display: grid; gap: 12px; }
.ins-area { margin: 22px 0 10px; font-size: 1.25rem; }
.ins { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.ins h3 { margin: 8px 0 6px; }
.ins p { margin: 0 0 .6rem; font-size: .95rem; }
.ins__cierre { font-size: .85rem; color: var(--muted); }
.estado { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.estado--abierta { background: #e2efe7; color: #245a40; }
.estado--proximamente { background: #f3ead7; color: #6b4e14; }
.estado--cerrada { background: var(--line); color: var(--muted); }
.ins .btn { margin-top: 6px; }

/* ---------- Donaciones / contacto ---------- */
.datos { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px; }
.dato { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dato:last-child { border-bottom: 0; }
.dato__label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); width: 100%; }
.dato__valor { font-family: var(--head); font-weight: 600; font-size: 1.1rem; color: var(--ink); word-break: break-all; user-select: all; -webkit-user-select: all; flex: 1; }
.copiar { flex: none; }
.copiar.is-done { background: var(--sage); border-color: var(--sage); color: #fff; }
.qr { max-width: 260px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.mapa { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }
.contacto-lista { list-style: none; margin: 0; padding: 0; }
.contacto-lista li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contacto-lista a { font-weight: 600; color: var(--ink); display: inline-block; padding: 10px 0; }

/* ---------- Área ---------- */
.area-info { display: grid; gap: 14px; margin-top: 8px; }
.area-texto p { font-size: 1.05rem; }

/* ---------- Calendario ---------- */
.cal__cabecera { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.cal__mes { margin: 0; font-size: clamp(1.5rem, 6vw, 2.1rem); }
.cal__nav { display: flex; align-items: center; gap: 6px; }
.cal__flecha { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cal__flecha svg { width: 20px; height: 20px; transform: rotate(90deg); }
.cal__flecha--sig svg { transform: rotate(-90deg); }
.cal__flecha:hover { border-color: var(--sage); color: var(--sage); }
.cal__grilla { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cal__fila { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__fila + .cal__fila { border-top: 1px solid var(--line); }
.cal__fila--dias { background: var(--tint); }
.cal__fila--dias > div { text-align: center; padding: 8px 0; font-family: var(--head); font-weight: 600; font-size: .8rem; color: var(--muted); }
.cal__fila > [role="gridcell"] { min-width: 0; }
.cal__dia {
  width: 100%; height: 100%; min-height: 52px; padding: 5px 1px 6px; border: 0; background: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--body); color: var(--ink);
}
.cal__dia:hover:not(:disabled) { background: var(--tint); }
.cal__dia.fuera { color: #c4c8c5; cursor: default; background: #fbfbfa; }
.cal__num { font-weight: 600; font-size: .95rem; width: 28px; height: 28px; line-height: 28px; border-radius: 999px; text-align: center; }
.cal__dia.es-hoy .cal__num { box-shadow: inset 0 0 0 2px var(--sage); }
.cal__dia.es-sel { background: var(--sage-soft); }
.cal__dia.es-sel .cal__num { background: var(--sage-dark); color: #fff; }
/* Celular: títulos cortos como etiquetas (como el calendario del iPhone). */
.cal__puntos { display: none; gap: 3px; }
.cal__puntos i { width: 6px; height: 6px; border-radius: 999px; background: var(--wine); }
.cal__titulos { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.cal__titulos span {
  display: block; font-size: 10px; line-height: 1.35; font-weight: 600; text-align: left;
  background: #f6e9e9; color: var(--wine); border-radius: 4px; padding: 1px 2px; letter-spacing: -0.02em;
  overflow: hidden; white-space: nowrap; text-overflow: clip;
}
.cal__titulos .cal__mas { background: none; color: var(--muted); text-align: center; font-weight: 500; }
/* Un solo evento en el día: hasta 2 líneas, cortando por palabra. */
.cal__titulos--uno span {
  white-space: normal; overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cal__dia.es-sel .cal__titulos span:not(.cal__mas) { background: #fff; }
/* Pantallas muy angostas: el título no se leería, quedan los puntos. */
@media (max-width: 339px) {
  .cal__puntos { display: flex; }
  .cal__titulos { display: none; }
}
.cal__panel { margin-top: 18px; background: var(--tint); border-radius: var(--radius); padding: 18px; }
.cal__panel h3 { font-size: 1.25rem; margin-bottom: 10px; }
.cal__acts { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 10px; }
.cal__act { display: grid; grid-template-columns: 72px 1fr; gap: 10px; background: #fff; border-radius: 12px; padding: 12px; }
.cal__hora { font-family: var(--head); font-weight: 600; color: var(--sage-dark); font-size: .95rem; }
.cal__titulo { font-family: var(--head); font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; display: inline-block; padding: 4px 0; }
.cal__titulo:hover { color: var(--sage); }
.cal__acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.cal__misas { margin-top: 14px; }
.cal__misas ul { list-style: none; padding: 0; margin: 0; }
.cal__misas li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cal__misas li:last-child { border-bottom: 0; }
.cal__misas b { font-family: var(--head); color: var(--sage-dark); white-space: nowrap; }
.cal__lista { margin-top: 32px; }
.cal__lista h2 { font-size: 1.5rem; }
.cal__lista ul { list-style: none; padding: 0; margin: 0; }
.cal__lista li a { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.cal__lista-fecha { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sage); }
.cal__lista-titulo { font-family: var(--head); font-weight: 600; color: var(--ink); }
.cal__lista li a:hover .cal__lista-titulo { color: var(--sage); }

/* ---------- Sacramentos ---------- */
.sac { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 10px; scroll-margin-top: 84px; }
.sac summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 0 18px; font-family: var(--head); font-weight: 600; font-size: 1.2rem; color: var(--ink);
}
.sac summary::-webkit-details-marker { display: none; }
.sac summary svg { width: 22px; height: 22px; color: var(--sage); flex: none; transition: transform .2s; }
.sac[open] summary svg { transform: rotate(180deg); }
.sac[open] summary { border-bottom: 1px solid var(--line); }
.sac__cuerpo { padding: 14px 18px 18px; }
.sac__que { font-size: 1.05rem; }
.sac__cuerpo h3 { font-size: 1rem; margin: 14px 0 6px; }
.sac__lista { margin: 0; padding-left: 1.2rem; }
.sac__lista li { margin-bottom: 4px; }
.sac__acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- Estados de carga ---------- */
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--tint) 25%, #ece9e2 50%, var(--tint) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; height: 96px; }
.skeleton--line { height: 44px; margin-bottom: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.fallback { background: var(--tint); border-radius: var(--radius); padding: 18px; color: var(--text); }
.fallback a { font-weight: 600; }
.stale { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- Pie ---------- */
.footer { background: var(--sage-dark); color: rgba(255,255,255,.78); padding: 40px 0 24px; font-size: .92rem; }
.footer a { color: #fff; }
.footer p { margin: 0 0 .35rem; }
.footer .logo { color: #fff; width: 104px; margin-bottom: 12px; }
.footer__name { font-family: var(--head); font-weight: 600; font-size: 1.15rem; color: #fff; }
.footer__grid { display: grid; gap: 28px; }
.footer__mapa, .footer__contacto a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.footer__mapa:hover, .footer__contacto a:hover { text-decoration: underline; }
.footer__mapa svg, .footer__contacto svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.footer__contacto { display: flex; flex-direction: column; margin-top: 4px; }
.footer__contacto a { word-break: break-all; }
.footer__horario p { color: #fff; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.footer__links a { display: inline-block; padding: 10px 0; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer__redes { display: flex; gap: 8px; }
.footer__redes a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,.1); transition: background .2s; }
.footer__redes a:hover { background: rgba(255,255,255,.22); }
.footer__redes svg { width: 20px; height: 20px; }
.footer__copy { font-size: .8rem; margin: 0; }

/* ---------- Computadora ---------- */
@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
  .aviso { justify-content: center; }

  .hero { min-height: 640px; }
  .hero__content { padding-bottom: 96px; }
  .hoy-wrap { max-width: 520px; margin-top: -64px; }
  .section { padding: 72px 0; }
  .areas { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .area-tile { min-height: 140px; padding: 22px; font-size: 1.15rem; }
  .novedades { grid-template-columns: repeat(3, 1fr); }
  .nov { grid-template-columns: 1fr; }
  .nov__img { aspect-ratio: 16 / 10; min-height: 0; }
  .novedades--full, .inscripciones { display: block; columns: 2; column-gap: 16px; }
  .novedades--full > *, .inscripciones > * { break-inside: avoid; margin-bottom: 16px; }
  .donar-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px; }
  .donar-cta p { margin: 0; }
  .cal__fila > [role="gridcell"] + [role="gridcell"] { border-left: 1px solid var(--line); }
  .cal__dia { min-height: 104px; align-items: stretch; padding: 6px; }
  .cal__num { align-self: flex-start; }
  .cal__titulos { gap: 3px; }
  .cal__titulos span { font-size: .74rem; line-height: 1.25; border-radius: 6px; padding: 2px 6px; font-weight: 500; text-overflow: ellipsis; }
  .detalle__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
  .detalle__grid > .detalle__cuerpo:only-child { grid-column: 1 / -1; max-width: 720px; }
  .dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1.3fr; gap: 40px; }
  .page-hero { padding: 64px 0 48px; }
  .page-hero--foto { min-height: 420px; padding: 0; }
}

@media (min-width: 1100px) {
  .novedades--full, .inscripciones { columns: 3; }
}

/* Menú completo solo con ancho suficiente; debajo, menú hamburguesa. */
@media (min-width: 1024px) {
  .menu-toggle, .menu-panel, .menu-panel.is-open { display: none; }
  .topbar__inner { height: 72px; }
  .brand .logo { width: 80px; }
  .nav-desktop { display: flex; align-items: center; gap: 1.4rem; }
  .nav-desktop > a:not(.btn), .nav-dd > button {
    text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--text);
    background: none; border: 0; font-family: var(--body); cursor: pointer; padding: 12px 0; min-height: 44px;
    display: inline-flex; align-items: center; gap: 4px;
  }
  .nav-desktop > a:not(.btn):hover, .nav-dd > button:hover, .nav-desktop a[aria-current="page"] { color: var(--sage); }
  .nav-dd { position: relative; }
  .nav-dd > button svg { width: 14px; height: 14px; }
  .nav-dd__menu {
    position: absolute; top: 100%; left: -16px; min-width: 250px; list-style: none; margin: 0; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(29,38,35,.12);
    display: none;
  }
  .nav-dd.is-open .nav-dd__menu { display: block; }
  .nav-dd__menu a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .95rem; }
  .nav-dd__menu a:hover, .nav-dd__menu a[aria-current="page"] { background: var(--tint); }
}

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