/* MundoPatinete · estilos principales (mobile-first, sin dependencias) */

/* Tipografía Inter: si subes los archivos a /assets/fonts/ (ver docs/LEEME.md),
   descomenta este bloque. Mientras tanto se usa la fuente del sistema. */
/*
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
*/

:root {
  /* Paleta «Noche eléctrica» */
  --accent: #0077ff;      /* azul eléctrico: botones y acentos */
  --accent-dark: #005fd1; /* textos y enlaces sobre blanco */
  --accent-soft: #e8f2ff;
  --volt: #2ee6ff;        /* cian voltio: solo sobre fondos oscuros */
  --text: #0f1b2d;        /* azul noche casi negro */
  --muted: #5b6578;
  --bg: #ffffff;
  --alt: #f1f4f8;         /* gris frío */
  --line: #dfe4eb;
  --dark: #0b1a2e;        /* azul noche: franja, pie y barras */
  --ok: #005fd1;
  --ok-soft: #e8f2ff;
  --warn: #b45309;
  --warn-soft: #fff7e8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--dark); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; }
.center { text-align: center; margin-top: 32px; }
.icon { flex-shrink: 0; vertical-align: middle; }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5em; }
.eyebrow-light { color: #b9e4de; }
.lead { font-size: 1.15rem; color: inherit; opacity: .92; }
.lead-sm { font-size: 1.05rem; color: var(--muted); max-width: 70ch; }
.hint { font-size: .9rem; color: var(--muted); }
.count { color: var(--muted); margin: 0; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 10px; border: 2px solid transparent; font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.2; background: var(--alt); color: var(--text); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-amazon { background: #ffd814; color: #0f1111; border: 1px solid #fcd200; font-weight: 700; }
.btn-amazon:hover { background: #f7ca00; color: #0f1111; border-color: #f2c200; }
.btn-link { background: none; color: var(--accent); text-decoration: underline; padding-left: 8px; padding-right: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 0; background: none; color: var(--text); cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--alt); color: var(--text); }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }

/* Cabecera */
.staging-bar { background: #fde68a; color: #422006; text-align: center; font-size: .8rem; font-weight: 600; padding: 4px 8px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
/* Móvil: menú a la izquierda, logo centrado y herramientas a la derecha */
.header-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 68px; }
.menu-btn { justify-self: start; margin-left: -10px; }
.logo { justify-self: center; }
.logo img { width: 150px; height: auto; display: block; }
.header-tools { display: flex; align-items: center; gap: 2px; justify-self: end; margin-right: -10px; }
.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase; padding: 12px 4px; }
.main-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.main-nav a:hover { color: var(--accent); }
.nav-search { display: flex; margin-top: 12px; }
.nav-search input { flex: 1; }
.nav-search button { border: 0; background: var(--accent); color: #fff; border-radius: 0 10px 10px 0; width: 50px; cursor: pointer; }
.nav-search input { border-radius: 10px 0 0 10px; }
.main-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: var(--shadow); }
.main-nav.open li { border-bottom: 1px solid var(--line); }
.search-panel { border-top: 1px solid var(--line); background: var(--alt); padding: 14px 0; }
.search-panel form { display: flex; gap: 8px; }
.search-panel input { flex: 1; }
@media (min-width: 960px) {
  .header-in { display: flex; justify-content: space-between; gap: 12px; }
  .menu-btn { display: none; }
  .header-tools { margin-right: 0; }
  .main-nav { display: block; }
  .main-nav ul { display: flex; gap: 34px; }
  .nav-search { display: none; }
  .logo img { width: 230px; }
  .header-in { min-height: 84px; }
}

/* Formularios */
input[type="text"], input[type="email"], input[type="search"], input[type="password"], input[type="url"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1px solid #c9cdd3; border-radius: 10px; padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(0,119,255,.35); border-color: var(--accent); }
.field { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.field > input, .field > select, .field > textarea { margin-top: 6px; font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; cursor: pointer; font-size: .97rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.check-strong { font-weight: 600; }
.field-error { color: #b42318; font-size: .9rem; margin: -8px 0 12px; }
.hp { position: absolute; left: -5000px; }
.notice { padding: 14px 16px; border-radius: var(--radius); margin: 16px 0; display: flex; gap: 10px; align-items: center; }
.notice-ok { background: var(--ok-soft); color: #004aa8; }
.notice-error { background: #fef3f2; color: #912018; }
.inline-search { display: flex; gap: 8px; max-width: 520px; }
.inline-search-lg { max-width: 680px; margin-bottom: 8px; }

/* Hero */
.hero { background: linear-gradient(135deg, #0d3b37 0%, #0f5f58 55%, #127a71 100%); color: #fff; overflow: hidden; }
.hero-in { display: grid; gap: 24px; padding-top: 44px; padding-bottom: 36px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); max-width: 16ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-art img { width: 100%; max-width: 560px; margin: 0 auto; }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.05fr 1fr; padding-top: 72px; padding-bottom: 64px; }
}
.trust-strip { background: var(--accent); color: #fff; font-size: .9rem; }
.trust-strip ul { list-style: none; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: center; }
.trust-strip li { display: flex; align-items: center; gap: 8px; }

/* Secciones */
.section { padding: 56px 0; }
.section-alt { background: var(--alt); }
.section-sm { margin: 48px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
@media (min-width: 900px) { .section { padding: 80px 0; } }
.page-top { padding-top: 20px; padding-bottom: 12px; }

/* Categorías */
.cat-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 12px; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); background: #fff; }
.cat-card:hover { border-color: var(--accent); color: var(--text); box-shadow: var(--shadow); }
.cat-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.cat-name { font-weight: 650; text-transform: uppercase; letter-spacing: .04em; font-size: .92rem; }
.cat-short { font-size: .88rem; color: var(--muted); }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } .cat-grid-compact { grid-template-columns: repeat(3, 1fr); } }

/* Chips */
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: .9rem; background: #fff; }
.chip:hover, .chip[aria-current="page"] { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.chip-static { background: var(--alt); }

/* Tarjetas de producto */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .card-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); }
.card-media { position: relative; display: block; background: #fff; aspect-ratio: 1 / 1; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.tag-dgt { position: absolute; top: 8px; left: 8px; background: #fff; color: var(--ok); font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; display: flex; align-items: center; gap: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tag-prov { position: absolute; bottom: 8px; left: 8px; right: 8px; text-align: center; font-size: .68rem; color: var(--muted); background: rgba(255,255,255,.85); border-radius: 6px; padding: 2px 6px; }
.card-body { padding: 14px 12px 14px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.02rem; margin: 0 0 10px; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.specs-mini { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; font-size: .9rem; }
.specs-mini li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.specs-mini span { color: var(--text); font-weight: 600; }
.highlight { font-size: .88rem; color: #3b4556; background: var(--alt); border-radius: 8px; padding: 6px 10px; margin: 0 0 12px; }
.card-actions { display: grid; gap: 8px; margin-top: auto; }
.compare-check { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); margin-top: 10px; cursor: pointer; min-height: 32px; }
.compare-check input { width: 18px; height: 18px; accent-color: var(--accent); }
@media (min-width: 520px) { .card-body { padding: 18px; } .specs-mini { grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 14px; } .specs-mini li { gap: 4px; } }
@media (min-width: 1100px) { .card-actions { grid-template-columns: 1fr 1fr; } }

/* Barra de comparación */
.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--dark); color: #fff; z-index: 60; padding: 10px 0; box-shadow: 0 -4px 16px rgba(0,0,0,.15); }
.compare-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.compare-bar p { margin: 0; font-size: .92rem; }
.compare-bar .btn-link { color: #fff; }
[data-compare-names] { color: #c8ccd2; }
@media (max-width: 600px) { [data-compare-names] { display: none; } }

/* Split (50/50) */

/* Artículos (tarjetas) */
.post-grid { display: grid; gap: 28px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } .post-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.post-media { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--alt); margin-bottom: 14px; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
/* Con foto, la tarjeta toma la proporción de la imagen (3:2 en el blog, 16:9 en las guías) y no recorta */
.post-media:has(img) { aspect-ratio: auto; }
.post-media:has(img) img { height: auto; display: block; }
.post-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), #f6f8fb); }
.post-ph-averias { color: var(--warn); background: linear-gradient(135deg, var(--warn-soft), #fffdf7); }
.post-ph-baterias { color: #1d4ed8; background: linear-gradient(135deg, #eaf1ff, #f7f9ff); }
.post-ph-normativa { color: #6d28d9; background: linear-gradient(135deg, #f1ebff, #faf8ff); }
.post-ph-trucos { color: #be185d; background: linear-gradient(135deg, #fdeef5, #fff8fb); }
.post-title { font-size: 1.15rem; font-weight: 600; }
.post-title a { color: var(--text); text-decoration: none; }
.post-title a:hover { color: var(--accent); }
.post-body p { color: var(--muted); font-size: .97rem; }
.more { color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; }
.more:hover { text-decoration-color: var(--accent); }

/* Catálogo */
.catalog { display: grid; gap: 24px; padding-bottom: 72px; }
.filters { display: none; }
.filters.open { display: block; position: fixed; inset: 0; z-index: 80; background: #fff; overflow-y: auto; padding: 16px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-head h2 { font-size: 1.2rem; margin: 0; }
.filters fieldset { border: 0; padding: 0; margin: 12px 0 16px; }
.filters legend { font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.filters-actions { position: sticky; bottom: 0; background: #fff; padding: 12px 0; display: flex; gap: 8px; align-items: center; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.sort select { width: auto; min-height: 40px; padding: 6px 10px; }
.empty { padding: 32px; background: var(--alt); border-radius: var(--radius); text-align: center; }
@media (min-width: 960px) {
  .catalog { grid-template-columns: 250px 1fr; gap: 36px; }
  .filters { display: block; position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 6px; }
  .filters-close, .filters-open { display: none !important; }
  .filters .field { font-size: .9rem; }
  .filters select { min-height: 40px; padding: 7px 10px; }
}

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: #b4b8bf; }
.breadcrumbs a { color: var(--muted); }

/* Ficha */
.product { padding-bottom: 40px; }
.product-top { display: grid; gap: 28px; }
@media (min-width: 900px) { .product-top { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.gallery-main { position: relative; background: #fff; border-radius: var(--radius); aspect-ratio: 1 / 1; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.thumbs { list-style: none; padding: 0; margin: 10px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs button { border: 2px solid var(--line); background: #fff; border-radius: 8px; padding: 2px; width: 72px; height: 72px; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.key-specs { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.key-specs li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; background: var(--alt); border-radius: 10px; color: var(--accent); }
.key-specs .icon { grid-row: span 2; }
.key-specs .k { font-size: .8rem; color: var(--muted); }
.key-specs strong { color: var(--text); font-size: 1.02rem; }
.dgt { display: flex; gap: 12px; padding: 14px; border-radius: 10px; margin-bottom: 18px; font-size: .93rem; }
.dgt p { margin: 4px 0 0; color: var(--muted); }
.dgt-ok { background: var(--ok-soft); color: var(--ok); }
.dgt-ok strong { color: #004aa8; }
.dgt-warn { background: var(--warn-soft); color: var(--warn); }
.dgt-warn strong { color: #78350f; }
.buy-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.aff-note { font-size: .84rem; color: var(--muted); margin: 10px 0 0; }
.spec-section { margin-top: 48px; }
.spec-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-grid li { background: #fff; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.spec-icon { color: var(--accent); }
.spec-label { font-size: .82rem; color: var(--muted); }
.spec-value { font-weight: 600; font-size: .98rem; line-height: 1.35; }
@media (min-width: 760px) { .spec-grid { grid-template-columns: repeat(4, 1fr); } .spec-grid li { padding: 20px; } }
.spec-notes { font-size: .92rem; color: var(--muted); margin-top: 12px; }
.pros-cons { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 760px) { .pros-cons { grid-template-columns: 1fr 1fr; gap: 24px; } }
.box { border-radius: var(--radius); padding: 22px; }
.box h2 { font-size: 1.15rem; display: flex; gap: 10px; align-items: center; }
.box ul { margin: 0; padding-left: 1.1em; }
.box li { margin: 6px 0; }
.box-pros { background: var(--ok-soft); }
.box-pros h2 { color: #004aa8; }
.box-cons { background: var(--warn-soft); }
.box-cons h2 { color: #78350f; }
.for-whom { margin-top: 40px; max-width: 800px; }
.tech { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.tech summary { cursor: pointer; font-weight: 600; padding: 16px 0; }
.buy-final { margin-top: 48px; padding: 28px; border-radius: var(--radius); background: var(--accent-soft); display: grid; gap: 16px; align-items: center; }
.buy-final h2 { font-size: 1.3rem; }
.buy-final p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .buy-final { grid-template-columns: 1fr auto; } }

/* Tablas */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 0 16px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--alt); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-scroll .table { margin: 0; min-width: 640px; }

/* Comparador */
.compare-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: end; padding: 16px; background: var(--alt); border-radius: var(--radius); }
.compare-pick .field { margin-bottom: 12px; font-size: .88rem; }
.compare-pick .btn { grid-column: 1 / -1; }
@media (min-width: 900px) { .compare-pick { grid-template-columns: repeat(4, 1fr) auto; } .compare-pick .btn { grid-column: auto; margin-bottom: 12px; } }
.compare-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 24px 0 12px; }
.compare-tools .hint { margin: 0; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--accent); }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.compare-table { border-collapse: collapse; width: 100%; min-width: calc(var(--cols) * 46vw); font-size: .95rem; }
.compare-table th, .compare-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; width: calc(100% / var(--cols)); scroll-snap-align: start; }
.compare-table thead th { background: #fff; position: sticky; top: 0; font-weight: 600; }
.compare-table thead img { width: 110px; height: 110px; object-fit: contain; background: var(--alt); border-radius: 10px; margin-bottom: 8px; padding: 6px; }
.compare-table thead a { color: var(--text); font-size: 1rem; }
.compare-table .side { display: none; }
.compare-table tr.lbl th { background: var(--alt); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 12px; position: sticky; left: 0; }
.compare-table td.best { color: var(--ok); font-weight: 700; }
.compare-table.only-diff tr.same { display: none; }
.compare-table.only-diff tr.diff td { background: #fffdf3; }
.actions-row td { display: table-cell; }
.actions-row .btn { margin-bottom: 8px; }
@media (min-width: 760px) {
  .compare-table { min-width: 0; }
  .compare-table .side { display: table-cell; width: 190px; color: var(--muted); font-weight: 500; background: #fcfcfd; }
  .compare-table tr.lbl { display: none; }
  .compare-table.only-diff tr.lbl { display: none; }
  .compare-table thead img { width: 140px; height: 140px; }
}
.link-list { padding-left: 1.2em; }
.link-list li { margin: 8px 0; }

/* Recomendador */
.quiz { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 64px; }
.quiz-progress { font-size: .88rem; color: var(--muted); margin: 0 0 6px; }
.progress { height: 6px; background: var(--alt); border-radius: 3px; overflow: hidden; margin-bottom: 20px; }
.progress span { display: block; height: 100%; width: 16%; background: var(--accent); }
.quiz-step { border: 0; padding: 0; margin: 0 0 28px; }
.quiz-step legend { font-size: 1.2rem; font-weight: 650; margin-bottom: 14px; }
.q-num { color: var(--accent); }
.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 1rem; }
.option input { width: 20px; height: 20px; accent-color: var(--accent); }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.quiz.js .quiz-step:not(.active) { display: none; }
.quiz.js .quiz-progress, .quiz.js .progress { display: block; }
.quiz:not(.js) .quiz-progress, .quiz:not(.js) .progress { display: none; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.reco-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.reco { display: grid; grid-template-columns: 96px 1fr; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.reco:first-child { border: 2px solid var(--accent); }
.reco-media { background: var(--alt); border-radius: 10px; aspect-ratio: 1; display: grid; place-items: center; }
.reco-media img { object-fit: contain; padding: 8px; }
.reasons { list-style: none; padding: 0; margin: 0 0 12px; font-size: .95rem; }
.reasons li { display: flex; gap: 8px; margin: 6px 0; }
.reasons .icon { color: var(--ok); margin-top: 4px; }
.reasons .warn .icon { color: var(--warn); }
.reco .card-actions { grid-template-columns: auto auto; justify-content: start; }
@media (min-width: 700px) { .reco { grid-template-columns: 160px 1fr; } }
.actions-inline { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }

/* Artículo */
.article { padding-bottom: 40px; }
.article-head { max-width: 820px; }
.article-head h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
.meta { font-size: .9rem; color: var(--muted); }
.article-image { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }
.article-layout { display: grid; gap: 24px; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: 250px minmax(0, 740px); gap: 56px; } .article-layout.no-toc { grid-template-columns: minmax(0, 780px); } .toc { position: sticky; top: 110px; align-self: start; } }
.toc { font-size: .93rem; }
.toc details { background: var(--alt); border-radius: var(--radius); padding: 14px 18px; }
.toc summary { font-weight: 600; cursor: pointer; }
.toc ol { margin: 10px 0 0; padding-left: 1.2em; }
.toc li { margin: 6px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.prose { max-width: 740px; }
.prose-narrow { max-width: 780px; padding-bottom: 48px; }
.prose h2 { margin-top: 1.8em; scroll-margin-top: 100px; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin: .35em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose thead th { background: var(--alt); }
.prose .aviso, .prose .consejo, .prose .peligro { border-radius: var(--radius); padding: 16px 18px; margin: 1.4em 0; }
.prose .aviso { background: var(--warn-soft); border-left: 4px solid var(--warn); }
.prose .consejo { background: var(--accent-soft); border-left: 4px solid var(--accent); }
.prose .peligro { background: #fef3f2; border-left: 4px solid #d92d20; }
.prose .aviso p:last-child, .prose .consejo p:last-child, .prose .peligro p:last-child { margin: 0; }
.prose ol.pasos { counter-reset: paso; list-style: none; padding: 0; }
.prose ol.pasos > li { counter-increment: paso; position: relative; padding-left: 46px; margin: 14px 0; }
.prose ol.pasos > li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
/* Cuadro de averías: Problema · Causas · Comprobaciones · Técnico */
.prose table.averia { display: table; }
.prose table.averia th { width: 34%; background: var(--alt); }
.prose table.averia tr.tecnico th, .prose table.averia tr.tecnico td { background: #fef3f2; }
@media (max-width: 640px) {
  .prose table.averia, .prose table.averia tbody, .prose table.averia tr, .prose table.averia th, .prose table.averia td { display: block; width: 100%; }
  .prose table.averia tr { margin-bottom: 0; }
  .prose table.averia th { border-bottom: 0; }
}
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.sources { font-size: .92rem; color: var(--muted); }
.cta-band { margin: 48px 0 64px; padding: 24px; border-radius: var(--radius); background: var(--alt); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.cta-band p { margin: 0; }
.blog-tools { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.blog-tools .chips { margin: 0; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 48px 0 64px; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); }
.pagination span { background: var(--dark); color: #fff; border-color: var(--dark); }
.page-404 { padding: 64px 16px; }
.form { margin-bottom: 64px; }

/* Pie */
.site-footer { background: var(--dark); color: #c9d3e0; border-top: 3px solid var(--accent); margin-top: 64px; padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: #e9ebee; text-decoration: none; }
.site-footer a:hover { color: var(--volt); text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: #a9aeb6; max-width: 34ch; margin-top: 12px; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--volt); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.footer-note { border-top: 1px solid #33353b; margin-top: 36px; padding-top: 20px; font-size: .85rem; color: #a9aeb6; }
.copy { margin: 0; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
body.has-compare-bar .site-footer { padding-bottom: 90px; }

/* Banner con fotografía (portada) */
.hero { position: relative; isolation: isolate; background: #1c1a24; min-height: 78vh; display: flex; align-items: flex-start; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg { z-index: -2; }
.hero-bg img { object-fit: cover; object-position: center bottom; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 20, 40, .72) 0%, rgba(10, 20, 40, .35) 38%, rgba(10, 20, 40, 0) 60%); }
.hero-in { display: block; width: 100%; padding-top: 40px; padding-bottom: 40px; }
.hero-text { max-width: 560px; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.hero .eyebrow-light { color: var(--volt); }
@media (min-width: 700px) {
  .hero { min-height: 0; aspect-ratio: auto; height: min(37.5vw, 640px); width: 100%; align-items: center; }
  .hero-bg img { object-position: center; }
  .hero::before { background: linear-gradient(270deg, rgba(10, 20, 40, .72) 0%, rgba(10, 20, 40, .45) 40%, rgba(10, 20, 40, 0) 62%); }
  .hero-in { display: flex; justify-content: flex-end; padding-top: 32px; padding-bottom: 32px; }
  .hero-in { grid-template-columns: none; }
}

/* Franja de confianza con el verde del logo */
.trust-strip { background: var(--dark); font-weight: 600; }
.trust-strip .icon { color: var(--volt); }

/* Iconos de categoría con imagen */
.cat-img { width: 80px; height: 80px; }
/* Móvil: texto centrado y equilibrado sobre un degradado azul noche que asegura la lectura */
@media (max-width: 699px) {
  .hero { min-height: 0; aspect-ratio: 600 / 1066; max-height: 92vh; }
  .hero::before { background:
    linear-gradient(180deg, rgba(11, 26, 46, .85) 0%, rgba(11, 26, 46, .7) 38%, rgba(11, 26, 46, .25) 58%, rgba(11, 26, 46, 0) 70%),
    linear-gradient(0deg, rgba(11, 26, 46, .55) 0%, rgba(11, 26, 46, 0) 18%); }
  .hero-in { padding-top: clamp(56px, 14vh, 130px); }
  .hero-text { max-width: 30rem; margin: 0 auto; text-align: center; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
  .hero .eyebrow-light { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border: 1px solid rgba(46, 230, 255, .45); border-radius: 999px; background: rgba(11, 26, 46, .55); font-size: .7rem; letter-spacing: .1em; text-shadow: none; }
  .hero h1 { font-size: clamp(1.8rem, 1.2rem + 3vw, 2.2rem); line-height: 1.15; max-width: none; margin: 0 auto 12px; text-wrap: balance; }
  .hero .lead { font-size: 1rem; line-height: 1.5; max-width: 32ch; margin: 0 auto; opacity: 1; text-wrap: balance; }
}
@media (min-width: 700px) {
  .hero-text { max-width: min(560px, 50%); }
  .hero h1 { font-size: clamp(1.7rem, .6rem + 2.6vw, 3.2rem); }
  .hero .lead { font-size: clamp(.95rem, .8rem + .4vw, 1.15rem); }
}

/* Buscador de certificados DGT */
.dgt-search { margin: 8px 0 12px; padding: 20px; border-radius: var(--radius); background: var(--alt); }
.dgt-label { display: block; font-weight: 700; margin-bottom: 8px; }
.dgt-field { display: flex; gap: 8px; }
.dgt-field input { flex: 1; font-size: 1.05rem; }
.dgt-field .btn { white-space: nowrap; }
.dgt-search .hint { margin: 10px 0 0; }
.dgt-count { font-weight: 700; margin: 16px 0 10px; }
.dgt-empty { padding: 18px 20px; border-radius: var(--radius); background: var(--warn-soft); margin-bottom: 16px; }
.dgt-empty h2 { font-size: 1.1rem; margin-bottom: 6px; }
.dgt-empty p { margin: 0; }
.dgt-ficha { display: inline-block; margin-top: 4px; font-weight: 600; font-size: .9rem; }
.dgt-table .table { min-width: 0; }
.dgt-table td:last-child { white-space: nowrap; }
@media (max-width: 640px) {
  .dgt-field { flex-direction: column; }
  .dgt-table { border: 0; overflow: visible; }
  .dgt-table thead { display: none; }
  .dgt-table tr { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
  .dgt-table tr[hidden] { display: none; }
  .dgt-table td { display: flex; gap: 12px; border: 0; padding: 4px 0; }
  .dgt-table td::before { content: attr(data-label); flex: 0 0 88px; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: 2px; }
  .dgt-table td[data-label="Modelo"] { display: block; padding-left: 100px; position: relative; }
  .dgt-table td[data-label="Modelo"]::before { position: absolute; left: 0; top: 6px; }
}

/* Mejores patinetes */
.chips-nav { margin: 0 0 8px; }
.best-pick { display: grid; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.best-pick:last-of-type { border-bottom: 0; }
.best-text h2 { margin-bottom: 8px; }
.best-why { font-size: 1.08rem; font-weight: 600; color: var(--accent-dark); }
.best-specs { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.best-specs li { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; background: var(--alt); font-size: .92rem; }
.best-specs span { color: var(--muted); font-size: .8rem; }
@media (min-width: 800px) {
  .best-pick { grid-template-columns: 300px 1fr; align-items: start; }
  .best-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Portada: bloque del buscador DGT */
.dgt-cta { background: var(--dark); color: #fff; padding: 40px 0; }
.dgt-cta h2 { color: #fff; margin-bottom: 8px; }
.dgt-cta p { color: #c9d3e0; margin: 0; }
.dgt-cta .eyebrow-light { color: var(--volt); margin-bottom: 6px; }
.dgt-cta-in { display: grid; gap: 20px; align-items: center; }
.dgt-cta-form { display: flex; gap: 8px; }
.dgt-cta-form input { flex: 1; min-width: 0; }
@media (min-width: 900px) { .dgt-cta-in { grid-template-columns: 1.1fr 1fr; gap: 40px; } }
@media (max-width: 480px) { .dgt-cta-form { flex-direction: column; } }
.dgt-more { margin: 6px 0 0; font-size: .9rem; }

/* Calculadoras */
.calc-form { display: grid; gap: 14px 16px; padding: 20px; border-radius: var(--radius); background: var(--alt); margin: 8px 0 20px; }
@media (min-width: 760px) { .calc-form { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; } .calc-wide { grid-column: 1 / -1; } }
.calc-field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.calc-unit { display: flex; align-items: stretch; }
.calc-unit input { border-radius: 10px 0 0 10px; min-width: 0; }
.calc-unit span { display: grid; place-items: center; padding: 0 12px; border: 1px solid #c9cdd3; border-left: 0; border-radius: 0 10px 10px 0; background: #fff; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.calc-form .hint { margin: 0; }
.calc-result { padding: 24px; border-radius: var(--radius); background: var(--dark); color: #fff; }
.calc-result .hint { color: #c9d3e0; margin: 10px 0 0; }
.calc-label { margin: 0; color: #c9d3e0; font-size: .9rem; font-weight: 600; }
.calc-big { margin: 2px 0 6px; font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); font-weight: 800; color: var(--volt); line-height: 1.1; }
.calc-formula { margin: 0; font-size: .95rem; }
.calc-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-grid .calc-big { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); }
@media (min-width: 760px) { .calc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.calc-grid .calc-wide { grid-column: 1 / -1; color: #c9d3e0; }
.calc-model[hidden] { display: none; }
.calc-none { padding: 14px 18px; border-radius: 10px; background: var(--warn-soft); }

/* Comparativas «A vs B» */
.vs-cards { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; max-width: 760px; }
.vs-cards > div { display: flex; }
.vs-cards > div > .card { flex: 1; }
.vs-badge { align-self: center; }
.vs-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--dark); color: var(--volt); font-weight: 800; }
.vs-why { display: grid; gap: 16px; }
@media (min-width: 760px) { .vs-why { grid-template-columns: 1fr 1fr; } }
.vs-why .box h3 { margin-bottom: 8px; }
.vs-why ul { margin: 0; padding-left: 1.1em; }
.vs-why li { margin: 6px 0; }
.vs-why li::first-letter { text-transform: uppercase; }
.vs-table th[scope="row"] { width: 30%; background: var(--alt); }
.vs-table td.best { font-weight: 700; color: var(--accent-dark); }
.vs-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
@media (min-width: 760px) { .vs-list { grid-template-columns: 1fr 1fr; } }
.vs-item { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.vs-item:hover { box-shadow: var(--shadow); color: var(--text); }
.vs-item strong { font-size: 1.15rem; }
.vs-item span:last-child { color: var(--muted); font-size: .95rem; }
.vs-imgs { display: flex; gap: 8px; }
.vs-imgs img { width: 90px; height: 90px; object-fit: contain; background: var(--alt); border-radius: 10px; padding: 6px; }
.link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.link-list a { font-weight: 600; }
@media (max-width: 520px) { .vs-cards { grid-template-columns: 1fr 1fr; } .vs-badge { display: none; } }
.vs-why .box { background: var(--alt); }
.tag-warn { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: .82rem; font-weight: 600; }
.eyebrow a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; } .eyebrow a:hover { color: var(--accent-dark); }

/* Portada: tarjetas de herramientas y selecciones */
.tool-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tool-grid li { display: flex; }
.tool-card { position: relative; flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 26px 22px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--text); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tool-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tone); }
.tool-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: var(--tone-soft); z-index: 0; }
.tool-card > * { position: relative; z-index: 1; }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16, 24, 40, .06), 0 14px 32px rgba(16, 24, 40, .12); border-color: var(--tone); color: var(--text); }
.tool-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; background: var(--tone); color: var(--tone-ink); margin-bottom: 10px; box-shadow: 0 6px 16px var(--tone-soft); }
.tool-tag { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); }
.tool-title { font-size: 1.15rem; line-height: 1.25; }
.tool-text { color: var(--muted); font-size: .95rem; flex: 1; }
.tool-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; color: var(--accent-dark); }
.tool-go .icon { transition: transform .2s ease; }
.tool-card:hover .tool-go .icon { transform: translateX(4px); }
.t-blue { --tone: var(--accent); --tone-soft: rgba(0, 119, 255, .12); --tone-ink: #fff; }
.t-navy { --tone: var(--dark); --tone-soft: rgba(11, 26, 46, .10); --tone-ink: var(--volt); }
.t-cyan { --tone: #12b5d4; --tone-soft: rgba(46, 230, 255, .18); --tone-ink: #fff; }
.t-yellow { --tone: #ffd814; --tone-soft: rgba(255, 216, 20, .22); --tone-ink: var(--dark); }
@media (prefers-reduced-motion: reduce) { .tool-card, .tool-go .icon { transition: none; } .tool-card:hover { transform: none; } }
.tool-img { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 10px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 119, 255, .22)); }

/* Portada: recomendador y comparador */
.features { padding: 56px 0; background: var(--alt); }
.features-in { display: grid; gap: 28px; }
.feature { display: grid; gap: 28px; align-items: center; padding: 32px 22px; border-radius: 22px; overflow: hidden; position: relative; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px 52px; } .feature-light .feature-art { order: 0; } }
.feature h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin-bottom: 12px; }
.feature-text > p { margin: 0 0 16px; }
.feature .btn-lg .icon { margin-left: 2px; }
.feature-dark { background: radial-gradient(120% 140% at 100% 0%, #13325a 0%, var(--dark) 55%); color: #c9d3e0; }
.feature-dark h2, .feature-dark strong { color: #fff; }
.feature-dark .eyebrow-light { color: var(--volt); }
.feature-dark::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(46, 230, 255, .25); box-shadow: 0 0 0 40px rgba(46, 230, 255, .04); pointer-events: none; }
.feature-light { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.feature-points { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.feature-points li { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: .95rem; }
.feature-points .icon { color: var(--volt); }
.feature-art { display: grid; place-items: center; position: relative; z-index: 1; }

@media (max-width: 899px) { .feature-light .feature-art { order: 2; } }
.feature-img { width: 100%; max-width: 520px; height: auto; border-radius: 18px; box-shadow: 0 2px 6px rgba(16, 24, 40, .06), 0 18px 40px rgba(16, 24, 40, .12); }
.feature-img-quiz { max-width: 420px; border-radius: 20px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12), 0 24px 48px rgba(0, 0, 0, .3); }

/* Barra de aviso superior */
.topbar { background: var(--dark); color: #dbe4ef; font-size: .88rem; border-bottom: 1px solid rgba(46, 230, 255, .18); }
.aviso-cerrado .topbar, .topbar[hidden] { display: none; }
.topbar-in { display: flex; align-items: center; gap: 10px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.topbar p { flex: 1; margin: 0; text-align: center; line-height: 1.4; }
.topbar p > .icon { color: var(--volt); vertical-align: -3px; margin-right: 2px; }
.topbar span { font-weight: 600; color: #fff; }
.topbar a { color: var(--volt); font-weight: 700; text-decoration: none; white-space: nowrap; }
.topbar a:hover { text-decoration: underline; }
.topbar a .icon { vertical-align: -2px; }
.topbar-close { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #9fb0c6; cursor: pointer; }
.topbar-close:hover { background: rgba(255, 255, 255, .08); color: #fff; }
@media (max-width: 640px) { .topbar { font-size: .8rem; } .topbar p { text-align: left; } }
.footer-logo { display: block; width: 220px; height: auto; margin-bottom: 10px; }

/* Categorías del blog: botones cuadrados en gris claro */
.cat-tabs { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tab { display: inline-flex; align-items: center; min-height: 42px; padding: 10px 18px; border-radius: 10px; background: #eef1f5; border: 1px solid #e1e6ed; color: var(--text); font-weight: 600; font-size: .93rem; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.cat-tab:hover { background: #e3e9f1; border-color: #cfd7e2; color: var(--text); }
.cat-tab[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 640px) { .cat-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; } .cat-tabs::-webkit-scrollbar { display: none; } .cat-tab { white-space: nowrap; } }

/* Chips generales (catálogo, categorías, mejores) */
.chip { padding: 8px 16px; border-radius: 12px; font-weight: 600; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: border-color .15s ease, box-shadow .15s ease; }
.chip:hover { box-shadow: 0 4px 12px rgba(0, 119, 255, .12); }
.chip[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-static { font-weight: 500; box-shadow: none; }

/* Compartir (logotipos oficiales con sus colores de marca) */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 32px 0; padding: 16px 18px; border-radius: 16px; background: var(--alt); }
.share-title { margin: 0; font-weight: 700; font-size: .95rem; }
.share-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px; border: 0; border-radius: 12px; font: inherit; font-weight: 700; font-size: .9rem; color: #fff; text-decoration: none; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.share-btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.share-whatsapp { background: #25d366; }
.share-facebook { background: #0866ff; }
.share-x { background: #000; }
.share-copy { background: #fff; color: var(--text); border: 1px solid var(--line); }
.share-copy:hover { color: var(--accent-dark); }
@media (max-width: 520px) { .share-btn span { display: none; } .share-btn { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; } }
@media (prefers-reduced-motion: reduce) { .share-btn { transition: none; } .share-btn:hover { transform: none; } }
