/* calidad-precio.net · estilos comunes. Azul marino + naranja del logo. Sin fuentes externas. */
:root {
  --bg: #f5f7fb; --surface: #ffffff; --ink: #0d1b33; --muted: #56627a; --line: #dbe2ee;
  --accent: #0a4a85; --accent-ink: #ffffff; --navy: #002a62; --tag: #f7841e; --tag-ink: #1a1206; --cta: #f7841e; --cta-ink: #0d1b33; --soft: #e6eef8;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0a1222; --surface: #111c30; --ink: #e7edf7; --muted: #9aa9c0; --line: #233353;
  --accent: #8dbcff; --accent-ink: #06142b; --navy: #8dbcff; --tag: #f7841e; --tag-ink: #1a1206; --cta: #f7841e; --cta-ink: #0a1222; --soft: #15243d; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0a1222; --surface: #111c30; --ink: #e7edf7; --muted: #9aa9c0; --line: #233353;
  --accent: #8dbcff; --accent-ink: #06142b; --navy: #8dbcff; --tag: #f7841e; --tag-ink: #1a1206; --cta: #f7841e; --cta-ink: #0a1222; --soft: #15243d; color-scheme: dark }

* { box-sizing: border-box; }
html { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; }
.wrap { max-width: 800px; margin: 0 auto; padding-block: 18px 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 26px; }
a { color: var(--accent); text-underline-offset: 3px; }
p { margin: 0; }
.topnav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.navlinks { display: flex; gap: 16px; }
.brand { display: inline-flex; text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
@media (max-width: 480px) { .brand img { height: 38px; } }
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(29px, 6vw, 42px); line-height: 1.1; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1.2; margin: 0; text-wrap: balance; }
h3 { font-size: 18px; margin: 0; }
.pagehead { display: flex; flex-direction: column; gap: 12px; }
.meta { font-size: 14px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.lead { font-size: 19px; }
.disclosure { font-size: 14px; color: var(--muted); border-left: 3px solid var(--tag); padding-left: 12px; }
article { display: flex; flex-direction: column; gap: 36px; }
section { display: flex; flex-direction: column; gap: 14px; }
.toc { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.toc strong { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }

.tool { background: var(--surface); border: 1.5px solid var(--accent); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.tool .label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.tool-body { display: flex; flex-direction: column; gap: 14px; }
.q { display: flex; flex-direction: column; gap: 8px; }
.q-title { font-weight: 600; font-size: 16px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { font: inherit; font-size: 15px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.opt:hover { border-color: var(--accent); }
.opt[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.refine { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.refine > summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.cta { display: flex; justify-content: center; text-align: center; background: var(--cta); color: var(--cta-ink); text-decoration: none; font-weight: 600; padding: 14px 18px; border-radius: 12px; }
.cta:hover { filter: brightness(1.08); }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.tool-body > .actions:first-of-type, .tool-body > p + .actions { margin-top: 4px; }
.alts { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; }
.alts a, .chips a { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; text-decoration: none; color: var(--ink); background: var(--surface); }
.alts a:hover, .chips a:hover { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.price { background: var(--tag); color: var(--tag-ink); border-radius: 6px; padding: 2px 8px; font-size: 14px; font-weight: 600; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--tag); outline-offset: 2px; }

.table-wrap { overflow-x: auto; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--bg); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
.cap { font-weight: 600; }
ul.check { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.callout { background: var(--surface); border: 1.5px solid var(--line); border-left: 4px solid var(--tag); border-radius: 12px; padding: 14px 16px; }
details { background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 16px; }
details + details { margin-top: 8px; }
summary { font-weight: 600; cursor: pointer; }
details p { margin-top: 8px; color: var(--muted); }

.related, .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 10px; }
.related a, .card { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); font-weight: 600; }
.related a span, .card span { font-weight: 400; font-size: 14px; color: var(--muted); }
.card .count { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.related a:hover, .card:hover { border-color: var(--accent); }
.subcats { display: grid; gap: 14px; }
.subcat { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.subcat h2 { font-size: 21px; }
.subcat h2 a { color: var(--ink); text-decoration: none; }
.subcat h2 a:hover { color: var(--accent); }
.subcat p { color: var(--muted); font-size: 15px; }
.subcat ul { margin: 4px 0 0; padding-left: 20px; font-size: 15px; display: grid; gap: 2px; }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.idea { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.idea p { font-size: 15px; color: var(--muted); }
.idea-links { margin-top: auto; display: flex; gap: 10px; align-items: center; }
.buy { background: var(--cta); color: var(--cta-ink); text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 10px; font-size: 15px; }
.search { display: flex; gap: 8px; flex-wrap: wrap; }
.search input { flex: 1 1 260px; min-width: 0; font: inherit; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.search button { font: inherit; font-weight: 600; padding: 12px 18px; border-radius: 12px; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; }
footer { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 6px; }
footer .legal { display: flex; flex-wrap: wrap; gap: 14px; }
footer a { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* iconos, autor y selección de productos */
.ico { color: var(--accent); flex: none; }
.h-ico { display: flex; align-items: flex-start; gap: 12px; }
.h-ico .head-ico { margin-top: .1em; }
.card .ico { margin-bottom: 4px; }
.meta a { color: var(--muted); }
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.pick { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.pick h3 { font-size: 18px; line-height: 1.3; }
.pick p { font-size: 15px; color: var(--muted); }
.pick .buy { margin-top: auto; text-align: center; }
.pick-tag { align-self: flex-start; font-size: 12px; font-weight: 600; background: var(--tag); color: var(--tag-ink); padding: 2px 8px; border-radius: 6px; }
.pick-note { font-size: 13px; color: var(--muted); }

.card-title { display: flex; align-items: center; gap: 10px; }
.card .card-title .ico { margin-bottom: 0; }
.card .card-title { color: var(--ink); font-size: 17px; font-weight: 600; }

/* Menú con varias secciones */
.navlinks { flex-wrap: wrap; gap: 6px 16px; }
/* Sugerencias del buscador */
.sugg { margin-top: -4px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.sugg p { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.sugg a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.sugg a:first-of-type { border-top: 0; }
.sugg a span { color: var(--muted); font-weight: 400; font-size: 14px; white-space: nowrap; }
/* Calculadoras */
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.calc label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; }
.calc input, .calc select { font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.calc-out div { background: var(--soft); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.calc-out span { font-size: 13px; color: var(--muted); }
.calc-out b { font-size: 20px; color: var(--accent); }
/* Bloque de Telegram */
.tg { background: var(--soft); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.tg .cta { align-self: flex-start; }

/* Ancho en ordenador: más espacio para tarjetas y rejillas, texto a ancho cómodo de lectura */
.wrap { max-width: 1180px; }
.subcats { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }

.wrap.lectura { max-width: 920px; }

/* Guías también a todo el ancho; banner de Telegram en línea */
.wrap.lectura { max-width: 1180px; }
@media (min-width: 640px) { .tg { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; } .tg .cta { align-self: center; flex: none; } }

/* Guía de palas de pádel: dibujos de formas y veredicto del asistente */
.shapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; }
.shape { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.shape svg { width: 70px; height: 110px; align-self: center; }
.shape svg .face { fill: var(--soft); stroke: var(--accent); stroke-width: 3; }
.shape svg .spot { fill: var(--tag); }
.shape svg .grip { fill: var(--ink); }
.shape p { font-size: 15px; color: var(--muted); }
.pill { align-self: flex-start; font-size: 12px; font-weight: 600; background: var(--tag); color: var(--tag-ink); padding: 2px 8px; border-radius: 6px; }
.verdict { background: var(--soft); border-radius: 12px; padding: 14px 16px; font-size: 16px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.q { display: flex; flex-direction: column; gap: 8px; }
.q-title { font-weight: 600; font-size: 16px; }

/* Logo y botón de modo claro / oscuro */
.brand .logo-oscuro { display: none; }
.tema { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; flex: none; }
.tema:hover { border-color: var(--accent); color: var(--accent); }
.tema .i-sol { display: none; }
.navlinks { align-items: center; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-claro, :root:not([data-theme="light"]) .tema .i-luna { display: none; }
  :root:not([data-theme="light"]) .brand .logo-oscuro, :root:not([data-theme="light"]) .tema .i-sol { display: block; } }
:root[data-theme="dark"] .brand .logo-claro, :root[data-theme="dark"] .tema .i-luna { display: none; }
:root[data-theme="dark"] .brand .logo-oscuro, :root[data-theme="dark"] .tema .i-sol { display: block; }
:root[data-theme="light"] .brand .logo-oscuro, :root[data-theme="light"] .tema .i-sol { display: none; }
