/* ==========================================================
   TuPowerBank — hoja de estilos principal (sin build)
   Cambia los colores de marca en :root
   ========================================================== */
:root {
  --ink: #0f1b2d;
  --ink-2: #3b4a5e;
  --muted: #6b7a8f;
  --line: #e3e8ef;
  --bg: #f5f7fa;
  --card: #ffffff;
  --brand: #10a85a;        /* verde "carga completa" */
  --brand-dark: #0b7d43;
  --brand-soft: #e6f7ee;
  --bolt: #ffb21e;         /* amarillo rayo */
  --bolt-soft: #fff4dc;
  --danger: #e5484d;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15,27,45,.06), 0 4px 16px rgba(15,27,45,.06);
  --shadow-lg: 0 10px 40px rgba(15,27,45,.14);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.accent { font-style: italic; color: var(--brand); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .72em 1.25em; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; transition: transform .12s, background .15s, box-shadow .15s; line-height: 1.1; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(16,168,90,.3); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-buy { background: var(--bolt); color: var(--ink); box-shadow: 0 4px 14px rgba(255,178,30,.35); }
.btn-buy:hover { background: #f5a300; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { padding: .45em .9em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }

/* ---------- Cabecera ---------- */
.topbar { background: var(--ink); color: #cfd7e3; font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: center; gap: 1.5rem; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-main { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none !important; white-space: nowrap; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; color: var(--bolt); font-size: 1.2rem; }
.logo b { color: var(--brand); }
.search { position: relative; flex: 1; max-width: 560px; }
.search input { width: 100%; padding: .75em 1em .75em 2.6em; border-radius: 999px; border: 2px solid var(--line); font: inherit; background: var(--bg); }
.search input:focus { outline: none; border-color: var(--brand); background: #fff; }
.search::before { content: "🔍"; position: absolute; left: 1em; top: 50%; transform: translateY(-50%); font-size: .9rem; opacity: .6; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; display: none; z-index: 60; }
.suggest.open { display: block; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.suggest a:hover, .suggest a.active { background: var(--brand-soft); }
.suggest img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: var(--bg); }
.suggest .s-meta { font-size: .78rem; color: var(--muted); }
.suggest .s-price { margin-left: auto; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.compare-link { position: relative; font-weight: 700; color: var(--ink); white-space: nowrap; margin-right: 14px; }
.badge-count { position: absolute; top: -8px; right: -12px; background: var(--bolt); color: var(--ink); border-radius: 999px; font-size: .7rem; min-width: 20px; height: 20px; display: grid; place-items: center; font-weight: 800; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }

.main-nav { border-top: 1px solid var(--line); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav a { display: block; padding: 10px 14px; color: var(--ink-2); font-weight: 600; font-size: .92rem; white-space: nowrap; border-bottom: 3px solid transparent; text-decoration: none; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); border-bottom-color: var(--brand); }
.main-nav .hot a { color: var(--brand-dark); }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(255,178,30,.22), transparent 60%), linear-gradient(180deg, #fff, var(--bg)); padding: 48px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; background: var(--bolt-soft); color: #8a5a00; font-weight: 700; font-size: .8rem; padding: .3em .8em; border-radius: 999px; margin-bottom: 12px; }
.hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 560px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--ink-2); font-size: .9rem; }
.hero-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 22px; }
.hero-card h3 { margin-bottom: 14px; }
.quick-finder label { display: block; font-weight: 700; font-size: .85rem; margin: 10px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: .45em .9em; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--ink); text-decoration: none !important; }
.chip:hover { border-color: var(--brand); }
.chip input { display: none; }
.chip:has(input:checked), .chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }

/* ---------- Secciones ---------- */
.section { padding: 42px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; gap: 6px; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.tile .ico { font-size: 1.6rem; }
.tile strong { font-size: 1.02rem; }
.tile span.go { color: var(--brand-dark); font-weight: 700; font-size: .88rem; margin-top: auto; }

/* Batería visual por capacidad */
.cap-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.cap-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #6be3a2); border-radius: 99px; }

/* ---------- Tarjetas de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 1/1; background: #f9fbfc; display: grid; place-items: center; padding: 14px; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 800; padding: .3em .6em; border-radius: 6px; line-height: 1; }
.badge-off { background: var(--danger); color: #fff; }
.badge-top { background: var(--ink); color: var(--bolt); }
.badge-soft { background: var(--brand-soft); color: var(--brand-dark); }
.badge-bolt { background: var(--bolt-soft); color: #8a5a00; }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.score { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-brand { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.card-title { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.3; }
.card-title a { color: var(--ink); }
.specs-inline { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-pill { font-size: .75rem; background: var(--bg); border-radius: 6px; padding: .25em .55em; color: var(--ink-2); font-weight: 600; }
.rating { color: var(--bolt); letter-spacing: 1px; font-size: .95rem; white-space: nowrap; }
.rating small { color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price { font-size: 1.35rem; font-weight: 800; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.price-date { font-size: .72rem; color: var(--muted); }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; }
.btn-compare { flex: 0 0 auto !important; padding: .55em .75em; border-radius: 10px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-size: .8rem; }
.btn-compare.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

/* ---------- Catálogo con filtros ---------- */
.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.filters { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; }
.filters h3 { font-size: .95rem; margin: 18px 0 8px; }
.filters h3:first-child { margin-top: 0; }
.filters label.opt { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: .92rem; cursor: pointer; }
.filters input[type=checkbox], .filters input[type=radio] { accent-color: var(--brand); width: 16px; height: 16px; }
.filters .row2 { display: flex; gap: 8px; }
.filters .row2 input { width: 100%; }
.input, .filters input[type=number], .filters select, select.input, textarea.input { width: 100%; padding: .6em .8em; border: 2px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; }
.input:focus, textarea.input:focus { outline: none; border-color: var(--brand); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar select { width: auto; }
.filters-toggle { display: none; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.seo-text { background: #fff; border-radius: var(--radius); padding: 26px; margin-top: 30px; box-shadow: var(--shadow); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding: 14px 0; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }

/* ---------- Ficha de producto ---------- */
.product-top { display: grid; grid-template-columns: 1fr 1fr 340px; gap: 24px; align-items: start; }
.gallery { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; aspect-ratio: 1/1; display: grid; place-items: center; position: relative; }
.gallery img { max-height: 100%; object-fit: contain; }
.product-info h1 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.key-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.key-spec { background: #fff; border-radius: var(--radius-sm); padding: 12px; box-shadow: var(--shadow); }
.key-spec b { display: block; font-size: 1.1rem; }
.key-spec span { font-size: .78rem; color: var(--muted); }
.buy-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 20px; position: sticky; top: 130px; display: flex; flex-direction: column; gap: 12px; }
.buy-box .price { font-size: 2rem; }
.buy-box ul { list-style: none; padding: 0; margin: 0; font-size: .88rem; color: var(--ink-2); }
.buy-box li { padding: 3px 0; }
.charges { background: var(--brand-soft); border-radius: var(--radius-sm); padding: 12px; font-size: .9rem; }
.charges strong { color: var(--brand-dark); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pros, .cons { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.pros h3 { color: var(--brand-dark); }
.cons h3 { color: var(--danger); }
.pros ul, .cons ul { margin: 0; padding-left: 0; list-style: none; }
.pros li::before { content: "✔ "; color: var(--brand); font-weight: 800; }
.cons li::before { content: "✖ "; color: var(--danger); font-weight: 800; }
.pros li, .cons li { padding: 4px 0; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: .93rem; vertical-align: top; }
.spec-table th { width: 42%; color: var(--ink-2); font-weight: 600; background: #fbfcfd; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.prose { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.prose blockquote { border-left: 4px solid var(--brand); margin: 1em 0; padding: .4em 1em; background: var(--brand-soft); border-radius: 0 8px 8px 0; }
.tabs-nav { display: flex; gap: 6px; overflow-x: auto; margin: 28px 0 14px; position: sticky; top: 110px; background: var(--bg); padding: 8px 0; z-index: 5; }
.tabs-nav a { padding: .5em 1em; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem; white-space: nowrap; box-shadow: var(--shadow); }
.block { margin-bottom: 28px; scroll-margin-top: 170px; }
.airline-ok { color: var(--brand-dark); font-weight: 700; }
.airline-no { color: #a3650a; font-weight: 700; }

/* ---------- Opiniones ---------- */
.reviews-summary { display: grid; grid-template-columns: 220px 1fr; gap: 24px; background: #fff; padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); align-items: center; }
.big-rating { text-align: center; }
.big-rating b { font-size: 3rem; display: block; line-height: 1; }
.dist-row { display: grid; grid-template-columns: 50px 1fr 40px; align-items: center; gap: 10px; font-size: .85rem; margin: 4px 0; }
.dist-bar { height: 9px; background: var(--line); border-radius: 99px; overflow: hidden; }
.dist-bar i { display: block; height: 100%; background: var(--bolt); }
.review { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-top: 12px; }
.review-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.review h4 { margin: 6px 0; }
.helpful { background: none; border: 1px solid var(--line); border-radius: 999px; padding: .3em .8em; cursor: pointer; font: inherit; font-size: .8rem; }
.review-form { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-top: 18px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { display: none; }
.star-input label { font-size: 2rem; color: var(--line); cursor: pointer; margin: 0; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--bolt); }
.hp { position: absolute; left: -9999px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; }
.error { color: var(--danger); font-size: .85rem; margin-top: 4px; }

/* ---------- Comparador ---------- */
.compare-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; font-size: .92rem; vertical-align: middle; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; position: sticky; left: 0; background: #fbfcfd; font-weight: 600; color: var(--ink-2); min-width: 150px; z-index: 1; }
.compare-table thead td { vertical-align: top; }
.compare-table thead img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 8px; }
.compare-table .best { background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; }
.compare-table .group td { background: var(--ink); color: #fff !important; font-weight: 700; text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.yes { color: var(--brand); font-weight: 800; }
.no { color: #b7c0cc; }
.compare-bar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%) translateY(150%); background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 12px 10px 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-lg); z-index: 70; transition: transform .25s; white-space: nowrap; }
.compare-bar.show { transform: translateX(-50%) translateY(0); }
.vs { display: inline-grid; place-items: center; width: 36px; height: 36px; background: var(--bolt); border-radius: 50%; font-weight: 800; color: var(--ink); }
.verdict { background: linear-gradient(135deg, var(--ink), #1f3150); color: #fff; border-radius: var(--radius); padding: 24px; margin-top: 20px; }
.verdict h2 { color: var(--bolt); }

/* ---------- Asistente ---------- */
.finder { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 28px; }
.finder fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.finder legend { font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; }
.finder .step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .85rem; margin-right: 8px; }
.range-out { font-weight: 800; color: var(--brand-dark); }
input[type=range] { width: 100%; accent-color: var(--brand); }
.result-box { background: var(--brand-soft); border: 2px solid var(--brand); border-radius: var(--radius); padding: 20px; margin: 24px 0; }
.result-box b.big { font-size: 1.8rem; color: var(--brand-dark); }

/* ---------- Blog ---------- */
.post-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-decoration: none !important; transition: transform .15s; }
.post-card:hover { transform: translateY(-3px); }
.post-cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand), #0d6e8a); display: grid; place-items: center; color: #fff; font-size: 2.6rem; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { margin: 0; }
.post-meta { font-size: .8rem; color: var(--muted); }
.article { max-width: 780px; margin: 0 auto; }
.article-head { text-align: center; padding: 20px 0; }
.toc { background: var(--bolt-soft); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 20px; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
.disclosure { font-size: .82rem; color: var(--muted); background: #fff; border: 1px dashed var(--line); padding: 10px 14px; border-radius: var(--radius-sm); margin: 14px 0; }

/* Mini-tarjeta de producto en artículos */
.inline-product { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin: 14px 0; }
.inline-product img { width: 110px; height: 110px; object-fit: contain; }
.inline-product .rank { position: absolute; }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 26px; }
details.faq { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); margin-bottom: 8px; }
details.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); transition: transform .2s; }
details.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details.faq .answer { padding: 0 18px 16px; color: var(--ink-2); }

/* ---------- Newsletter, CTA, Footer ---------- */
.newsletter { background: linear-gradient(135deg, var(--ink), #1d3355); color: #fff; border-radius: 22px; padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.newsletter h2 { color: #fff; }
.newsletter form { display: flex; flex-direction: column; gap: 10px; }
.newsletter .inline { display: flex; gap: 8px; }
.newsletter input[type=email] { flex: 1; padding: .8em 1.1em; border-radius: 999px; border: 0; font: inherit; }
.newsletter .check { color: #cfd7e3; }
.newsletter .check a { color: var(--bolt); }
.quote { font-size: 1.35rem; font-weight: 700; text-align: center; max-width: 760px; margin: 0 auto; color: var(--ink-2); }
.quote em { color: var(--brand); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { text-align: center; padding: 14px; }
.trust-item .ico { font-size: 2rem; }
.site-footer { background: var(--ink); color: #b7c2d2; margin-top: 50px; padding: 44px 0 20px; font-size: .92rem; }
.site-footer a { color: #e3e9f2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer .logo { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 16px; font-size: .8rem; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- Avisos ---------- */
.flash { background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #bfe9d2; padding: 12px 16px; border-radius: var(--radius-sm); margin: 14px 0; font-weight: 600; }
.flash-error { background: #fdecec; color: #a32025; border-color: #f6c9cb; }
.toast { position: fixed; top: 20px; right: 20px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 100; opacity: 0; transform: translateY(-10px); transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; box-shadow: 0 -6px 30px rgba(0,0,0,.12); padding: 16px; z-index: 90; display: none; }
.cookie-banner.show { display: block; }
.cookie-banner .wrap { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

/* ---------- Paginación ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); color: var(--ink); font-weight: 700; text-decoration: none; }
.pagination .current { background: var(--brand); color: #fff; }
.pagination .disabled { opacity: .4; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink); color: #fff; padding: 20px 14px; }
.admin-side a { display: block; color: #cfd7e3; padding: 9px 12px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-main { padding: 24px; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: .9rem; }
.table th { background: #fbfcfd; font-size: .8rem; text-transform: uppercase; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: #fff; padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat b { font-size: 1.8rem; display: block; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.panel h3 { margin-top: 0; }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.admin label.opt { display: flex; gap: 8px; align-items: center; }
.inline-form { display: inline; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-top { grid-template-columns: 1fr 1fr; }
  .buy-box { grid-column: 1 / -1; position: static; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid, .newsletter, .reviews-summary { grid-template-columns: 1fr; }
  .tiles, .trust-row { grid-template-columns: repeat(2, 1fr); }
  .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 20% 0 0; max-height: none; top: 0; border-radius: 0; z-index: 80; transform: translateX(-105%); transition: transform .25s; }
  .filters.open { transform: none; }
  .filters-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-top { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-main { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions .btn { display: none; }
  .grid, .grid-3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: .9rem; }
  .price { font-size: 1.1rem; }
  .card-actions { flex-direction: column; }
  .pros-cons, .form-grid, .key-specs { grid-template-columns: 1fr 1fr; }
  .pros-cons, .form-grid { grid-template-columns: 1fr; }
  .inline-product { grid-template-columns: 80px 1fr; }
  .inline-product img { width: 80px; height: 80px; }
  .inline-product .btn { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 30px 0; }
  .newsletter .inline { flex-direction: column; }
  .topbar .wrap span:not(:first-child) { display: none; }
  .compare-bar { padding: 8px 8px 8px 16px; gap: 10px; font-size: .9rem; }
  .header-actions .compare-link { margin-right: 10px; }
}
