/* ════════════════════════════════════════════════════
   SUPLEA · Sistema de Diseño Global
   Stack: HTML5 + CSS3 vanilla
   Tipografía: Sora (headings) + Inter (body)
   Paleta: Green health #1B7A4E · Base #F8F7F4
   ════════════════════════════════════════════════════ */

/* ─── Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ─── Design Tokens ───────────────────────────────── */
:root {
  /* ── Colores base */
  --c-base:           #F8F7F4;
  --c-surface:        #FFFFFF;
  --c-border:         #E5E7EB;
  --c-border-light:   #F3F4F6;

  /* ── Acento verde salud */
  --c-accent:         #1B7A4E;
  --c-accent-dark:    #145F3C;
  --c-accent-light:   #E8F5EE;
  --c-accent-mid:     #C3E6D2;

  /* ── Texto */
  --c-text-1:         #111827;
  --c-text-2:         #4B5563;
  --c-text-3:         #9CA3AF;

  /* ── Scores (color + fondo) */
  --c-score-hi:       #16A34A;
  --c-score-hi-bg:    #DCFCE7;
  --c-score-mid:      #D97706;
  --c-score-mid-bg:   #FEF3C7;
  --c-score-lo:       #DC2626;
  --c-score-lo-bg:    #FEE2E2;

  /* ── Tipografía */
  --f-head:  'Sora', sans-serif;
  --f-body:  'Inter', sans-serif;

  /* ── Escala de texto */
  --t-xs:   0.75rem;    /* 12px */
  --t-sm:   0.875rem;   /* 14px */
  --t-base: 1rem;       /* 16px */
  --t-lg:   1.125rem;   /* 18px */
  --t-xl:   1.25rem;    /* 20px */
  --t-2xl:  1.5rem;     /* 24px */
  --t-3xl:  1.875rem;   /* 30px */
  --t-4xl:  2.25rem;    /* 36px */
  --t-5xl:  3rem;       /* 48px */

  /* ── Espaciado 8px grid */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* ── Sombras */
  --sh-xs:    0 1px 2px rgba(0,0,0,.05);
  --sh-card:  0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --sh-hover: 0 4px 8px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.12);
  --sh-nav:   0 1px 0 #E5E7EB;

  /* ── Radios */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-full: 9999px;

  /* ── Transiciones */
  --tr-fast: 150ms ease-out;
  --tr-base: 220ms ease-out;

  /* ── Layout */
  --max-w:  1200px;
  --nav-h:  68px;
}

/* ─── Base ────────────────────────────────────────── */
body {
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--c-text-1);
  background-color: var(--c-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-head);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-text-1);
}
h1 { font-size: clamp(var(--t-3xl), 5vw, var(--t-5xl)); font-weight: 700; }
h2 { font-size: clamp(var(--t-2xl), 3vw, var(--t-4xl)); font-weight: 700; }
h3 { font-size: var(--t-2xl);  font-weight: 600; }
h4 { font-size: var(--t-xl);   font-weight: 600; }
h5 { font-size: var(--t-lg);   font-weight: 600; }
h6 { font-size: var(--t-base); font-weight: 600; }

p { color: var(--c-text-2); line-height: 1.75; }
p + p { margin-top: var(--sp-4); }
strong { color: var(--c-text-1); font-weight: 600; }

/* ─── Layout ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
@media (max-width: 640px) { .container { padding: 0 var(--sp-4); } }

.section        { padding: var(--sp-20) 0; }
.section--sm    { padding: var(--sp-12) 0; }
.section--alt   { background: var(--c-surface); }

/* ─── NAVBAR ──────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--c-surface);
  box-shadow: var(--sh-nav);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--f-head);
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--c-text-1);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--c-accent);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Desktop menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  height: 100%;
  flex: 1;
  justify-content: flex-end;
}
.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-text-2);
  border-radius: var(--r-sm);
  transition: color var(--tr-fast), background var(--tr-fast);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--c-accent);
  background: var(--c-accent-light);
}
.nav-link .chevron {
  transition: transform var(--tr-fast);
}
.nav-item.open .chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 190px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-hover);
  padding: var(--sp-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--tr-fast), transform var(--tr-fast), visibility var(--tr-fast);
  z-index: 200;
}
.nav-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-link {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-text-2);
  border-radius: var(--r-sm);
  transition: color var(--tr-fast), background var(--tr-fast);
}
.dropdown-link:hover {
  color: var(--c-accent);
  background: var(--c-accent-light);
}

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  border-radius: var(--r-sm);
  transition: background var(--tr-fast);
}
.nav-hamburger:hover { background: var(--c-border-light); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text-1);
  border-radius: 2px;
  transition: transform var(--tr-base), opacity var(--tr-fast);
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: var(--c-surface);
  overflow-y: auto;
  z-index: 90;
  padding: var(--sp-4);
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--c-border);
}
.nav-mobile.open { display: flex; }
.nav-mobile-link {
  display: flex;
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--t-base);
  font-weight: 500;
  color: var(--c-text-2);
  border-radius: var(--r-md);
  transition: background var(--tr-fast), color var(--tr-fast);
}
.nav-mobile-link:hover { background: var(--c-accent-light); color: var(--c-accent); }
.nav-mobile-group {
  border-top: 1px solid var(--c-border);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
}
.nav-mobile-group-title {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-mobile-sub {
  display: block;
  padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-8);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-text-2);
  border-radius: var(--r-sm);
  transition: background var(--tr-fast), color var(--tr-fast);
}
.nav-mobile-sub:hover { background: var(--c-accent-light); color: var(--c-accent); }

@media (max-width: 1023px) {
  .nav-menu      { display: none; }
  .nav-hamburger { display: flex; }
}

/* ─── BREADCRUMBS ─────────────────────────────────── */
.breadcrumbs {
  padding: var(--sp-5) 0 var(--sp-3);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.bc-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-sm);
}
.bc-item a { color: var(--c-text-3); transition: color var(--tr-fast); }
.bc-item a:hover { color: var(--c-accent); }
.bc-sep { color: var(--c-text-3); font-size: var(--t-xs); }
.bc-item:last-child span { color: var(--c-text-2); font-weight: 500; }

/* ─── SCORE BADGE ─────────────────────────────────── */
.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: var(--t-sm);
  letter-spacing: -0.01em;
}
.score--lg  { padding: 6px 14px;  font-size: var(--t-xl); }
.score--xl  { padding: 10px 20px; font-size: var(--t-3xl); }
.score-hi   { color: var(--c-score-hi);  background: var(--c-score-hi-bg); }
.score-mid  { color: var(--c-score-mid); background: var(--c-score-mid-bg); }
.score-lo   { color: var(--c-score-lo);  background: var(--c-score-lo-bg); }

/* ─── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.5rem;
  font-size: var(--t-base);
  font-family: var(--f-body);
  font-weight: 600;
  border-radius: var(--r-md);
  min-height: 44px;
  transition: background var(--tr-fast), box-shadow var(--tr-fast), transform var(--tr-fast);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--c-accent);
  color: white;
  border: 2px solid var(--c-accent);
}
.btn-primary:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  box-shadow: 0 4px 14px rgba(27,122,78,.3);
}
.btn-secondary {
  background: white;
  color: var(--c-accent);
  border: 2px solid var(--c-accent);
}
.btn-secondary:hover { background: var(--c-accent-light); }
.btn-ghost {
  background: transparent;
  color: var(--c-accent);
  border: 2px solid transparent;
}
.btn-ghost:hover { background: var(--c-accent-light); }
.btn-sm  { padding: 0.5rem 1rem;  font-size: var(--t-sm); min-height: 36px; }
.btn-lg  { padding: 1rem 2rem;    font-size: var(--t-lg); min-height: 52px; }

/* ─── TAGS / CHIPS ────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-green  { color: var(--c-accent);     background: var(--c-accent-light); }
.tag-gray   { color: var(--c-text-2);     background: var(--c-border-light); }
.tag-coming { color: var(--c-text-3);     background: var(--c-border-light); font-style: italic; text-transform: none; font-weight: 500; font-size: var(--t-xs); }

/* ─── GRID HELPERS ────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─── SECTION HEADERS ─────────────────────────────── */
.sec-header        { margin-bottom: var(--sp-12); }
.sec-header--row   {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-bottom: var(--sp-10);
  flex-wrap: wrap;
}
.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-accent);
  margin-bottom: var(--sp-3);
}
.sec-title  { margin-bottom: var(--sp-4); }
.sec-desc   { font-size: var(--t-lg); color: var(--c-text-2); max-width: 640px; }

/* ─── HERO ────────────────────────────────────────── */
.hero {
  padding: var(--sp-24) 0 var(--sp-20);
  background: linear-gradient(155deg, var(--c-base) 0%, #EEF7F2 60%, var(--c-accent-light) 100%);
  border-bottom: 1px solid var(--c-accent-mid);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-accent-light);
  border: 1px solid var(--c-accent-mid);
  border-radius: var(--r-full);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: var(--sp-6);
}
.hero-title  { margin-bottom: var(--sp-5); }
.hero-desc   { font-size: var(--t-xl); color: var(--c-text-2); margin-bottom: var(--sp-8); line-height: 1.6; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-wrap {
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--sh-hover);
  width: 100%;
}
.hero-stats {
  display: flex;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--c-border);
}
.hero-stat-num {
  font-family: var(--f-head);
  font-size: var(--t-3xl);
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.hero-stat-label { font-size: var(--t-sm); color: var(--c-text-3); }
@media (max-width: 768px) {
  .hero { padding: var(--sp-16) 0; }
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-10); }
  .hero-visual { order: -1; }
  .hero-img-wrap { max-width: 380px; margin: 0 auto; }
  .hero-stats { gap: var(--sp-4); }
}

/* ─── CRITERIA (Cómo valoramos) ───────────────────── */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.criteria-card {
  padding: var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.criteria-card:hover {
  border-color: var(--c-accent-mid);
  box-shadow: var(--sh-card);
}
.criteria-icon {
  width: 44px; height: 44px;
  background: var(--c-accent-light);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-4);
  color: var(--c-accent);
}
.criteria-title { font-size: var(--t-lg); font-weight: 700; margin-bottom: var(--sp-2); color: var(--c-text-1); }
.criteria-desc  { font-size: var(--t-sm); color: var(--c-text-2); line-height: 1.6; }
@media (max-width: 1023px) { .criteria-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .criteria-grid { grid-template-columns: 1fr; } }

/* ─── CARDS ───────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--tr-base), box-shadow var(--tr-base);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-hover); }
.card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--c-border-light);
  flex-shrink: 0;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: var(--sp-5); flex: 1; }
.card-meta { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); flex-wrap: wrap; }
.card-title {
  font-family: var(--f-head);
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--c-text-1);
  line-height: 1.3;
  margin-bottom: var(--sp-2);
}
.card-desc {
  font-size: var(--t-sm);
  color: var(--c-text-2);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--c-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* ─── TABLES ──────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--sh-xs);
}
thead { background: var(--c-border-light); }
th {
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-2);
  text-align: left;
  white-space: nowrap;
}
td {
  padding: var(--sp-4) var(--sp-5);
  color: var(--c-text-1);
  border-top: 1px solid var(--c-border);
  vertical-align: middle;
  font-size: var(--t-sm);
}
tbody tr:hover { background: #FAFAFA; }
.t-rank {
  font-family: var(--f-head);
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--c-text-3);
  width: 48px;
  text-align: center;
}
.t-rank--1 { color: #D97706; }
.t-rank--2 { color: #6B7280; }
.t-rank--3 { color: #92400E; }
.t-name    { font-weight: 600; color: var(--c-text-1); }
.t-link    {
  color: var(--c-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--tr-fast);
}
.t-link:hover { opacity: 0.75; }

/* ─── PROS / CONS ─────────────────────────────────── */
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.pros-box, .cons-box {
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid;
}
.pros-box { background: #F0FDF4; border-color: #BBF7D0; }
.cons-box { background: #FFFBEB; border-color: #FDE68A; }
.pc-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-base);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}
.pros-title { color: #15803D; }
.cons-title { color: #92400E; }
.pc-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.pc-item { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--t-sm); color: var(--c-text-2); line-height: 1.5; }
.pc-dot-pro, .pc-dot-con {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: white;
}
.pc-dot-pro { background: #22C55E; }
.pc-dot-con { background: #F59E0B; }
@media (max-width: 640px) { .pros-cons-grid { grid-template-columns: 1fr; } }

/* ─── SCORE BARS ──────────────────────────────────── */
.score-bars { display: flex; flex-direction: column; gap: var(--sp-5); }
.sbar-item { display: flex; flex-direction: column; gap: var(--sp-2); }
.sbar-header { display: flex; justify-content: space-between; align-items: center; }
.sbar-label { font-size: var(--t-sm); font-weight: 600; color: var(--c-text-1); }
.sbar-val   { font-size: var(--t-sm); font-weight: 700; color: var(--c-accent); font-family: var(--f-head); }
.sbar-track {
  height: 8px;
  background: var(--c-border);
  border-radius: var(--r-full);
  overflow: hidden;
}
.sbar-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--c-accent);
  transition: width 0.9s cubic-bezier(.25,.46,.45,.94);
}
.sbar-fill--hi  { background: var(--c-score-hi); }
.sbar-fill--mid { background: var(--c-score-mid); }
.sbar-fill--lo  { background: var(--c-score-lo); }

/* ─── PAGE HEADER ─────────────────────────────────── */
.page-header {
  background: #0F172A;
  border-bottom: 1px solid #1E293B;
  padding: var(--sp-10) 0 var(--sp-8);
  margin-bottom: var(--sp-12);
}
.page-header-tag  { margin-bottom: var(--sp-4); }
.page-header-title { margin-bottom: var(--sp-4); color: #FFFFFF; }
.page-header-desc  { font-size: var(--t-xl); color: #94A3B8; max-width: 680px; }

/* Breadcrumbs sobre fondo oscuro del page-header */
.page-header .bc-item a         { color: #64748B; }
.page-header .bc-item a:hover   { color: #FFFFFF; }
.page-header .bc-sep            { color: #334155; }
.page-header .bc-item:last-child span { color: #CBD5E1; font-weight: 500; }

/* ─── PRODUCT HEADER ──────────────────────────────── */
.product-header {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--sh-card);
  margin-bottom: var(--sp-8);
}
.product-header-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-8);
  align-items: start;
}
.product-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-base);
  border: 1px solid var(--c-border);
}
.product-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.product-name {
  font-size: clamp(var(--t-2xl), 3vw, var(--t-4xl));
  font-weight: 700;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.025em;
}
.product-score-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.product-score-label { font-size: var(--t-sm); color: var(--c-text-2); }
.product-data-tbl { width: 100%; }
.product-data-tbl td {
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--c-border-light);
  font-size: var(--t-sm);
}
.product-data-tbl td:first-child { color: var(--c-text-3); width: 130px; }
.product-data-tbl td:last-child  { color: var(--c-text-1); font-weight: 600; }
@media (max-width: 768px) {
  .product-header-inner { grid-template-columns: 1fr; }
  .product-img { max-width: 240px; }
}

/* ─── EDITORIAL CONTENT ───────────────────────────── */
.article {
  max-width: 760px;
}
.article h2 { margin: var(--sp-10) 0 var(--sp-4); font-size: var(--t-3xl); }
.article h3 { margin: var(--sp-8) 0 var(--sp-3); font-size: var(--t-2xl); }
.article h4 { margin: var(--sp-6) 0 var(--sp-3); }
.article p  { margin-bottom: var(--sp-4); }
.article ul, .article ol { margin: var(--sp-4) 0 var(--sp-4) var(--sp-6); color: var(--c-text-2); }
.article li { margin-bottom: var(--sp-2); line-height: 1.7; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }

/* ─── INFO BOX ────────────────────────────────────── */
.info-box {
  padding: var(--sp-5);
  background: var(--c-accent-light);
  border: 1px solid var(--c-accent-mid);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--r-md);
  margin: var(--sp-6) 0;
}
.info-box p { color: var(--c-text-2); margin: 0; font-size: var(--t-sm); }

/* ─── FEATURED PRODUCT BOX ────────────────────────── */
.featured-box {
  background: var(--c-surface);
  border: 2px solid var(--c-accent-mid);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  margin-top: var(--sp-10);
  box-shadow: var(--sh-card);
}
.featured-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--c-border);
}
.featured-box-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--sp-8);
  align-items: start;
}
@media (max-width: 640px) { .featured-box-inner { grid-template-columns: 1fr; } }

/* ─── VS COMPARATIVA ──────────────────────────────── */
.vs-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-8);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--sh-card);
  margin-bottom: var(--sp-10);
}
.vs-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
}
.vs-brand-logo {
  width: 88px; height: 88px;
  border-radius: var(--r-xl);
  background: var(--c-base);
  border: 2px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.vs-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.vs-brand-name { font-size: var(--t-xl); font-weight: 700; }
.vs-badge {
  font-family: var(--f-head);
  font-size: var(--t-4xl);
  font-weight: 800;
  color: var(--c-border);
  letter-spacing: -0.03em;
  text-align: center;
}
.vs-winner-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--c-accent-light);
  color: var(--c-accent);
  border-radius: var(--r-sm);
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .vs-header { grid-template-columns: 1fr 40px 1fr; padding: var(--sp-5); gap: var(--sp-4); }
  .vs-badge  { font-size: var(--t-2xl); }
}

/* ─── PROFILE CARDS (¿Cuál elegir?) ──────────────── */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.profile-card {
  padding: var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.profile-icon {
  width: 40px; height: 40px;
  background: var(--c-accent-light);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent);
  margin-bottom: var(--sp-3);
}
.profile-title { font-size: var(--t-base); font-weight: 700; margin-bottom: var(--sp-2); color: var(--c-text-1); }
.profile-desc  { font-size: var(--t-sm); color: var(--c-text-2); line-height: 1.6; margin-bottom: var(--sp-3); }
.profile-rec   { font-size: var(--t-sm); font-weight: 700; color: var(--c-accent); }
@media (max-width: 768px) { .profiles-grid { grid-template-columns: 1fr; } }

/* ─── SECTION ALT BACKGROUND ─────────────────────── */
.bg-white { background: var(--c-surface); }
.bg-base  { background: var(--c-base); }
.bg-accent-light { background: var(--c-accent-light); }

/* ─── FOOTER ──────────────────────────────────────── */
.footer {
  background: #0F172A;
  color: #94A3B8;
  padding: var(--sp-16) 0 var(--sp-8);
  margin-top: var(--sp-24);
}
.footer-top {
  display: grid;
  grid-template-columns: 260px repeat(4, 1fr);
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid #1E293B;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--f-head);
  font-size: var(--t-xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--sp-4);
}
.footer-logo-icon {
  width: 28px; height: 28px;
  background: var(--c-accent);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.footer-desc { font-size: var(--t-sm); line-height: 1.7; color: #64748B; }
.footer-col-title {
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F1F5F9;
  margin-bottom: var(--sp-4);
}
.footer-links { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-link { font-size: var(--t-sm); color: #64748B; transition: color var(--tr-fast); }
.footer-link:hover { color: white; }
.footer-bottom {
  padding-top: var(--sp-8);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.footer-disclaimer { font-size: var(--t-xs); color: #475569; line-height: 1.7; max-width: 520px; }
.footer-copy       { font-size: var(--t-xs); color: #475569; white-space: nowrap; }
@media (max-width: 1023px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; }
}

/* ─── UTILITIES ───────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-2  { margin-top: var(--sp-2); }
.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); }
.mt-12 { margin-top: var(--sp-12); }
.mb-2  { margin-bottom: var(--sp-2); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }
.mb-10 { margin-bottom: var(--sp-10); }
.flex  { display: flex; }
.flex-col   { flex-direction: column; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.flex-wrap { flex-wrap: wrap; }
.font-bold    { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-accent  { color: var(--c-accent); }
.text-muted   { color: var(--c-text-3); }
.text-sm      { font-size: var(--t-sm); }
.text-lg      { font-size: var(--t-lg); }
.text-xl      { font-size: var(--t-xl); }
.w-full { width: 100%; }

/* Accessibility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
