/* Tipografías alojadas en el propio sitio (Figtree y Fraunces, licencia SIL OFL 1.1). Descargadas de Google Fonts el 2026-10-20: no dependen de ningún servidor externo. */
/* Figtree latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Figtree latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/figtree-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Figtree latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Figtree latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/figtree-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Figtree latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Figtree latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/figtree-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fraunces vietnamese */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/fraunces-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Fraunces latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fraunces vietnamese */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/fraunces-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Fraunces latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================
   MascotasDog - sistema de diseño
   Marca: verde azulado #0f4a46 + naranja #e35b2b (del logo y del sitio actual)
   Tipografía: Fraunces (títulos) + Figtree (texto)
   ========================================================== */

:root {
  /* color */
  --teal-950: #0a2f2c;
  --teal-900: #0f4a46;          /* marca */
  --teal-700: #176760;
  --teal-100: #d9ece8;
  --orange: #e35b2b;            /* marca: fondos y botones */
  --orange-ink: #b3421a;        /* texto naranja sobre claro (contraste 5:1) */
  --peach: #fde7dc;             /* marca: acento suave */
  --bg: #f5f8f7;
  --surface: #ffffff;
  --ink: #11302d;
  --muted: #4a5f5c;
  --line: #d6e2df;

  /* tipografía */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* espacio y forma */
  --r-sm: 8px;
  --r-md: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  /* capas */
  --z-sticky: 20;
  --z-menu: 30;
  --z-toast: 40;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-900); text-underline-offset: 3px; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; text-wrap: pretty; max-width: 68ch; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; color: var(--teal-950); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; }
ul { padding-left: 1.2em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 99; font-weight: 700; }
.skip:focus { left: 8px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: var(--r-md); border: 2px solid transparent;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .18s ease-out, color .18s ease-out, border-color .18s ease-out, transform .18s ease-out;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #c94a1d; color: #fff; }
.btn-ghost { border-color: var(--teal-900); color: var(--teal-900); background: transparent; }
.btn-ghost:hover { background: var(--teal-900); color: #fff; }

/* ---------- cabecera ---------- */
.site-header { background: var(--teal-900); position: sticky; top: 0; z-index: var(--z-sticky); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 700 1.4rem/1 var(--font-display); letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand img { width: 44px; height: 44px; }
.brand span span { color: var(--orange); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: #e8f3f1; text-decoration: none; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }
.nav .btn { margin-left: 8px; min-height: 42px; padding: 0 1.1em; color: #fff; }
.nav .btn:hover { background: #c94a1d; }
.menu-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.5); color: #fff; width: 48px; height: 48px; border-radius: var(--r-sm); cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 820px) {
  .menu-toggle { display: grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--teal-900); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; border-top: 1px solid rgba(255,255,255,.15); z-index: var(--z-menu); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- portada: cabecera con vídeo a pantalla completa ---------- */
.hc { position: relative; min-height: clamp(560px, 84vh, 1000px); display: flex; align-items: center; overflow: hidden; background: var(--teal-950); color: #fff; }
.hc-media { position: absolute; inset: 0; background: center / cover no-repeat url("../video/bulldog-hero-poster.jpg"); }
.hc-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; transform-origin: left center; transform: scale(1.12); transition: opacity .6s ease-out; }
.hc-media.fade video, .breed-media.fade video { opacity: 0; }
.hc-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,47,44,.9) 0%, rgba(10,47,44,.66) 38%, rgba(10,47,44,.12) 68%, rgba(10,47,44,0) 100%); }
.hc-content { position: relative; padding-block: 72px; }
.hc h1 { color: #fff; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 11ch; }
.hc .lead { font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.5; color: rgba(255,255,255,.88); margin: 24px 0 36px; max-width: 30ch; }
.hc .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.btn-pill { border-radius: 999px; min-height: 52px; padding: 0 1.8em; font-size: 1.05rem; }
.link-arrow { color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; padding: 12px 0; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.link-arrow::after { content: "\203A"; font-size: 1.5rem; line-height: 1; display: inline-block; transform: translateY(-1px); transition: transform .18s ease-out; }
.link-arrow:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.link-arrow:hover::after { transform: translateX(3px); }
.vid-toggle { position: absolute; right: 20px; bottom: 20px; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(10, 47, 44, .72); color: #fff; cursor: pointer; transition: background-color .18s ease-out; }
.vid-toggle:hover { background: var(--orange); }
.vid-toggle svg { width: 22px; height: 22px; }
.vid-toggle .i-play { display: none; }
.vid-toggle[aria-pressed="true"] .i-play { display: block; }
.vid-toggle[aria-pressed="true"] .i-pause { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hc h1, .hc .lead, .hc .actions { animation: rise .8s cubic-bezier(.22,.7,.2,1) both; }
.hc .lead { animation-delay: .12s; }
.hc .actions { animation-delay: .24s; }
@media (max-width: 820px) {
  .hc { min-height: 780px; align-items: flex-start; }
  .hc-media video { transform: none; object-position: 74% 60%; }
  .hc-shade { background: linear-gradient(180deg, rgba(10,47,44,.92) 0%, rgba(10,47,44,.72) 42%, rgba(10,47,44,.05) 78%, rgba(10,47,44,0) 100%); }
  .hc-content { padding-block: 44px; }
  .hc h1 { max-width: 12ch; }
}

/* móvil o tableta en horizontal: poca altura, el texto va a la izquierda como en escritorio */
@media (max-height: 560px) and (orientation: landscape) {
  .hc { min-height: 0; align-items: center; }
  .hc-shade { background: linear-gradient(90deg, rgba(10,47,44,.9) 0%, rgba(10,47,44,.66) 48%, rgba(10,47,44,.1) 82%, rgba(10,47,44,0) 100%); }
  .hc-content { padding-block: 36px; }
  .hc h1 { font-size: clamp(2rem, 11vh, 3.2rem); max-width: 14ch; }
  .hc .lead { margin: 14px 0 20px; font-size: 1rem; max-width: 34ch; }
  .hc-media video { transform: none; object-position: 64% 55%; }
}

/* ---------- secciones ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-head { margin-bottom: clamp(24px, 4vw, 44px); }
.section-head p { color: var(--muted); margin: 14px 0 0; }
.band { background: var(--teal-900); color: #e8f3f1; }
.band h2, .band h3 { color: #fff; }
.band a { color: #fff; }

/* razas en portada: una grande y una lista */
.breeds-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.feature-main { display: grid; background: var(--peach); border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--ink); }
.feature-main:hover { color: var(--ink); }
.feature-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease-out; }
.feature-main:hover img { transform: scale(1.03); }
.feature-main .txt { padding: 4px 28px 28px; }
.feature-main h3 { font-size: 1.9rem; margin-bottom: 8px; }
.feature-main p { margin: 0 0 14px; }
.more { font-weight: 700; color: var(--teal-900); }
.breed-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; align-content: start; }
.breed-rows li { border-top: 1px solid var(--line); }
.breed-rows li:last-child { border-bottom: 1px solid var(--line); }
.breed-rows a { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center; padding: 16px 4px; text-decoration: none; color: var(--ink); transition: background-color .15s ease-out; }
.breed-rows a:hover { background: var(--surface); color: var(--ink); }
.breed-rows img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--r-sm); }
.breed-rows h3 { font-size: 1.3rem; margin-bottom: 2px; }
.breed-rows p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.45; }
.breed-rows .arrow { color: var(--teal-900); font-size: 1.4rem; }
@media (max-width: 820px) {
  .breeds-feature { grid-template-columns: 1fr; }
  .breed-rows a { grid-template-columns: 72px 1fr auto; }
  .breed-rows img { width: 72px; height: 72px; }
}

/* peso: barras de rango */
.weights { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.weights li { display: grid; grid-template-columns: 160px 1fr 92px; gap: 16px; align-items: center; }
.weights .name { font-weight: 700; }
.track { position: relative; height: 14px; background: var(--teal-100); border-radius: 999px; }
.range { position: absolute; top: 0; bottom: 0; background: var(--orange); border-radius: 999px; transform-origin: left; }
.weights .kg { font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); font-weight: 600; }
.axis { display: grid; grid-template-columns: 160px 1fr 92px; gap: 16px; margin-top: 8px; color: var(--muted); font-size: .9rem; }
.axis .ticks { display: flex; justify-content: space-between; }
@media (max-width: 640px) {
  .weights li { grid-template-columns: 1fr auto; row-gap: 6px; }
  .weights .track { grid-column: 1 / -1; order: 3; }
  .axis { display: none; }
}
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* fuentes de las fichas en portada */
.source-strip { background: #eaf3f0; border-block: 1px solid var(--line); padding-block: 26px; }
.source-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 24px; }
.source-strip-copy { flex: 0 0 300px; }
.source-strip h2 { font: 700 1.15rem/1.3 var(--font-body); letter-spacing: 0; }
.source-strip p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.source-links { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 14px; list-style: none; padding: 0; margin: 0; }
.source-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal-900); font-size: .82rem; font-weight: 700; line-height: 1.3; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.source-links a:hover { color: var(--orange-ink); }
@media (max-width: 940px) {
  .source-strip { padding-block: 24px; }
  .source-strip-inner { display: grid; gap: 10px; }
  .source-strip-copy { max-width: 60ch; }
  .source-links { justify-content: flex-start; gap: 0 20px; }
}
@media (max-width: 560px) {
  .source-strip { padding-block: 20px; }
  .source-links { gap: 0 16px; }
  .source-links a { font-size: .84rem; }
}

/* ---------- razas en portada: carrusel, atajos y buscador ---------- */
.rail-wrap { position: relative; }
.rail { list-style: none; margin: 0; padding: 4px 0 18px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--teal-700) transparent; -webkit-overflow-scrolling: touch; }
.rail li { flex: 0 0 auto; scroll-snap-align: start; }
.rail-card { display: grid; width: clamp(180px, 21vw, 250px); text-decoration: none; color: var(--ink); gap: 12px; }
.rail-card:hover { color: var(--ink); }
.rc-img { display: block; aspect-ratio: 2 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--peach); }
.rc-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .35s ease-out; }
.rail-card:hover .rc-img img { transform: scale(1.04); }
.rc-txt { display: grid; gap: 2px; }
.rc-txt strong { font: 700 1.25rem/1.15 var(--font-display); color: var(--teal-950); }
.rc-txt span { color: var(--muted); font-size: .95rem; }
.rail-all { background: var(--teal-900); color: #fff; border-radius: var(--r-md); aspect-ratio: 2 / 3; align-content: end; padding: 24px; position: relative; gap: 0; }
.rail-all:hover { color: #fff; background: var(--teal-700); }
.rail-all .rc-txt strong { color: #fff; font-size: 1.6rem; }
.rail-all .rc-txt span { color: #cfe5e1; margin-top: 6px; }
.rc-arrow { position: absolute; top: 18px; right: 22px; font-size: 2.2rem; line-height: 1; }
.rail-btn { position: absolute; top: 38%; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface); color: var(--teal-900); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(10, 47, 44, .22); transition: background-color .15s ease-out, color .15s ease-out; }
.rail-btn:hover { background: var(--teal-900); color: #fff; }
.rail-btn.prev { left: -8px; } .rail-btn.next { right: -8px; }
.rail-btn[hidden] { display: none; }
@media (max-width: 640px) {
  .rail { gap: 14px; }
  .rail-card { width: 40vw; }
  .rail-btn { width: 40px; height: 40px; top: 24%; font-size: 1.5rem; box-shadow: 0 2px 8px rgba(10,47,44,.35); }
  .rail-btn.prev { left: 4px; } .rail-btn.next { right: 4px; }
}

.shortcuts { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(150px, auto); gap: 16px; }
.shortcut { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px 24px; border-radius: var(--r-md); text-decoration: none; transition: transform .18s ease-out; }
.shortcut:hover { transform: translateY(-3px); }
.shortcut strong { font: 700 1.35rem/1.15 var(--font-display); }
.shortcut span { font-size: .98rem; line-height: 1.4; }
.shortcut em { font-style: normal; font-weight: 700; font-size: .95rem; margin-top: 8px; }
.sc-a { grid-column: span 3; grid-row: span 2; background: var(--teal-900); color: #fff; }
.sc-a:hover { color: #fff; }
.sc-a strong { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.sc-a span { color: #d4e8e4; }
.sc-b { grid-column: span 3; background: var(--peach); color: var(--teal-950); }
.sc-c { grid-column: span 3; background: var(--teal-100); color: var(--teal-950); }
.sc-d { grid-column: span 3; background: var(--surface); color: var(--teal-950); border: 2px solid var(--line); }
.sc-e { grid-column: span 3; background: var(--orange); color: #fff; }
.sc-e:hover { color: #fff; }
.sc-b:hover, .sc-c:hover, .sc-d:hover { color: var(--teal-950); }
@media (max-width: 820px) {
  .shortcuts { grid-template-columns: 1fr 1fr; }
  .sc-a { grid-column: span 2; grid-row: auto; min-height: 190px; }
  .sc-b, .sc-c, .sc-d { grid-column: span 1; }
  .sc-e { grid-column: span 2; }
}
@media (max-width: 460px) { .shortcuts { grid-template-columns: 1fr; } .sc-a, .sc-b, .sc-c, .sc-d, .sc-e { grid-column: auto; } }

.search-big label { display: block; font: 700 1.25rem var(--font-display); color: var(--teal-950); margin-bottom: 12px; }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; max-width: 640px; }
.search-row input { flex: 1 1 260px; min-height: 52px; padding: 0 18px; border-radius: var(--r-md); border: 2px solid var(--line); font: 1rem var(--font-body); color: var(--ink); background: #fff; }
.search-row input::placeholder { color: #566a67; }
.search-row input:focus-visible { border-color: var(--teal-900); }

/* ---------- siguientes pasos ---------- */
.next-step { display: grid; gap: 24px; }
.next-step p { color: var(--muted); }
.next-step-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.next-step-actions .btn { min-height: 56px; padding: 12px 16px; text-align: center; line-height: 1.25; }
.next-step-actions p { grid-column: 1 / -1; font-size: .9rem; margin-top: 2px; }
@media (max-width: 700px) { .next-step-actions { grid-template-columns: 1fr; } }

/* ---------- pie ---------- */
.site-footer { background: var(--teal-950); color: #cfe5e1; padding: 56px 0 28px; font-size: .98rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font: 700 1rem var(--font-body); color: #fff; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid p { color: #cfe5e1; max-width: 38ch; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.footer-social-item { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; color: #fff; text-decoration: none; }
.footer-social-item svg { width: 21px; height: 21px; flex: none; }
a.footer-social-item:hover, a.footer-social-item:focus-visible { color: #fff; border-color: #fff; background: rgba(255,255,255,.12); }
.footer-social-pending { color: #a8c7c2; border-style: dashed; }
.legal-line { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .9rem; color: #b7d3ce; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- migas y títulos de página ---------- */
.crumbs { font-size: .92rem; color: var(--muted); padding: 22px 0 0; }
.crumbs a { color: var(--muted); }
.page-title { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); }
.page-title p { color: var(--muted); font-size: 1.15rem; margin-top: 14px; }

/* ---------- listado de razas ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--teal-900); background: transparent; color: var(--teal-900); font: 700 .98rem var(--font-body); cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out; }
.chip:hover { background: var(--teal-100); }
.chip[aria-pressed="true"] { background: var(--teal-900); color: #fff; }
.breed-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 28px; }
.breed-tile { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); background: var(--surface); border-radius: var(--r-md); overflow: hidden; height: 100%; transition: transform .18s ease-out; }
.breed-tile:hover { transform: translateY(-3px); color: var(--ink); }
.breed-tile img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: top; }
.breed-tile .txt { padding: 18px 20px 22px; }
.breed-tile h2 { font-size: 1.5rem; margin-bottom: 6px; }
.breed-tile p { margin: 0 0 12px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .92rem; color: var(--muted); font-weight: 600; margin: 0; padding: 0; list-style: none; }
.facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-right: 7px; vertical-align: middle; }
.empty-note { color: var(--muted); margin-top: 20px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 36px 0 0; }
.page-btn { min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--teal-900); background: transparent; color: var(--teal-900); font: 700 .98rem var(--font-body); cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out; }
.page-btn:hover:not(:disabled) { background: var(--teal-100); }
.page-btn[aria-current="page"] { background: var(--teal-900); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: default; }
#list-count { text-align: center; }
.table-wrap { overflow-x: auto; border-radius: var(--r-md); background: var(--surface); }
table.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .98rem; }
.compare caption { text-align: left; padding: 18px 20px 6px; font: 700 1.4rem var(--font-display); color: var(--teal-950); }
.compare th, .compare td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { color: var(--muted); font-size: .9rem; font-weight: 700; }
.compare tbody th a { font-weight: 700; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }

/* ---------- ficha de raza ---------- */
.breed-hero { padding: clamp(20px, 4vw, 40px) 0 clamp(32px, 5vw, 56px); }
.breed-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.breed-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.breed-hero .lead { font-size: 1.2rem; color: var(--muted); margin: 18px 0 26px; }
.breed-media { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 5; background: var(--teal-950) center / cover no-repeat; }
.breed-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease-out; }
.breed-photo { background: var(--teal-950); border-radius: var(--r-md); overflow: hidden; }
.breed-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.quick { display: grid; grid-template-columns: repeat(4, auto); gap: 0; margin: 0; border-top: 2px solid var(--teal-900); }
.quick div { padding: 14px 16px 0 0; }
.quick dt { font-size: .85rem; color: var(--muted); font-weight: 600; }
.quick dd { margin: 2px 0 0; font: 700 1.25rem var(--font-display); color: var(--teal-950); }
@media (max-width: 820px) {
  .breed-hero .wrap { grid-template-columns: 1fr; }
  .breed-photo, .breed-media { order: -1; }
  .breed-media { width: 100%; max-width: 420px; justify-self: center; }
  .quick { grid-template-columns: repeat(2, 1fr); }
}
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: clamp(40px, 6vw, 72px); }
.bars { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 44px; gap: 14px; align-items: center; }
.bar-row .label { font-weight: 700; }
.bar { height: 12px; background: var(--teal-100); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--teal-900); border-radius: 999px; transform-origin: left; }
.bar-row .val { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; text-align: right; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.tags li { background: var(--peach); color: #5a2410; padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.deflist { margin: 22px 0 0; display: grid; gap: 0; }
.deflist div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.deflist div:last-child { border-bottom: 1px solid var(--line); }
.deflist dt { font-weight: 700; color: var(--teal-950); }
.deflist dd { margin: 0; }
@media (max-width: 520px) { .deflist div { grid-template-columns: 1fr; gap: 4px; } }
.fit { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 0; }
.fit li { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.fit li:last-child { border-bottom: 1px solid var(--line); }
.fit strong { color: var(--teal-950); }
.fit .score { display: block; font-size: .9rem; color: var(--orange-ink); font-weight: 700; }
@media (max-width: 640px) { .fit li { grid-template-columns: 1fr; gap: 4px; } }
.tips { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.tips h3 { font-size: 1.15rem; margin-bottom: 4px; }
.tips p { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .tips { grid-template-columns: 1fr; } }
.source-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.source-list li { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.source-list .meta { color: var(--muted); font-size: .92rem; }
.notice { margin-top: 28px; padding: 18px 20px; background: var(--teal-100); border-radius: var(--r-md); color: var(--teal-950); max-width: 68ch; }
.cta-end { background: var(--peach); border-radius: var(--r-md); padding: clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-end p { margin: 8px 0 0; color: #5a2410; }
.next-breeds { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- prueba de raza ---------- */
.quiz { max-width: 760px; }
.quiz-breed { margin-bottom: 28px; }
.quiz-breed label { display: block; font-weight: 700; margin-bottom: 8px; }
.quiz-breed select { width: 100%; min-height: 52px; padding: 10px 14px; border: 2px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: 600 1rem var(--font-body); }
.quiz-breed p { font-size: .9rem; color: var(--muted); margin: 8px 0 0; }
.q { border: 0; padding: 0; margin: 0 0 32px; }
.q legend { font: 700 1.35rem/1.25 var(--font-display); color: var(--teal-950); padding: 0; margin-bottom: 14px; }
.q .hint { color: var(--muted); font-size: .95rem; margin: -6px 0 12px; }
.options { display: grid; gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.opt label { display: block; min-height: 52px; padding: 14px 18px; border: 2px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-weight: 600; cursor: pointer; transition: border-color .15s ease-out, background-color .15s ease-out; }
.opt input:hover + label { border-color: var(--teal-700); }
.opt input:checked + label { border-color: var(--teal-900); background: var(--teal-100); }
.opt input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }
.results { margin-top: 12px; }
.result { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); align-items: center; }
.result img { width: 120px; height: 120px; object-fit: cover; object-position: top; border-radius: var(--r-md); }
.result h3 { font-size: 1.5rem; }
.pct { display: inline-block; margin-left: 10px; font: 700 1rem var(--font-body); color: var(--orange-ink); }
.result ul { margin: 8px 0 0; padding-left: 1.1em; color: var(--muted); }
.result.focused h3::after { content: "Tu raza elegida"; margin-left: 12px; font: 700 .8rem var(--font-body); background: var(--teal-900); color: #fff; padding: 4px 10px; border-radius: 999px; vertical-align: middle; }
.result.top h3::after { content: "Mejor coincidencia"; margin-left: 12px; font: 700 .8rem var(--font-body); background: var(--orange); color: #fff; padding: 4px 10px; border-radius: 999px; vertical-align: middle; }
@media (max-width: 560px) { .result { grid-template-columns: 1fr; gap: 12px; } .result img { width: 96px; height: 96px; } .result.top h3::after, .result.focused h3::after { display: block; margin: 8px 0 0; width: max-content; } }

/* ---------- páginas de texto (legales) ---------- */
.prose { max-width: 70ch; padding-bottom: 80px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose li { margin-bottom: 6px; }
.pending { background: #fff3cd; color: #5c4400; padding: 2px 6px; border-radius: 4px; font-weight: 700; }

/* ---------- movimiento discreto ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.in { opacity: 1; transform: none; }
.grow { transform: scaleX(0); transition: transform .7s cubic-bezier(.22,.7,.2,1); }
.in .grow, .grow.in { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .grow { transition: opacity .2s linear; transform: none; }
  .btn, .breed-tile, .feature-main img, .vid-toggle, .breed-media video, .shortcut, .rc-img img { transition: none; }
  .hc h1, .hc .lead, .hc .actions { animation: none; }
  .hc-media video { transition: none; }
}
.no-js .reveal, .no-js .grow { opacity: 1; transform: none; }

.fineprint-dark { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }

/* navegación entre razas */
.crumb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.breed-step { display: flex; gap: 8px; margin-top: 12px; }
.breed-step a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--teal-900); border-radius: 999px; color: var(--teal-900); font-weight: 600; font-size: .95rem; text-decoration: none; background: var(--surface); }
.breed-step a:hover { background: var(--teal-900); color: #fff; }
.step-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 18px; align-items: stretch; }
.step-card { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--teal-100); color: var(--teal-900); text-decoration: none; min-height: 72px; }
.step-card.next { justify-content: space-between; }
.step-all { grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 4px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--teal-900); color: var(--teal-900); font-weight: 700; text-align: center; text-decoration: none; background: var(--surface); }
.step-all:hover { background: var(--teal-900); color: #fff; }
.step-card small { display: block; color: var(--muted); font-size: .85rem; }
.step-card strong { font-family: "Fraunces", serif; font-size: 1.2rem; }
.step-card:hover { border-color: var(--orange); }
.all-link { margin: 16px 0 0; text-align: center; }
@media (max-width: 700px) { .step-cards { grid-template-columns: 1fr; } .step-all { grid-column: 1; } .breed-step { width: 100%; } .breed-step a { flex: 1; justify-content: center; } }

/* en la práctica */
.practica { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; margin: 18px 0 0; border-top: 2px solid var(--teal-900); }
.practica div { padding: 16px 18px 16px 0; border-bottom: 1px solid var(--teal-100); }
.practica dt { font-size: .85rem; color: var(--muted); font-weight: 600; }
.practica dd { margin: 4px 0 0; font-weight: 600; color: var(--teal-950); line-height: 1.35; }

/* herramientas */
.tool-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tool-link { position: relative; display: grid; gap: 6px; padding: 22px 56px 22px 22px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--teal-100); text-decoration: none; color: var(--ink); height: 100%; }
.tool-link strong { font-family: "Fraunces", serif; font-size: 1.3rem; color: var(--teal-900); }
.tool-link span { color: var(--muted); }
.tool-link .rc-arrow { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; color: var(--orange-ink); }
.tool-link:hover { border-color: var(--orange); }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; align-items: start; }
.tool-card { background: var(--surface); border: 1.5px solid var(--teal-100); border-radius: var(--r-md); padding: clamp(18px, 3vw, 28px); }
.tool-out { background: var(--peach); border-color: transparent; position: sticky; top: 96px; }
.tool-card .f { display: grid; gap: 6px; margin-bottom: 16px; border: 0; padding: 0; min-width: 0; }
.tool-card .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool-card label, .tool-card legend { font-weight: 600; color: var(--teal-950); }
.tool-card select, .tool-card input[type="number"] { width: 100%; min-height: 48px; padding: 0 14px; font: inherit; border: 1.5px solid #9db3af; border-radius: 12px; background: #fff; color: var(--ink); }
.tool-card select:focus, .tool-card input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.tool-card .unit { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.tool-card .unit legend { width: 100%; padding: 0; margin-bottom: 4px; }
.tool-card .unit label { font-weight: 400; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.tool-card .hint { margin: 0; font-size: .9rem; color: var(--muted); }
.tool-big { font: 700 clamp(1.5rem, 4vw, 2rem)/1.2 var(--font-display); color: var(--teal-950); margin: 0 0 12px; }
.tool-big strong { color: var(--orange-ink); }
.tool-sub { font-size: .92rem; color: #5a2410; }
.tool-empty { color: #5a2410; margin: 0; }
.tool-out p { margin: 0 0 10px; }
.tool-method { margin-top: 36px; max-width: 760px; }
.tool-method h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.tool-sources { padding-left: 20px; }
@media (max-width: 760px) { .tool-grid { grid-template-columns: 1fr; } .tool-out { position: static; scroll-margin-top: 90px; } }
.tool-card .btn { width: 100%; }

.bcs-steps { padding-left: 20px; display: grid; gap: 8px; }
.bcs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 18px 0 8px; }
.bcs-cards div { background: var(--surface); border: 1.5px solid var(--teal-100); border-radius: var(--r-md); padding: 16px 18px; }
.bcs-cards .ideal { background: var(--teal-100); border-color: var(--teal-700); }
.bcs-cards h3 { font-size: 1.05rem; margin: 0 0 6px; }
.bcs-cards p { margin: 0; font-size: .95rem; }
.tool-method { max-width: 860px; }
.tool-method h2 { margin-top: 28px; }

/* comparación rápida en móvil: una tarjeta por raza, sin desplazamiento lateral */
@media (max-width: 720px) {
  .table-wrap { overflow: visible; background: transparent; }
  table.compare, .compare tbody { display: block; min-width: 0; }
  .compare caption { display: block; padding: 0 0 12px; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px 8px; background: var(--surface); border: 1.5px solid var(--teal-100); border-radius: var(--r-md); padding: 16px; margin-bottom: 12px; }
  .compare tbody th { grid-column: 1 / -1; padding: 0; border: 0; font-size: 1.15rem; }
  .compare tbody th a { font-family: var(--font-display); color: var(--teal-900); }
  .compare td { padding: 0; border: 0; font-size: .95rem; grid-column: span 2; min-width: 0; }
  .compare td:nth-of-type(4), .compare td:nth-of-type(5) { grid-column: span 3; }
  .compare td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
  .compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
}

.compare-box > summary { cursor: pointer; list-style: none; font: 700 1.4rem var(--font-display); color: var(--teal-950); padding: 14px 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.compare-box > summary::-webkit-details-marker { display: none; }
.compare-box > summary::after { content: "+"; font: 600 1.6rem var(--font-body, inherit); color: var(--orange-ink); line-height: 1; }
.compare-box[open] > summary::after { content: "\2212"; }
.compare-box > summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* portada en móvil: el botón y el enlace de abajo ocupan el mismo ancho y quedan centrados */
@media (max-width: 560px) {
  .hc .actions { flex-direction: column; align-items: stretch; gap: 6px; }
  .hc .actions .btn { text-align: center; justify-content: center; }
  .hc .actions .link-arrow { justify-content: center; }
}

.toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--teal-900); border-radius: 999px; color: var(--teal-900); font-weight: 600; text-decoration: none; background: var(--surface); }
.toc a:hover { background: var(--teal-900); color: #fff; }
.prose [id] { scroll-margin-top: 90px; }
.compare tr[hidden] { display: none !important; }


/* aviso de cookies */
#cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 340px; margin: 0 auto 0 0; background: var(--teal-950); color: #fff; border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 30px rgba(10,47,44,.35); max-height: calc(100vh - 32px); overflow-y: auto; }
#cookie-banner .cb-title { margin: 0; font-size: 1rem; line-height: 1.3; font-family: inherit; color: #fff; }
#cookie-banner .cb-text, #cookie-banner .cb-note { margin: 0; font-size: .85rem; line-height: 1.4; }
#cookie-banner .cb-note { color: #cfe3df; font-size: .8rem; }
#cookie-banner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
#cookie-banner .cb-prefs { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 10px; }
#cookie-banner .cb-prefs[hidden], #cookie-banner [hidden] { display: none; }
#cookie-banner .cb-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
#cookie-banner .cb-row-t { display: flex; flex-direction: column; gap: 2px; font-size: .82rem; line-height: 1.3; }
#cookie-banner .cb-switch { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 40px; height: 23px; border-radius: 999px; background: rgba(255,255,255,.35); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
#cookie-banner .cb-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s; }
#cookie-banner .cb-switch:checked { background: var(--orange); }
#cookie-banner .cb-switch:checked::after { transform: translateX(17px); }
#cookie-banner .cb-switch:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
#cookie-banner .cb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#cookie-banner .cb-actions .btn { flex: 1 1 0; min-height: 40px; padding: 8px 12px; font-size: .88rem; }
#cookie-banner .cb-actions .cb-wide { flex: 1 1 100%; }
#cookie-banner .btn-ghost { background: transparent; border: 2px solid #fff; color: #fff; }
#cookie-banner .btn-ghost:hover { background: #fff; color: var(--teal-950); }
@media (max-width: 480px) { #cookie-banner { max-width: none; margin: 0; } }
@media (prefers-reduced-motion: reduce) { #cookie-banner .cb-switch, #cookie-banner .cb-switch::after { transition: none; } }
.cookie-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 24px; }
.site-footer .cookie-link { color: #b7d3ce; }
.prose .cookie-link { color: var(--teal-900); font-weight: 600; }
