/* ================================================================
   HABLEMOSDMANCHAS — Hoja de estilos principal
   Paleta: #0f766e (teal limpieza) · #1f2937 (texto) · #ffffff (fondo) · #f3f4f6 (secciones)
   Diseño: Mobile-first · Flexbox + Grid · Sin frameworks externos
   ================================================================ */

/* ───────────────────────────────────────────────
   VARIABLES
─────────────────────────────────────────────── */
:root {
  /* Colores principales */
  --bg:             #ffffff;
  --surface:        #ffffff;
  --surface-muted:  #f3f4f6;
  --line:           #e5e7eb;
  --line-soft:      #f0f4f8;

  /* Tipografía */
  --text:           #1f2937;
  --muted:          #6b7280;
  --muted-dark:     #4b5563;

  /* Teal limpieza — acento principal */
  --primary:        #0f766e;
  --primary-dark:   #0c5f58;
  --primary-soft:   #ccfbf1;
  --primary-xsoft:  #f0fdfa;

  /* Complementarios */
  --teal:           #0d9488;
  --teal-soft:      #ccfbf1;
  --indigo:         #4f46e5;
  --indigo-soft:    #e0e7ff;
  --sky:            #14b8a6;
  --warm:           #fef3c7;
  --warm-dark:      #d97706;

  /* Sombras */
  --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);

  /* Radios */
  --radius-xl:   16px;
  --radius-lg:   12px;
  --radius-md:   8px;
  --radius-sm:   6px;
  --radius-pill: 999px;

  /* Contenedor */
  --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-top-ad {
  padding-top: 20px;
  padding-bottom: 0;
}

.section-bottom-ad {
  padding-bottom: 16px;
}

.section-muted {
  background: var(--surface-muted);
}

/* ───────────────────────────────────────────────
   HEADER / NAVEGACIÓN
─────────────────────────────────────────────── */
.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;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

/* ───────────────────────────────────────────────
   MARCA / LOGO
─────────────────────────────────────────────── */
.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(--sky));
  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;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--text);
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ───────────────────────────────────────────────
   NAVEGACIÓN ESCRITORIO
─────────────────────────────────────────────── */
.main-nav,
.nav-desktop {
  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);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ───────────────────────────────────────────────
   BUSCADOR
─────────────────────────────────────────────── */
.searchbox {
  display: grid;
  gap: 0;
}

.searchbox input {
  width: 260px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.searchbox input:focus {
  background: var(--bg);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.searchbox input::placeholder {
  color: var(--muted);
}

/* ───────────────────────────────────────────────
   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(15, 118, 110, 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);
}

.button-block {
  width: 100%;
  margin-top: 16px;
}

/* ───────────────────────────────────────────────
   MENÚ MÓVIL
─────────────────────────────────────────────── */
.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.mobile-panel,
.mobile-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 20px;
}

.searchbox-mobile input {
  width: 100%;
}

.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.4rem);
  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;
}

.eyebrow-soft {
  background: var(--primary-xsoft);
  border: 1px solid rgba(15, 118, 110, 0.15);
}

/* ───────────────────────────────────────────────
   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-teal   { background: var(--teal-soft); }
.cat-blue   { background: #dbeafe; }
.cat-indigo { background: var(--indigo-soft); }
.cat-amber  { background: #fef3c7; }
.cat-sky    { background: var(--primary-soft); }

.cat-icon-shape {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.cat-teal   .cat-icon-shape { background: var(--teal); }
.cat-blue   .cat-icon-shape { background: #3b82f6; }
.cat-indigo .cat-icon-shape { background: var(--indigo); }
.cat-amber  .cat-icon-shape { background: #d97706; }
.cat-sky    .cat-icon-shape { background: var(--primary); }

.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);
}

/* ───────────────────────────────────────────────
   AD SLOTS
─────────────────────────────────────────────── */
.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; }

/* ───────────────────────────────────────────────
   ENCABEZADOS DE SECCIÓN
─────────────────────────────────────────────── */
.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(15, 118, 110, 0.15);
  white-space: nowrap;
  flex-shrink: 0;
}

.pill-warm {
  background: var(--warm);
  color: var(--warm-dark);
  border-color: rgba(217, 119, 6, 0.15);
}

.tiny-pill {
  min-height: 26px;
  padding: 0 10px;
  font-size: 0.7rem;
}

.tiny-pill-mint {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: rgba(13, 148, 136, 0.15);
}

/* ───────────────────────────────────────────────
   TAG
─────────────────────────────────────────────── */
.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--teal {
  background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 60%, #5eead4 100%);
}

.article-thumb--blue {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 60%, #93c5fd 100%);
}

.article-thumb--indigo {
  background: linear-gradient(135deg, var(--indigo-soft) 0%, #c7d2fe 60%, #a5b4fc 100%);
}

.article-thumb--amber {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 60%, #fcd34d 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 (E-E-A-T)
─────────────────────────────────────────────── */
.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(--sky));
  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-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(15, 118, 110, 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;
}

/* ───────────────────────────────────────────────
   TARJETAS GENÉRICAS
─────────────────────────────────────────────── */
.article-card,
.side-card,
.section-block,
.product-card,
.feed-card,
.search-results {
  border-radius: var(--radius-xl);
}

.article-card,
.side-card,
.section-block,
.product-card,
.feed-card,
.search-results {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.article-card,
.side-card,
.section-block,
.search-results {
  padding: 28px;
}

.article-card h3,
.side-card h2 {
  margin: 12px 0 8px;
  line-height: 1.25;
}

.article-card p,
.side-card p {
  color: var(--muted);
  margin: 0;
}

/* ───────────────────────────────────────────────
   GRID DE TIPOS / CONSEJOS
─────────────────────────────────────────────── */
.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;
}

/* ───────────────────────────────────────────────
   FEED / PUBLICACIONES
─────────────────────────────────────────────── */
.feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 24px;
}

.subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.subheading h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.news-stack {
  display: grid;
  gap: 14px;
}

.feed-card {
  padding: 22px;
  border-radius: var(--radius-xl);
}

.feed-card small {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
}

.feed-card p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.9rem;
  line-height: 1.6;
}

.feed-card h4 {
  margin: 10px 0 8px;
  line-height: 1.3;
  font-size: 0.98rem;
}

/* ───────────────────────────────────────────────
   PRODUCTOS (placeholder sin imagen)
─────────────────────────────────────────────── */
.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)); }

.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);
  background: var(--surface-muted);
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.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;
}

.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: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  text-decoration: none;
  margin-top: auto;
}

.button-amazon:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ───────────────────────────────────────────────
   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);
}

/* ───────────────────────────────────────────────
   TABLA COMPARATIVA
─────────────────────────────────────────────── */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--surface);
}

.comparison-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.comparison-table th:first-child { border-radius: var(--radius-md) 0 0 0; }
.comparison-table th:last-child  { border-radius: 0 var(--radius-md) 0 0; }

.comparison-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: top;
  line-height: 1.5;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--surface-muted); }
.comparison-table tr.highlight-row td { background: var(--primary-xsoft); }

.table-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ───────────────────────────────────────────────
   TÍTULO DE GRUPO DE 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;
}

/* ───────────────────────────────────────────────
   RESULTADOS DE BÚSQUEDA
─────────────────────────────────────────────── */
.search-results {
  background: #fef9c3;
  border-color: #fde68a;
  color: #92400e;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ───────────────────────────────────────────────
   SECTION BLOCK
─────────────────────────────────────────────── */
.section-block {
  padding: 36px;
}

/* ───────────────────────────────────────────────
   FOOTER
─────────────────────────────────────────────── */
.site-footer {
  padding: 48px 0 24px;
  margin-top: 0;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto auto;
  gap: 48px;
  align-items: start;
}

.footer-brand-col {
  max-width: 380px;
}

.footer-brand {
  margin-bottom: 16px;
}

.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);
}

.footer-disclaimer {
  font-size: 0.8rem !important;
}

/* ───────────────────────────────────────────────
   COOKIE BANNER
─────────────────────────────────────────────── */
.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(5, 50, 45, 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;
}

/* ───────────────────────────────────────────────
   FAQ
─────────────────────────────────────────────── */
.faq-card {
  max-width: 860px;
}

.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;
}

/* ───────────────────────────────────────────────
   ENTRADA / ARTÍCULO
─────────────────────────────────────────────── */
.entry-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}

.entry-body {
  margin-top: 24px;
}

.entry-lead {
  font-size: 1.08rem;
  color: var(--muted-dark);
}

/* ───────────────────────────────────────────────
   MEDIA QUERIES — TABLETA (< 1100px)
─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .main-nav,
  .nav-desktop,
  .nav-actions .searchbox,
  .nav-actions .button:not(.menu-toggle) {
    display: none;
  }

  .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));
  }

  .feed-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 28px;
  }

  .product-grid,
  .product-grid--2,
  .product-grid--3,
  .tip-grid,
  .feed-grid {
    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,
  .feed-grid {
    grid-template-columns: 1fr;
  }

  .mobile-links {
    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;
  }

  .section-block {
    padding: 24px;
  }

  .legal-card {
    padding: 28px 24px;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-checklist {
    padding: 22px;
  }

  .article-body {
    padding: 22px;
  }

  .author-card {
    padding: 20px;
  }

  .subheading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


/* ── Sticky sidebar ads ────────────────────────────────────────────────────── */
.ad-sidebar {
  position: fixed;
  top: 120px;
  width: 160px;
  z-index: 10;
}
.ad-sidebar-left  { left:  max(8px, calc(50% - 620px - 176px)); }
.ad-sidebar-right { right: max(8px, calc(50% - 620px - 176px)); }
@media (max-width: 1520px) { .ad-sidebar { display: none; } }
