/* Conciertos y Recitales — sitio público
   Una sola familia (Archivo) jugando con el ancho: condensada y pesada para
   fechas y nombres, normal para leer. La pieza memorable es la "entrada". */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff") format("woff");
  font-weight: 400 900;
  font-stretch: 62% 100%;
  font-display: swap;
}

:root {
  --paper: #f4f2fa;
  --card: #ffffff;
  --ink: #1e1433;
  --muted: #6b6282;
  --line: #e3ddef;
  --magenta: #e12677;
  --magenta-ink: #ffffff;
  --violet: #6b3fd4;
  --sun: #fdd02e;
  --sun-ink: #1e1433;
  --stub: #efe9fb;
  --stub-ink: #4b2aa3;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(30, 20, 51, .06), 0 6px 18px -10px rgba(75, 42, 163, .25);
  --ff: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #140e20;
    --card: #1f1830;
    --ink: #f3eeff;
    --muted: #a99fc0;
    --line: #2f2645;
    --magenta: #ff4f97;
    --violet: #a98bff;
    --stub: #2a2041;
    --stub-ink: #d9cbff;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #140e20; --card: #1f1830; --ink: #f3eeff; --muted: #a99fc0; --line: #2f2645;
  --magenta: #ff4f97; --violet: #a98bff; --stub: #2a2041; --stub-ink: #d9cbff; --shadow: 0 1px 0 rgba(0,0,0,.3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--magenta); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0 0 .75rem; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow > * { max-width: 820px; }
.wrap--narrow > .chips, .wrap--narrow > .weekend__rail { max-width: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand__name {
  font-size: 1.05rem; line-height: .95; font-weight: 850;
  font-variation-settings: "wdth" 70; letter-spacing: -.01em;
}
.site-nav { display: none; gap: 22px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.site-nav a:hover { color: var(--magenta); }
.search-btn {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--sun); color: var(--sun-ink);
  box-shadow: 0 2px 0 rgba(30, 20, 51, .18);
}
.search-btn:hover { color: var(--sun-ink); transform: translateY(-1px); }

/* Botón de modo claro / oscuro */
.theme-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; padding: 0;
}
.theme-btn:hover { border-color: var(--magenta); }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
@media (min-width: 720px) { .site-nav { display: flex; } }

/* ---------- Encabezado de sección ---------- */
.intro { padding-top: 36px; padding-bottom: 8px; }
.intro__title {
  font-size: clamp(2.6rem, 9vw, 5.4rem);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  letter-spacing: -.015em;
  line-height: .9;
  text-wrap: balance;
}
.intro__count { color: var(--muted); font-size: 1.1rem; margin-top: 12px; max-width: 60ch; }
.intro__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.chip:hover { border-color: var(--magenta); color: var(--ink); }
.chip--on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip--on:hover { color: var(--paper); }
.chip__n { font-size: .8rem; font-weight: 700; color: var(--muted); }
.chip--on .chip__n { color: var(--sun); }

.section-title {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 850;
  font-variation-settings: "wdth" 66; letter-spacing: -.01em; margin-bottom: 14px;
}

/* ---------- Este finde: tira de afiches ---------- */
.weekend { padding: 26px 0 10px; }
.weekend__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 200px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  --rail-pad: max(16px, calc((100vw - 1120px) / 2 + 16px));
  padding: 4px var(--rail-pad) 16px;
  scroll-padding-inline: var(--rail-pad);
  scrollbar-width: thin;
}
.wk-card { scroll-snap-align: start; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 3px; }
.wk-card .poster { aspect-ratio: 4 / 5; width: 100%; border-radius: 10px; object-fit: cover; margin-bottom: 8px; }
.wk-card:hover .poster { outline: 3px solid var(--magenta); outline-offset: 2px; }
.wk-card__when { font-size: .85rem; font-weight: 700; color: var(--magenta); }
.wk-card__name { font-weight: 800; font-variation-settings: "wdth" 75; font-size: 1.12rem; line-height: 1.1; }
.wk-card__where { font-size: .85rem; color: var(--muted); line-height: 1.3; }

/* ---------- Afiche tipográfico (cuando no hay imagen) ---------- */
.poster { background: var(--stub); }
.autoposter {
  container-type: inline-size;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 14px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; position: relative;
  color: #fff;
}
.autoposter::before { /* trama de luces de escenario */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 18% 12%, rgba(255,255,255,.35) 0 2px, transparent 3px) 0 0 / 22px 22px;
  opacity: .35; pointer-events: none;
}
.autoposter--magenta { background: linear-gradient(160deg, #ff5fa2 0%, #e12677 45%, #6b1a8f 100%); }
.autoposter--violet { background: linear-gradient(160deg, #9d7bff 0%, #6b3fd4 50%, #241055 100%); }
.autoposter--sun { background: linear-gradient(160deg, #fde46a 0%, #fdd02e 50%, #f08c1a 100%); color: #1e1433; }
.autoposter__name {
  position: relative; font-weight: 900; text-transform: uppercase; line-height: .86;
  font-variation-settings: "wdth" 62; letter-spacing: -.01em; overflow-wrap: anywhere; text-wrap: balance;
}
.autoposter__name {
  /* Que la palabra más larga entre sin cortarse: --L = letras de esa palabra */
  font-size: min(var(--max, 2.6rem), calc(94cqw / (var(--L, 8) * .5)));
}
.autoposter--l .autoposter__name { --max: 2.8rem; }
.autoposter--m .autoposter__name { --max: 2.1rem; }
.autoposter--s .autoposter__name { --max: 1.6rem; }
.autoposter__sub { position: relative; font-size: .82rem; font-weight: 600; opacity: .9; }

/* ---------- Agenda ---------- */
.agenda { padding-top: 18px; padding-bottom: 32px; }
.month {
  font-size: clamp(2rem, 6vw, 3rem); font-weight: 900; font-variation-settings: "wdth" 62;
  letter-spacing: -.01em; margin: 30px 0 12px; color: var(--ink);
  display: flex; align-items: baseline; gap: 12px;
}
.month::after { content: ""; flex: 1; height: 2px; background: var(--line); transform: translateY(-8px); }
.tickets {
  display: grid; gap: 10px;
  /* La sombra va en el contenedor para que siga la forma recortada de cada entrada. */
  filter: drop-shadow(0 1px 1px rgba(30, 20, 51, .07)) drop-shadow(0 3px 6px rgba(75, 42, 163, .07));
}

/* La entrada: talón con la fecha + troquel + datos + botón */
.ticket {
  --stub-w: 74px;
  position: relative;
  /* Celular: artista, hora y lugar a todo el ancho; provincia y botón en una fila abajo. */
  display: grid; grid-template-columns: var(--stub-w) minmax(0, 1fr);
  grid-template-areas: "stub body" "stub foot";
  background: var(--card); border-radius: var(--radius);
  min-height: 96px;
  /* Muescas del troquel: se recorta la tarjeta de verdad (arriba y abajo, sobre la línea punteada),
     así el hueco muestra el fondo de la página en cualquier modo. */
  --notch-r: 9px;
  -webkit-mask:
    radial-gradient(circle var(--notch-r) at var(--stub-w) 0, transparent 98%, #000 100%) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch-r) at var(--stub-w) 100%, transparent 98%, #000 100%) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch-r) at var(--stub-w) 0, transparent 98%, #000 100%) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch-r) at var(--stub-w) 100%, transparent 98%, #000 100%) bottom / 100% 51% no-repeat;
}
.ticket__stub {
  grid-area: stub; align-self: stretch; /* siempre de arriba abajo, sin dejar franjas blancas */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--stub); color: var(--stub-ink); text-decoration: none;
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: 2px dashed color-mix(in srgb, var(--stub-ink) 30%, transparent);
  padding: 10px 4px;
}
.ticket__stub:hover { color: var(--stub-ink); }
.ticket__dow { font-size: .8rem; font-weight: 700; text-transform: lowercase; }
.ticket__day { font-size: 2.35rem; font-weight: 900; font-variation-settings: "wdth" 62; line-height: .9; }
.ticket__mon { font-size: .8rem; font-weight: 700; }
.ticket--today .ticket__stub { background: var(--magenta); color: #fff; border-right-color: rgba(255,255,255,.55); }

.ticket__body { grid-area: body; padding: 13px 14px 2px 16px; min-width: 0; }
.ticket__foot {
  grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px 12px 16px;
}
.ticket__title {
  font-size: 1.32rem; font-weight: 850; font-variation-settings: "wdth" 72;
  letter-spacing: -.005em; line-height: 1.05; overflow-wrap: anywhere;
}
.ticket__title a { color: var(--ink); text-decoration: none; }
.ticket__title a:hover { color: var(--magenta); }
.ticket__with { font-weight: 650; color: var(--muted); font-size: .95em; }
.ticket__with a { color: var(--muted); }
.ticket__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 6px 0 0; font-size: .93rem; color: var(--muted); }
.ticket__time { font-weight: 700; color: var(--ink); }
.ticket__venue { color: var(--muted); text-decoration: none; }
.ticket__venue:hover { text-decoration: underline; }
.ticket__prov {
  color: var(--stub-ink); background: var(--stub); text-decoration: none;
  font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
}
.ticket__prov:hover { color: var(--magenta); }
.ticket__cta {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; background: var(--magenta); color: var(--magenta-ink);
  font-weight: 750; font-size: .88rem; text-decoration: none; white-space: nowrap;
}
.ticket__cta:hover { color: #fff; filter: brightness(1.08); }
.ticket__cta--soft { background: transparent; color: var(--violet); border: 1px solid var(--line); }
.ticket__cta--soft:hover { color: var(--magenta); border-color: var(--magenta); filter: none; }

@media (min-width: 640px) {
  /* Compu: el botón vuelve a la derecha y la provincia queda bajo el lugar. */
  .ticket {
    --stub-w: 88px;
    grid-template-columns: var(--stub-w) minmax(0, 1fr) auto;
    grid-template-areas: "stub body cta" "stub prov cta";
    align-items: center;
  }
  .ticket__foot { display: contents; }
  .ticket__body { padding: 16px 12px 4px 22px; align-self: end; }
  .ticket__prov { grid-area: prov; justify-self: start; align-self: start; margin: 4px 0 16px 22px; }
  .ticket__cta { grid-area: cta; margin: 0 18px 0 0; padding: 10px 18px; }
  .ticket:not(:has(.ticket__prov)) .ticket__body { align-self: center; padding-bottom: 16px; grid-row: 1 / span 2; }
  .ticket__day { font-size: 2.7rem; }
  .ticket__title { font-size: 1.5rem; }
}

.more { display: flex; justify-content: center; margin: 28px 0 8px; }
.empty { background: var(--card); border-radius: var(--radius); padding: 28px; text-align: center; }
.empty__title { font-weight: 800; font-size: 1.25rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 750; font-size: 1rem; text-decoration: none; cursor: pointer;
}
.btn--primary { background: var(--magenta); color: #fff; }
.btn--primary:hover { color: #fff; filter: brightness(1.08); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn--ghost:hover { border-color: var(--magenta); color: var(--ink); }
.btn--sun { background: var(--sun); color: var(--sun-ink); }
.btn--sun:hover { color: var(--sun-ink); filter: brightness(1.04); }
.btn--big { padding: 14px 26px; font-size: 1.08rem; }

/* ---------- Banda "sumá tu fecha" ---------- */
.cta-band { background: var(--ink); color: var(--paper); margin-top: 24px; }
.cta-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 26px; padding-bottom: 26px; }
.cta-band__text { margin: 0; font-size: 1.5rem; font-weight: 850; font-variation-settings: "wdth" 70; line-height: 1.1; max-width: 26ch; }

/* ---------- Página de artista ---------- */
.crumbs { padding-top: 18px; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.artist { display: grid; gap: 22px; padding-top: 14px; padding-bottom: 12px; }
.artist__poster { max-width: 380px; width: 100%; }
.artist__poster .poster { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }
.artist__poster img.poster { height: auto; }
.artist__poster .autoposter--l .autoposter__name { --max: 4.6rem; }
.artist__poster .autoposter--m .autoposter__name { --max: 3.4rem; }
.artist__poster .autoposter--s .autoposter__name { --max: 2.4rem; }
.artist__poster .autoposter { padding: 22px; }
.artist__name {
  font-size: clamp(2.8rem, 10vw, 5.6rem); font-weight: 900; font-variation-settings: "wdth" 62;
  letter-spacing: -.015em; line-height: .88; text-wrap: balance; overflow-wrap: anywhere;
}
.artist__count { color: var(--muted); font-size: 1.1rem; margin-top: 10px; }
.artist__empty { max-width: 52ch; }
.next { margin-top: 22px; background: var(--card); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); border-left: 6px solid var(--magenta); }
.next__label { font-size: .9rem; font-weight: 700; color: var(--magenta); margin-bottom: 4px; }
.next__date { font-size: 1.6rem; font-weight: 850; font-variation-settings: "wdth" 72; line-height: 1.15; margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.next__time { color: var(--muted); font-size: 1.15rem; font-weight: 700; }
.next__with { margin-bottom: 4px; }
.next__place { font-size: 1.05rem; }
.next__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (min-width: 820px) {
  .artist { grid-template-columns: 360px 1fr; gap: 44px; align-items: start; padding-top: 22px; }
}
.block { padding-top: 30px; padding-bottom: 8px; }
.block__more { margin-top: 14px; }
.spotify { border: 0; border-radius: 14px; background: var(--card); }
.past { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.past li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 10px 14px; background: var(--card); border-radius: 10px; color: var(--muted); }
.past time { font-weight: 700; color: var(--ink); }

/* ---------- Artistas A–Z ---------- */
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.letters a { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 8px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 800; }
.letters a:hover { background: var(--magenta); color: #fff; }
.az { columns: 1; padding-top: 14px; padding-bottom: 30px; }
@media (min-width: 720px) { .az { columns: 2; column-gap: 40px; } }
@media (min-width: 1040px) { .az { columns: 3; } }
.az__group { break-inside: avoid; margin-bottom: 22px; }
.az__letter { font-size: 2.6rem; font-weight: 900; font-variation-settings: "wdth" 62; color: var(--magenta); margin-bottom: 6px; }
.az__list { list-style: none; margin: 0; padding: 0; }
.az__list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.az__list a { font-weight: 750; color: var(--ink); text-decoration: none; font-size: 1.08rem; }
.az__list a:hover { color: var(--magenta); }
.az__meta { display: block; font-size: .85rem; color: var(--muted); }

/* ---------- Búsqueda ---------- */
.search { position: fixed; inset: 0; z-index: 40; background: rgba(20, 14, 32, .55); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 12px 12px; }
.search[hidden] { display: none; }
.search__panel { width: 100%; max-width: 620px; background: var(--card); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); overflow: hidden; animation: pop .16s ease-out; }
@keyframes pop { from { transform: translateY(-8px) scale(.98); opacity: 0; } }
.search__form { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search__form input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1.3rem; font-weight: 600; color: var(--ink); outline: none; min-width: 0; }
.search__form input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search__close { border: 1px solid var(--line); background: var(--paper); color: var(--muted); border-radius: 8px; padding: 4px 8px; font: inherit; font-size: .8rem; cursor: pointer; }
.search__results { max-height: 60vh; overflow-y: auto; padding: 6px; }
.search__group { padding: 10px 12px 4px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.search__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.search__item:hover, .search__item[aria-selected="true"] { background: var(--stub); color: var(--ink); }
.search__item strong { font-weight: 750; }
.search__item small { color: var(--muted); }
.search__item.is-dim strong { color: var(--muted); font-weight: 600; }
.search__hint { padding: 16px 12px; color: var(--muted); margin: 0; }
.badge { flex: none; font-size: .78rem; font-weight: 750; padding: 3px 9px; border-radius: 999px; background: var(--magenta); color: #fff; }
.is-dim .badge { background: var(--line); color: var(--muted); }

.searchpage { display: flex; gap: 10px; margin-top: 18px; }
.searchpage input { flex: 1; min-width: 0; font: inherit; font-size: 1.15rem; padding: 12px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); }
.results { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 6px; }
.results li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--card); padding: 12px 16px; border-radius: 10px; }
.results a { font-weight: 750; color: var(--ink); text-decoration: none; }
.results .is-dim a { color: var(--muted); font-weight: 600; }

/* ---------- Formularios públicos ---------- */
.form { display: grid; gap: 16px; background: var(--card); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-weight: 650; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; font-size: 1rem; padding: 11px 13px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 25%, transparent); }
.req { color: var(--magenta); }
.hp { position: absolute; left: -5000px; }
.notice { padding: 18px 20px; border-radius: var(--radius); margin: 16px 0; }
.notice__title { font-weight: 800; font-size: 1.1rem; }
.notice ul { margin: 0; padding-left: 20px; }
.notice--ok { background: color-mix(in srgb, #2fbf71 16%, var(--card)); }
.notice--error { background: color-mix(in srgb, var(--magenta) 14%, var(--card)); }

.errorpage { padding-bottom: 60px; }
.errorpage__code { font-size: 1rem; font-weight: 800; color: var(--magenta); margin-bottom: 6px; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 26px; color: var(--muted); font-size: .95rem; }
.site-footer__in { display: grid; gap: 20px; }
@media (min-width: 720px) { .site-footer__in { grid-template-columns: 1fr 1.4fr; } }
.site-footer__brand { font-weight: 900; font-variation-settings: "wdth" 66; font-size: 1.4rem; color: var(--ink); margin-bottom: 4px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; }
.site-footer__nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer__nav a:hover { color: var(--magenta); }
.site-footer__legal { margin-top: 22px; font-size: .82rem; }

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 15;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--paper); box-shadow: 0 8px 20px -8px rgba(30, 20, 51, .5);
}
.to-top:hover { color: var(--sun); }
.to-top[hidden] { display: none; }

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