/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --azul-petroleo: #132a46;
  --azul-petroleo-2: #1c3a5e;
  --turquesa: #16A34A;
  --turquesa-suave: #E6F7EC;
  --dorado: #d9a441;
  --dorado-suave: #fbf1de;
  --bg: #f8f9fb;
  --bg-alt: #eef1f6;
  --card: #ffffff;
  --text: #1a2333;
  --text-muted: #5c6672;
  --border: #dde3ea;
  --ok: #1f8a5f;
  --warn: #b5541a;
  --shadow-sm: 0 1px 2px rgba(19, 42, 70, .06), 0 1px 1px rgba(19, 42, 70, .04);
  --shadow-md: 0 8px 24px rgba(19, 42, 70, .08);
  --shadow-lg: 0 20px 48px rgba(19, 42, 70, .14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --container: 1180px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.15em; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; color: var(--azul-petroleo); }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--turquesa); color: #fff; }
:focus-visible { outline: 3px solid var(--dorado); outline-offset: 2px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.1rem; }
.section { padding-block: clamp(2.2rem, 5vw, 4.2rem); }
.section-alt { background: var(--bg-alt); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--azul-petroleo); color: #fff;
  border-radius: 8px; font-weight: 600; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--turquesa); }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.grid-auto { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.divider { height: 1px; background: var(--border); border: 0; margin-block: 2rem; }
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--dorado-suave); color: #7a5417; border: 1px solid var(--dorado);
  font-size: .74rem; font-weight: 700; padding: .3rem .65rem; border-radius: 99px;
}
.badge-turquesa { background: var(--turquesa-suave); color: #146c3a; border-color: var(--turquesa); }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-size: .72rem; font-weight: 600; padding: .28rem .6rem; border-radius: 99px;
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-muted);
}

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .6rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 62ch; }
.section-head { max-width: 62ch; margin-bottom: 1.8rem; }
.prose p + p { margin-top: .9rem; }
.prose h2, .prose h3 { margin-top: 1.6rem; }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 99px; font-weight: 700; font-size: .96rem;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .18s var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--dorado); color: #3a2907; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #e2ac52; }
.btn-secondary { background: var(--azul-petroleo); color: #fff; }
.btn-secondary:hover { background: var(--azul-petroleo-2); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--azul-petroleo); color: var(--azul-petroleo); }
.btn-outline:hover { background: var(--azul-petroleo); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: .55rem 1rem; font-size: .84rem; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 500; background: rgba(248, 249, 251, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.logo { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--azul-petroleo); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.nav-links { display: none; gap: 1.4rem; align-items: center; font-weight: 600; font-size: .92rem; }
.nav-links a { color: var(--text); padding: .3rem 0; border-bottom: 2px solid transparent; transition: border-color .18s var(--ease-out), color .18s var(--ease-out); }
.nav-links a:hover, .nav-links a.is-active { color: var(--azul-petroleo); border-color: var(--turquesa); }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover {
  background: var(--turquesa); color: #0b3d24; border: 0; border-radius: 99px; padding: .5rem 1rem;
}
.nav-search { display: none; }
.nav-search input {
  width: 190px; padding: .5rem .8rem; border-radius: 99px; border: 1px solid var(--border);
  background: var(--bg-alt); font-size: .86rem;
}
.nav-toggle { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); }
.nav-toggle svg { width: 20px; height: 20px; }
.mobile-menu {
  display: none; flex-direction: column; gap: .2rem; padding: .8rem 0 1.2rem; border-top: 1px solid var(--border);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { padding: .7rem .2rem; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-menu form { margin-top: .6rem; display: flex; gap: .5rem; }
.mobile-menu input { flex: 1; padding: .6rem .8rem; border-radius: 99px; border: 1px solid var(--border); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-search { display: block; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* Product card */
.product-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.product-card__media {
  aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--turquesa-suave), var(--bg-alt));
  display: flex; align-items: center; justify-content: center; position: relative;
}
.product-card__media svg { width: 46%; height: 46%; opacity: .85; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.product-card__badge { position: absolute; top: .7rem; left: .7rem; }
.product-card__body { padding: 1.1rem 1.15rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.product-card__brand { font-size: .74rem; font-weight: 700; color: var(--turquesa); text-transform: uppercase; letter-spacing: .04em; }
.product-card__name { font-size: 1.08rem; }
.product-card__desc { font-size: .88rem; color: var(--text-muted); flex: 1; }
.product-card__meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .78rem; color: var(--text-muted); }
.product-card__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.product-card__meta svg { width: 15px; height: 15px; flex: none; color: var(--azul-petroleo); }
.product-card__actions { display: flex; gap: .5rem; margin-top: .4rem; flex-wrap: wrap; }

/* Spec icons */
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--turquesa-suave) 0%, var(--bg) 62%);
  padding-block: clamp(2.4rem, 6vw, 5rem);
}
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-copy { max-width: 46ch; }
.hero h1 { margin-bottom: .9rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-trust { display: flex; gap: 1.4rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-trust div { font-size: .82rem; color: var(--text-muted); max-width: 16ch; }
.hero-trust strong { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--azul-petroleo); }
.hero-visual {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 1.4rem; border: 1px solid var(--border);
}
.hero-stack-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .2rem; border-bottom: 1px solid var(--border); font-weight: 600; }
.hero-stack-thumb { width: 40px; height: 40px; flex: none; border-radius: 8px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-stack-thumb svg { width: 55%; height: 55%; }
.hero-stack-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.hero-stack-name { flex: 1; }
.hero-stack-value { font-weight: 500; white-space: nowrap; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }

/* Quick selector */
.quick-select { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.quick-select button {
  padding: .55rem 1rem; border-radius: 99px; border: 1.5px solid var(--border); background: var(--card);
  font-weight: 600; font-size: .86rem; transition: all .18s var(--ease-out);
}
.quick-select button:hover, .quick-select button.is-active { border-color: var(--turquesa); background: var(--turquesa-suave); color: #146c3a; }

/* How-we-score / trust block */
.trust-block { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust-item { display: flex; gap: .8rem; }
.trust-item .icon-wrap {
  width: 42px; height: 42px; border-radius: 12px; background: var(--turquesa-suave); color: var(--azul-petroleo-2);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.trust-item .icon-wrap svg { width: 22px; height: 22px; }

/* Category cards */
.cat-card { padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.cat-card .icon-wrap { width: 44px; height: 44px; border-radius: 12px; background: var(--dorado-suave); display: flex; align-items: center; justify-content: center; color: #8a5f19; }
.cat-card .icon-wrap svg { width: 22px; height: 22px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; padding: 1rem 0; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--turquesa); font-size: 1.3rem; flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 1.1rem; color: var(--text-muted); }

/* Spec table */
.spec-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
.spec-table { min-width: 480px; font-size: .92rem; }
.spec-table caption { text-align: left; font-weight: 700; padding: .8rem 1rem; background: var(--azul-petroleo); color: #fff; }
.spec-table th, .spec-table td { padding: .68rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.spec-table tr:nth-child(even) td { background: var(--bg-alt); }
.spec-table th { width: 46%; font-weight: 600; color: var(--text-muted); }
.spec-table td strong { color: var(--azul-petroleo); }
.spec-table .na { color: #97a7a8; font-style: italic; }

/* Ficha layout */
.ficha-head { display: grid; gap: 1.6rem; }
@media (min-width: 960px) { .ficha-head { grid-template-columns: .8fr 1.2fr; align-items: start; } }
.gallery-main { aspect-ratio: 4/3; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--turquesa-suave), var(--bg-alt)); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.gallery-main svg { width: 40%; height: 40%; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .6rem; }
.gallery-thumbs .thumb { width: 60px; height: 60px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery-thumbs .thumb svg { width: 55%; height: 55%; }
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.price-note { font-size: .82rem; color: var(--text-muted); background: var(--bg-alt); border-radius: 10px; padding: .6rem .8rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .8rem; }

/* Radar chart */
.radar-wrap { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.radar-wrap svg { width: 100%; max-width: 360px; height: auto; }
.radar-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: center; font-size: .8rem; }
.radar-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.radar-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Pros/cons */
.pc-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pc-grid { grid-template-columns: 1fr 1fr; } }
.pc-col { padding: 1.1rem 1.2rem; border-radius: var(--radius-md); }
.pc-col.pros { background: #eaf7f0; border: 1px solid #bfe6cf; }
.pc-col.cons { background: #fdf1ea; border: 1px solid #f0cfae; }
.pc-col h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.pc-col h3 svg { width: 1.15em; height: 1.15em; flex: none; }
.pc-col ul { list-style: none; padding: 0; margin-top: .6rem; display: flex; flex-direction: column; gap: .5rem; font-size: .92rem; }
.pc-col li { display: flex; gap: .5rem; }
.pc-col li svg { width: 1.05em; height: 1.05em; flex: none; margin-top: .15em; }

.ideal-box { background: var(--dorado-suave); border: 1px solid var(--dorado); border-radius: var(--radius-md); padding: 1.1rem 1.2rem; }
.ideal-box strong { display: block; margin-bottom: .3rem; color: #7a5417; }
.no-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.1rem 1.2rem; }

/* Reviews */
.review-summary { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .review-summary { grid-template-columns: 1fr 1fr; } }
.review-box { padding: 1rem 1.2rem; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--card); }
.review-box h4 { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: .4rem; }

/* Disclosure */
.disclosure {
  font-size: .82rem; color: var(--text-muted); background: var(--bg-alt); border-radius: var(--radius-sm);
  padding: .8rem 1rem; border: 1px dashed var(--border);
}

/* Sources */
.source-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .4rem; font-size: .84rem; }
.source-list a { color: var(--azul-petroleo-2); text-decoration: underline; text-underline-offset: 2px; }

/* Comparator */
.comparator-picker { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.comparator-picker select { padding: .6rem .9rem; border-radius: 99px; border: 1px solid var(--border); background: var(--card); font-weight: 600; }
.compare-table-wrap { overflow-x: auto; margin-top: 1.6rem; padding-bottom: .5rem; }
.compare-table { min-width: 640px; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table thead th { position: sticky; top: 64px; background: var(--bg); z-index: 5; }
.compare-table .row-label { width: 200px; font-weight: 600; color: var(--text-muted); background: var(--bg-alt); position: sticky; left: 0; z-index: 3; }
.compare-table .col-product { min-width: 200px; }
.compare-table td.is-best { background: var(--turquesa-suave); font-weight: 700; color: #146c3a; border-radius: 8px; }
.compare-card-head { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.compare-card-head .remove-slot { font-size: .78rem; color: var(--warn); border: 1px solid var(--border); border-radius: 99px; padding: .2rem .55rem; }
.compare-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1rem; }
.compare-filters label { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; background: var(--card); border: 1px solid var(--border); padding: .4rem .7rem; border-radius: 99px; }
.diff-toggle { display: inline-flex; align-items: center; gap: .5rem; font-size: .86rem; font-weight: 600; }

/* Footer */
.site-footer { background: var(--azul-petroleo); color: #dcefee; padding-block: 2.6rem 1.4rem; margin-top: 3rem; }
.footer-grid { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.footer-grid h4 { color: #fff; font-family: var(--sans); font-size: .84rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .7rem; }
.footer-grid ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .88rem; }
.footer-grid a { color: #b9d8d6; transition: color .15s; }
.footer-grid a:hover { color: #fff; }
.footer-disclosure { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .78rem; color: #9fc4c1; }
.footer-bottom { margin-top: 1rem; font-size: .78rem; color: #7fa8a5; }

/* Breadcrumb */
.breadcrumb { font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--azul-petroleo-2); }
.breadcrumb span { margin-inline: .35rem; }

/* Guide list */
.guide-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.guide-list a {
  display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius-md);
  background: var(--card); border: 1px solid var(--border); font-weight: 600; transition: border-color .15s;
}
.guide-list a:hover { border-color: var(--turquesa); }

/* Legal pages */
.legal-page .prose { max-width: 72ch; }
.legal-page h2 { margin-top: 1.8rem; }

/* =============================================================
   6. Responsive helpers
   ============================================================= */
@media (min-width: 540px) { .hero-actions { flex-wrap: nowrap; } }
@media (min-width: 720px) { .container { padding-inline: 1.6rem; } }

/* =============================================================
   7. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
