/* Salud Peluda. Hoja de estilos única.
   Mundo visual: la señalización de seguridad de una playa española. Banderas roja, amarilla y verde como
   estado (ve ya, pide cita, cuidados en casa), tablones blancos con franja de color, placas cuadradas con
   pictogramas, letra de rótulo para titulares y una letra muy legible para leer con prisa en el móvil.
   Colores de señal (RAL 3001, 1003, 6032 y 5005) solo para estados; el resto, blanco y azul marino.
   Tipografías propias en /fonts (licencia OFL): no se carga nada de Google al visitar la web. */

@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/atkinson-next-latin.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("fonts/atkinson-next-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/atkinson-mono-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-semi-condensed-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-semi-condensed-700-latin.woff2") format("woff2"); }

:root {
  /* Fondo de pared pintada, tablones blancos y tinta azul marino */
  --paper: #fafbfb;
  --board: #ffffff;
  --wall: #eef2f3;
  --line: #d6dee1;
  --line-strong: #a9b7be;
  --ink: #0c2236;
  --ink-2: #3b5065;
  --ink-3: #5a6e80;
  --sign: #0c2236;          /* tablones oscuros: precios, pie */
  --sign-ink: #f2f6f9;
  --sign-ink-2: #b9c8d5;
  --sign-line: rgba(242, 246, 249, .16);
  --on-sign-red: #ff8a7e;    /* colores de bandera para texto sobre el rótulo azul marino */
  --on-sign-yellow: #f6c445;
  --on-sign-green: #6fd6a2;
  --plate: #0c2236;          /* placas de pictograma */
  --pole: #6b7d8d;
  /* Colores de señal: solo para estados */
  --red-fill: #c0261c;       /* RAL 3001 */
  --red: #a8211a;
  --red-soft: #fcefed;
  --yellow-fill: #f3b20b;    /* RAL 1003 */
  --yellow-ink: #6b4b00;
  --yellow-soft: #fff7e2;
  --green-fill: #1f8a54;     /* RAL 6032 */
  --green: #1b7a4a;
  --green-soft: #eaf5ef;
  --blue: #1d4f9c;           /* RAL 5005: enlaces y "obligatorio" */
  --mark-dark: #1a1406;
  --highlight: rgba(243, 178, 11, .42);
  --focus: #1d4f9c;
  --shadow: 0 1px 2px rgba(12, 34, 54, .06), 0 10px 28px -14px rgba(12, 34, 54, .22);
  --float: 0 0 0 1px var(--line), 0 12px 24px -12px rgba(12, 34, 54, .3);
  --drop: 0 14px 16px -14px rgba(12, 34, 54, .28);

  --font-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --font-head: "Barlow Semi Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --r: 0px;          /* tablones, rótulos y fotos: esquinas rectas */
  --r-ctl: 3px;      /* campos, botones y etiquetas */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --z-header: 30;
  --z-progress: 40;
  --z-menu: 50;
  --z-banner: 60;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1622;
    --board: #101f2f;
    --wall: #13263a;
    --line: #22384d;
    --line-strong: #3a536b;
    --ink: #e9eff4;
    --ink-2: #b4c2ce;
    --ink-3: #8b9eaf;
    --sign: #142c44;
    --sign-ink: #f2f6f9;
    --sign-ink-2: #b9c8d5;
    --sign-line: rgba(242, 246, 249, .14);
    --plate: #2a4b6e;
    --pole: #8b9eaf;
    --red-fill: #d6362b;
    --red: #ff8073;
    --red-soft: #2b1517;
    --yellow-fill: #f3b20b;
    --yellow-ink: #f4c74e;
    --yellow-soft: #2a2310;
    --green-fill: #2e9e63;
    --green: #5fd19a;
    --green-soft: #10291e;
    --blue: #93b5f2;
    --highlight: rgba(243, 178, 11, .32);
    --focus: #93b5f2;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .6);
    --float: 0 0 0 1px var(--line-strong), 0 12px 24px -12px rgba(0, 0, 0, .6);
    --drop: 0 14px 16px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scrollbar-color: var(--line-strong) var(--paper); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; letter-spacing: -.005em; color: var(--ink); }
h1 { font-size: clamp(2.05rem, 1.35rem + 2.7vw, 3.35rem); }
h2 { font-size: clamp(1.7rem, 1.35rem + 1.1vw, 2.1rem); line-height: 1.1; }
h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.24rem; line-height: 1.3; }
strong, b { font-weight: 700; }
::selection { background: var(--highlight); color: var(--ink); }
input, textarea, select { caret-color: var(--blue); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.num, .price-value, .cost-range, table { font-variant-numeric: tabular-nums; }
.num { font-family: var(--font-mono); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: var(--z-banner); background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-ctl); font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
svg.i { width: 1.25em; height: 1.25em; flex: none; }
.lead { font-size: 1.12rem; line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--ink-2); }

/* Placas de pictograma (como las señales ISO: cuadrado de color y figura blanca) */
.plate { display: inline-grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 3px; background: var(--plate); color: #fff; }
.plate svg.i { width: 62%; height: 62%; }
.plate-sm { width: 2rem; height: 2rem; }
.plate-lg { width: 3.5rem; height: 3.5rem; }

/* Banderas: mástil + paño de color + marca (aspa, exclamación, visto) para no depender solo del color */
.flag { width: 2em; height: 2em; flex: none; overflow: visible; }
.flag-pole { fill: var(--pole); }
.flag-cloth rect { fill: var(--line-strong); }
.flag-mark { fill: #fff; }
.flag-now .flag-cloth rect { fill: var(--red-fill); }
.flag-soon .flag-cloth rect { fill: var(--yellow-fill); }
.flag-soon .flag-mark { fill: var(--mark-dark); }
.flag-home .flag-cloth rect { fill: var(--green-fill); }

/* El único momento animado de la web: las banderas se izan al cargar (empiezan visibles, más abajo) */
@keyframes hoist { from { transform: translateY(13px); } }
@media (prefers-reduced-motion: no-preference) {
  .flag-hoist .flag-cloth { animation: hoist 1100ms var(--ease-out) both; }
  li:nth-child(2) > .flag-hoist .flag-cloth, li:nth-child(2) > a > .flag-hoist .flag-cloth { animation-delay: 140ms; }
  li:nth-child(3) > .flag-hoist .flag-cloth, li:nth-child(3) > a > .flag-hoist .flag-cloth { animation-delay: 280ms; }
}

/* ---------- Cabecera ---------- */
.masthead { position: sticky; top: 0; z-index: var(--z-header); background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-plate { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 3px; background: var(--green-fill); color: #fff; flex: none; }
.brand-plate svg.i { width: 24px; height: 24px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.42rem; letter-spacing: -.01em; line-height: 1; }
.nav-main { display: none; align-items: stretch; gap: 2px; align-self: stretch; }
.nav-main a { display: flex; align-items: center; padding: 0 10px; color: var(--ink-2); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .98rem; text-transform: uppercase; letter-spacing: .045em; box-shadow: inset 0 -3px 0 transparent; transition: color 160ms ease, box-shadow 160ms ease; }
.nav-main a:hover { color: var(--ink); box-shadow: inset 0 -3px 0 var(--line-strong); }
.nav-main a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.masthead-actions { display: flex; align-items: center; gap: 8px; }
.search-toggle, .nav-mobile summary { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--board); color: var(--ink); font: 700 .95rem/1 var(--font-body); cursor: pointer; transition: border-color 160ms ease, transform 160ms var(--ease-out); border-radius: var(--r-ctl); }
.search-toggle:hover, .search-toggle[aria-expanded="true"], .nav-mobile summary:hover, .nav-mobile[open] summary { border-color: var(--ink); }
.search-toggle:active, .nav-mobile summary:active { transform: scale(.97); }
.search-toggle svg.i, .nav-mobile summary svg.i { width: 19px; height: 19px; }
@media (max-width: 599px) {
  .search-toggle-label, .nav-mobile summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .search-toggle, .nav-mobile summary { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .brand-name { font-size: 1.3rem; }
}
.lang-switch { display: none; align-items: center; gap: 6px; height: 42px; padding: 0 6px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .92rem; }
.lang-switch:hover { color: var(--ink); }
.lang-switch svg.i { width: 18px; height: 18px; }
@media (min-width: 600px) { .lang-switch { display: inline-flex; } }
.nav-mobile { position: relative; }
.nav-mobile summary { list-style: none; user-select: none; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: var(--z-menu); width: min(88vw, 340px); padding: 8px; background: var(--board); border-radius: var(--r); box-shadow: var(--float); display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) { .nav-mobile[open] .nav-mobile-panel { animation: drop 220ms var(--ease-out); } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.nav-mobile-panel a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 3px; color: var(--ink); text-decoration: none; font-weight: 700; }
.nav-mobile-panel a:hover, .nav-mobile-panel a[aria-current] { background: var(--wall); }
.nav-mobile-panel .nav-lang { color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; border-radius: 0; }
.nav-mobile-panel .nav-lang svg.i { width: 20px; height: 20px; margin: 0 6px; }
@media (min-width: 1180px) {
  .nav-main { display: flex; }
  .nav-mobile { display: none; }
  .brand { margin-right: 12px; }
  .nav-main { margin-right: auto; }
}
.header-search { border-top: 1px solid var(--line); padding: 14px 0 18px; background: var(--paper); box-shadow: var(--drop); }
.header-search .search { max-width: 680px; margin: 0; }

/* Buscador */
.search { position: relative; }
.search > svg.i { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; height: 54px; padding: 0 16px 0 50px; border: 1.5px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--board); color: var(--ink); font: 400 1.06rem/1 var(--font-body); transition: border-color 160ms ease, box-shadow 160ms ease; }
.search input::placeholder { color: var(--ink-3); opacity: 1; }
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: var(--z-menu); list-style: none; margin: 0; padding: 6px; background: var(--board); border-radius: var(--r); box-shadow: var(--float); }
.search-results a { display: block; padding: 10px 12px; border-radius: 3px; color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.35; }
.search-results a:hover, .search-results a:focus { background: var(--wall); }
.search-results small { display: block; margin-top: 2px; color: var(--ink-3); font: 600 .78rem/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.search-results .search-empty { padding: 10px 12px; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.search-results .search-empty a { display: inline; padding: 0; color: var(--blue); text-decoration: underline; }

/* Barra de lectura: animada por el propio scroll (CSS), sin código */
.read-progress { position: fixed; inset: 0 0 auto 0; z-index: var(--z-progress); height: 3px; background: var(--green-fill); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .read-progress { animation: read-progress linear both; animation-timeline: scroll(root block); }
}
@keyframes read-progress { to { transform: scaleX(1); } }

/* Enlaces "ver más" y botones */
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.more svg.i { width: 18px; height: 18px; transition: transform 220ms var(--ease-out); }
.more:hover svg.i { transform: translateX(3px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-ctl); background: var(--ink); color: var(--paper); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; letter-spacing: .01em; transition: transform 160ms var(--ease-out), opacity 160ms ease; }
.btn:hover { opacity: .9; color: var(--paper); }
.btn:active { transform: scale(.98); }

.section-title { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.45rem); margin: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-count { margin: 0; color: var(--ink-3); font-size: .95rem; white-space: nowrap; }

/* ---------- Portada ---------- */
.home-hero { padding: 36px 0 40px; }
.home-hero-grid { display: grid; gap: 32px; align-items: start; }
.home-hero-media { display: none; }
.home-hero h1 { font-size: clamp(2.6rem, 1.55rem + 4.3vw, 4.6rem); line-height: .98; letter-spacing: -.012em; margin-bottom: .32em; }
.home-hero .lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.24rem); margin-bottom: 24px; }
.search-hero input { height: 60px; border-width: 2px; border-color: var(--ink); font-size: 1.1rem; }
.quick { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.quick a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--board); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .94rem; transition: border-color 160ms ease, transform 160ms var(--ease-out); }
.quick a:hover { border-color: var(--ink); }
.quick a:active { transform: scale(.97); }
@media (min-width: 900px) {
  .home-hero { padding: 56px 0 64px; }
  .home-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
  .home-hero-media { display: block; }
  .home-hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--wall); }
}

/* Código de banderas: franja azul marino a todo el ancho, como el rótulo del socorrista */
.flag-strip { background: var(--sign); color: var(--sign-ink); padding: 40px 0 34px; }
.flag-strip-title { color: var(--sign-ink); font-size: clamp(1.7rem, 1.35rem + 1.3vw, 2.35rem); margin: 0 0 14px; }
.flag-strip-list { list-style: none; margin: 0; padding: 0; display: grid; }
.flag-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--sign-line); }
.flag-row .flag { width: 64px; height: 64px; }
.flag-strip .flag-pole { fill: var(--sign-ink-2); }
.flag-row strong { display: block; font-family: var(--font-head); font-size: 1.32rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .04em; }
.flag-row p { margin: 4px 0 0; color: var(--sign-ink-2); font-size: .98rem; line-height: 1.45; }
.flag-row-now strong { color: var(--on-sign-red); }
.flag-row-soon strong { color: var(--on-sign-yellow); }
.flag-row-home strong { color: var(--on-sign-green); }
.flag-strip-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--sign-ink); font-weight: 700; text-decoration: none; }
.flag-strip-link svg.i { width: 18px; height: 18px; transition: transform 220ms var(--ease-out); }
.flag-strip-link:hover { text-decoration: underline; }
.flag-strip-link:hover svg.i { transform: translateX(3px); }
.flag-strip :focus-visible { outline-color: var(--yellow-fill); }
@media (min-width: 900px) {
  .flag-strip { padding: 52px 0 44px; }
  .flag-strip-title { margin-bottom: 26px; }
  .flag-strip-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flag-row { padding: 4px 28px; border-top: 0; border-left: 1px solid var(--sign-line); align-items: start; }
  .flag-row:first-child { padding-left: 0; border-left: 0; }
}

/* Salud del perro y del gato: dos columnas con foto y guías principales */
.duo { padding: 56px 0 8px; }
.duo-grid { display: grid; gap: 44px; }
@media (min-width: 760px) { .duo-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.duo-media { display: block; overflow: hidden; border-radius: var(--r); background: var(--wall); margin-bottom: 18px; }
.duo-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 600ms var(--ease-out); }
.duo-media:hover img { transform: scale(1.025); }
.duo-col h2 { font-size: clamp(1.7rem, 1.35rem + 1.2vw, 2.25rem); margin-bottom: 8px; }
.duo-col h2 a { color: var(--ink); text-decoration: none; }
.duo-col h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.duo-list { list-style: none; margin: 0 0 14px; padding: 0; }
.duo-list li:first-child a { border-top: 1px solid var(--line); }
.duo-list a { display: flex; align-items: center; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.35; }
.duo-list a span { flex: 1; }
.duo-list .flag { width: 22px; height: 22px; }
.duo-list svg.i { width: 18px; height: 18px; color: var(--ink-3); transition: transform 220ms var(--ease-out), color 160ms ease; }
.duo-list a:hover svg.i { transform: translateX(3px); color: var(--ink); }

/* Directorio de secciones (rótulo de accesos) */
.directory { padding: 56px 0; }
.directory .section-title { margin-bottom: 20px; }
.directory-list { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 40px; }
@media (min-width: 760px) { .directory-list { grid-template-columns: 1fr 1fr; } }
.dir-item { display: flex; align-items: center; gap: 16px; padding: 14px 6px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color 160ms ease; }
.directory-list li:last-child .dir-item { border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .directory-list li:nth-last-child(-n+2) .dir-item { border-bottom: 1px solid var(--line); } }
.dir-item:hover { background: var(--wall); }
.dir-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dir-name { font-family: var(--font-head); font-weight: 700; font-size: 1.24rem; line-height: 1.15; }
.dir-blurb { color: var(--ink-2); font-size: .94rem; line-height: 1.4; }
.dir-count { color: var(--ink-3); font-size: .92rem; }
.dir-item > svg.i { width: 18px; height: 18px; color: var(--ink-3); transition: transform 220ms var(--ease-out), color 160ms ease; }
.dir-item:hover > svg.i { transform: translateX(3px); color: var(--ink); }

/* Tablón de precios */
.prices { padding: 8px 0 56px; }
.price-board { background: var(--sign); color: var(--sign-ink); border-radius: var(--r); padding: 26px 20px 12px; }
.price-board-head h2 { color: var(--sign-ink); margin-bottom: 8px; font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.3rem); }
.price-board-head p { color: var(--sign-ink-2); max-width: 46em; margin-bottom: 18px; font-size: .98rem; }
.price-rows { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 48px; }
.price-rows a { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: baseline; gap: 14px; padding: 13px 6px; border-top: 1px solid var(--sign-line); color: var(--sign-ink); text-decoration: none; transition: background-color 160ms ease; }
.price-rows a:hover { background: rgba(255, 255, 255, .06); }
.price-label { line-height: 1.35; }
.price-value { font-family: var(--font-mono); font-weight: 700; font-size: 1.04rem; white-space: nowrap; text-align: right; }
.price-rows svg.i { width: 18px; height: 18px; align-self: center; color: var(--sign-ink-2); transition: transform 220ms var(--ease-out); }
.price-rows a:hover svg.i { transform: translateX(3px); }
.price-board :focus-visible { outline-color: var(--yellow-fill); }
@media (min-width: 900px) {
  .price-board { padding: 40px 44px 24px; }
  .price-board-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 8px; }
  .price-board-head p { margin-bottom: 4px; }
  .price-rows { grid-template-columns: 1fr 1fr; }
}

/* Calculadoras: tira de enlaces al pie del tablón de precios */
.price-tools { margin-top: 18px; padding: 18px 6px 8px; border-top: 1px solid var(--sign-line); }
.price-tools-title { margin: 0 0 10px; color: var(--sign-ink); font: 700 1.2rem/1.2 var(--font-head); }
.price-tools ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.price-tools a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--sign-ink); text-decoration: none; font-weight: 700; }
.price-tools a:hover { text-decoration: underline; }
.price-tools .plate { background: rgba(255, 255, 255, .12); }
.price-tools :focus-visible { outline-color: var(--yellow-fill); }

.latest { padding: 8px 0 64px; }
.latest .section-title, .related .section-title { margin-bottom: 22px; }
.latest .card-list, .card-list-4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .latest .card-list, .card-list-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .latest .card-list, .card-list-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Cómo trabajamos */
.method { background: var(--wall); padding: 56px 0; }
.method-grid { display: grid; gap: 24px; }
.method-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.method-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.method-list svg.i { width: 26px; height: 26px; color: var(--green); margin-top: 1px; }
.method-list p { margin: 0; color: var(--ink-2); max-width: 44em; }
.method-list strong { color: var(--ink); }
@media (min-width: 900px) {
  .method { padding: 72px 0; }
  .method-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); column-gap: 56px; }
  .method-link { grid-column: 2; }
}

/* ---------- Tarjetas de guía (sin caja: foto, título y una línea de datos) ---------- */
.card-list { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-list-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-decoration: none; }
.card-media { display: block; overflow: hidden; border-radius: var(--r); background: var(--wall); }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 600ms var(--ease-out); }
.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; line-height: 1.2; text-wrap: balance; }
.card-desc { color: var(--ink-2); font-size: .95rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: auto; padding-top: 4px; color: var(--ink-3); font-family: var(--font-head); font-weight: 600; font-size: .86rem; text-transform: uppercase; letter-spacing: .05em; }
.card-meta .num { font-family: var(--font-mono); text-transform: none; letter-spacing: 0; font-weight: 600; }
.meta-urgent { display: inline-flex; align-items: center; gap: 4px; color: var(--red); }
.meta-urgent .flag { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-media img { transform: scale(1.03); }
  .card:hover .card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
}
.card:active { transform: scale(.99); transition: transform 120ms ease; }

/* ---------- Páginas de sección ---------- */
.section-hero { border-bottom: 1px solid var(--line); padding: 4px 0 32px; }
.section-hero-grid { display: grid; gap: 28px; align-items: center; }
.section-hero h1 { margin: 16px 0 10px; }
.section-hero .lead { margin: 0; }
.section-hero-media { display: none; }
@media (min-width: 900px) {
  .section-hero { padding: 8px 0 48px; }
  .section-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; }
  .section-hero-media { display: block; margin-top: 28px; }
  .section-hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); background: var(--wall); }
}
.section-guides { padding: 40px 0 16px; }
/* Guías de la sección en filas: foto pequeña, título, resumen y datos */
.row-list { list-style: none; margin: 0; padding: 0; }
.row-list li:first-child .row-card { border-top: 1px solid var(--line); }
.row-card { display: grid; grid-template-columns: 112px minmax(0, 1fr) 18px; gap: 16px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color 160ms ease; }
.row-card:hover { background: var(--wall); }
.row-media { display: block; overflow: hidden; border-radius: var(--r); background: var(--wall); align-self: start; }
.row-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.row-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row-card .card-desc { display: none; }
.row-card > svg.i { width: 18px; height: 18px; color: var(--ink-3); transition: transform 220ms var(--ease-out); }
.row-card:hover > svg.i { transform: translateX(3px); color: var(--ink); }
.row-card:not(:has(.row-media)) { grid-template-columns: minmax(0, 1fr) 18px; }
@media (min-width: 760px) {
  .row-card { grid-template-columns: 240px minmax(0, 1fr) 18px; gap: 28px; padding: 20px 8px; }
  .row-card .card-title { font-size: 1.5rem; }
  .row-card .card-desc { display: -webkit-box; -webkit-line-clamp: 2; max-width: 46em; }
}
.section-prose { max-width: 720px; padding: 24px 0 72px; }

/* ---------- Guías ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 16px; color: var(--ink-3); font-size: .9rem; }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.guide-wrap { padding-bottom: 24px; }
.guide-layout { display: grid; gap: 48px; }
.guide { min-width: 0; max-width: 720px; }
.guide-layout-single .guide { max-width: 760px; }
@media (min-width: 1180px) {
  .guide-layout { grid-template-columns: minmax(0, 720px) 290px; justify-content: space-between; gap: 64px; }
  .guide-layout-single { grid-template-columns: minmax(0, 760px); justify-content: start; }
}
.guide-head { margin-bottom: 20px; }
.guide-head h1 { margin-bottom: 14px; }
.guide-head .lead { margin-bottom: 16px; }
.byline { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
.byline time { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.byline a { color: var(--ink); font-weight: 700; text-decoration: none; }
.byline a:hover { text-decoration: underline; }
.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 3px; background: var(--plate); color: #fff; font: 700 .85rem/1 var(--font-head); letter-spacing: .04em; }

/* Tablón de la guía */
.board { background: var(--board); border: 1px solid var(--line-strong); border-radius: var(--r); margin: 0 0 22px; }
.board-head { margin: 0; padding: 9px 14px; background: var(--sign); color: var(--sign-ink); font: 700 1rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .07em; }
.board-signals { list-style: none; margin: 0; padding: 0; }
.sig { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.sig-now { background: var(--red-soft); }
.sig-soon { background: var(--yellow-soft); }
.sig-home { background: var(--green-soft); }
.sig .flag { width: 46px; height: 46px; }
.sig-label { font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .03em; }
.sig:hover .sig-label { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sig-count { color: var(--ink-2); font-size: .85rem; white-space: nowrap; }
.sig > svg.i { width: 18px; height: 18px; color: var(--ink-3); transform: rotate(90deg); transition: transform 220ms var(--ease-out); }
.sig:hover > svg.i { transform: rotate(90deg) translateX(3px); }
.board-data { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; padding: 12px 14px 13px; }
.board-data div { min-width: 0; }
.board-data dt { color: var(--ink-3); font: 600 .78rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .07em; }
.board-data dd { margin: 2px 0 0; font-weight: 700; font-size: 1.02rem; }
.board-data dd a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; }
.board-data dd a svg.i { width: 15px; height: 15px; color: var(--ink-3); transform: rotate(90deg); }
.board-data dd a:hover { text-decoration: underline; }

/* Respuesta directa: la frase clave lleva una marca de rotulador amarillo */
.answer { margin: 0 0 22px; }
.answer p { margin: 0; font-size: clamp(1.12rem, 1.05rem + .3vw, 1.24rem); line-height: 1.55; color: var(--ink); }
.answer strong { text-decoration: underline; text-decoration-color: var(--highlight); text-decoration-thickness: .5em; text-underline-offset: -.32em; text-decoration-skip-ink: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.alert-now { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0 0 24px; padding: 14px 16px; background: var(--red-soft); border: 1px solid color-mix(in srgb, var(--red-fill) 30%, transparent); border-radius: var(--r); }
.alert-now .flag { width: 32px; height: 32px; margin-top: 1px; }
.alert-now p { margin: 0; font-size: .98rem; line-height: 1.55; }
.alert-now strong { color: var(--red); }

.guide-figure { margin: 0 0 26px; }
.guide-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); background: var(--wall); }
.photo-credit { margin-top: 8px; color: var(--ink-3); font-size: .78rem; }
.photo-credit a { color: inherit; }

/* Índice */
.toc-title { margin: 0 0 8px; font: 700 .82rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc .flag { width: 20px; height: 20px; }
.toc-inline { margin: 0 0 30px; padding: 14px 16px 10px; background: var(--board); border: 1px solid var(--line); border-radius: var(--r); }
.toc-inline li + li { border-top: 1px solid var(--line); }
.toc-inline a { padding: 9px 0; font-weight: 700; }
.guide-rail { display: none; }
@media (min-width: 1180px) {
  .guide-rail { display: block; }
  .toc-inline { display: none; }
}
.rail-sticky { position: sticky; top: 92px; display: grid; gap: 20px; }
.toc-rail li { position: relative; }
.toc-rail a { padding: 7px 0 7px 18px; font-size: .94rem; }
.toc-rail a::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; background: var(--line-strong); transition: background-color 160ms ease, transform 200ms var(--ease-out); }
.toc-rail a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.toc-rail a[aria-current="true"]::before { background: var(--ink); transform: scale(1.25); }
.rail-cta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; background: var(--board); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-2); text-decoration: none; font-size: .9rem; line-height: 1.45; transition: border-color 160ms ease; }
.rail-cta:hover { border-color: var(--ink); }
.rail-cta strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.12rem; margin-bottom: 2px; }
.rail-cta .plate { width: 2.25rem; height: 2.25rem; }

/* Texto de las guías */
.prose { font-size: 1.0625rem; }
@media (min-width: 760px) { .prose { font-size: 1.1rem; } }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.1em 0 .55em; scroll-margin-top: 88px; }
.prose h3 { margin: 1.6em 0 .4em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.prose ul { list-style: square; }
.prose li { margin: .4em 0; padding-left: .1em; }
.prose ul li::marker { color: var(--ink-3); }
.prose ol li::marker { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.prose table { display: block; overflow-x: auto; width: 100%; margin: 1.3em 0 1.5em; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--board); font-size: .95rem; line-height: 1.45; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--sign); color: var(--sign-ink); font: 600 .84rem/1.25 var(--font-head); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; border-bottom: 0; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 700; }
.prose td.n { white-space: nowrap; }
.prose blockquote { margin: 1.3em 0; padding: 16px 18px; background: var(--wall); border-radius: var(--r); }
.prose blockquote p:last-child { margin: 0; }
.prose .nota { margin: -.6em 0 1.5em; color: var(--ink-2); font-size: .9rem; line-height: 1.5; }
.prose a { overflow-wrap: anywhere; }
/* Listas de "cuándo ir al veterinario" con su bandera (las crea build.py) */
.prose .signal { margin: 1.3em 0 1.5em; padding: 14px 16px 6px; background: var(--board); border: 1px solid var(--line); border-radius: var(--r); scroll-margin-top: 92px; }
.prose .signal-now { background: var(--red-soft); border-color: color-mix(in srgb, var(--red-fill) 30%, transparent); }
.prose .signal-soon { background: var(--yellow-soft); border-color: color-mix(in srgb, var(--yellow-fill) 50%, transparent); }
.prose .signal-title { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0 0 .5em; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; line-height: 1.22; text-transform: uppercase; letter-spacing: .03em; }
.prose .signal-title .flag { width: 40px; height: 40px; }
.prose .signal ul { margin-bottom: .7em; }
.prose .signal-now li::marker { color: var(--red-fill); }
.prose .signal-soon li::marker { color: var(--yellow-ink); }
.prose .signal-head { display: flex; align-items: center; gap: 12px; }
.prose .signal-head .flag { width: 34px; height: 34px; }
/* Fuentes */
.prose h2:is(#fuentes, #sources) { font-size: 1.36rem; margin-top: 2.4em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.prose h2:is(#fuentes, #sources) + ul { list-style: none; padding: 0; font-size: .92rem; color: var(--ink-2); }
.prose h2:is(#fuentes, #sources) + ul li { position: relative; padding-left: 22px; }
.prose h2:is(#fuentes, #sources) + ul li::before { content: ""; position: absolute; left: 0; top: .32em; width: 14px; height: 14px; background: var(--ink-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M204,64V168a12,12,0,0,1-24,0V93L72.49,200.49a12,12,0,0,1-17-17L163,76H88a12,12,0,0,1,0-24H192A12,12,0,0,1,204,64Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M204,64V168a12,12,0,0,1-24,0V93L72.49,200.49a12,12,0,0,1-17-17L163,76H88a12,12,0,0,1,0-24H192A12,12,0,0,1,204,64Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.prose h2:is(#fuentes, #sources) + ul a { color: var(--ink-2); }

/* Precio de la guía */
.cost-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; margin: 34px 0; padding: 22px 24px; background: var(--sign); color: var(--sign-ink); border-radius: var(--r); }
.cost-label { margin: 0; color: var(--sign-ink-2); font: 700 1.05rem/1.3 var(--font-head); }
.cost-range { margin: 4px 0 0; font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.4rem, 1.15rem + .9vw, 1.85rem); line-height: 1.2; }
.cost-note { margin: 6px 0 0; color: var(--sign-ink-2); font-size: .92rem; line-height: 1.45; max-width: 32em; }
.cost-box a { color: var(--sign-ink); font-weight: 700; }
.cost-link { display: inline-flex; align-items: center; gap: 6px; }
.cost-link svg.i { width: 18px; height: 18px; transition: transform 220ms var(--ease-out); }
.cost-link:hover svg.i { transform: translateX(3px); }
.cost-box :focus-visible { outline-color: var(--yellow-fill); }
.disclaimer { margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .88rem; line-height: 1.5; }
.related { padding: 56px 0 24px; }

/* Huecos de anuncio (solo si están configurados): reservan su altura para que la página no salte */
.ad-slot { margin: 30px 0; min-height: 300px; }
.ad-label { display: block; margin-bottom: 6px; color: var(--ink-3); font: 600 .72rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Calculadoras ---------- */
.calc { margin: 8px 0 34px; padding: 20px; background: var(--board); border: 1px solid var(--line-strong); border-radius: var(--r); }
.calc-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.calc label, .calc legend { display: block; margin-bottom: 6px; font-weight: 700; font-size: .96rem; }
.calc fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.calc input[type="number"], .calc input[type="text"], .calc input[type="search"], .calc select { width: 100%; min-height: 48px; padding: 10px 13px; border: 1.5px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--board); color: var(--ink); font: 400 1rem/1.3 var(--font-body); transition: border-color 160ms ease, box-shadow 160ms ease; }
.calc input:focus, .calc select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.calc .hint { display: block; margin-top: 4px; font-weight: 400; color: var(--ink-3); font-size: .86rem; }
.calc .checks { display: grid; gap: 10px; }
.calc .checks label { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-weight: 600; }
.calc .checks input { width: 20px; height: 20px; margin-top: .2em; accent-color: var(--ink); flex: none; }
.calc-out { margin-top: 18px; padding: 16px 18px; background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green-fill) 34%, transparent); border-radius: var(--r); }
.calc-out:empty { display: none; }
.calc-big { margin: 0 0 6px; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); line-height: 1.1; color: var(--green); }
.calc-out p { margin: 0 0 .5em; }
.calc-out p:last-child { margin-bottom: 0; }
.prose .calc-out table, .calc-out table { display: table; width: 100%; margin: 10px 0 4px; border: 0; border-radius: 0; background: transparent; border-collapse: collapse; font-size: .95rem; }
.prose .calc-out td, .calc-out td { padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--green-fill) 22%, transparent); font-weight: 400; vertical-align: top; }
.prose .calc-out td:last-child, .calc-out td:last-child { padding-left: 14px; text-align: right; white-space: nowrap; font-family: var(--font-mono); font-weight: 700; }
.calc .food-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.calc .food-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--board); }
.food-list .food-name { font-weight: 700; }
.food-list .food-note { grid-column: 2; color: var(--ink-2); font-size: .95rem; }
.tag { display: inline-block; grid-row: span 2; align-self: center; padding: 5px 9px; border-radius: 3px; font: 700 .8rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.tag-si { background: var(--green-fill); color: #fff; }
.tag-poco { background: var(--yellow-fill); color: var(--mark-dark); }
.tag-no { background: var(--red-fill); color: #fff; }

/* ---------- Páginas legales y 404 ---------- */
.page-wrap { max-width: 800px; padding-bottom: 72px; }
.page-head { margin-bottom: 18px; }
.pendiente { background: #fff3a8; color: #6b5200; padding: 0 4px; border-radius: 3px; font-weight: 700; }
.not-found { max-width: 760px; padding-block: 56px 80px; }
.not-found h1 { margin-top: 18px; }
.not-found .lead { margin-bottom: 24px; }
.directory-compact { margin-bottom: 32px; }
.directory-compact .dir-item { padding: 10px 6px; }
.directory-compact .plate { width: 2.25rem; height: 2.25rem; }
.directory-compact .dir-name { font-size: 1.12rem; }

/* ---------- Pie ---------- */
.site-footer { background: var(--sign); color: var(--sign-ink-2); padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--sign-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--yellow-fill); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.brand-footer { color: var(--sign-ink); margin-bottom: 14px; }
.footer-brand p { max-width: 34em; margin-bottom: .7em; }
.footer-note { font-size: .9rem; }
.footer-lang { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-lang svg.i { width: 18px; height: 18px; }
.footer-title { margin: 0 0 12px; color: var(--sign-ink); font: 700 .86rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 7px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--sign-line); font-size: .86rem; }

/* Aviso de idioma: flota abajo y se puede cerrar */
.lang-banner { position: fixed; z-index: var(--z-banner); left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; background: var(--sign); color: var(--sign-ink); border-radius: var(--r); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .45); font-size: .93rem; line-height: 1.45; }
.lang-banner p { margin: 0; flex: 1; }
.lang-banner a { color: #fff; font-weight: 700; }
.lang-banner button { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.lang-banner button svg.i { width: 18px; height: 18px; }
@media (min-width: 640px) { .lang-banner { left: auto; max-width: 440px; } }

/* ---------- Movimiento reducido e impresión ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0ms !important; }
  .read-progress { animation-duration: auto !important; } /* va ligada al scroll, no al tiempo */
}
@media print {
  .masthead, .site-footer, .guide-rail, .toc-inline, .ad-slot, .lang-banner, .read-progress, .related { display: none !important; }
  body { background: #fff; color: #000; }
}
