/* =============================================================
   1. Custom Properties & Reset
   ============================================================= */
:root {
  --bg: #fafaf8;
  --bg-alt: #f0efeb;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --accent: #2d6a4f;
  --accent-light: #40916c;
  --accent-bg: #d8f3dc;
  --danger: #d62828;
  --warning: #f4a261;
  --border: #e0ddd8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(.16,1,.3,1);
  --gutter: clamp(1rem, 4vw, 2rem);
  --max-w: 1200px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
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; }
h1,h2,h3,h4 { text-wrap: balance; line-height: 1.15; letter-spacing: -.02em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--text);
  color: #fff; z-index: 9999; border-radius: var(--radius-sm); font-weight: 500; }
.skip-link:focus { top: 1rem; }

/* =============================================================
   2. Navigation
   ============================================================= */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250,250,248,.92);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-container { max-width: var(--max-w); margin: 0 auto; padding: .75rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.15rem; }
.logo-icon { font-size: 1.5rem; }
.logo-accent { color: var(--accent); }
.nav-toggle { display: flex; flex-direction: column; gap: 4px; width: 28px; padding: 4px 0; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }
.nav-links { list-style: none; padding: 0; display: none; position: absolute; top: 100%;
  left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border);
  flex-direction: column; padding: 1rem var(--gutter); gap: .25rem; }
.nav-links.open { display: flex; }
.nav-links a { display: block; padding: .65rem 0; font-weight: 500; font-size: .95rem;
  color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta-link { color: var(--accent) !important; font-weight: 600 !important; }
.nav-dropdown { position: relative; }
.dropdown-trigger { display: flex; align-items: center; gap: 4px; }
.dropdown-menu { list-style: none; padding: 0 0 0 1rem; display: none; }
.nav-dropdown.open .dropdown-menu { display: block; }

/* =============================================================
   3. Buttons
   ============================================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600;
  font-size: .9rem; transition: all .25s var(--ease-out); white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }

/* =============================================================
   4. Hero
   ============================================================= */
.hero { padding: clamp(3rem,10vw,7rem) var(--gutter); text-align: center;
  background: linear-gradient(170deg, var(--bg) 0%, var(--accent-bg) 100%); }
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero-badge { display: inline-block; padding: .35rem 1rem; background: var(--surface);
  border-radius: 100px; font-size: .8rem; font-weight: 600; color: var(--accent);
  border: 1px solid var(--accent-bg); margin-bottom: 1.5rem; }
.hero-title { font-family: var(--serif); font-size: clamp(2rem,5vw,3.5rem); font-weight: 800;
  margin-bottom: 1rem; color: var(--text); }
.hero-accent { color: var(--accent); }
.hero-sub { font-size: clamp(1rem,2.5vw,1.2rem); color: var(--text-muted); max-width: 600px;
  margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-trust { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.trust-item { font-size: .85rem; color: var(--text-muted); }
.trust-num { font-weight: 800; font-size: 1.3rem; color: var(--accent); display: block; }

/* =============================================================
   5. Sections
   ============================================================= */
.section { padding: clamp(3rem,8vw,5rem) var(--gutter); }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-title { font-family: var(--serif); font-size: clamp(1.6rem,3.5vw,2.4rem);
  text-align: center; margin-bottom: .75rem; }
.section-sub { text-align: center; color: var(--text-muted); max-width: 600px;
  margin: 0 auto 2.5rem; font-size: 1rem; }

/* =============================================================
   6. Criteria Grid
   ============================================================= */
.criteria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem; }
.criteria-card { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
  transition: transform .3s var(--ease-out), box-shadow .3s; }
.criteria-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.criteria-icon { font-size: 2rem; display: block; margin-bottom: .75rem; }
.criteria-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.criteria-card p { font-size: .85rem; color: var(--text-muted); }

/* =============================================================
   7. Product Cards
   ============================================================= */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; }
.product-card { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; position: relative;
  transition: transform .3s var(--ease-out), box-shadow .3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-badge { position: absolute; top: 12px; left: 12px; background: var(--danger);
  color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .65rem;
  border-radius: 100px; z-index: 2; }
.card-img { height: 200px; display: flex; align-items: center; justify-content: center;
  position: relative; }
.card-img-placeholder { color: rgba(255,255,255,.7); font-size: 4rem; font-weight: 800;
  font-family: var(--serif); }
.card-body { padding: 1.25rem; }
.card-brand { font-size: .78rem; font-weight: 600; color: var(--accent); text-transform: uppercase;
  letter-spacing: .04em; margin-bottom: .25rem; }
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.card-title a { transition: color .2s; }
.card-title a:hover { color: var(--accent); }
.card-rating { font-size: .85rem; margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.stars { color: var(--warning); }
.card-reviews { color: var(--text-muted); }
.card-prices { margin-bottom: .75rem; display: flex; align-items: baseline; gap: .5rem; }
.card-price { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.card-price-old { font-size: .95rem; color: var(--text-muted); text-decoration: line-through; }
.card-desc { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }
.card-actions { display: flex; gap: .75rem; }
.card-actions .btn { flex: 1; font-size: .82rem; padding: .6rem; }

/* =============================================================
   8. Category Cards
   ============================================================= */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem; }
.category-card { display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; transition: all .3s var(--ease-out); }
.category-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.category-card h3 { font-size: 1.2rem; margin-bottom: .5rem; color: var(--accent); }
.category-card p { font-size: .88rem; color: var(--text-muted); margin-bottom: .75rem; }
.category-count { font-size: .78rem; font-weight: 600; color: var(--accent-light);
  padding: .2rem .6rem; background: var(--accent-bg); border-radius: 100px; }

/* =============================================================
   9. CTA Block
   ============================================================= */
.cta-block { text-align: center; padding: 3rem 1.5rem; background: var(--surface);
  border-radius: var(--radius-lg); border: 1px solid var(--border); }
.cta-block h2 { font-family: var(--serif); font-size: 1.8rem; margin-bottom: .75rem; }
.cta-block p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* =============================================================
   10. Ficha (Product Page)
   ============================================================= */
.ficha { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.breadcrumb { font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.ficha-top { display: grid; gap: 2rem; margin-bottom: 3rem; padding-top: 2rem; }
.ficha-gallery { position: relative; }
.ficha-img-main { aspect-ratio: 4/3; border-radius: var(--radius); display: flex;
  align-items: center; justify-content: center; }
.ficha-img-placeholder { color: rgba(255,255,255,.5); font-size: 3rem; font-weight: 700;
  font-family: var(--serif); }
.ficha-header { display: flex; flex-direction: column; gap: .5rem; }
.ficha-brand { font-size: .82rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: .04em; }
.ficha-name { font-family: var(--serif); font-size: clamp(1.5rem,3.5vw,2.2rem); font-weight: 800; }
.ficha-rating { font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.ficha-price-block { margin: .5rem 0; }
.ficha-price-old { font-size: 1rem; color: var(--text-muted); text-decoration: line-through;
  margin-right: .5rem; }
.ficha-price-current { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.ficha-price-badge { display: inline-block; background: var(--danger); color: #fff;
  font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 100px;
  margin-left: .5rem; vertical-align: middle; }
.ficha-price-note { font-size: .78rem; color: var(--text-muted); margin-top: .25rem; }
.ficha-tipo-badge { display: inline-block; font-size: .75rem; font-weight: 700;
  padding: .3rem .8rem; border-radius: 100px; background: var(--accent-bg);
  color: var(--accent); margin-top: .5rem; }
.btn-buy { width: 100%; max-width: 360px; margin: 1rem 0; font-size: 1.05rem;
  padding: 1rem 2rem; border-radius: var(--radius); }
.btn-buy-bottom { display: block; margin: 2rem auto; }
.ficha-section { margin-bottom: 3rem; padding-top: 1rem; }
.ficha-section h2 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 1.25rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--accent-bg); }

/* Spec Table */
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.spec-table th, .spec-table td { padding: .75rem 1rem; text-align: left;
  border-bottom: 1px solid var(--border); font-size: .9rem; }
.spec-table th { font-weight: 600; color: var(--text-muted); width: 45%; background: var(--bg-alt); }
.spec-table td { font-weight: 500; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* Radar Chart */
.radar-container { max-width: 420px; margin: 0 auto; aspect-ratio: 1; }
.radar-container canvas { width: 100% !important; height: 100% !important; }

/* Editorial */
.editorial-body { font-size: .95rem; line-height: 1.7; }
.editorial-body p { margin-bottom: 1rem; }
.pros-contras { display: grid; gap: 1.5rem; margin: 2rem 0; }
.pros-col, .cons-col { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; }
.pros-col h3 { color: var(--accent); margin-bottom: .75rem; font-size: 1rem; }
.cons-col h3 { color: var(--danger); margin-bottom: .75rem; font-size: 1rem; }
.pros-col ul, .cons-col ul { list-style: none; padding: 0; }
.pro-item, .con-item { padding: .4rem 0; font-size: .9rem; border-bottom: 1px solid var(--border); }
.pro-item:last-child, .con-item:last-child { border-bottom: none; }
.ideal-para { background: var(--accent-bg); padding: 1.25rem; border-radius: var(--radius);
  font-size: .95rem; border-left: 4px solid var(--accent); }
.resenas-resumen { font-size: .95rem; line-height: 1.7; font-style: italic;
  color: var(--text-muted); }
.nota { font-size: .78rem; color: var(--text-muted); margin-top: .5rem; }
.aviso-afiliados { font-size: .75rem; color: var(--text-muted); text-align: center;
  padding: 1.5rem; margin-top: 3rem; border-top: 1px solid var(--border); }

/* =============================================================
   11. Comparador
   ============================================================= */
.comp-selector { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; }
.comp-selector h3 { font-size: 1rem; margin-bottom: 1rem; }
.comp-options { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.comp-option { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .2s, background .2s; font-size: .9rem; }
.comp-option:hover { border-color: var(--accent); }
.comp-option input:checked ~ span { font-weight: 600; color: var(--accent); }
.comp-result { overflow-x: auto; }
.comp-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.comp-table th, .comp-table td { padding: .65rem .75rem; text-align: center;
  border: 1px solid var(--border); font-size: .85rem; }
.comp-table th { background: var(--bg-alt); font-weight: 600; }
.comp-table thead th { background: var(--accent); color: #fff; font-size: .9rem; }
.comp-table .comp-label { text-align: left; font-weight: 600; color: var(--text-muted);
  background: var(--bg-alt); }
.comp-best { background: var(--accent-bg) !important; font-weight: 700; color: var(--accent); }
.comp-radar-row td { padding: 1rem; }

/* =============================================================
   12. Guide & Legal
   ============================================================= */
.guide-content { max-width: 800px; }
.guide-body h2 { font-family: var(--serif); font-size: 1.4rem; margin: 2rem 0 1rem;
  color: var(--text); }
.guide-body p { margin-bottom: 1rem; font-size: .95rem; line-height: 1.7; }
.guide-types { display: grid; gap: 1rem; margin: 1.5rem 0; }
.guide-type { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; }
.guide-type h3 { font-size: 1rem; color: var(--accent); margin-bottom: .4rem; }
.guide-type p { font-size: .88rem; margin: 0; }
.guide-cta { text-align: center; margin: 2.5rem 0; padding: 2rem; background: var(--accent-bg);
  border-radius: var(--radius); }
.guide-cta p { margin-bottom: 1rem; font-weight: 600; }
.ranking-list { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.ranking-item { display: flex; align-items: center; gap: 1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.ranking-pos { font-family: var(--serif); font-size: 1.8rem; font-weight: 800;
  color: var(--accent); min-width: 2.5rem; }
.ranking-info { flex: 1; }
.ranking-info h3 { font-size: 1rem; margin-bottom: .25rem; }
.ranking-info h3 a { color: var(--accent); }
.ranking-info h3 a:hover { text-decoration: underline; }
.ranking-info p { font-size: .85rem; color: var(--text-muted); margin-bottom: .25rem; }
.ranking-scores { font-size: .82rem; }
.legal-body { font-size: .95rem; line-height: 1.7; }
.legal-body h2 { font-size: 1.2rem; margin: 1.5rem 0 .75rem; }
.legal-body p { margin-bottom: 1rem; }
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); font-size: 1rem; }

/* =============================================================
   13. Footer
   ============================================================= */
.site-footer { background: var(--text); color: rgba(255,255,255,.8); padding: 3rem var(--gutter) 1.5rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid;
  grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo-text { color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer-brand .logo-accent { color: var(--accent-light); }
.footer-brand p { font-size: .85rem; margin-top: .5rem; color: rgba(255,255,255,.5); }
.footer-links h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em;
  color: rgba(255,255,255,.4); margin-bottom: .75rem; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links a { display: block; padding: .25rem 0; font-size: .88rem;
  color: rgba(255,255,255,.65); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-disclosure { max-width: var(--max-w); margin: 1.5rem auto 0; text-align: center;
  font-size: .72rem; color: rgba(255,255,255,.35); line-height: 1.6; }
.footer-disclosure p { margin-bottom: .5rem; }

/* =============================================================
   14. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .pros-contras { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .ficha-top { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .guide-types { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex !important; position: static; background: none;
    border: none; padding: 0; flex-direction: row; align-items: center; gap: .25rem; }
  .nav-links a { padding: .5rem .75rem; }
  .nav-dropdown:hover .dropdown-menu { display: block; }
  .dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: .5rem 0; min-width: 180px; box-shadow: var(--shadow-md); }
  .dropdown-menu a { padding: .5rem 1rem !important; }
  .comp-options { flex-direction: row; flex-wrap: wrap; }
  .ranking-item { padding: 1.25rem 1.5rem; }
}
@media (min-width: 1280px) {
  .criteria-grid { grid-template-columns: repeat(6, 1fr); }
}

/* =============================================================
   15. View Transitions
   ============================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root),::view-transition-new(root) {
  animation-duration: .4s; animation-timing-function: cubic-bezier(.16,1,.3,1); }
::view-transition-old(root) { animation-name: fadeOutUp; }
::view-transition-new(root) { animation-name: fadeInUp; }
@keyframes fadeOutUp { to { opacity: 0; transform: translateY(-8px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } }

/* Images */
.card-img img { width:100%; height:200px; object-fit:cover; display:block; }
.ficha-img-main { border-radius: var(--radius); overflow: hidden; }
.ficha-img-main img, .ficha-img-real { width:100%; height:auto; display:block; border-radius: var(--radius); }
