/* ================================================================
   HABLEMOS DEL AGUA — Hoja de estilos landing page
   Paleta: #0284c7 (azul cielo) · #1f2937 (texto) · #ffffff (fondo) · #f0f9ff (secciones)
   Diseño: Mobile-first · Flexbox + Grid · Sin frameworks externos
   ================================================================ */

/* ─── VARIABLES ─── */
:root {
  --bg:             #ffffff;
  --surface:        #ffffff;
  --surface-muted:  #f0f9ff;
  --line:           #bae6fd;
  --line-soft:      #e0f2fe;
  --text:           #0c1a2e;
  --muted:          #64748b;
  --muted-dark:     #334155;

  /* Azul cielo — acento principal */
  --primary:        #0284c7;
  --primary-dark:   #0369a1;
  --primary-soft:   #e0f2fe;
  --primary-xsoft:  #f0f9ff;

  /* Complementarios */
  --teal:           #38bdf8;
  --teal-soft:      #bae6fd;
  --indigo:         #7c3aed;
  --indigo-soft:    #ede9fe;
  --sky:            #0ea5e9;
  --warm:           #f0f9ff;
  --warm-dark:      #0369a1;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 8px rgba(0,0,0,0.05);
  --shadow:     0 2px 8px rgba(0,0,0,0.07), 0 4px 20px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.09), 0 8px 32px rgba(0,0,0,0.07);

  --radius-xl:   16px;
  --radius-lg:   12px;
  --radius-md:   8px;
  --radius-sm:   6px;
  --radius-pill: 999px;
  --container: 1200px;
}

/* ─── RESET + BASE ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { padding: 0; margin: 0; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border-width: 0;
}

/* ─── LAYOUT GLOBAL ─── */
.site-shell { min-height: 100vh; }
.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}
.section { padding: 48px 0; }
.section-sm { padding: 16px 0; }
.section-muted { background: var(--surface-muted); }

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; gap: 0;
  min-height: 68px;
  max-width: var(--container);
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* ─── MARCA ─── */
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; margin-right: auto; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  flex-shrink: 0;
}
.brand-text { display: grid; gap: 1px; }
.brand-text strong { font-size: 1.05rem; line-height: 1.1; color: var(--text); }
.brand-text span { color: var(--muted); font-size: 0.74rem; }

/* ─── NAVEGACIÓN ESCRITORIO ─── */
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; height: 36px;
  padding: 0 12px; border-radius: var(--radius-pill);
  color: var(--muted-dark); font-size: 0.92rem; font-weight: 600;
  transition: color 0.18s, background 0.18s; white-space: nowrap;
}
.nav-link:hover, .nav-link.is-active, .nav-link.active {
  color: var(--primary); background: var(--primary-xsoft);
}

/* ─── BOTÓN MENÚ MÓVIL ─── */
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  min-width: 80px; height: 42px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--bg);
  color: var(--text); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: background 0.18s;
}
.menu-toggle:hover { background: var(--surface-muted); }

/* ─── BOTONES ─── */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; border-radius: var(--radius-pill); padding: 0 20px;
  font-size: 0.92rem; font-weight: 700; border: 1px solid transparent;
  cursor: pointer; transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(2,132,199,0.3); }
.button-secondary { background: var(--bg); color: var(--primary-dark); border-color: var(--line); }
.button-secondary:hover { background: var(--primary-soft); border-color: var(--primary); }
.button-outline { background: transparent; color: var(--primary-dark); border-color: var(--primary); }
.button-outline:hover { background: var(--primary-soft); }
.button-ghost { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); color: #fff; }
.button-ghost:hover { background: rgba(255,255,255,0.25); }

/* ─── MENÚ MÓVIL ─── */
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-panel { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; padding: 16px 0 20px; }
.mobile-links {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; margin-top: 14px; list-style: none;
}
.mobile-links a {
  display: block; background: var(--surface-muted);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 12px 14px; font-weight: 600; font-size: 0.88rem;
  color: var(--muted-dark); transition: background 0.18s, border-color 0.18s;
}
.mobile-links a:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }

/* ─── HERO ─── */
.hero-section { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 40px; align-items: start; padding: 40px 0 48px;
}
.hero-copy { padding-top: 8px; }
.hero-copy h1 {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.1; letter-spacing: -0.03em; color: var(--text);
}
.hero-lead { max-width: 620px; font-size: 1.06rem; color: var(--muted); line-height: 1.7; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-trust {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
}
.trust-item strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--primary); margin-bottom: 2px; }
.trust-item span { font-size: 0.84rem; color: var(--muted); }
.hero-panel { position: relative; }
.hero-checklist {
  padding: 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow);
}
.hero-checklist h2 { margin: 14px 0 20px; font-size: 1.35rem; line-height: 1.25; }

/* ─── EYEBROW ─── */
.eyebrow {
  display: inline-flex; align-items: center; min-height: 30px;
  padding: 0 12px; border-radius: var(--radius-pill);
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em;
}

/* ─── LISTAS ─── */
.check-list, .mini-list { list-style: none; }
.check-list li, .mini-list li {
  position: relative; padding-left: 22px; margin-bottom: 12px;
  color: var(--muted-dark); font-size: 0.95rem; line-height: 1.6;
}
.check-list li::before, .mini-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}

/* ─── GRID DE CATEGORÍAS ─── */
.category-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; margin-top: 32px;
}
.category-card {
  display: block; padding: 28px 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  text-decoration: none; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--primary); }
.category-icon { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; }
.cat-blue   { background: #dbeafe; }
.cat-teal   { background: var(--teal-soft); }
.cat-indigo { background: var(--indigo-soft); }
.cat-sky    { background: var(--primary-soft); }
.cat-warm   { background: var(--warm); }
.cat-green  { background: #dcfce7; }
.cat-icon-shape { width: 22px; height: 22px; border-radius: 6px; }
.cat-blue   .cat-icon-shape { background: #3b82f6; }
.cat-teal   .cat-icon-shape { background: var(--teal); }
.cat-indigo .cat-icon-shape { background: var(--indigo); }
.cat-sky    .cat-icon-shape { background: var(--primary); }
.cat-warm   .cat-icon-shape { background: var(--warm-dark); }
.cat-green  .cat-icon-shape { background: #16a34a; }
.category-card h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.category-card p { margin: 0 0 18px; font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.category-link { font-size: 0.86rem; font-weight: 700; color: var(--primary); }

/* ─── SECTION HEADING ─── */
/* ─── AD SLOTS ─── */
.section-top-ad { padding-top: 20px; padding-bottom: 0; }
.section-bottom-ad { padding-bottom: 16px; }
.ad-slot { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:6px; min-height:90px; text-align:center; border:1.5px dashed var(--line); border-radius:var(--radius-lg); background:var(--surface-muted); color:var(--muted); }
.ad-slot-label { display:inline-flex; align-items:center; height:26px; padding:0 10px; border-radius:var(--radius-pill); background:var(--primary-soft); color:var(--primary-dark); font-size:0.7rem; font-weight:800; letter-spacing:0.14em; text-transform:uppercase; }
.ad-slot-copy { font-size:0.84rem; font-weight:500; color:var(--muted); }
.ad-horizontal { min-height:90px; width:100%; }
.ad-panel { margin-top:20px; min-height:100px; }
.ad-vertical { min-height:280px; }
.ad-in-content { min-height:130px; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { margin: 10px 0 8px; font-size: clamp(1.7rem, 2.5vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; color: var(--text); }
.section-heading p { margin: 0; max-width: 700px; color: var(--muted); font-size: 1rem; line-height: 1.65; }

/* ─── PILLS / BADGES ─── */
.pill, .tiny-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; border-radius: var(--radius-pill); padding: 0 14px;
  font-size: 0.8rem; font-weight: 700; color: var(--primary-dark);
  background: var(--primary-soft); border: 1px solid rgba(2,132,199,0.15);
  white-space: nowrap; flex-shrink: 0;
}
.tiny-pill { min-height: 26px; padding: 0 10px; font-size: 0.7rem; }
.tag {
  display: inline-flex; align-items: center; min-height: 26px;
  padding: 0 10px; border-radius: var(--radius-pill);
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; flex-shrink: 0;
}

/* ─── BLOG LAYOUT ─── */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.blog-main { display: grid; gap: 32px; }
.blog-sidebar { display: grid; gap: 24px; position: sticky; top: 88px; }

/* ─── TARJETA DE ARTÍCULO ─── */
.blog-article {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); overflow: hidden; transition: box-shadow 0.2s;
}
.blog-article:hover { box-shadow: var(--shadow-md); }
.article-thumb-link { display: block; }
.article-thumb {
  width: 100%; height: 220px; display: flex; align-items: flex-end;
  padding: 18px 24px; transition: opacity 0.18s;
}
.article-thumb-link:hover .article-thumb { opacity: 0.9; }
.article-thumb--blue   { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 60%, #93c5fd 100%); }
.article-thumb--teal   { background: linear-gradient(135deg, var(--teal-soft) 0%, #7dd3fc 60%, #38bdf8 100%); }
.article-thumb--indigo { background: linear-gradient(135deg, var(--indigo-soft) 0%, #c7d2fe 60%, #a5b4fc 100%); }
.thumb-label {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  background: rgba(255,255,255,0.9); border-radius: var(--radius-pill);
  font-size: 0.76rem; font-weight: 700; color: var(--text);
}
.article-body { padding: 28px; }
.article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.article-meta time, .read-time { font-size: 0.82rem; color: var(--muted); }
.article-title { margin: 0 0 16px; font-size: 1.35rem; line-height: 1.3; letter-spacing: -0.015em; }
.article-title a { color: var(--text); transition: color 0.18s; }
.article-title a:hover { color: var(--primary); }
.article-excerpt { margin-bottom: 22px; }
.article-excerpt p { margin: 0 0 12px; color: var(--muted-dark); font-size: 0.96rem; line-height: 1.72; }
.article-excerpt p:last-child { margin-bottom: 0; }
.btn-read-more { display: inline-flex; align-items: center; font-size: 0.92rem; font-weight: 700; color: var(--primary); transition: color 0.18s; }
.btn-read-more:hover { color: var(--primary-dark); }

/* ─── TARJETA DE AUTOR ─── */
.author-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.author-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; flex-shrink: 0; letter-spacing: 0.04em;
}
.author-info { display: grid; gap: 2px; }
.author-name { display: block; font-size: 1rem; font-weight: 700; color: var(--text); }
.author-role { display: block; font-size: 0.8rem; color: var(--muted); }
.author-bio { font-size: 0.88rem; color: var(--muted-dark); line-height: 1.68; margin: 0 0 16px; }
.author-credentials { list-style: none; margin: 0 0 18px; }
.author-credentials li { position: relative; padding-left: 18px; margin-bottom: 7px; font-size: 0.83rem; color: var(--muted-dark); line-height: 1.5; }
.author-credentials li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.author-badge {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: var(--radius-pill); background: var(--primary-soft);
  font-size: 0.74rem; font-weight: 700; color: var(--primary-dark);
  border: 1px solid rgba(0,121,107,0.2);
}

/* ─── SIDEBAR TIPS ─── */
.sidebar-tips { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.sidebar-tips h3 { margin: 12px 0 18px; font-size: 1rem; font-weight: 700; line-height: 1.3; }

/* ─── TIP GRID ─── */
.tip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.tip-card {
  padding: 28px 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); transition: box-shadow 0.2s, transform 0.2s;
}
.tip-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tip-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 0.78rem; font-weight: 800; margin-bottom: 16px; letter-spacing: 0.04em;
}
.tip-card h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.tip-card p { margin: 0; color: var(--muted-dark); font-size: 0.92rem; line-height: 1.65; }

/* ─── AVISO AFILIADOS ─── */
.affiliate-notice {
  font-size: 0.8rem; color: var(--muted); margin: -16px 0 28px;
  padding: 10px 14px; background: var(--surface-muted);
  border-radius: var(--radius-md); border-left: 3px solid var(--line);
}

/* ─── TÍTULO GRUPO PRODUCTOS ─── */
.product-group-title {
  font-size: 1.05rem; font-weight: 800; color: var(--muted-dark);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin: 36px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--line);
}
.product-group-title:first-of-type { margin-top: 8px; }

/* ─── GRIDS DE PRODUCTOS ─── */
.product-grid { display: grid; gap: 20px; }
.product-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ─── TARJETA DE PRODUCTO ─── */
.product-card {
  display: flex; flex-direction: column;
  overflow: hidden; border-radius: var(--radius-xl);
  border: 1px solid var(--line); background: var(--surface);
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-media {
  height: 140px; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line); position: relative;
}
.pm-icon-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pm-icon { width: 48px; height: 48px; border-radius: 14px; }
.pm-label { font-size: 0.72rem; font-weight: 700; color: var(--muted-dark); text-align: center; max-width: 180px; line-height: 1.4; }

/* Colores medias — agua */
.pm-agua-jarra    { background: linear-gradient(135deg, var(--primary-soft), #b2dfdb); }
.pm-agua-grifo    { background: linear-gradient(135deg, #e0f7fa, #b2ebf2); }
.pm-agua-osmosis  { background: linear-gradient(135deg, var(--indigo-soft), #c7d2fe); }
.pm-agua-descalc  { background: linear-gradient(135deg, var(--warm), #ffe0b2); }
.pm-agua-jarra   .pm-icon { background: var(--primary); }
.pm-agua-grifo   .pm-icon { background: var(--sky); }
.pm-agua-osmosis .pm-icon { background: var(--indigo); }
.pm-agua-descalc .pm-icon { background: var(--warm-dark); }

.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 0; }
.product-body h4 { margin: 10px 0 8px; font-size: 0.97rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.product-body p { margin: 0 0 16px; color: var(--muted-dark); font-size: 0.88rem; line-height: 1.62; flex: 1; }

/* ─── BOTÓN AMAZON ─── */
.button-amazon {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; border-radius: var(--radius-pill); padding: 0 18px;
  font-size: 0.88rem; font-weight: 700; background: #ff9900; color: #111;
  border: none; cursor: pointer; transition: background 0.18s, transform 0.18s;
  text-decoration: none; margin-top: auto;
}
.button-amazon:hover { background: #e68900; transform: translateY(-1px); }

/* ─── TABLA COMPARATIVA ─── */
.comparison-table-wrapper { overflow-x: auto; margin: 0 0 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.comparison-table th,
.comparison-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.comparison-table th { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-dark); background: var(--surface-muted); }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--primary-xsoft); }
.comparison-table .highlight-row { background: var(--primary-soft); font-weight: 600; }
.table-note { font-size: 0.82rem; color: var(--muted); margin: 12px 0 0; }

/* ─── FAQ ─── */
.faq-card { max-width: 860px; }
.faq-lead { font-size: 1.05rem; color: var(--muted-dark); line-height: 1.7; margin: 8px 0 32px; }
.faq-lead a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.faq-list { display: grid; gap: 12px; margin-bottom: 40px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.18s; }
.faq-item[open] { border-color: var(--primary); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-size: 1rem; font-weight: 700; color: var(--text);
  cursor: pointer; list-style: none; background: var(--surface); transition: background 0.18s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; font-size: 1.4rem; font-weight: 300; color: var(--primary); flex-shrink: 0; transition: transform 0.2s; }
.faq-item[open] .faq-question { background: var(--primary-xsoft); }
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; border-top: 1px solid var(--line-soft); }
.faq-answer p, .faq-answer li { font-size: 0.96rem; color: var(--muted-dark); line-height: 1.72; margin: 14px 0 0; }
.faq-answer ol, .faq-answer ul { padding-left: 20px; margin-top: 12px; }
.faq-answer li { margin-bottom: 6px; }
.faq-footer-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.faq-footer-cta p { width: 100%; color: var(--muted); font-size: 0.92rem; margin: 0 0 4px; }

/* ─── FOOTER ─── */
.site-footer { padding: 48px 0 24px; border-top: 1px solid var(--line); background: var(--surface-muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; gap: 48px; align-items: start; }
.footer-brand-col { max-width: 380px; }
.footer-title { margin: 0 0 14px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text); }
.footer-links { display: grid; gap: 10px; }
.footer-links a { font-size: 0.92rem; color: var(--muted-dark); transition: color 0.18s; }
.footer-links a:hover { color: var(--primary); }
.footer-text { color: var(--muted); font-size: 0.9rem; line-height: 1.65; margin: 0; }
.footer-note {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center;
}
.footer-note p { margin: 0; font-size: 0.86rem; color: var(--muted); }

/* ─── BANNER DE COOKIES ─── */
.cookie-banner { position: fixed; inset: auto 16px 16px 16px; z-index: 40; }
.cookie-content {
  width: min(900px, 100%); margin-left: auto;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; border-radius: 20px; box-shadow: 0 20px 48px rgba(0,60,50,0.3);
  padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.cookie-content strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.cookie-content p { margin: 4px 0 0; font-size: 0.88rem; color: rgba(255,255,255,0.88); line-height: 1.55; }
.cookie-legal-link { display: inline-block; margin-top: 6px; font-size: 0.82rem; color: rgba(255,255,255,0.72); text-decoration: underline; text-underline-offset: 3px; transition: color 0.18s; }
.cookie-legal-link:hover { color: #fff; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

/* ─── PÁGINAS LEGALES ─── */
.legal-shell { padding: 40px 0 72px; }
.legal-card {
  max-width: 860px; margin: 0 auto; padding: 40px 48px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); box-shadow: var(--shadow);
}
.legal-card h1 { margin: 12px 0 10px; font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.1; letter-spacing: -0.025em; }
.legal-card h2 { margin-top: 32px; margin-bottom: 10px; font-size: 1.2rem; font-weight: 700; color: var(--text); }
.legal-card p, .legal-card li { color: var(--muted-dark); font-size: 0.96rem; line-height: 1.72; }
.legal-card ul { margin: 8px 0 0; padding-left: 20px; }
.legal-card ul li { margin-bottom: 6px; }

/* ─── VISUAL ROUTE (imágenes de categorías) ─── */
.visual-route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.visual-route-card {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--line); margin: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.visual-route-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.visual-route-card img { width: 100%; height: 180px; object-fit: cover; }
.visual-route-card figcaption { padding: 16px 18px; background: var(--surface); }
.visual-route-card figcaption strong { display: block; font-size: 0.97rem; font-weight: 700; margin-bottom: 4px; }
.visual-route-card figcaption span { font-size: 0.85rem; color: var(--muted); }

/* ─── MEDIA QUERIES — TABLETA (< 1100px) ─── */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 16px; z-index: 29;
  }
  .main-nav.is-open .nav-link { width: 100%; }
  .menu-toggle { display: inline-flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .author-card { grid-column: 1 / -1; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-grid, .product-grid--2, .product-grid--3, .tip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visual-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-trust { gap: 20px; }
}

/* ─── MEDIA QUERIES — MÓVIL (< 760px) ─── */
@media (max-width: 760px) {
  .container { width: min(var(--container), calc(100% - 24px)); }
  .section { padding: 32px 0; }
  .hero-copy h1 { font-size: 1.85rem; }
  .hero-trust { gap: 16px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .category-grid, .product-grid, .product-grid--2, .product-grid--3, .tip-grid { grid-template-columns: 1fr; }
  .visual-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-note { flex-direction: column; align-items: flex-start; gap: 4px; }
  .legal-card { padding: 28px 24px; }
  .cookie-content { flex-direction: column; align-items: flex-start; gap: 16px; }
  .article-body { padding: 22px; }
  .author-card { padding: 20px; }
  .hero-checklist { padding: 22px; }
}
