/* =============================================================
   MazoTCG — estilos
   1. Tokens · 2. Base · 3. Utilidades · 4. Tipografía · 5. Componentes
   6. Secciones · 7. Páginas · 8. Responsive · 9. Movimiento reducido
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --surface-2: #f4eee3;
  --ink: #1c1f3a;
  --ink-2: #3c4063;
  --muted: #676b8a;
  --line: #e9e1d2;
  --accent: #e2483d;
  --accent-ink: #ffffff;
  --accent-soft: #fde8e6;
  --sun: #ffc93c;
  --buy: #ffb21e;
  --buy-hover: #ffa000;
  --buy-ink: #1c1f3a;
  --ok: #1d8f5a;
  --ko: #c8402f;
  --star: #f5a623;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 31, 58, .06), 0 6px 20px rgba(28, 31, 58, .06);
  --shadow-lg: 0 2px 6px rgba(28, 31, 58, .08), 0 18px 40px rgba(28, 31, 58, .12);
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: 16px;
  --max: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121429;
    --surface: #1b1e39;
    --surface-2: #23274a;
    --ink: #f4f1ea;
    --ink-2: #d4d3e0;
    --muted: #a3a6c2;
    --line: #2f3360;
    --accent: #ff6b5e;
    --accent-ink: #1b0b0a;
    --accent-soft: #3a2033;
    --ok: #4cc98d;
    --ko: #ff8a7a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 40px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

/* 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--sun); color: #1c1f3a; }
[hidden] { display: none !important; }

/* 3. Utilidades ------------------------------------------------ */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: var(--bg); z-index: 999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.ico { flex: none; width: 1.15em; height: 1.15em; }
.block { padding-block: 28px; }
.nota { font-size: .85rem; color: var(--muted); }
.lead { color: var(--ink-2); font-size: 1.05rem; }

/* 4. Tipografía ------------------------------------------------ */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.12rem; }
.prose { color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; color: var(--ink); }
.prose h3 { margin-top: 1.4em; color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; font-weight: 500; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose strong, .prose b { color: var(--ink); }

/* 5. Componentes ----------------------------------------------- */
/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .6em 1.15em;
  border-radius: 999px; font-weight: 600; font-size: .95rem; line-height: 1.1; text-align: center;
  transition: transform .2s var(--ease-out), background-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -6px var(--accent); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-ghost.is-on { background: var(--ink); color: var(--bg); }
.btn-amazon { background: var(--buy); color: var(--buy-ink); box-shadow: 0 4px 12px -4px rgba(255, 160, 0, .7); }
.btn-amazon:hover { background: var(--buy-hover); transform: translateY(-1px); }
.btn-xl { min-height: 52px; font-size: 1.05rem; padding-inline: 1.5em; }
.btn-sm { min-height: 38px; font-size: .88rem; padding: .45em .9em; }
.btn-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--surface-2); color: var(--ink); transition: background-color .2s, color .2s;
}
.btn-icon:hover { background: var(--line); }
.btn-icon.is-on { background: var(--ink); color: var(--bg); }
.btn-icon svg { width: 18px; height: 18px; }

/* Insignias */
.badge { display: inline-flex; align-items: center; padding: .2em .6em; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.badge-dto { background: var(--accent); color: #fff; }
.badge-ej { background: var(--ink); color: var(--bg); }
.badge-top { background: var(--sun); color: #1c1f3a; }

/* Valoración */
.rating { display: inline-flex; align-items: center; gap: .35em; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.stars {
  font-size: .95rem; letter-spacing: 1px; line-height: 1;
  background: linear-gradient(90deg, var(--star) var(--p), color-mix(in srgb, var(--muted) 35%, transparent) var(--p));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rating-num { font-weight: 700; color: var(--ink); }

/* Precio */
.precio { display: inline-flex; align-items: baseline; gap: .5em; flex-wrap: wrap; }
.precio-actual { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.precio-antes { color: var(--muted); font-size: .9rem; }
.precio-big .precio-actual { font-size: 2.1rem; }
.precio-na { font-weight: 600; color: var(--ink-2); font-size: .95rem; }

/* Tarjeta de producto */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s var(--ease-out), box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-img { display: grid; place-items: center; aspect-ratio: 1 / 1; background: #fff; padding: 14px; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease-out); }
.card:hover .card-img img { transform: scale(1.04); }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 6px; flex: 1; }
.card-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card-title { font-family: var(--sans); font-size: .98rem; font-weight: 600; line-height: 1.35; }
.card-title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card-why { font-size: .85rem; color: var(--ink-2); line-height: 1.45; }
.card-foot { margin-top: auto; padding-top: 6px; }
.card-actions { position: relative; z-index: 1; display: flex; gap: 8px; padding: 10px 16px 16px; }
.card-actions .btn-amazon { flex: 1; }
.card .rating, .card-badges { position: relative; z-index: 1; }
.card-badges { position: absolute; }

/* Placeholder sin imagen */
.ph {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 140px; border-radius: 12px; color: var(--c);
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%), color-mix(in srgb, var(--c) 10%, var(--surface));
}
.ph svg { width: 34%; height: auto; opacity: .85; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: .5em; padding: .5em .95em; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-weight: 600; font-size: .9rem; transition: border-color .2s, background-color .2s;
}
.chip span { font-size: .75rem; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: .1em .5em; }
.chip:hover { border-color: var(--ink); }

/* Panel */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.panel + .panel, .panel + .pros-contras, .pros-contras + .ideal-para, .ideal-para + .panel { margin-top: 20px; }
.panel h2 { margin-bottom: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Bloques con cabecera */
.block-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.link-more { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; color: var(--accent); }
.link-more:hover { gap: .6em; }
.link-more .ico, .art-more .ico { transition: transform .2s; }

/* Migas */
.breadcrumb { padding-top: 18px; font-size: .85rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .3em; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: .35em; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink-2); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* FAQs */
.faqs { padding-block: 24px 40px; }
.faqs h2 { margin-bottom: 14px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq + .faq { margin-top: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 18px 18px; color: var(--ink-2); }

/* Tablas */
.tabla-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabla-simple, .specs, .cmp-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tabla-simple th, .tabla-simple td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tabla-simple thead th { background: var(--surface-2); font-family: var(--display); font-weight: 600; }
.specs th, .specs td { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { width: 45%; color: var(--muted); font-weight: 500; }
.specs td { font-weight: 600; }
.specs-extra-t { margin: 22px 0 6px; }

/* Aviso flotante */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 500; font-size: .92rem; box-shadow: var(--shadow-lg);
  transition: opacity .25s, transform .25s var(--ease-out); max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Bandeja del comparador */
.compare-tray {
  position: fixed; left: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: .5em;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-lg);
}
.compare-tray span { background: var(--sun); color: #1c1f3a; border-radius: 999px; min-width: 1.6em; text-align: center; padding: 0 .4em; font-size: .85rem; }
.compare-tray:hover { transform: translateY(-2px); }

/* 6. Secciones ------------------------------------------------- */
/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--bg); } }
.header-row { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: -.01em; }
.logo-mark svg { width: 30px; height: 30px; }
.logo-text b { color: var(--accent); font-weight: 700; }
.search { position: relative; flex: 1; min-width: 0; order: 3; flex-basis: 100%; margin-bottom: 10px; }
.search input { width: 100%; height: 42px; padding: 0 44px 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.search button { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.search button svg { width: 18px; height: 18px; }
.nav-toggle { margin-left: auto; }
.nav-toggle summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle summary svg { width: 24px; height: 24px; }
.nav { display: none; order: 4; flex-basis: 100%; padding-bottom: 12px; }
.nav-toggle[open] ~ .nav { display: block; }
.nav-links { display: flex; flex-direction: column; gap: 2px; }
.nav-links > li > a, .nav-links summary {
  display: flex; align-items: center; gap: .4em; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .95rem; cursor: pointer; list-style: none;
}
.nav-links summary::-webkit-details-marker { display: none; }
.nav-links > li > a:hover, .nav-links summary:hover { background: var(--surface-2); }
.nav-links summary .ico { width: 14px; height: 14px; transition: transform .2s; }
.nav-links details[open] summary .ico { transform: rotate(180deg); }
.nav-links .sub { padding: 4px 0 8px 12px; }
.nav-links .sub a { display: block; padding: 8px 12px; border-radius: 8px; font-size: .93rem; }
.nav-links .sub a:hover { background: var(--surface-2); color: var(--accent); }
.nav-links a.nav-ofertas { color: var(--accent); }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { background: var(--ink); color: var(--bg); border-radius: 999px; padding-inline: 16px; }
.nav-links .ico { width: 16px; height: 16px; }

/* Héroe */
.hero { position: relative; overflow: hidden; padding-block: 36px 28px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vmax; height: 70vmax; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--sun) 45%, transparent), transparent 62%);
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: .45em; padding: .35em .85em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.hero h1 { margin-top: 16px; font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.7rem); font-weight: 700; }
.hl { color: var(--accent); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .22em; background: var(--sun); z-index: -1; border-radius: 4px; }
.hero-sub { margin-top: 16px; font-size: 1.1rem; color: var(--ink-2); max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-art { position: relative; height: 300px; }
.hero-card { position: absolute; display: block; width: 52%; aspect-ratio: 1; background: #fff; border-radius: 22px; padding: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); transition: transform .4s var(--ease-out); }
.hero-card img { width: 100%; height: 100%; object-fit: contain; }
.hc-0 { left: 24%; top: 4%; z-index: 3; transform: rotate(-2deg); }
.hc-1 { left: 0; top: 22%; z-index: 2; transform: rotate(-9deg); width: 44%; }
.hc-2 { right: 0; top: 26%; z-index: 1; transform: rotate(8deg); width: 44%; }
.hero-card:hover { transform: rotate(0) translateY(-6px); z-index: 4; }

/* Categorías (home) */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.cat-card {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 16px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s var(--ease-out), border-color .25s;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--c); }
.cat-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); margin-bottom: 6px; }
.cat-ico svg { width: 30px; height: 30px; }
.cat-card strong { font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.cat-card span:last-child { font-size: .82rem; color: var(--muted); }

/* Buscador de regalos */
.finder { margin-block: 24px; padding: clamp(20px, 3.5vw, 32px); border-radius: 24px; background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--sun) 22%, var(--surface))); border: 1px solid var(--line); }
.finder-head { display: flex; gap: 14px; align-items: center; }
.finder-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: #fff; flex: none; }
.finder-ico svg { width: 28px; height: 28px; }
.finder-head p { color: var(--ink-2); }
.finder-form { display: grid; gap: 12px; margin-top: 18px; }
.finder-form label, .toolbar label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
select {
  appearance: none; height: 46px; padding: 0 40px 0 14px; border-radius: 12px; border: 1px solid var(--line); background-color: var(--surface);
  font-size: .95rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23676b8a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.finder-out { margin-top: 20px; }
.finder-n { margin-bottom: 12px; color: var(--ink-2); }
.finder-more { margin-top: 12px; font-size: .9rem; color: var(--muted); }

/* Tarjetas de guía */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.art-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s var(--ease-out), border-color .25s; overflow: hidden;
}
.art-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.art-card:hover { transform: translateY(-3px); border-color: var(--c); }
.art-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.art-ico svg { width: 26px; height: 26px; }
.art-tipo { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.art-card strong { font-family: var(--display); font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.art-desc { color: var(--ink-2); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-more { margin-top: auto; display: inline-flex; align-items: center; gap: .35em; color: var(--accent); font-weight: 600; font-size: .92rem; }
.art-card:hover .art-more .ico, .link-more:hover .ico { transform: translateX(3px); }

/* Confianza */
.trust { text-align: left; }
.trust h2 { margin-bottom: 16px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-bottom: 14px; }
.trust-grid li { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.trust-grid svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 10px; }
.trust-grid strong { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.trust-grid p { margin-top: 4px; font-size: .92rem; color: var(--ink-2); }

/* Pie */
.site-footer { margin-top: 40px; padding-block: 40px 100px; background: var(--ink); color: color-mix(in srgb, var(--bg) 82%, transparent); font-size: .92rem; }
@media (prefers-color-scheme: dark) { .site-footer { background: #0b0c1c; } }
.site-footer .logo { color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.site-footer h2 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 10px; }
.site-footer li + li { margin-top: 6px; }
.site-footer a:hover { color: var(--sun); }
.footer-grid p { margin-top: 10px; }
.aviso-afiliados, .aviso-marca { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; }
.aviso-marca { margin-top: 10px; padding-top: 0; border: 0; }
.copy { margin-top: 10px; font-size: .82rem; opacity: .7; }

/* 7. Páginas --------------------------------------------------- */
/* Cabecera de categoría */
.cat-hero { display: flex; gap: 18px; align-items: flex-start; padding-block: 18px 8px; }
.cat-hero-ico { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 18px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.cat-hero-ico svg { width: 34px; height: 34px; }
.cat-intro { margin-top: 12px; max-width: 75ch; }
.cat-hero + .container .chips { margin-top: 8px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.toolbar-n { color: var(--ink-2); }
.toolbar-ctrl { display: flex; gap: 10px; flex-wrap: wrap; }
.amazon-more { margin-top: 22px; text-align: center; }
.empty, .empty-state { color: var(--ink-2); }
.empty-state { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line); text-align: center; }
.empty-state .ico { display: inline; vertical-align: -3px; }

/* Ficha */
.aviso-ejemplo { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--sun) 30%, var(--surface)); font-size: .92rem; }
.ficha-top { display: grid; gap: 24px; padding-top: 18px; }
.ficha-img-main { display: grid; place-items: center; aspect-ratio: 1; background: #fff; border-radius: 22px; border: 1px solid var(--line); padding: 22px; box-shadow: var(--shadow); }
.ficha-img-main img { width: 100%; height: 100%; object-fit: contain; }
.ficha-img-main .ph { min-height: 260px; }
.ficha-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.ficha-thumbs button { width: 64px; height: 64px; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.ficha-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.ficha-cat { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ficha-cat a { color: var(--accent); }
.ficha-head h1 { margin: 8px 0 10px; font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.35rem); }
.ficha-destacado { margin-top: 12px; padding-left: 12px; border-left: 4px solid var(--sun); font-weight: 600; color: var(--ink-2); }
.buybox { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.buybox .btn { width: 100%; }
.precio-nota { font-size: .8rem; color: var(--muted); }
.ficha-desc { margin-top: 18px; color: var(--ink-2); }
.ficha-poke { margin-top: 10px; font-size: .92rem; color: var(--muted); }
.ficha-poke a { color: var(--accent); font-weight: 600; }
.ficha-body { display: grid; gap: 24px; padding-top: 32px; }
.ficha-aside { display: none; }
.nota-media { display: inline-flex; align-items: baseline; padding: .1em .55em; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 1.25rem; }
.nota-media small { font-size: .7em; opacity: .7; }
.radar-wrap { display: grid; gap: 18px; align-items: center; }
.radar { width: 100%; max-width: 320px; height: auto; margin-inline: auto; overflow: visible; }
.radar-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-axis { stroke: var(--line); stroke-width: 1; }
.radar-label { font-size: 11.5px; font-weight: 600; fill: var(--ink-2); font-family: var(--sans); }
.radar-area { fill: color-mix(in srgb, var(--c) 22%, transparent); stroke: var(--c); stroke-width: 2.2; stroke-linejoin: round; }
.radar-dot { fill: var(--c); }
.score-bars li { display: grid; grid-template-columns: 9.5em 1fr 2em; align-items: center; gap: 10px; font-size: .9rem; }
.score-bars li + li { margin-top: 8px; }
.score-bars b { text-align: right; font-family: var(--display); }
.bar, .cmp-score { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i, .cmp-score i { display: block; height: 100%; background: var(--c); border-radius: inherit; }
.pros-contras { display: grid; gap: 14px; }
.pc { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.pc h3 { display: flex; align-items: center; gap: .4em; margin-bottom: 10px; }
.pc h3 svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; color: #fff; }
.pc-pros h3 svg { background: var(--ok); }
.pc-contras h3 svg { background: var(--ko); }
.pc li { position: relative; padding-left: 1.2em; color: var(--ink-2); }
.pc li + li { margin-top: 6px; }
.pc li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; }
.pc-pros li::before { background: var(--ok); }
.pc-contras li::before { background: var(--ko); }
.ideal-para { padding: 16px 20px; border-radius: var(--radius); background: color-mix(in srgb, var(--sun) 26%, var(--surface)); }
.op-resumen { margin-bottom: 8px; }
.resenas { display: grid; gap: 12px; margin-top: 14px; }
.resenas li { padding: 14px; border-radius: 12px; background: var(--surface-2); }
.resenas small { color: var(--muted); }
.cta-final { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding: 20px; border-radius: var(--radius); background: var(--ink); color: var(--bg); }
.cta-final strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.cta-final .precio-actual { color: var(--sun); }
.cta-final .precio-antes { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.toc { position: sticky; top: 90px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.toc p, .aside-box p { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.toc li + li { margin-top: 6px; }
.toc a:hover { color: var(--accent); }
.toc ol { list-style: decimal; padding-left: 1.2em; }
.aside-box { margin-top: 16px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.aside-box li + li { margin-top: 8px; }
.aside-box a { color: var(--accent); font-weight: 600; }
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
  transform: translateY(110%); transition: transform .3s var(--ease-out);
}
.buybar.is-on { transform: none; }
.buybar-in { max-width: var(--max); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-ficha .compare-tray { bottom: 84px; }

/* Artículos */
.art-head { padding-top: 18px; }
.art-kicker { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--c); }
.art-head h1 { margin-top: 10px; }
.art-lead { margin-top: 14px; font-size: 1.15rem; color: var(--ink-2); }
.art-meta { display: flex; align-items: center; gap: .4em; margin-top: 14px; font-size: .85rem; color: var(--muted); }
.art-layout { padding-block: 12px; }
.toc-art { position: static; margin-bottom: 20px; }
.art-body { font-size: 1.05rem; }

/* Comparador */
.comparador h1 { margin-bottom: 6px; }
.cmp-pick { position: relative; max-width: 520px; margin: 18px 0 24px; }
.cmp-pick label { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 4px; }
.cmp-pick input { width: 100%; height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.cmp-sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin-top: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.cmp-sug:empty { display: none; }
.cmp-sug button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 10px 14px; text-align: left; font-weight: 600; font-size: .92rem; }
.cmp-sug button small { font-weight: 500; color: var(--muted); }
.cmp-sug button:hover, .cmp-sug button.is-on { background: var(--surface-2); }
.cmp-none { padding: 10px 14px; color: var(--muted); }
.cmp-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; padding-top: 10px; }
.cmp-col { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); }
.cmp-wrap { position: relative; }
.cmp-img { display: grid; place-items: center; aspect-ratio: 1; background: #fff; border-radius: 12px; padding: 10px; overflow: hidden; }
.cmp-img img { width: 100%; height: 100%; object-fit: contain; }
.cmp-x { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.cmp-x svg { width: 16px; height: 16px; }
.cmp-name { font-weight: 600; font-size: .92rem; line-height: 1.35; }
.cmp-name:hover { color: var(--accent); }
.cmp-radar { margin-top: 22px; text-align: center; }
.cmp-radar .radar { max-width: 360px; }
.cmp-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 10px; font-size: .88rem; }
.cmp-legend li { display: inline-flex; align-items: center; gap: .4em; }
.cmp-legend i { width: 12px; height: 12px; border-radius: 3px; }
.cmp-table { margin-top: 22px; min-width: 560px; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.cmp-table th, .cmp-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cmp-table thead th { font-size: .85rem; border-top: 4px solid var(--c, transparent); }
.cmp-table tbody th { color: var(--muted); font-weight: 500; width: 22%; }
.cmp-table td { font-weight: 600; }
.cmp-table td.is-best { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.cmp-table td .cmp-score { width: 70%; display: inline-block; vertical-align: middle; margin-right: 8px; }
.cmp-table tr.sep th { background: var(--surface-2); color: var(--ink); font-family: var(--display); font-weight: 600; }
.comparador > .nota { margin-top: 12px; }

/* Búsqueda */
.sr-h { margin: 24px 0 12px; font-size: 1.2rem; }
.res-arts { display: grid; gap: 10px; }
.res-arts a { display: flex; flex-direction: column; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.res-arts a:hover { border-color: var(--accent); }
.res-arts span { color: var(--ink-2); font-size: .92rem; }

/* Legal */
.legal h1 { margin-bottom: 18px; }
.pendiente { background: color-mix(in srgb, var(--sun) 45%, transparent); padding: 0 .3em; border-radius: 4px; }
.notfound { text-align: center; padding-block: 60px; }
.notfound p { margin-top: 14px; }

/* 8. Responsive ------------------------------------------------ */
@media (min-width: 540px) {
  .finder-form { grid-template-columns: repeat(3, 1fr); }
  .pros-contras { grid-template-columns: 1fr 1fr; }
  .hero-art { height: 360px; }
}
@media (min-width: 720px) {
  .radar-wrap { grid-template-columns: minmax(240px, 320px) 1fr; }
  .ficha-top { grid-template-columns: 1fr 1fr; align-items: start; }
  .ficha-galeria { position: sticky; top: 84px; }
  .buybox .btn { width: auto; }
  .buybox { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .buybox .precio-nota { flex-basis: 100%; order: 2; }
  .buybox .btn-amazon { order: 3; }
  .buybox .btn-ghost { order: 4; }
}
@media (min-width: 960px) {
  :root { --gutter: 24px; }
  .header-row { flex-wrap: nowrap; gap: 18px; }
  .search { order: 0; flex-basis: auto; margin: 0; max-width: 300px; }
  .nav-toggle { display: none; }
  .nav { display: block; order: 0; flex-basis: auto; padding: 0; margin-left: auto; }
  .nav-links { flex-direction: row; align-items: center; gap: 0; }
  .nav-links > li > a, .nav-links summary { padding: 8px 10px; font-size: .92rem; }
  .has-sub { position: relative; }
  .nav-links .sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
  .hero { padding-block: 56px 40px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .hero-art { height: 420px; }
  .ficha-body { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
  .ficha-aside { display: block; position: sticky; top: 90px; }
  .art-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; max-width: 1040px; }
  .art-layout:not(:has(.toc-art)) { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
  .toc-art { position: sticky; top: 90px; align-self: start; }
  .buybar { display: none; }
  .page-ficha .compare-tray { bottom: 16px; }
}
@media (min-width: 1280px) {
  .search { max-width: 340px; }
  .nav-links > li > a, .nav-links summary { padding: 8px 12px; }
}

/* 9. Movimiento reducido (solo lo intrusivo) ------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover, .cat-card:hover, .art-card:hover, .hero-card:hover { transform: none; }
}

/* Móvil: dos columnas de tarjetas para ver más productos de un vistazo */
@media (max-width: 539px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-img { padding: 10px; }
  .card-body { padding: 12px 12px 4px; }
  .card-title { font-size: .9rem; }
  .card-why { display: none; }
  .card-actions { padding: 8px 12px 12px; gap: 6px; }
  .card-actions .btn-amazon { font-size: .82rem; padding-inline: .6em; min-height: 40px; }
  .card-actions .btn-amazon .ico { display: none; }
  .card-actions .btn-icon { width: 40px; height: 40px; }
  .precio-actual { font-size: 1.15rem; }
}
@media (max-width: 400px) {
  .card-actions .btn-icon { display: none; }
}

/* Tabla comparativa de las guías */
.tabla-guia { background: var(--surface); border-radius: var(--radius); overflow: hidden; min-width: 640px; }
.tabla-guia tbody th { font-weight: 600; max-width: 280px; }
.tabla-guia tbody th a:hover { color: var(--accent); }
.tabla-guia td, .tabla-guia tbody th { vertical-align: middle; }
.tabla-guia .precio-actual { font-size: 1.05rem; }
.tabla-guia .btn { white-space: nowrap; }
