/* Ofertómetro: etiqueta de anaquel + termómetro. Fondo claro (las fotos de producto son blancas), tinta azul,
   precios en letra condensada de rótulo y un solo elemento llamativo: la temperatura de cada oferta. */
:root {
  --page: #eef2f5; --paper: #ffffff; --ink: #16202a; --ink-2: #4a5866; --line: #d9e0e6; --hover: #f6f8fa;
  --cold: #2f6fde; --warm: #c99400; --hot: #ec6a12; --boil: #d7261e;
  --cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.5 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.note { color: var(--ink-2); font-size: .9rem; margin: 0; }
:focus-visible { outline: 3px solid var(--cold); outline-offset: 2px; }

/* Encabezado: blanco, buscador grande al centro de la atención y categorías debajo */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; gap: 20px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 1.6rem/1 var(--cond); color: var(--ink); }
.search { flex: 1 1 320px; display: flex; min-width: 0; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--paper); }
.search input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font: 500 1rem var(--body); color: var(--ink); background: transparent; }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(47, 111, 222, .25); }
.search button { border: 0; background: var(--ink); color: #fff; font: 600 .95rem var(--body); padding: 0 18px; cursor: pointer; }
.join { text-decoration: none; font: 600 .9rem var(--body); color: var(--cold); }
.cats { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding-block: 2px 0; }
.cats a { flex: none; text-decoration: none; font: 500 .92rem var(--body); color: var(--ink-2); padding: 8px 0 10px; border-bottom: 3px solid transparent; }
.cats a:hover { color: var(--ink); }
.cats a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Portada: qué es y cómo se lee, con un ejemplo real a la derecha */
.intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; padding-block: 36px 28px; align-items: start; }
.intro-sm { grid-template-columns: minmax(0, 1fr); padding-block: 28px 12px; }
.intro h1 { font: 700 clamp(2.2rem, 5vw, 3.3rem)/1 var(--cond); margin: 0 0 12px; text-wrap: balance; }
.intro-sm h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.lead { margin: 0; color: var(--ink-2); font-size: 1.06rem; max-width: 56ch; }
.steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; max-width: 56ch; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: baseline; }
.steps li::before { content: counter(s); font: 700 1.2rem/1 var(--cond); color: var(--paper); background: var(--ink); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.example { display: grid; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-decoration: none; position: relative; box-shadow: 0 1px 0 var(--line); }
.example-cap { font-weight: 600; font-size: .85rem; color: var(--cold); }
.example-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.example-head img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.example-title { font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.example-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.example-foot { font-size: .88rem; color: var(--ink-2); }

/* Precio estilo etiqueta de anaquel */
.tag { font: 700 1.55rem/1 var(--cond); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.tag-big { font-size: 2.6rem; }

/* La temperatura: el único elemento llamativo */
.temp { display: inline-grid; justify-items: center; align-content: center; min-width: 62px; padding: 6px 8px; border-radius: 8px; color: #fff; line-height: 1; }
.temp b { font: 700 1.45rem/1 var(--cond); }
.temp span { font-size: .72rem; font-weight: 600; margin-top: 2px; }
.temp-big { min-width: 86px; padding: 10px 12px; }
.temp-big b { font-size: 2.1rem; }
.temp.t-cold { background: var(--cold); } .temp.t-warm { background: var(--warm); } .temp.t-hot { background: var(--hot); } .temp.t-boil { background: var(--boil); }
.t-cold.verdict-label { color: var(--cold); } .t-warm.verdict-label { color: var(--warm); } .t-hot.verdict-label { color: var(--hot); } .t-boil.verdict-label { color: var(--boil); }

/* Barra de rango: de lo más bajo visto a lo más alto, rayita = normal, punto = hoy */
.range { display: grid; gap: 4px; width: 100%; max-width: 280px; }
.range-big { max-width: none; }
.range-track { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--boil), var(--hot) 35%, var(--line) 70%); }
.range-typ { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--ink-2); transform: translateX(-1px); }
.range-dot { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid var(--paper); transform: translate(-7px, -50%); box-shadow: 0 0 0 1px var(--ink); }
.range-big .range-track { height: 10px; border-radius: 5px; }
.range-big .range-dot { width: 18px; height: 18px; transform: translate(-9px, -50%); }
.range-labels { display: flex; justify-content: space-between; font: 600 1rem var(--cond); font-variant-numeric: tabular-nums; }
.range-labels small { display: block; font: 400 .78rem var(--body); color: var(--ink-2); }
.range-labels span:last-child { text-align: right; }

/* Lista de ofertas: una fila por producto */
.sec { font: 700 1.6rem/1.1 var(--cond); margin: 8px 0 10px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs a { text-decoration: none; font: 500 .9rem var(--body); padding: 7px 12px; border-radius: 6px; color: var(--ink-2); }
.tabs a:hover { background: var(--paper); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.feed { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.feed li + li { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 14px 18px; text-decoration: none; }
.row:hover { background: var(--hover); }
.row:hover .row-title { text-decoration: underline; text-underline-offset: 3px; }
.row-pic { width: 96px; height: 96px; display: grid; place-items: center; }
.row-pic img { width: 100%; height: 100%; object-fit: contain; }
.row-main { display: grid; gap: 6px; min-width: 0; }
.row-title { font-weight: 500; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; color: var(--ink-2); margin: 0; }
.row-price { display: grid; justify-items: end; gap: 2px; min-width: 96px; }
.row-price s, .verdict s { color: var(--ink-2); font-size: .86rem; }

/* Página de producto */
.crumbs { display: flex; gap: 8px; font-size: .88rem; color: var(--ink-2); padding-block: 18px 10px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: start; }
.item-pic { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 28px; aspect-ratio: 1; display: grid; place-items: center; max-width: 100%; }
.item-pic img { max-height: 100%; object-fit: contain; }
.item-main { display: grid; gap: 14px; min-width: 0; }
.item-title { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.08 var(--cond); margin: 0; text-wrap: balance; }
.verdict { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 14px; }
.verdict p { margin: 0; }
.verdict-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.verdict-label { font: 700 1.35rem/1 var(--cond); }
.cta { display: block; text-align: center; text-decoration: none; background: #ffe600; color: #2d3277; font: 600 1.05rem var(--body); padding: 14px; border-radius: 8px; border: 1px solid #e6cf00; }
.cta:hover { background: #ffdb00; }
.warnline { margin: 0; color: var(--hot); font-weight: 600; font-size: .9rem; }
.hist { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px 20px 20px; margin: 28px 0; }
.chart { width: 100%; height: auto; }
.chart .gl { stroke: var(--line); }
.chart .ax { fill: var(--ink-2); font: 600 12px var(--cond); }
.chart .ln { stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.chart .dt { fill: var(--boil); stroke: var(--paper); stroke-width: 2; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0 0; }
.stats div { display: grid; gap: 2px; } .stats dt { font-size: .82rem; color: var(--ink-2); } .stats dd { margin: 0; font: 700 1.3rem var(--cond); font-variant-numeric: tabular-nums; }
.empty { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: grid; gap: 6px; }
.empty p { margin: 0; }

.foot { margin-top: 48px; border-top: 1px solid var(--line); background: var(--paper); }
.foot-row { padding-block: 24px 36px; display: grid; gap: 8px; font-size: .9rem; }
.foot p { margin: 0; max-width: 78ch; }
.fine { color: var(--ink-2); font-size: .84rem; }

/* Ventaja contra las páginas de ofertas comunes */
.vs { margin: 4px 0 28px; }
.vs-scroll { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.vs table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
.vs th, .vs td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.vs thead th { border-top: 0; font-weight: 600; color: var(--ink-2); }
.vs tbody th { font-weight: 600; width: 26%; }
.vs td { color: var(--ink-2); }
.vs .us { color: var(--ink); font-weight: 500; background: #f2f7ff; }
.vs thead .us { color: var(--cold); font: 700 1.2rem var(--cond); }
.flag { font-size: .84rem; font-weight: 600; color: var(--boil); }
s.fake { color: var(--boil); }
.fresh { color: #23845a; }
.advice { display: grid; gap: 2px; padding: 12px 14px; border-radius: 8px; border-left: 5px solid; }
.advice b { font: 700 1.35rem/1.1 var(--cond); }
.a-buy { background: #ecf8f1; border-color: #23845a; } .a-buy b { color: #1d6e4b; }
.a-wait { background: #fdeeee; border-color: var(--boil); } .a-wait b { color: var(--boil); }
.a-ok { background: var(--hover); border-color: var(--ink-2); }
.faq { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px 20px 18px; margin-bottom: 28px; }
.faq h3 { font: 600 1.05rem/1.3 var(--body); margin: 16px 0 4px; }
.faq p { margin: 0; color: var(--ink-2); max-width: 75ch; }

@media (max-width: 760px) {
  .intro, .item { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .row { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; padding: 12px; }
  .row-pic { width: 72px; height: 72px; grid-row: span 2; }
  .row-price { grid-column: 2; grid-row: 2; justify-items: start; display: flex; align-items: baseline; gap: 8px; }
  .row .temp { grid-column: 3; grid-row: 1 / span 2; }
  .tag { font-size: 1.35rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
