/* Páginas estáticas de Ondo (fichas, listas, catálogo, metodología y 404): una sola hoja, ligera,
   con los mismos colores y la misma letra que el buscador (style.css). */
@font-face {
  font-family: Inter;
  src: url('../fonts/Inter-latin-400-700.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #f5f5f4; --surface: #fff; --ink: #292524; --ink-deep: #1c1917; --muted: #6b645f; --muted-strong: #57534e;
  --line: #e7e5e4; --tile: #f5f5f4; --tile-hover: #e7e5e4; --yes: oklch(.5 .13 150); --no: oklch(.52 .17 28);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 Inter, Arial, sans-serif; }
a { color: var(--ink-deep); text-underline-offset: 2px; }
a:hover { color: var(--muted-strong); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--muted); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
main { padding-bottom: 32px; }
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.8px; margin: 8px 0 6px; }
h2 { font-size: 21px; line-height: 1.25; letter-spacing: -.3px; margin: 40px 0 12px; }
h2 small { font-size: 14px; font-weight: 500; color: var(--muted); }
h3 { font-size: 16px; margin: 24px 0 8px; }
.note, .meta, .subtitle, .affiliate-note { color: var(--muted); font-size: 13px; }
.subtitle { font-size: 16px; margin: 0; }
.intro { max-width: 760px; font-size: 16px; }

/* Barra de navegación: la misma de la portada (category-nav.css), aquí en el flujo de la página. */
.category-nav { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: relative; }
.category-nav .nav-menu { display: contents; }
.category-nav .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.category-nav .brand-mark { width: 38px; height: 30px; }
.category-nav .brand-word { font-weight: 700; font-size: 20px; letter-spacing: -.4px; }
.category-nav .cats { position: absolute; left: 50%; transform: translateX(-50%); display: flex; }
.category-nav .cats a { display: grid; place-items: center; width: 34px; height: 44px; color: var(--muted); }
.category-nav .cats a:hover { color: var(--ink); }
.category-nav .cats svg { width: 23px; height: 23px; }
.category-nav .cat-label { display: none; }
.category-nav .affiliates { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.category-nav .affiliates:hover { color: var(--ink); }
.category-nav .nav-burger { display: none; }
@media (max-width: 700px) {
  .category-nav { height: 60px; padding: 0 12px; }
  .category-nav .nav-burger {
    display: grid; place-items: center; width: 40px; height: 40px; margin: 0 -6px 0 auto; padding: 0;
    color: var(--ink); background: none; border: 0; border-radius: 10px; cursor: pointer;
  }
  .category-nav .nav-burger svg { width: 24px; height: 24px; }
  .category-nav .nav-burger .i-close, .category-nav.is-open .nav-burger .i-open { display: none; }
  .category-nav.is-open .nav-burger .i-close { display: block; }
  .category-nav .nav-menu { display: none; }
  .category-nav.is-open::before { content: ""; position: fixed; inset: 0; z-index: 20; background: oklch(0 0 0 / .12); }
  .category-nav.is-open .nav-burger { z-index: 31; position: relative; }
  .category-nav.is-open .nav-menu {
    position: fixed; z-index: 30; top: 60px; right: 12px; width: min(260px, calc(100vw - 24px));
    display: flex; flex-direction: column; padding: 8px; background: var(--surface); border-radius: 14px;
    box-shadow: 0 0 0 1px var(--line), 0 12px 32px oklch(0 0 0 / .14);
  }
  .category-nav .nav-menu .brand { padding: 8px 10px 12px; }
  .category-nav .nav-menu .cats {
    position: static; transform: none; flex-direction: column; padding: 6px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  }
  .category-nav .nav-menu .cats a {
    width: auto; height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 10px; border-radius: 10px;
    color: var(--muted-strong); text-decoration: none;
  }
  .category-nav .cat-label { display: inline; font-size: 15px; font-weight: 500; }
  .category-nav .nav-menu .affiliates { display: flex; align-items: center; height: 44px; margin-top: 6px; padding: 0 10px; font-size: 15px; }
}

/* Miga de pan */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 4px 0 12px; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }

/* Ficha */
.model-top { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 20px; }
.model-photo { margin: 0; padding: 24px; background: var(--surface); border-radius: 16px; text-align: center; }
.model-photo img { width: auto; max-height: 300px; object-fit: contain; }
.model-photo figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.notes { font-weight: 600; }
.buy-box { margin-top: 20px; padding: 18px 20px; background: var(--surface); border-radius: 14px; }
.buy-box h2 { margin: 0 0 8px; font-size: 17px; }
.price strong { font-size: 20px; }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.buy {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 10px;
  background: var(--tile); color: var(--ink-deep); font-size: 14px; font-weight: 600; text-decoration: none;
}
.buy:hover { background: var(--tile-hover); color: var(--ink-deep); }
.buy.amazon { background: var(--ink-deep); color: #fff; }
.buy.amazon:hover { background: var(--muted-strong); color: #fff; }
.affiliate-note { margin: 10px 0 0; line-height: 1.45; }

/* Tablas: se desplazan solas en pantallas estrechas, la página no. */
.table-wrap { overflow-x: auto; margin: 0 0 8px; background: var(--surface); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child > * { border-bottom: 0; }
thead th { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
tbody th { font-weight: 600; }
.specs th { width: 42%; color: var(--muted-strong); font-weight: 500; }
.works td.yes { color: var(--yes); white-space: nowrap; font-weight: 600; }
.works td.no { color: var(--no); white-space: nowrap; font-weight: 600; }
.models td, .models th { white-space: nowrap; }
.models tbody th { white-space: normal; min-width: 180px; }

/* Tarjetas: alternativas, otros modelos de la marca y destacados */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; padding: 14px; background: var(--surface); border-radius: 14px; }
.card-label { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.card-link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink-deep); }
.card-link img { width: 100%; height: 120px; object-fit: contain; }
.card-name { font-weight: 600; line-height: 1.3; }
.card-facts { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.card-price { margin: 6px 0 0; font-weight: 600; }
.card-price small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.card .buy { margin-top: auto; align-self: flex-start; min-height: 34px; padding: 6px 12px; font-size: 13px; }
.card .card-price + .buy, .card .card-facts + .buy { margin-top: 10px; }

/* Listas */
.facts { padding-left: 20px; }
.facts li { margin: 4px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 14px; }
.chips a:hover { background: var(--tile-hover); }
.cta a {
  display: inline-block; margin-top: 16px; padding: 12px 18px; border-radius: 12px;
  background: var(--ink-deep); color: #fff; font-weight: 600; text-decoration: none;
}
.cta a:hover { background: var(--muted-strong); color: #fff; }
.prose .cta a { margin-right: 8px; }
.faq h3 { margin-top: 18px; }
.prose { max-width: 760px; }
.letters ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0; padding: 0; list-style: none; }
.letters a { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 8px; background: var(--surface); text-decoration: none; font-weight: 600; }
.catalog section { scroll-margin-top: 12px; }

/* Pie común */
.site-footer { margin-top: 40px; padding: 24px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer a { color: var(--muted); margin-right: 14px; line-height: 2; }
.footer-brand { margin: 0 0 6px; font-weight: 600; color: var(--muted-strong); }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 27px; }
  .model-top { grid-template-columns: 1fr; gap: 16px; }
  .model-photo img { max-height: 220px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs th { width: 48%; }
}
