/* ============================================================
   ESTILOS — Web de patinetes eléctricos
   Tema: tecnología, tonos azules + acento eléctrico
   ============================================================ */

:root {
  --bg: #0b1220;
  --bg-soft: #101a2e;
  --card: #16223a;
  --card-hover: #1c2b47;
  --border: #24344f;
  --text: #e8eef7;
  --text-muted: #9fb0c8;
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --cta: #f59e0b;
  --cta-hover: #fbbf24;
  --green: #34d399;
  --red: #f87171;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Barra superior ---------- */
.topbar {
  background: linear-gradient(90deg, #0ea5e9, #22d3ee);
  color: #062033;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
}

/* ---------- Cabecera ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}
.logo .bolt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  color: #062033;
  font-size: 1.1rem;
}
nav.main-nav { display: flex; gap: 6px; align-items: center; }
nav.main-nav a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .15s;
}
nav.main-nav a:hover { color: var(--text); background: var(--card); }
nav.main-nav a.active { color: var(--text); background: var(--card); }
nav.main-nav a.cta-nav {
  background: var(--cta);
  color: #1a1206;
}
nav.main-nav a.cta-nav:hover { background: var(--cta-hover); color: #1a1206; }

/* ---------- Hero ---------- */
.hero {
  padding: 70px 0 50px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(56,189,248,0.15), transparent 60%),
    var(--bg);
}
.hero .badge {
  display: inline-block;
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.35);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 1.1rem;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform .12s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cta); color: #1a1206; box-shadow: 0 8px 20px rgba(245,158,11,0.3); }
.btn-primary:hover { background: var(--cta-hover); }
.btn-secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--card-hover); }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #062033; }

/* ---------- Secciones ---------- */
section { padding: 50px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 8px; }
.section-head p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ---------- Grid de productos ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.card .thumb {
  aspect-ratio: 4/3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .marca { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.card h3 { font-size: 1.05rem; line-height: 1.3; font-weight: 700; }
.card .rating { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted); }
.stars { color: var(--cta); letter-spacing: 1px; }
.card .specs { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}
.card .price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.price { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.price-old { color: var(--text-muted); text-decoration: line-through; font-size: 0.9rem; }
.discount { color: var(--green); font-weight: 700; font-size: 0.85rem; }
.card .actions { display: flex; gap: 8px; }
.card .actions .btn { flex: 1; justify-content: center; padding: 10px 12px; font-size: 0.9rem; }

/* ---------- Página de producto ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.product-media {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 90px;
}
.product-media img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.product-info h1 { font-size: 1.9rem; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.product-info .marca { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 0.8rem; }
.product-info .rating { display: flex; align-items: center; gap: 8px; margin: 12px 0; color: var(--text-muted); }
.product-info .price-row { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.product-info .price { font-size: 2.2rem; }
.buy-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.buy-box .btn { justify-content: center; width: 100%; }
.buy-box .note { font-size: 0.8rem; color: var(--text-muted); text-align: center; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.spec-table td:first-child { color: var(--text-muted); width: 45%; font-weight: 600; }
.spec-table tr:last-child td { border-bottom: none; }

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
}
.panel h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; }
.panel h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pros-cons ul { list-style: none; }
.pros-cons li { padding: 6px 0 6px 26px; position: relative; font-size: 0.95rem; }
.pros-cons .pros li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.pros-cons .cons li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 800; }

/* Barras de análisis */
.meter { margin-bottom: 14px; }
.meter .label { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 5px; }
.meter .label span:last-child { color: var(--accent); font-weight: 700; }
.meter .bar { height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.meter .fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }

/* ---------- Comparador ---------- */
.compare-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pick {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all .15s;
  user-select: none;
}
.pick:hover { border-color: var(--accent); }
.pick.selected { border-color: var(--accent); background: rgba(56,189,248,0.08); }
.pick .thumb { width: 56px; height: 42px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #fff; }
.pick .thumb img { width: 100%; height: 100%; object-fit: contain; }
.pick .name { font-size: 0.85rem; font-weight: 600; line-height: 1.25; }
.pick .check {
  margin-left: auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: transparent; font-size: 0.8rem; flex-shrink: 0;
}
.pick.selected .check { background: var(--accent); border-color: var(--accent); color: #062033; }

.compare-toolbar {
  position: sticky;
  top: 80px;
  z-index: 40;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.compare-toolbar .count { font-weight: 700; }
.compare-toolbar .count b { color: var(--accent); }

.compare-table-wrap { overflow-x: auto; }
.compare-table { border-collapse: collapse; width: 100%; min-width: 640px; }
.compare-table th, .compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.compare-table thead th {
  background: var(--card);
  position: sticky;
  top: 0;
}
.compare-table .col-product { min-width: 180px; }
.compare-table .col-product img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; border-radius: 10px; margin-bottom: 10px; }
.compare-table .col-product .name { font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.compare-table .col-product .price { font-size: 1.2rem; }
.compare-table .row-label { color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.compare-table .best { color: var(--green); font-weight: 700; }
.compare-table .btn { width: 100%; justify-content: center; padding: 10px; font-size: 0.9rem; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(34,211,238,0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.newsletter h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.newsletter p { color: var(--text-muted); margin-bottom: 20px; }
.newsletter form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.newsletter input {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}
.newsletter input:focus { outline: none; border-color: var(--accent); }
.newsletter .msg { margin-top: 12px; font-weight: 600; color: var(--green); min-height: 1.4em; }

/* ---------- Pie ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--text-muted); }
footer.site a:hover { color: var(--text); }
.disclaimer { margin-top: 20px; font-size: 0.78rem; color: #6b7c94; max-width: 800px; }

/* ---------- Oferta del día ---------- */
.oferta-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}
.oferta-media { position: relative; background: #fff; }
.oferta-media img { width: 100%; height: 100%; object-fit: contain; }
.oferta-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--cta);
  color: #1a1206;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.oferta-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.oferta-body h3 { font-size: 1.4rem; font-weight: 800; line-height: 1.25; }

/* ---------- Calculadora ---------- */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}
.field input:focus { outline: none; border-color: var(--accent); }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.calc-value { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.calc-amortiza {
  margin-top: 18px;
  padding: 14px;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.35);
  border-radius: 10px;
  color: var(--green);
  font-weight: 600;
}

/* ---------- Filtros ---------- */
.filter-bar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 26px;
}
.filter-field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 150px; }
.filter-field label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.filter-field select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
}
.filter-field select:focus { outline: none; border-color: var(--accent); }

/* ---------- Etiquetas "Mejor para..." ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.35);
  color: var(--accent);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------- Recomendador (quiz) ---------- */
.quiz { max-width: 720px; margin: 0 auto; }
.options { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all .15s;
  font-weight: 600;
}
.opt:hover { border-color: var(--accent); }
.opt input { accent-color: var(--accent); width: 18px; height: 18px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); background: rgba(56,189,248,0.08); }

.reco-card { position: relative; }
.reco-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: var(--cta);
  color: #1a1206;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
}
.reco-motivos { list-style: none; margin: 4px 0 0; }
.reco-motivos li { font-size: 0.85rem; color: var(--green); padding: 3px 0; }

/* Recomendación editorial (portada) */
.reco-razon { color: var(--text-muted); font-size: 0.9rem; line-height: 1.45; margin: 2px 0; }
.recomendado { height: 100%; }
.recomendado .thumb { aspect-ratio: 4/3; }
.updated { color: var(--accent); font-weight: 700; }

/* ---------- Popup de suscripción ---------- */
.popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.62); display: none; align-items: center; justify-content: center; z-index: 999; }
.popup-overlay.open { display: flex; }
.popup { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 26px; max-width: 380px; width: 92%; text-align: center; position: relative; box-shadow: var(--shadow); }
.popup-close { position: absolute; top: 10px; right: 12px; background: none; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; }
.popup-icon { font-size: 2.2rem; margin-bottom: 8px; }
.popup h3 { margin-bottom: 8px; }
.popup p { color: var(--text-muted); font-size: .95rem; margin-bottom: 16px; }
.popup .btn { width: 100%; justify-content: center; }
.popup-note { display: block; margin-top: 10px; font-size: .75rem; color: var(--text-muted); }

/* ---------- Guía de compra ---------- */
.guide-list { list-style: none; margin-top: 12px; }
.guide-list li { padding: 7px 0 7px 26px; position: relative; }
.guide-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.faq { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); }
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 0 16px; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-media { position: static; }
  .pros-cons { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  nav.main-nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
  .oferta-card { grid-template-columns: 1fr; }
  .calc-layout { grid-template-columns: 1fr; }
  .calc-results { grid-template-columns: 1fr; }
}

.guide-links{display:flex;flex-wrap:wrap;gap:8px}
.guide-links a{background:var(--bg);border:1px solid var(--border);color:var(--accent-2);padding:7px 13px;border-radius:20px;text-decoration:none;font-size:.9rem}
.guide-links a:hover{border-color:var(--accent)}

/* === Tarjetas premium === */
.thumb{position:relative;overflow:hidden;display:block;border-radius:12px;background:#fff}
.thumb img{aspect-ratio:1;width:100%;height:100%;object-fit:contain;padding:8px;transition:transform .45s ease}
.card:hover .thumb img{transform:scale(1.06)}
.thumb-badge{position:absolute;top:8px;left:8px;background:#0f7a3d;color:#fff;font-size:.68rem;font-weight:700;padding:3px 10px;border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.35);z-index:2}
.card{transition:transform .25s ease, box-shadow .25s ease}
.card:hover{transform:translateY(-5px);box-shadow:0 16px 38px rgba(0,0,0,.38)}
/* === Hero tipo video (movimiento sutil) === */
.hero{position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(255,140,0,.10),transparent 45%,rgba(0,180,255,.12));animation:bgshift 10s ease-in-out infinite alternate;pointer-events:none}
@keyframes bgshift{from{background-position:0% 0%}to{background-position:100% 0%}}
.hero-img{animation:kenburns 16s ease-in-out infinite alternate}
@keyframes kenburns{from{transform:scale(1) translateX(0)}to{transform:scale(1.13) translateX(-4%)}}
/* === Boton sticky de compra (fichas) === */
#sticky-buy{position:fixed;left:0;right:0;bottom:0;z-index:80;background:rgba(20,29,45,.96);backdrop-filter:blur(8px);border-top:1px solid var(--border);padding:10px 16px;display:none}
#sticky-buy .s-wrap{max-width:900px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#sticky-buy .s-name{color:var(--text);font-size:.9rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:55%}
#sticky-buy .s-btn{white-space:nowrap;margin:0}

/* Menú hamburguesa en móvil */
.menu-toggle{display:none;background:var(--card2);border:1px solid var(--border);color:var(--text);border-radius:9px;padding:8px 11px;font-size:1.25rem;cursor:pointer;line-height:1}
/* Evitar que el menú se corte en PC: permite saltar de línea */
.header-inner{flex-wrap:wrap}
.main-nav{flex-wrap:wrap}

@media(max-width:860px){
  .header-inner{position:relative;flex-wrap:nowrap !important}
  .menu-toggle{display:inline-flex !important;margin-left:6px}
  nav.main-nav{display:none !important;position:absolute !important;top:100% !important;left:0;right:0;width:auto !important;order:auto !important;flex-direction:column;gap:2px;background:var(--card);border:1px solid var(--border);border-top:none;border-radius:0 0 14px 14px;padding:10px;z-index:60;box-shadow:0 14px 30px rgba(0,0,0,.45);justify-content:flex-start}
  nav.main-nav.open{display:flex !important}
  nav.main-nav a{width:100%;text-align:center;padding:11px;border-radius:9px;font-size:.95rem}
  #lang-sel, #buscar-box{max-width:100%}
}


.compare-table .col-product img { width:100%; height:190px; object-fit:contain; background:#fff; border-radius:10px; margin-bottom:10px; }

/* --- Rendimiento: reservar espacio del header (evita CLS) --- */
header.site .header-inner{min-height:64px}
/* reservar ratio en imagenes de tarjeta/producto (evita saltos) */
.card .thumb{aspect-ratio:4/3}

/* MOVIL: el resultado del recomendador se desliza en horizontal (interactivo) */
@media (max-width: 640px) {
  .reco-grid {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .reco-grid::-webkit-scrollbar { display: none; }
  .reco-grid .card.reco-card {
    flex: 0 0 auto;
    width: 278px;
    max-width: 84vw;
    scroll-snap-align: start;
  }
}
