/* Voltieri — componentes. Solo usan tokens de tokens.css. Radio 0, filetes de 1 px. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--text); font-family: var(--font-display); -webkit-font-smoothing: antialiased; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn:hover { background: var(--route); border-color: var(--route); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--route); outline-offset: 3px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--route { background: var(--route); border-color: var(--route); }
.btn--wide { width: 100%; }

.k {
  display: block; font-family: var(--font-data); font-size: 9px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.v {
  display: block; font-family: var(--font-data); font-size: 15px;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.v small { font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.mono { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.serif { font-family: var(--font-map); font-style: italic; font-weight: 400; }

.field {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--rule);
}
.field .v { font-family: var(--font-display); font-size: 14px; font-weight: 500; }
.field .dot {
  display: inline-block; width: 5px; height: 5px; background: var(--route);
  margin-right: 7px; vertical-align: 1px;
}

.panel { background: var(--paper); border: 1px solid var(--ink); }
.panel--quiet { border-color: var(--rule); }
.panel__pad { padding: var(--s-5); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--rule); padding: 4px 8px;
  font-family: var(--font-data); font-size: 9px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.chip--route { color: var(--route); border-color: var(--route); }
.chip--contour { color: var(--contour); border-color: var(--contour); }

.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-data); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.status i { width: 5px; height: 5px; border-radius: 50%; background: var(--contour); }

.modes { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--rule); }
.modes button {
  min-width: 62px; height: 28px; padding: 0 10px;
  border: 0; background: transparent; color: var(--muted);
  font-family: var(--font-display); font-size: 9.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.modes button:hover { color: var(--ink); }
.modes button.active { background: var(--ink); color: var(--paper); }
.modes button.active:hover { color: var(--paper); }

.data-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.data-cell { padding: 12px 16px; border-left: 1px solid var(--rule); }
.data-cell:first-child { border-left: 0; }
.data-cell .v { font-size: 18px; letter-spacing: -.02em; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rule);
  font-size: 12px; color: var(--text);
}
.table th {
  font-family: var(--font-data); font-size: 9px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.table td.num { font-family: var(--font-data); font-variant-numeric: tabular-nums; text-align: right; }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--ink); }
.tabs button {
  padding: 9px 14px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: var(--muted); font-family: var(--font-display);
  font-size: 11px; letter-spacing: .06em; cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--route); }

.notice {
  display: flex; gap: 10px; padding: 10px 12px; border: 1px solid var(--rule);
  font-size: 11px; line-height: 1.5; color: var(--muted);
}
.notice .mark { flex: 0 0 1px; background: var(--route); }
.notice--error { border-color: var(--route); color: var(--text); }

.affiliate {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1px dashed var(--rule);
}
.affiliate .thumb {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--contour); color: var(--contour); font-size: 16px;
}
.affiliate strong { display: block; font-size: 12px; font-weight: 500; color: var(--text); }
.affiliate .meta { font-size: 10px; color: var(--muted); margin-top: 2px; }

.source {
  font-family: var(--font-data); font-size: 9px; letter-spacing: .04em;
  color: var(--muted); line-height: 1.5;
}

.skeleton { background: var(--rule); height: 12px; animation: vp 1.4s ease-in-out infinite; }
@keyframes vp { 0%,100% { opacity: .35 } 50% { opacity: .8 } }

/* 2027 — piel sobria: menos rejilla de instrumento, más lectura */
[data-skin="2027"] body { font-size: 16px; line-height: 1.55; letter-spacing: -.005em; }
[data-skin="2027"] .btn {
  border-radius: var(--radius); font-size: 14px; font-weight: 500;
  letter-spacing: 0; text-transform: none; min-height: 44px; padding: 0 20px;
}
[data-skin="2027"] .btn:hover { background: var(--ion); border-color: var(--ion); color: var(--on-ion); }
[data-skin="2027"] .btn--route { background: var(--ion); border-color: var(--ion); color: var(--on-ion); }
[data-skin="2027"] .k, [data-skin="2027"] .table th, [data-skin="2027"] .chip, [data-skin="2027"] .status {
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 500;
}
[data-skin="2027"] .source { font-family: var(--font-display); font-size: 12px; }
[data-skin="2027"] .panel, [data-skin="2027"] .panel--quiet { border: 1px solid var(--rule); border-radius: 14px; background: #fff; }
[data-skin="2027"][data-theme="night"] .panel, [data-skin="2027"][data-theme="night"] .panel--quiet { background: var(--paper-deep); }
[data-skin="2027"] .chip { border-radius: 999px; padding: 4px 10px; }
[data-skin="2027"] .modes { border-radius: 999px; border-color: var(--rule); padding: 3px; }
[data-skin="2027"] .modes button { border-radius: 999px; font-size: 13px; letter-spacing: 0; text-transform: none; height: 28px; }
[data-skin="2027"] .modes button.active, [data-skin="2027"] .modes button.active:hover { background: var(--ink); color: var(--paper); }
[data-skin="2027"] .table th, [data-skin="2027"] .table td { font-size: 14px; padding: 12px 10px; }
[data-skin="2027"] .tabs button { font-size: 14px; letter-spacing: 0; }
[data-skin="2027"] .tabs button[aria-selected="true"] { border-bottom-color: var(--ion); }
[data-skin="2027"] .notice { font-size: 13px; border-radius: 10px; }
[data-skin="2027"] .affiliate { border-radius: 12px; border-style: solid; }
[data-skin="2027"] .v, [data-skin="2027"] .mono { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* Cabecera y pie compartidos */
[data-skin="2027"] header { border-bottom: 1px solid var(--rule); }
[data-skin="2027"] .brand { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
[data-skin="2027"] nav { font-size: 15px; gap: 26px; }
[data-skin="2027"] nav a:hover { border-color: transparent; }
[data-skin="2027"] footer { border-top: 1px solid var(--rule); }
[data-skin="2027"] h1 { letter-spacing: -.04em; }
[data-skin="2027"] input, [data-skin="2027"] select { border-radius: 8px; }

/* Páginas de contenido (comparativas, blog, legal) */
[data-skin="2027"] .meta, [data-skin="2027"] .best, [data-skin="2027"] footer, [data-skin="2027"] th {
  font-family: var(--font-display); letter-spacing: 0; text-transform: none; font-size: 13px;
}
[data-skin="2027"] .buy { border-radius: 10px; letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: 600; padding: 12px 16px; }
[data-skin="2027"] .buy:hover { background: var(--ink); color: var(--paper); }

/* Estantería de producto afiliado — compartida por portada, herramientas y comparativas */
.shelf { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rule); }
.shelf__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.shelf__head .k { color: var(--ion); font-weight: 600; }
.shelf__head h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; font-weight: 500; margin: 8px 0 0; line-height: 1.1; border: 0; padding: 0; }
.shelf__head p { margin: 10px 0 0; max-width: 580px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.shelf__more { color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; white-space: nowrap; }
.shelf__more:hover { border-color: var(--ink); color: var(--ion); }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.product { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); min-height: 260px; transition: transform var(--t-mid) var(--ease), border-color var(--t-fast); }
[data-theme="night"] .product { background: var(--paper-deep); }
.product:hover { transform: translateY(-2px); border-color: var(--ink); }
.product .thumb-slot { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; max-height: 185px; padding: 14px; border-radius: 10px; background: var(--paper-deep) url(plug.svg) center / 28% no-repeat; overflow: hidden; }
.product .thumb-slot.has-img { background: #fff; border: 1px solid var(--rule); }
.product .thumb-slot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product .badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--ion); background: var(--paper-deep); border: 1px solid var(--rule); }
.product .badge--top { background: var(--ion); color: var(--on-ion); border-color: var(--ion); }
.product h3 { font-size: 15.5px; font-weight: 600; line-height: 1.35; margin: 0; color: var(--ink); }
.product .specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: auto; }
.product .spec-pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; background: var(--paper-deep); border: 1px solid var(--rule); font-size: 12px; color: var(--muted); line-height: 1.3; }
.product .pmeta { display: flex; gap: 12px; align-items: baseline; font-size: 13px; color: var(--muted); }
.product .pmeta .rev { font-size: 11px; opacity: .75; }
.product .price { color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.product .buy { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; padding: 12px 16px; border-radius: 10px; background: var(--ion); color: var(--on-ion); font-size: 14px; font-weight: 600; text-decoration: none; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.product .buy:hover { background: var(--ink); color: var(--paper); }
.product .buy:active { transform: translateY(1px); }
.product .buy-sub { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: -6px; }
@media (max-width: 900px) { .products { grid-template-columns: repeat(2, 1fr); } .shelf__head { align-items: start; } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } }

/* Cabecera de las páginas de contenido */
.nav-pill { background: var(--ion); color: var(--on-ion) !important; padding: 7px 14px; border-radius: 999px; font-weight: 500; }
.nav-pill:hover { background: var(--ink); color: var(--paper) !important; }

/* Cabecera única en todas las páginas: misma marca, mismo menú, mismo tamaño */
[data-skin="2027"] header { height: 64px; display: flex; align-items: center; gap: 36px; padding: 0 40px; background: var(--paper); border-bottom: 1px solid var(--rule); }
[data-skin="2027"] header .brand { font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); text-decoration: none; flex: none; margin-right: auto; }
[data-skin="2027"] header nav { display: flex; align-items: center; gap: 26px; margin: 0; font-size: 15px; }
[data-skin="2027"] header nav a { color: var(--muted); text-decoration: none; padding: 0; border: 0; transition: color var(--t-fast); white-space: nowrap; }
[data-skin="2027"] header nav a:hover { color: var(--ink); }
[data-skin="2027"] header nav a.nav-pill { color: var(--on-ion); padding: 7px 14px; }
[data-skin="2027"] header > .head-right, [data-skin="2027"] header > .modes { margin-left: auto; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--rule); border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; flex: none; }
.nav-toggle:hover { border-color: var(--ink); }
.mobile-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 55; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 12px 18px 20px; flex-direction: column; gap: 4px; box-shadow: 0 12px 32px rgba(15, 21, 18, .14); }
.mobile-nav.open { display: flex; }
.mobile-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.mobile-nav a:hover { background: var(--paper-deep); }
.mobile-nav a.nav-pill { justify-content: center; margin-top: 8px; background: var(--ion); color: var(--on-ion) !important; }
@media (max-width: 960px) {
  [data-skin="2027"] header { padding: 0 14px; gap: 10px; }
  [data-skin="2027"] header nav { display: none !important; }
  [data-skin="2027"] header .brand { font-size: 16px; margin-right: auto; }
  [data-skin="2027"] header .modes { margin-left: 0; padding: 2px; }
  [data-skin="2027"] header .modes button { min-width: 0; padding: 0 8px; height: 26px; font-size: 11px; }
  .nav-toggle { display: inline-flex; }
}

/* Pie de página: enlaces separados y legibles en todas las páginas */
[data-skin="2027"] footer a { color: var(--muted); text-decoration: none; }
[data-skin="2027"] footer a:hover { color: var(--ink); }
[data-skin="2027"] footer a + a { margin-left: 18px; }
[data-skin="2027"] footer .source a + a { margin-left: 18px; }

/* Logo: símbolo delante de la marca en todas las cabeceras */
[data-skin="2027"] header .brand { display: inline-flex; align-items: center; gap: 10px; }
[data-skin="2027"] header .brand::before { content: ""; width: 28px; height: 28px; background: url(icon.svg) center / contain no-repeat; flex: none; }
[data-skin="2027"] header .brand .mark { display: none; }

/* Aviso de cookies y pie de página común */
body.has-cookie-bar { padding-bottom: 112px; }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; max-width: 960px; margin: 0 auto; padding: 16px 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 12px 40px rgba(15, 21, 18, .18); font-size: 14px; line-height: 1.5; color: var(--text); }
.cookie-bar p { flex: 1 1 380px; margin: 0; }
.cookie-bar a { color: var(--ink); }
.cookie-bar div { display: flex; gap: 8px; }
.cookie-bar button { min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
.cookie-bar button:hover { border-color: var(--ink); }
.cookie-bar button.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.product .thumb:not([src]) { display: none; }
[data-skin="2027"] footer.site-footer { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 28px; margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--rule); font-family: var(--font-display); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--muted); }
[data-skin="2027"] body > footer.site-footer { padding-inline: 40px; max-width: none; }
[data-skin="2027"] footer.site-footer .links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
[data-skin="2027"] footer.site-footer a + a { margin-left: 0; }
@media (max-width: 760px) { [data-skin="2027"] body > footer.site-footer { padding-inline: 18px; } .cookie-bar { left: 10px; right: 10px; bottom: 10px; } }

/* Hueco de foto de producto heredado (regla base en .product .thumb-slot) */
.thumb-slot { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; max-height: 185px; padding: 14px; border-radius: 10px; background: var(--paper-deep) url(plug.svg) center / 28% no-repeat; overflow: hidden; }
.thumb-slot.has-img { background: #fff; border: 1px solid var(--rule); }
.thumb-slot img { display: block; width: 100%; height: 100%; object-fit: contain; }
