/* onlinereviews.shop
   Papel frío, tinta azul marino, cobalto para la marca y amarillo rotulador para lo que importa.
   Bricolage Grotesque (OFL, alojada aquí) para titulares y notas; fuente del sistema para el texto. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800; font-display: swap;
  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;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 400 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

:root {
  --paper: #FBFBFE;
  --surface: #FFFFFF;
  --mist: #EEF0FA;
  --mist-2: #DDE0F1;
  --line: #E1E3F0;
  --ink: #15173A;
  --ink-2: #474B70;
  --ink-3: #6A6E92;
  --cobalt: #3346E8;
  --cobalt-hover: #2535C9;
  --on-cobalt: #FFFFFF;
  --marker: #FFE45C;
  --hl: #FFE45C;
  --star: #F2B300;
  --mint: #0C8C7A;
  --coral: #D33D43;
  --shadow: #15173A;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-lg: 22px;
  --r: 14px;
  --r-sm: 10px;
  --wrap: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  /* Gris oscuro neutro; el cobalto y el amarillo siguen siendo los acentos */
  :root {
    --paper: #161616;
    --surface: #1F1F1F;
    --mist: #292929;
    --mist-2: #3B3B3B;
    --line: #2E2E2E;
    --ink: #F2F2F2;
    --ink-2: #C2C2C2;
    --ink-3: #969696;
    --cobalt: #7D8BFF;
    --cobalt-hover: #9AA5FF;
    --on-cobalt: #111111;
    --hl: #5C4F00;
    --star: #FFD23F;
    --mint: #3DD6BF;
    --coral: #FF7A7F;
    --shadow: #000000;
  }
}

/* Japonés y chino: sus fuentes del sistema, y más interlineado */
:lang(ja) { --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif; }
:lang(zh) { --body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:lang(ja) body, body:lang(ja), :lang(zh) body, body:lang(zh) { line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-hover); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; line-height: 1.12; font-weight: 750; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0; }
[data-i18n], .prose p, .row-tagline, .p-tagline { white-space: pre-line; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-sm); z-index: 20; }
.skip:focus { top: 12px; }

/* Rotulador: la mitad baja de la línea, como subrayado a mano */
mark {
  color: inherit; padding: 0 .12em; border-radius: 3px;
  background: linear-gradient(to bottom, transparent 48%, var(--hl) 48%, var(--hl) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* MARK: Cabecera */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: block; flex: none; }
.logo img { height: 32px; width: auto; }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) { .logo-light { display: none !important; } .logo-dark { display: block !important; } }
.head-nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: .95rem; }
.head-nav > a { color: var(--ink-2); text-decoration: none; }
.head-nav > a:hover { color: var(--ink); }

.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--ink-3); }
.lang .icon { width: 18px; height: 18px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; min-width: 170px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: 4px 4px 0 var(--shadow); }
.lang li a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.lang li a:hover { background: var(--mist); }
.lang li a[aria-current] { background: var(--mist); font-weight: 700; }
.lang li a[aria-current]::after { content: ""; float: right; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--cobalt); }

/* MARK: Botones */
.btn-primary, .btn-amazon, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; font-size: .98rem; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.btn-primary { background: var(--cobalt); color: var(--on-cobalt); }
.btn-primary:hover { background: var(--cobalt-hover); color: var(--on-cobalt); }
.btn-amazon { background: var(--ink); color: var(--paper); }
.btn-amazon:hover { color: var(--paper); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--cobalt); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--mist-2); background: var(--surface); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-3); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.05rem; }
.icon-sm { width: 16px; height: 16px; flex: none; }

/* MARK: Portada */
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-solo { grid-template-columns: minmax(0, 760px); }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.0; letter-spacing: -0.03em; font-weight: 800; }
:lang(ja) .hero-title, :lang(zh) .hero-title { letter-spacing: 0; line-height: 1.2; font-size: clamp(2.1rem, 4.8vw, 3.7rem); }
.hero-text { margin: 22px 0 30px; max-width: 34em; color: var(--ink-2); font-size: 1.15rem; }

.ticket {
  display: block; position: relative; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-lg);
  padding: 22px 24px 24px; box-shadow: 7px 7px 0 var(--shadow);
  transform: rotate(1.2deg); transition: transform .2s ease, box-shadow .2s ease;
  animation: ticket-in .7s cubic-bezier(.2, .9, .3, 1.2) both .1s;
}
.ticket:hover { color: var(--ink); transform: rotate(0deg) translate(-2px, -2px); box-shadow: 10px 10px 0 var(--shadow); }
.ticket-label { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--cobalt); margin-bottom: 14px; }
.ticket-top { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; }
.ticket-img { width: 112px; height: 112px; object-fit: contain; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
.ticket-name { font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.25; margin-bottom: 8px; }
.ticket-quote { margin-top: 18px; padding-top: 16px; border-top: 1.5px dashed var(--mist-2); font-size: 1.08rem; font-weight: 600; }
.ticket-quote mark { background-size: 0% 100%; background-repeat: no-repeat; animation: marker-draw .9s ease-out .8s forwards; }
@keyframes ticket-in { from { opacity: 0; transform: rotate(6deg) translateY(24px) scale(.96); } to { opacity: 1; transform: rotate(1.2deg); } }
@keyframes marker-draw { to { background-size: 100% 100%; } }

/* Nota: número grande + "de 5" + veredicto */
.score { display: flex; align-items: center; gap: 10px; }
.score-num { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.score-side { display: flex; flex-direction: column; line-height: 1.2; }
.score-of { color: var(--ink-3); font-size: .78rem; font-weight: 600; }
.score-verdict { font-weight: 700; font-size: .92rem; }
.score-sm .score-num { font-size: 2rem; }
.score-lg .score-num { font-size: 3.4rem; }
.score-lg .score-verdict { font-size: 1.05rem; }
.score-xl .score-num { font-size: clamp(4rem, 9vw, 5.6rem); }
.score-xl .score-verdict { font-size: 1.25rem; }
.score-xl .score-of { font-size: .9rem; }

.stars { display: block; height: auto; }
.stars-sm { width: 72px; } .stars-md { width: 112px; } .stars-lg { width: 150px; }
.star-empty { fill: var(--mist-2); }
.star-full { fill: var(--star); }

/* MARK: Lista de productos */
.products { padding: 64px 0 40px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.count { color: var(--ink-3); font-weight: 600; font-size: .95rem; }
.list-tools { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.search {
  width: 100%; max-width: 420px; min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--mist-2); background: var(--surface); color: var(--ink); font: inherit;
}
.search::placeholder { color: var(--ink-3); }
.search:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 25%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--mist-2); background: transparent; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) 170px auto; gap: 24px; align-items: center;
  padding: 22px 8px; border-bottom: 1px solid var(--line);
}
.row-img .thumb { width: 104px; height: 104px; }
.thumb, .p-img { object-fit: contain; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
.img-empty { display: grid; place-items: center; background: var(--mist); border: 1px solid var(--line); }
.img-empty img { opacity: .5; }
.cat { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--cobalt); margin-bottom: 4px; }
.row-title { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.row-title a { color: var(--ink); text-decoration: none; }
.row-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.row-tagline { color: var(--ink-2); margin-top: 4px; font-size: .98rem; }
.amz-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; color: var(--ink-3); font-size: .85rem; }
.amz-line .stars { margin-right: 2px; }
.sep { width: 4px; height: 4px; border-radius: 50%; background: var(--mist-2); }
.row-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.empty { padding: 36px 0; color: var(--ink-2); font-size: 1.1rem; }

/* MARK: Cómo puntuamos (es un proceso: los números tienen sentido) */
.how { padding: 56px 0 80px; }
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.step-n { display: block; font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--cobalt); margin-bottom: 12px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); }

/* MARK: Ficha */
.crumb { display: flex; align-items: center; gap: 14px; padding: 28px 0 8px; font-size: .95rem; }
.crumb a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.crumb a:hover { color: var(--ink); }
.crumb .cat { margin: 0; }
.p-head { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; padding: 22px 0 48px; align-items: start; }
.p-figure { margin: 0; position: sticky; top: 92px; }
.p-img { width: 100%; aspect-ratio: 1; }
.p-title { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.02em; line-height: 1.06; font-weight: 800; }
:lang(ja) .p-title, :lang(zh) .p-title { letter-spacing: 0; line-height: 1.25; }
.p-tagline { margin-top: 12px; font-size: 1.2rem; color: var(--ink-2); max-width: 32em; }
.p-verdict { margin: 28px 0 18px; padding: 20px 22px; border: 1.5px solid var(--ink); border-radius: var(--r-lg); background: var(--surface); box-shadow: 6px 6px 0 var(--shadow); display: grid; gap: 10px; justify-items: start; max-width: 440px; }
.p-verdict-label { font-size: .85rem; font-weight: 700; color: var(--cobalt); }
.p-intro .btn-amazon { margin-top: 22px; }
.note { margin-top: 12px; color: var(--ink-3); font-size: .85rem; }

.p-summary, .p-procon, .p-dist { padding: 40px 0; border-top: 1px solid var(--line); }
.p-summary h2, .p-dist h2 { margin-bottom: 18px; }
.prose { max-width: 40em; font-size: 1.12rem; }
.prose p + p { margin-top: 1.1em; }
.prose mark { font-weight: 600; }
.p-procon { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.p-procon h2 { font-size: 1.3rem; margin-bottom: 16px; }
.pc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pc-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.pc-icon { width: 22px; height: 22px; margin-top: 2px; }
.pc-icon path { stroke: #fff; fill: none; }
.pc-pros .pc-icon circle { fill: var(--mint); }
.pc-cons .pc-icon circle { fill: var(--coral); }
@media (prefers-color-scheme: dark) { .pc-icon path { stroke: var(--paper); } }

.dist { margin: 0; display: grid; gap: 10px; max-width: 560px; }
.dist-row { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 14px; }
.dist dt { font-size: .92rem; color: var(--ink-2); font-weight: 600; }
.dist dd { margin: 0; display: grid; grid-template-columns: 1fr 48px; gap: 12px; align-items: center; }
.dist-bar { width: 100%; height: 12px; display: block; }
.dist-track { fill: var(--mist); }
.dist-fill { fill: var(--cobalt); }
.dist-pct { font-variant-numeric: tabular-nums; font-size: .9rem; color: var(--ink-2); text-align: right; }
.p-cta { padding: 8px 0 56px; }

.more { padding: 24px 0 72px; }
.more h2 { margin-bottom: 18px; }

/* MARK: Páginas de texto */
.page { padding: 56px 24px 88px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 18px; letter-spacing: -0.02em; }
.page .lead { font-size: 1.2rem; color: var(--ink-2); margin-bottom: 18px; }
.page section { padding: 22px 0; border-top: 1px solid var(--line); }
.page section h2 { font-size: 1.25rem; margin-bottom: 8px; }
.page section p { color: var(--ink-2); }
.notfound { text-align: center; display: grid; justify-items: center; gap: 16px; }
.notfound p { color: var(--ink-2); }

/* MARK: Pie */
.site-foot { border-top: 1.5px solid var(--ink); padding: 36px 0 48px; color: var(--ink-3); font-size: .9rem; }
.foot-row { display: grid; grid-template-columns: 36px 1fr; gap: 18px; align-items: start; }
.disclosure { max-width: 46em; }
.foot-links { margin-top: 12px; display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); }

/* MARK: Pantallas pequeñas */
@media (max-width: 900px) {
  .hero { padding: 44px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .ticket { max-width: 460px; }
  .row { grid-template-columns: 84px minmax(0, 1fr); gap: 14px 16px; padding: 20px 0; }
  .row-img .thumb { width: 84px; height: 84px; }
  .row-score { grid-column: 2; }
  .row-actions { grid-column: 1 / -1; flex-direction: row; }
  .row-actions > a { flex: 1; }
  .p-head { grid-template-columns: 1fr; gap: 26px; }
  .p-figure { position: static; max-width: 360px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .page { padding: 40px 16px 64px; }
  .head-row { height: 60px; }
  .logo img { height: 27px; }
  .hide-sm { display: none; }
  .head-nav { gap: 14px; }
  .ticket { padding: 18px; box-shadow: 5px 5px 0 var(--shadow); }
  .ticket-top { grid-template-columns: 84px 1fr; gap: 14px; }
  .ticket-img, .ticket .img-empty { width: 84px; height: 84px; }
  .score-lg .score-num { font-size: 2.8rem; }
  .p-procon { grid-template-columns: 1fr; gap: 32px; }
  .row-actions { flex-direction: column; }
  .p-intro .btn-amazon { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticket, .ticket-quote mark { animation: none; }
  .ticket-quote mark { background-size: 100% 100%; }
  .btn-amazon, .ticket { transition: none; }
}
