/* gumpro-blog-css v2.3 — callout editorial + DEBUG deploy 22 jun */
/* ============================================================
   GUMPRO BLOG — Sistema de diseño editorial
   ------------------------------------------------------------
   Sistema de tipografía + componentes inline branded para
   posts del blog WordPress (gumpro.es/blog).

   Filosofía: editorial calmado tipo Kinfolk + tonos marca
   Gumpro + apetecible para lectura larga. Sin estridencias.
   Componentes a estrenar dentro del cuerpo del post para
   tablas, gráficos, callouts y CTA — todo HTML/CSS sin JPG.

   Carga: como child theme gumpro-blog/style.css o vía
   Kadence Customizer → CSS adicional.

   Scope: TODO va prefijado con .gp- o dentro de .gp-article
   para no romper estilos de Kadence padre.
   ============================================================ */

/* ============================================================
   TOKENS DE DISEÑO
   ============================================================ */
:root {
  /* — Paleta marca Gumpro (real, sincronizada con theme principal) — */
  --gp-bg: #ffffff;
  --gp-bg-warm: #faf7f1;
  --gp-bg-section: #f5f0e6;
  --gp-bg-soft: #efeadd;

  --gp-text: #1E1A2C;
  --gp-text-body: #2d2935;
  --gp-text-muted: #6b6770;
  --gp-text-light: #9a96a0;

  --gp-border: #eae6dc;
  --gp-border-strong: #d4cebe;
  --gp-border-soft: #f0ebe0;

  /* — Acentos marca: morado ciruela primario + berry + oro — */
  --gp-accent: #3B233D;            /* morado ciruela Gumpro */
  --gp-accent-hover: #2A1830;
  --gp-accent-soft: rgba(59, 35, 61, 0.07);
  --gp-accent-line: rgba(59, 35, 61, 0.25);

  --gp-berry: #8B2252;             /* berry burgundy secundario */
  --gp-berry-soft: rgba(139, 34, 82, 0.08);

  --gp-gold: #C5A059;              /* oro suave (sustituye al amber genérico) */
  --gp-gold-soft: rgba(197, 160, 89, 0.14);
  --gp-gold-strong: #A8853F;

  --gp-success: #5a9a6b;
  --gp-success-soft: rgba(90, 154, 107, 0.10);

  --gp-warn: #c4943a;
  --gp-warn-soft: rgba(196, 148, 58, 0.10);

  --gp-danger: #b94e3f;
  --gp-danger-soft: rgba(185, 78, 63, 0.08);

  /* — Tipografía — */
  --gp-font-display: 'Playfair Display', 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --gp-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gp-font-serif: 'DM Serif Display', 'Playfair Display', Georgia, serif;

  /* — Escala tipográfica fluida — */
  --gp-fs-h1: clamp(2.1rem, 4vw + 0.5rem, 3.2rem);
  --gp-fs-h2: clamp(1.55rem, 2.2vw + 0.6rem, 2.1rem);
  --gp-fs-h3: clamp(1.2rem, 1.2vw + 0.6rem, 1.45rem);
  --gp-fs-h4: clamp(1.05rem, 0.6vw + 0.7rem, 1.15rem);
  --gp-fs-body: clamp(1rem, 0.3vw + 0.95rem, 1.125rem);
  --gp-fs-small: 0.9rem;
  --gp-fs-tiny: 0.78rem;

  /* — Layout — */
  --gp-read-width: 720px;
  --gp-wide-width: 920px;
  --gp-full-width: 1140px;

  /* — Spacing — */
  --gp-sp-xs: 0.5rem;
  --gp-sp-sm: 1rem;
  --gp-sp-md: 1.5rem;
  --gp-sp-lg: 2.5rem;
  --gp-sp-xl: 4rem;
  --gp-sp-2xl: 6rem;

  /* — Bordes y sombras — */
  --gp-radius-sm: 8px;
  --gp-radius-md: 14px;
  --gp-radius-lg: 22px;
  --gp-radius-pill: 999px;

  --gp-shadow-soft: 0 2px 12px rgba(30, 26, 44, 0.04);
  --gp-shadow-medium: 0 6px 28px rgba(30, 26, 44, 0.07);
  --gp-shadow-warm: 0 4px 24px rgba(197, 160, 89, 0.18);
  --gp-shadow-accent: 0 4px 14px rgba(59, 35, 61, 0.22);

  /* — Transiciones — */
  --gp-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --gp-dur: 240ms;
}

/* ============================================================
   CONTENEDOR ARTÍCULO
   ============================================================ */
.gp-article {
  font-family: var(--gp-font-body);
  font-size: var(--gp-fs-body);
  line-height: 1.78;
  color: var(--gp-text-body);
  background: var(--gp-bg);
  max-width: var(--gp-read-width);
  margin: 0 auto;
  padding: var(--gp-sp-lg) var(--gp-sp-md);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  word-spacing: 0.01em;
}

/* Selección texto en color marca */
.gp-article ::selection {
  background: var(--gp-accent);
  color: #fff;
}

@media (min-width: 768px) {
  .gp-article {
    padding: var(--gp-sp-xl) var(--gp-sp-md);
  }
}

/* ============================================================
   TIPOGRAFÍA — Headings
   ============================================================ */
.gp-article h1,
.gp-article h2,
.gp-article h3,
.gp-article h4 {
  font-family: var(--gp-font-display);
  color: var(--gp-text);
  letter-spacing: -0.012em;
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 var(--gp-sp-md);
}

.gp-article h1 {
  font-size: var(--gp-fs-h1);
  margin-bottom: var(--gp-sp-lg);
  letter-spacing: -0.022em;
  line-height: 1.1;
}

.gp-article h2 {
  font-size: var(--gp-fs-h2);
  margin-top: var(--gp-sp-xl);
  position: relative;
  padding-top: var(--gp-sp-md);
}

.gp-article h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--gp-accent);
  border-radius: 2px;
}

.gp-article h3 {
  font-family: var(--gp-font-body);
  font-size: var(--gp-fs-h3);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-top: var(--gp-sp-lg);
  color: var(--gp-text);
}

.gp-article h4 {
  font-family: var(--gp-font-body);
  font-size: var(--gp-fs-h4);
  font-weight: 600;
  margin-top: var(--gp-sp-md);
  color: var(--gp-text);
}

/* ============================================================
   TIPOGRAFÍA — Body
   ============================================================ */
.gp-article p {
  margin: 0 0 var(--gp-sp-md);
  color: var(--gp-text-body);
}

/* — Dropcap opcional. Añadir .gp-dropcap al primer <p> después del lead — */
.gp-article .gp-dropcap::first-letter {
  font-family: var(--gp-font-display);
  font-weight: 700;
  font-size: 4em;
  float: left;
  line-height: 0.9;
  margin: 0.1em 0.12em 0 -0.04em;
  color: var(--gp-accent);
  letter-spacing: -0.04em;
}

@media (max-width: 540px) {
  .gp-article .gp-dropcap::first-letter {
    font-size: 3.2em;
    margin-right: 0.08em;
  }
}

.gp-article strong,
.gp-article b {
  font-weight: 700;
  color: var(--gp-text);
}

.gp-article em,
.gp-article i {
  font-style: italic;
  color: var(--gp-text-body);
}

.gp-article a {
  color: var(--gp-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--gp-accent-line);
  transition: color var(--gp-dur) var(--gp-ease), border-color var(--gp-dur) var(--gp-ease);
}

.gp-article a:hover {
  color: var(--gp-accent-hover);
  border-bottom-color: var(--gp-accent);
}

/* ============================================================
   LEAD / SUBTITLE
   ============================================================ */
.gp-lead {
  font-family: var(--gp-font-serif);
  font-size: clamp(1.15rem, 1.5vw + 0.7rem, 1.35rem);
  line-height: 1.55;
  color: var(--gp-text);
  font-style: italic;
  font-weight: 400;
  margin: 0 0 var(--gp-sp-lg);
  padding: var(--gp-sp-md) 0 var(--gp-sp-md) var(--gp-sp-md);
  border-left: 3px solid var(--gp-gold);
  background: linear-gradient(90deg, var(--gp-gold-soft) 0%, transparent 60%);
}

/* ============================================================
   LISTAS — Bullet y numeradas
   ============================================================ */
.gp-article ul,
.gp-article ol {
  margin: 0 0 var(--gp-sp-md);
  padding-left: 1.4rem;
}

.gp-article ul li,
.gp-article ol li {
  margin-bottom: 0.6rem;
  color: var(--gp-text-body);
}

.gp-article ul li::marker {
  color: var(--gp-accent);
}

.gp-article ol li::marker {
  color: var(--gp-accent);
  font-weight: 600;
}

/* ============================================================
   COMPONENTE: HEADER DEL ARTÍCULO (badge + title + lead + meta)
   ------------------------------------------------------------
   Uso: contenedor opcional para abrir el post con jerarquía clara.
   <header class="gp-article-header">
     <span class="gp-eyebrow">Colágeno · Guía esencial</span>
     <h1>...</h1>
     <p class="gp-lead">...</p>
     <div class="gp-meta">...</div>
   </header>
   ============================================================ */
.gp-article-header {
  margin: 0 0 var(--gp-sp-xl);
  padding-bottom: var(--gp-sp-md);
  border-bottom: 1px solid var(--gp-border);
}

.gp-eyebrow {
  display: inline-block;
  font-family: var(--gp-font-body);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gp-accent);
  margin-bottom: var(--gp-sp-sm);
}

.gp-eyebrow::before {
  content: "—";
  margin-right: 0.5em;
  color: var(--gp-gold);
}

/* ============================================================
   COMPONENTE: KEY TAKEAWAYS (resumen 3-5 puntos clave al inicio)
   ------------------------------------------------------------
   Uso: caja elegante después del lead. Da TL;DR al lector con prisa.
   <aside class="gp-takeaways">
     <h3 class="gp-takeaways-title">Lo importante en 30 segundos</h3>
     <ul>
       <li>...</li>
     </ul>
   </aside>
   ============================================================ */
.gp-takeaways {
  margin: var(--gp-sp-lg) 0 var(--gp-sp-xl);
  padding: var(--gp-sp-md) var(--gp-sp-md) var(--gp-sp-md) var(--gp-sp-lg);
  background: var(--gp-bg-warm);
  border-left: 3px solid var(--gp-accent);
  border-radius: 0 var(--gp-radius-md) var(--gp-radius-md) 0;
  position: relative;
}

.gp-takeaways-title {
  font-family: var(--gp-font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gp-accent);
  margin: 0 0 var(--gp-sp-sm);
}

.gp-takeaways ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gp-takeaways li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.6rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--gp-text-body);
}

.gp-takeaways li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--gp-gold);
  font-weight: 700;
}

.gp-takeaways li + li {
  border-top: 1px solid var(--gp-border-soft);
}

/* ============================================================
   COMPONENTE: STAT INLINE (cifra destacada dentro del párrafo)
   ------------------------------------------------------------
   Uso inline: <span class="gp-stat">2.000 mg</span>
   ============================================================ */
.gp-stat {
  font-family: var(--gp-font-display);
  font-weight: 700;
  font-size: 1.2em;
  color: var(--gp-accent);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ============================================================
   COMPONENTE: STAT BIG (caja con número grande + contexto)
   ------------------------------------------------------------
   Uso:
   <div class="gp-stats">
     <div class="gp-stat-card">
       <div class="gp-stat-number">30%</div>
       <div class="gp-stat-context">de pérdida de colágeno en los primeros 5 años de menopausia</div>
     </div>
   </div>
   ============================================================ */
.gp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gp-sp-md);
  margin: var(--gp-sp-lg) 0;
}

.gp-stat-card {
  padding: var(--gp-sp-md);
  background: var(--gp-bg-warm);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-md);
  text-align: center;
}

.gp-stat-number {
  font-family: var(--gp-font-display);
  font-size: clamp(2.4rem, 5vw + 0.5rem, 3.6rem);
  font-weight: 700;
  color: var(--gp-accent);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.gp-stat-context {
  font-size: 0.92rem;
  color: var(--gp-text-muted);
  line-height: 1.4;
}

/* ============================================================
   COMPONENTE: TABLA COMPARATIVA
   ------------------------------------------------------------
   Uso:
   <table class="gp-compare">
     <thead><tr><th>Criterio</th><th>Cápsulas</th><th>Gominolas</th></tr></thead>
     <tbody>...</tbody>
   </table>
   ============================================================ */
.gp-compare,
.gp-data {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--gp-sp-lg) 0;
  background: var(--gp-bg);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-md);
  overflow: hidden;
  font-size: 0.97rem;
  box-shadow: var(--gp-shadow-soft);
}

.gp-compare thead,
.gp-data thead {
  background: var(--gp-bg-section);
}

.gp-compare th,
.gp-data th {
  font-family: var(--gp-font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gp-text);
  padding: var(--gp-sp-md) var(--gp-sp-md);
  text-align: left;
  border-bottom: 1px solid var(--gp-border);
}

.gp-compare td,
.gp-data td {
  padding: var(--gp-sp-md) var(--gp-sp-md);
  border-bottom: 1px solid var(--gp-border-soft);
  color: var(--gp-text-body);
  vertical-align: top;
  line-height: 1.55;
}

.gp-compare tbody tr:last-child td,
.gp-data tbody tr:last-child td {
  border-bottom: none;
}

.gp-compare tbody tr:hover {
  background: var(--gp-bg-warm);
}

/* Columna destacada (Gumpro) */
.gp-compare .gp-col-highlight {
  background: var(--gp-accent-soft);
  color: var(--gp-text);
  font-weight: 500;
}

.gp-compare thead th.gp-col-highlight {
  background: var(--gp-accent);
  color: var(--gp-bg);
  position: relative;
}

.gp-compare thead th.gp-col-highlight::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 12px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Tabla responsive scroll horizontal */
.gp-table-wrap {
  overflow-x: auto;
  margin: var(--gp-sp-lg) calc(var(--gp-sp-md) * -1);
  padding: 0 var(--gp-sp-md);
  -webkit-overflow-scrolling: touch;
}

/* En móvil: tabla comparativa se transforma en stack de cards por fila
   para evitar scroll horizontal incómodo */
@media (max-width: 640px) {
  .gp-compare {
    display: block;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .gp-compare thead {
    display: none;
  }
  .gp-compare tbody {
    display: block;
  }
  .gp-compare tr {
    display: block;
    background: var(--gp-bg-warm);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius-md);
    padding: var(--gp-sp-sm);
    margin-bottom: var(--gp-sp-sm);
    box-shadow: var(--gp-shadow-soft);
  }
  .gp-compare td {
    display: block;
    padding: 0.4rem 0;
    border: none;
    font-size: 0.95rem;
    position: relative;
    padding-left: 0;
  }
  .gp-compare td:first-child {
    font-weight: 700;
    color: var(--gp-text);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
    color: var(--gp-accent);
  }
  .gp-compare td:nth-child(2)::before {
    content: "Otras marcas:";
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gp-text-muted);
    margin-bottom: 0.15rem;
    margin-top: 0.4rem;
  }
  .gp-compare td:nth-child(3)::before {
    content: "Gumpro:";
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gp-accent);
    margin-bottom: 0.15rem;
    margin-top: 0.4rem;
    font-weight: 700;
  }
  .gp-compare .gp-col-highlight {
    background: var(--gp-accent-soft);
    border-radius: var(--gp-radius-sm);
    padding: 0.5rem 0.6rem;
    margin-top: 0.2rem;
  }
  .gp-data {
    font-size: 0.88rem;
  }
  .gp-data th,
  .gp-data td {
    padding: 0.75rem 0.8rem;
  }
}

/* ============================================================
   COMPONENTE: GRÁFICO DE BARRAS HORIZONTALES
   ------------------------------------------------------------
   Uso:
   <div class="gp-barchart">
     <div class="gp-barchart-title">Colágeno por dosis diaria</div>
     <div class="gp-barchart-row">
       <span class="gp-barchart-label">Marca A</span>
       <div class="gp-barchart-track"><div class="gp-barchart-fill" style="width: 10%">200 mg</div></div>
     </div>
     ...
   </div>
   ============================================================ */
.gp-barchart {
  margin: var(--gp-sp-lg) 0;
  padding: var(--gp-sp-lg) var(--gp-sp-md);
  background: var(--gp-bg-warm);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-md);
}

.gp-barchart-title {
  font-family: var(--gp-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gp-text);
  margin-bottom: var(--gp-sp-md);
  letter-spacing: -0.005em;
}

.gp-barchart-subtitle {
  font-size: var(--gp-fs-small);
  color: var(--gp-text-muted);
  margin-bottom: var(--gp-sp-md);
  font-style: italic;
}

.gp-barchart-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--gp-sp-sm);
  align-items: center;
  margin-bottom: var(--gp-sp-sm);
}

@media (max-width: 540px) {
  .gp-barchart-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.gp-barchart-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gp-text);
}

.gp-barchart-track {
  background: var(--gp-bg-soft);
  border-radius: var(--gp-radius-pill);
  height: 28px;
  overflow: hidden;
  position: relative;
}

.gp-barchart-fill {
  background: var(--gp-border-strong);
  height: 100%;
  border-radius: var(--gp-radius-pill);
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gp-text);
  white-space: nowrap;
  transition: width 800ms var(--gp-ease);
  min-width: 60px;
}

.gp-barchart-fill.gp-highlight {
  background: var(--gp-accent);
  color: var(--gp-bg);
  box-shadow: var(--gp-shadow-warm);
}

.gp-barchart-fill.gp-warn {
  background: var(--gp-warn);
  color: var(--gp-bg);
}

/* ============================================================
   COMPONENTE: TIMELINE HORIZONTAL
   ------------------------------------------------------------
   Uso:
   <div class="gp-timeline">
     <div class="gp-timeline-track"></div>
     <div class="gp-timeline-step"><span class="gp-timeline-marker">1</span>...</div>
     ...
   </div>
   ============================================================ */
.gp-timeline {
  margin: var(--gp-sp-lg) 0;
  padding: var(--gp-sp-lg) var(--gp-sp-md);
  background: var(--gp-bg-warm);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-md);
}

.gp-timeline-title {
  font-family: var(--gp-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gp-text);
  margin-bottom: var(--gp-sp-md);
}

.gp-timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--gp-sp-md);
  position: relative;
}

.gp-timeline-grid::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gp-accent-line);
  border-radius: 2px;
  z-index: 0;
}

@media (max-width: 540px) {
  .gp-timeline-grid::before { display: none; }
}

.gp-timeline-step {
  position: relative;
  z-index: 1;
  background: var(--gp-bg-warm);
  padding-top: 0;
}

.gp-timeline-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gp-accent);
  color: var(--gp-bg);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--gp-font-body);
  margin-bottom: 0.6rem;
  box-shadow: 0 0 0 4px var(--gp-bg-warm);
}

.gp-timeline-when {
  font-size: var(--gp-fs-tiny);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gp-accent);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.gp-timeline-text {
  font-size: 0.94rem;
  color: var(--gp-text-body);
  line-height: 1.45;
}

/* ============================================================
   COMPONENTE: CHECKLIST NUMERADA
   ------------------------------------------------------------
   Uso:
   <ol class="gp-checklist">
     <li><strong>Tipo de colágeno especificado</strong> — texto</li>
     ...
   </ol>
   ============================================================ */
.gp-checklist,
.gp-article ol.gp-checklist {
  list-style: none;
  counter-reset: gp-check;
  margin: var(--gp-sp-lg) 0;
  padding-left: 0;
  padding-right: 0;
}

.gp-checklist li {
  counter-increment: gp-check;
  position: relative;
  padding: var(--gp-sp-md) var(--gp-sp-md) var(--gp-sp-md) 4rem;
  background: var(--gp-bg-warm);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-md);
  margin-bottom: var(--gp-sp-sm);
  transition: transform var(--gp-dur) var(--gp-ease), box-shadow var(--gp-dur) var(--gp-ease);
}

.gp-checklist li::before {
  content: counter(gp-check, decimal-leading-zero);
  position: absolute;
  left: var(--gp-sp-md);
  top: var(--gp-sp-md);
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gp-accent);
  color: var(--gp-bg);
  border-radius: 50%;
  font-family: var(--gp-font-body);
  font-weight: 700;
  font-size: 0.85rem;
}

.gp-checklist li:hover {
  transform: translateY(-1px);
  box-shadow: var(--gp-shadow-medium);
}

.gp-checklist li strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--gp-text);
}

/* ============================================================
   COMPONENTE: RED FLAGS (negativas) + CHECKLIST GO (positivas)
   ------------------------------------------------------------
   Estilo editorial uniforme. Sin emojis (que rompen tipografia
   con fuente del sistema). Iconos circulares tipograficos en
   color marca para coherencia visual.
   ============================================================ */
.gp-redflags,
.gp-checklist-go,
.gp-article ul.gp-redflags,
.gp-article ul.gp-checklist-go {
  list-style: none;
  margin: var(--gp-sp-lg) 0;
  padding: var(--gp-sp-sm) var(--gp-sp-md);
  background: var(--gp-bg-warm);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-md);
}

.gp-redflags {
  border-left: 3px solid var(--gp-danger);
}

.gp-checklist-go {
  border-left: 3px solid var(--gp-success);
}

.gp-redflags li,
.gp-checklist-go li {
  padding: 0.7rem 0 0.7rem 2.2rem;
  position: relative;
  color: var(--gp-text-body);
  font-size: 1rem;
  line-height: 1.55;
  font-family: var(--gp-font-body);
}

.gp-redflags li + li,
.gp-checklist-go li + li {
  border-top: 1px solid var(--gp-border-soft);
}

.gp-redflags li::before,
.gp-checklist-go li::before {
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--gp-font-body);
  font-weight: 700;
  line-height: 1;
}

.gp-redflags li::before {
  content: "\00d7"; /* multiplication sign × */
  background: var(--gp-danger-soft);
  color: var(--gp-danger);
  font-size: 1rem;
}

.gp-checklist-go li::before {
  content: "\2713"; /* check mark ✓ */
  background: var(--gp-success-soft);
  color: var(--gp-success);
  font-size: 0.85rem;
}

/* ============================================================
   COMPONENTE: CALLOUT — Dato clave, atención, info
   Editorial Kinfolk: sin bordes alarmistas, sin emojis grandes.
   Tipografía + sutil tono cream + borde lateral fino brand.
   ============================================================ */
.gp-callout {
  margin: var(--gp-sp-lg) 0;
  padding: calc(var(--gp-sp-md) + 0.25rem) var(--gp-sp-lg);
  background: var(--gp-bg-warm);
  border-left: 2px solid var(--gp-gold);
  border-radius: 0;
  position: relative;
  font-family: var(--gp-font-body);
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--gp-text);
}

.gp-callout::before {
  content: none;
}

.gp-callout p { margin: 0 0 0.6rem; }
.gp-callout p:last-child { margin-bottom: 0; }

.gp-callout-title {
  display: block;
  font-family: var(--gp-font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--gp-gold-strong);
  margin: 0 0 0.6rem;
}

/* Variante atención — borde berry burgundy, sin amarillo alarmista */
.gp-callout--warning {
  background: var(--gp-bg-soft);
  border-left-color: var(--gp-berry);
}

.gp-callout--warning .gp-callout-title {
  color: var(--gp-berry);
}

.gp-callout--warning strong:first-child {
  color: var(--gp-berry);
  font-weight: 600;
}

/* Variante info — sage suave */
.gp-callout--info {
  background: var(--gp-accent-soft);
  border-left-color: var(--gp-accent);
}

.gp-callout--info .gp-callout-title {
  color: var(--gp-accent);
}

/* ============================================================
   COMPONENTE: PULLQUOTE (frase destacada del cuerpo)
   ============================================================ */
.gp-pullquote {
  font-family: var(--gp-font-display);
  font-size: clamp(1.2rem, 1.4vw + 0.75rem, 1.55rem);
  line-height: 1.45;
  color: var(--gp-text);
  font-style: italic;
  text-align: center;
  margin: var(--gp-sp-2xl) auto var(--gp-sp-xl);
  padding: var(--gp-sp-xl) var(--gp-sp-md) var(--gp-sp-lg);
  max-width: 580px;
  position: relative;
  border-top: 1px solid var(--gp-border);
  border-bottom: 1px solid var(--gp-border);
}

.gp-pullquote::before {
  content: "\201C";
  position: absolute;
  top: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.4rem;
  color: var(--gp-gold);
  font-family: var(--gp-font-serif);
  line-height: 1;
  background: var(--gp-bg);
  padding: 0 0.6rem;
  font-style: normal;
}

/* ============================================================
   COMPONENTE: CAJA CTA (Compra / Probar)
   ============================================================ */
.gp-cta-box {
  margin: var(--gp-sp-xl) 0;
  padding: var(--gp-sp-lg) var(--gp-sp-md);
  background: linear-gradient(135deg, var(--gp-bg-warm) 0%, var(--gp-bg-section) 100%);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-lg);
  text-align: center;
  box-shadow: var(--gp-shadow-medium);
}

.gp-cta-box h3,
.gp-cta-box .gp-cta-title {
  font-family: var(--gp-font-display);
  font-size: clamp(1.3rem, 1.8vw + 0.6rem, 1.7rem);
  font-weight: 700;
  color: var(--gp-text);
  margin: 0 0 var(--gp-sp-sm);
  letter-spacing: -0.012em;
}

.gp-cta-box p {
  color: var(--gp-text-body);
  font-size: 1.02rem;
  max-width: 460px;
  margin: 0 auto var(--gp-sp-md);
}

.gp-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  background: var(--gp-accent);
  color: #ffffff !important;
  font-family: var(--gp-font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--gp-radius-pill);
  text-decoration: none !important;
  border-bottom: none !important;
  transition: all var(--gp-dur) var(--gp-ease);
  box-shadow: var(--gp-shadow-accent);
  letter-spacing: 0.01em;
}

.gp-cta-button:hover {
  background: var(--gp-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(59, 35, 61, 0.32);
  color: #ffffff !important;
  border-bottom: none !important;
}

.gp-cta-button::after {
  content: "→";
  font-size: 1.1em;
  transition: transform var(--gp-dur) var(--gp-ease);
}

.gp-cta-button:hover::after {
  transform: translateX(2px);
}

.gp-cta-fine {
  margin-top: var(--gp-sp-md);
  font-size: var(--gp-fs-small);
  color: var(--gp-text-muted);
}

/* ============================================================
   COMPONENTE: LECTURAS RELACIONADAS
   ============================================================ */
.gp-related {
  margin: var(--gp-sp-xl) 0 var(--gp-sp-lg);
  padding-top: var(--gp-sp-lg);
  border-top: 1px solid var(--gp-border);
}

.gp-related-title {
  font-family: var(--gp-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gp-text);
  margin-bottom: var(--gp-sp-md);
  letter-spacing: -0.012em;
}

.gp-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.gp-related-list li {
  margin: 0;
}

.gp-related-list a {
  display: block;
  padding: 0.85rem var(--gp-sp-md);
  background: var(--gp-bg-warm);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-sm);
  color: var(--gp-text) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--gp-border) !important;
  transition: all var(--gp-dur) var(--gp-ease);
  font-size: 0.97rem;
  font-weight: 500;
}

.gp-related-list a:hover {
  background: var(--gp-bg-section);
  border-color: var(--gp-accent-line) !important;
  transform: translateX(2px);
}

.gp-related-list a::before {
  content: "→ ";
  color: var(--gp-accent);
  font-weight: 700;
  margin-right: 0.4rem;
}

/* ============================================================
   COMPONENTE: FAQ accordion (HTML5 native <details>/<summary>)
   ------------------------------------------------------------
   Uso:
   <div class="gp-faq">
     <details class="gp-faq-item">
       <summary><span class="gp-faq-question">¿Pregunta?</span></summary>
       <div class="gp-faq-answer"><p>Respuesta.</p></div>
     </details>
     ...
   </div>
   ============================================================ */
.gp-faq {
  margin: var(--gp-sp-lg) 0;
  border-top: 1px solid var(--gp-border);
}

.gp-faq-item {
  border-bottom: 1px solid var(--gp-border);
  padding: 0;
}

.gp-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--gp-sp-md) 2.4rem var(--gp-sp-md) 0;
  position: relative;
  font-family: var(--gp-font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gp-text);
  line-height: 1.45;
  transition: color var(--gp-dur) var(--gp-ease);
}

.gp-faq-item summary::-webkit-details-marker,
.gp-faq-item summary::marker {
  display: none;
  content: "";
}

.gp-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gp-accent);
  font-family: var(--gp-font-body);
  line-height: 1;
  transition: transform var(--gp-dur) var(--gp-ease);
}

.gp-faq-item[open] summary::after {
  content: "−";
}

.gp-faq-item summary:hover {
  color: var(--gp-accent);
}

.gp-faq-question {
  display: inline;
}

.gp-faq-answer {
  padding: 0 0 var(--gp-sp-md);
  color: var(--gp-text-body);
  line-height: 1.7;
}

.gp-faq-answer p:last-child { margin-bottom: 0; }

/* Fallback: compatibilidad con estructura antigua <div class="gp-faq-item"> */
div.gp-faq-item {
  border-bottom: 1px solid var(--gp-border);
  padding: var(--gp-sp-md) 0;
}

div.gp-faq-item h3.gp-faq-question {
  font-family: var(--gp-font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gp-text);
  margin: 0 0 var(--gp-sp-sm);
  line-height: 1.45;
}

/* ============================================================
   COMPONENTE: REFERENCIAS CIENTÍFICAS
   ============================================================ */
.gp-references {
  margin: var(--gp-sp-xl) 0 var(--gp-sp-lg);
  padding: var(--gp-sp-md);
  background: var(--gp-bg-warm);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-md);
  font-size: 0.92rem;
}

.gp-references-title {
  font-family: var(--gp-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gp-text);
  margin-bottom: var(--gp-sp-sm);
  letter-spacing: -0.005em;
}

.gp-references ol {
  margin: 0;
  padding-left: 1.4rem;
  color: var(--gp-text-muted);
}

.gp-references ol li {
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.gp-references a {
  color: var(--gp-accent);
}

/* ============================================================
   COMPONENTE: DISCLAIMER LEGAL (footer post)
   ============================================================ */
.gp-disclaimer {
  margin: var(--gp-sp-xl) 0 0;
  padding: var(--gp-sp-md) 0;
  border-top: 1px solid var(--gp-border-soft);
  font-size: var(--gp-fs-small);
  color: var(--gp-text-muted);
  font-style: italic;
  line-height: 1.55;
}

/* ============================================================
   MOBILE REFINEMENT GLOBAL
   ------------------------------------------------------------
   En mobile aumentamos padding lateral del article a 1.25rem
   para que el contenido respire desde el borde. Todos los
   componentes (callouts, listas, gráficos) usan padding
   uniforme para que la columna visual sea coherente.
   ============================================================ */
@media (max-width: 600px) {
  .gp-article {
    padding: var(--gp-sp-md) 1.25rem;
  }
  .gp-article h2 {
    margin-top: var(--gp-sp-lg);
  }
  .gp-lead {
    padding: var(--gp-sp-sm) var(--gp-sp-sm) var(--gp-sp-sm) var(--gp-sp-md);
    font-size: 1.08rem;
    line-height: 1.5;
  }
  .gp-takeaways {
    padding: var(--gp-sp-md) var(--gp-sp-md) var(--gp-sp-md) var(--gp-sp-md);
  }
  .gp-callout {
    padding: var(--gp-sp-md) var(--gp-sp-md) var(--gp-sp-md) calc(var(--gp-sp-md) + 1.4rem);
  }
  .gp-callout::before {
    left: var(--gp-sp-md);
    top: var(--gp-sp-md);
  }
  .gp-cta-box {
    padding: var(--gp-sp-lg) var(--gp-sp-md);
  }
  .gp-checklist li {
    padding: 0.85rem 0.85rem 0.95rem 2.5rem;
  }
  .gp-checklist li::before {
    left: 0.55rem;
    top: 0.85rem;
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.7rem;
  }
  .gp-redflags,
  .gp-checklist-go {
    padding: var(--gp-sp-xs) var(--gp-sp-md);
  }
  .gp-redflags li,
  .gp-checklist-go li {
    padding-left: 2rem;
    font-size: 0.97rem;
  }
  .gp-barchart {
    padding: var(--gp-sp-md);
  }
  .gp-timeline {
    padding: var(--gp-sp-md);
  }
  .gp-pullquote {
    margin: var(--gp-sp-xl) auto var(--gp-sp-lg);
    padding: var(--gp-sp-lg) var(--gp-sp-sm);
    font-size: 1.18rem;
  }
  .gp-pullquote::before {
    top: -1.2rem;
    font-size: 2rem;
  }
  .gp-stats {
    gap: var(--gp-sp-sm);
  }
  .gp-stat-card {
    padding: var(--gp-sp-md) var(--gp-sp-sm);
  }
  .gp-references {
    padding: var(--gp-sp-md);
  }
  .gp-faq-item summary {
    padding: var(--gp-sp-sm) 2rem var(--gp-sp-sm) 0;
    font-size: 1rem;
  }
  .gp-faq-item summary::after {
    font-size: 1.4rem;
  }
}

/* Mobile MUY pequeño (iPhone SE, < 380px) — reducimos un poco mas */
@media (max-width: 380px) {
  .gp-article {
    padding: var(--gp-sp-md) 1rem;
  }
  .gp-takeaways,
  .gp-redflags,
  .gp-checklist-go,
  .gp-callout,
  .gp-cta-box,
  .gp-stat-card,
  .gp-references {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.gp-divider {
  border: none;
  border-top: 1px solid var(--gp-border);
  margin: var(--gp-sp-lg) 0;
}

.gp-divider-ornament {
  text-align: center;
  margin: var(--gp-sp-xl) 0;
  position: relative;
  height: 1px;
}

.gp-divider-ornament::before {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--gp-gold);
  font-size: 0.9rem;
  background: var(--gp-bg);
  padding: 0 1.5rem;
  letter-spacing: 0;
}

.gp-divider-ornament::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 50%;
  height: 1px;
  background: var(--gp-border);
}

.gp-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: var(--gp-accent-soft);
  color: var(--gp-accent);
  border-radius: var(--gp-radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gp-badge--amber {
  background: var(--gp-gold-soft);
  color: var(--gp-gold-strong);
}

.gp-badge--success {
  background: var(--gp-success-soft);
  color: var(--gp-success);
}

.gp-text-highlight {
  background: linear-gradient(to right, var(--gp-gold-soft) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: 0 0;
  padding: 0 0.2em;
}

/* ============================================================
   IMÁGENES dentro del post
   ============================================================ */
.gp-article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: var(--gp-sp-lg) auto;
  border-radius: var(--gp-radius-md);
}

.gp-article figure,
.gp-article .gp-figure {
  margin: var(--gp-sp-lg) calc(var(--gp-sp-md) * -0.5);
  position: relative;
}

.gp-article figure img,
.gp-article .gp-figure img {
  width: 100%;
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
}

.gp-article figcaption,
.gp-article .gp-figure figcaption {
  text-align: center;
  font-size: var(--gp-fs-small);
  color: var(--gp-text-muted);
  margin-top: 0.6rem;
  padding: 0 var(--gp-sp-sm);
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .gp-article figure,
  .gp-article .gp-figure {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ============================================================
   META INFO POST (autor, fecha, tiempo lectura)
   ============================================================ */
.gp-meta {
  display: flex;
  align-items: center;
  gap: var(--gp-sp-md);
  margin: 0 0 var(--gp-sp-lg);
  font-size: var(--gp-fs-small);
  color: var(--gp-text-muted);
  flex-wrap: wrap;
}

.gp-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.gp-meta-item::before {
  content: "•";
  color: var(--gp-text-light);
  margin-right: 0.4rem;
}

.gp-meta-item:first-child::before {
  display: none;
}

/* — Reloj dorado en 2º meta-item (tiempo lectura) — */
.gp-meta-item:nth-child(2)::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0.45rem;
  background-color: var(--gp-gold);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><polyline points='12 7 12 12 15.5 14'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><polyline points='12 7 12 12 15.5 14'/></svg>") no-repeat center / contain;
  vertical-align: -2px;
  flex-shrink: 0;
}

/* ============================================================
   HOME BLOG — Página principal gumpro.es/blog
   ------------------------------------------------------------
   Wrap todo el contenido home en <div class="gp-home">.
   ============================================================ */
.gp-home {
  font-family: var(--gp-font-body);
  color: var(--gp-text-body);
  background: var(--gp-bg);
  max-width: var(--gp-full-width);
  margin: 0 auto;
  padding: var(--gp-sp-lg) var(--gp-sp-md);
}

.gp-home-section {
  margin: var(--gp-sp-2xl) 0;
}

.gp-home-section-title {
  font-family: var(--gp-font-display);
  font-size: clamp(1.5rem, 2vw + 0.6rem, 2rem);
  font-weight: 700;
  color: var(--gp-text);
  margin: 0 0 var(--gp-sp-lg);
  letter-spacing: -0.015em;
  position: relative;
  padding-top: var(--gp-sp-md);
}

.gp-home-section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--gp-accent);
  border-radius: 2px;
}

/* — HERO de home — */
.gp-home-hero {
  text-align: center;
  padding: var(--gp-sp-2xl) var(--gp-sp-md);
  max-width: 720px;
  margin: 0 auto;
}

.gp-home-hero h1 {
  font-family: var(--gp-font-display);
  font-size: clamp(2.4rem, 5vw + 0.6rem, 3.8rem);
  font-weight: 700;
  color: var(--gp-text);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0.6rem 0 var(--gp-sp-md);
}

.gp-home-hero-lead {
  font-family: var(--gp-font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.2vw + 0.7rem, 1.35rem);
  color: var(--gp-text-body);
  line-height: 1.55;
  max-width: 580px;
  margin: 0 auto var(--gp-sp-lg);
}

.gp-home-hero .gp-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}

/* — Newsletter form en hero — */
.gp-home-newsletter {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin: var(--gp-sp-md) auto 0;
}

.gp-home-newsletter input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.1rem;
  background: var(--gp-bg-warm);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-pill);
  font-family: var(--gp-font-body);
  font-size: 1rem;
  color: var(--gp-text);
  outline: none;
  transition: border-color var(--gp-dur) var(--gp-ease);
}

.gp-home-newsletter input[type="email"]:focus {
  border-color: var(--gp-accent);
}

.gp-home-newsletter button {
  padding: 0.85rem 1.6rem;
  background: var(--gp-accent);
  color: #fff;
  border: none;
  border-radius: var(--gp-radius-pill);
  font-family: var(--gp-font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--gp-dur) var(--gp-ease);
}

.gp-home-newsletter button:hover {
  background: var(--gp-accent-hover);
}

.gp-home-newsletter-note {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--gp-text-muted);
  text-align: center;
}

@media (max-width: 540px) {
  .gp-home-newsletter {
    flex-direction: column;
  }
}

/* — Post destacado — */
.gp-home-featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--gp-sp-lg);
  background: var(--gp-bg-warm);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-lg);
  overflow: hidden;
  box-shadow: var(--gp-shadow-soft);
  transition: transform var(--gp-dur) var(--gp-ease), box-shadow var(--gp-dur) var(--gp-ease);
}

.gp-home-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--gp-shadow-medium);
}

.gp-home-featured-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.gp-home-featured-content {
  padding: var(--gp-sp-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gp-home-featured-content h3 {
  font-family: var(--gp-font-display);
  font-size: clamp(1.4rem, 1.8vw + 0.6rem, 2rem);
  font-weight: 700;
  color: var(--gp-text);
  letter-spacing: -0.015em;
  margin: 0.5rem 0 var(--gp-sp-sm);
  line-height: 1.2;
}

.gp-home-featured-content p {
  color: var(--gp-text-body);
  margin-bottom: var(--gp-sp-md);
  line-height: 1.6;
}

.gp-home-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gp-accent) !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  border-bottom: 1px solid transparent !important;
  transition: gap var(--gp-dur) var(--gp-ease), border-bottom-color var(--gp-dur) var(--gp-ease);
}

.gp-home-read-more:hover {
  gap: 0.7rem;
  border-bottom-color: var(--gp-accent) !important;
}

@media (max-width: 720px) {
  .gp-home-featured-card {
    grid-template-columns: 1fr;
  }
  .gp-home-featured-img {
    min-height: 220px;
    max-height: 280px;
  }
}

/* — Categorías (silos) grid — */
.gp-home-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gp-sp-md);
}

.gp-home-category-card {
  display: block;
  padding: var(--gp-sp-lg);
  background: var(--gp-bg-warm);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-md);
  text-align: center;
  text-decoration: none !important;
  border-bottom: 1px solid var(--gp-border) !important;
  transition: all var(--gp-dur) var(--gp-ease);
  color: var(--gp-text) !important;
}

.gp-home-category-card:hover {
  transform: translateY(-3px);
  border-color: var(--gp-accent-line) !important;
  box-shadow: var(--gp-shadow-medium);
}

.gp-home-category-icon {
  font-family: var(--gp-font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gp-accent);
  display: block;
  margin-bottom: 0.4rem;
  line-height: 1;
}

.gp-home-category-card h3 {
  font-family: var(--gp-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gp-text);
  margin: 0 0 0.3rem;
  letter-spacing: -0.01em;
}

.gp-home-category-count {
  font-size: 0.85rem;
  color: var(--gp-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* — Últimos posts grid — */
.gp-home-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gp-sp-lg);
}

.gp-home-post-card {
  background: var(--gp-bg);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-md);
  overflow: hidden;
  transition: transform var(--gp-dur) var(--gp-ease), box-shadow var(--gp-dur) var(--gp-ease);
  display: flex;
  flex-direction: column;
}

.gp-home-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--gp-shadow-medium);
}

.gp-home-post-card-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  background: var(--gp-bg-section);
}

.gp-home-post-card-body {
  padding: var(--gp-sp-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gp-home-post-card-body .gp-badge {
  align-self: flex-start;
  margin-bottom: 0.6rem;
}

.gp-home-post-card-body h3 {
  font-family: var(--gp-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gp-text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

.gp-home-post-card-body h3 a {
  color: var(--gp-text) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: color var(--gp-dur) var(--gp-ease);
}

.gp-home-post-card-body h3 a:hover {
  color: var(--gp-accent) !important;
}

.gp-home-post-card-excerpt {
  color: var(--gp-text-muted);
  font-size: 0.94rem;
  line-height: 1.5;
  margin: 0 0 var(--gp-sp-sm);
  flex: 1;
}

.gp-home-post-card-meta {
  font-size: 0.82rem;
  color: var(--gp-text-light);
  letter-spacing: 0.03em;
}

/* — Footer del home — */
.gp-home-footer-cta {
  text-align: center;
  padding: var(--gp-sp-xl) var(--gp-sp-md);
  background: linear-gradient(135deg, var(--gp-bg-warm) 0%, var(--gp-bg-section) 100%);
  border-radius: var(--gp-radius-lg);
  margin: var(--gp-sp-2xl) 0;
}

.gp-home-footer-cta h2 {
  font-family: var(--gp-font-display);
  font-size: clamp(1.5rem, 2vw + 0.6rem, 2rem);
  font-weight: 700;
  color: var(--gp-text);
  margin: 0 0 var(--gp-sp-sm);
  letter-spacing: -0.015em;
}

.gp-home-footer-cta p {
  color: var(--gp-text-body);
  max-width: 480px;
  margin: 0 auto var(--gp-sp-md);
}

/* ============================================================
   FIN
   ============================================================ */
