/* ============================================================================
   Publinovo Blog — CSS del diseño aprobado (header, hub, post-card, footer).
   Fase 2: header + footer reales.

   IMPORTANTE: la fuente única de tokens es theme.json. Este :root NO redefine
   valores; solo MAPEA los nombres cortos que usa el diseño (--ink, --green,
   --grad, --r-md, --shadow-lg, etc.) a los presets/custom que ya genera
   WordPress desde theme.json. Así el CSS del diseño funciona sin reescribirlo.
   Las @font-face del archivo de referencia se eliminaron: las fuentes
   self-hosted se registran en theme.json (Poppins / DM Sans).
   ============================================================================ */

:root{
  /* Colores → presets de theme.json */
  --ink:        var(--wp--preset--color--ink);
  --ink-2:      var(--wp--preset--color--ink-2);
  --ink-3:      var(--wp--preset--color--ink-3);
  --muted:      var(--wp--preset--color--muted);
  --green:      var(--wp--preset--color--green);
  --green-d:    var(--wp--preset--color--green-dark);
  --blue:       var(--wp--preset--color--blue);
  --blue-d:     var(--wp--preset--color--blue-dark);
  --bg:         var(--wp--preset--color--white);
  --bg-soft:    var(--wp--preset--color--bg-soft);
  --bg-soft-2:  var(--wp--preset--color--bg-soft-2);
  --line:       var(--wp--preset--color--line);
  --line-2:     var(--wp--preset--color--line-2);

  /* Gradientes */
  --grad:       var(--wp--preset--gradient--brand);
  --grad-soft:  var(--wp--preset--gradient--brand-soft);

  /* Sombras */
  --shadow-sm:    var(--wp--custom--shadow--sm);
  --shadow-md:    var(--wp--custom--shadow--md);
  --shadow-lg:    var(--wp--custom--shadow--lg);
  --shadow-brand: var(--wp--custom--shadow--brand);

  /* Radios */
  --r-sm:   var(--wp--custom--radius--sm);
  --r-md:   var(--wp--custom--radius--md);
  --r-lg:   var(--wp--custom--radius--lg);
  --r-xl:   var(--wp--custom--radius--xl);
  --r-pill: var(--wp--custom--radius--pill);

  /* Layout y espaciados */
  --maxw:    1200px;            /* coincide con settings.layout.contentSize */
  --gut:     var(--wp--custom--gut);
  --section: var(--wp--custom--section);

  /* Tipografías (incluyen sus fallbacks desde theme.json) */
  --ff-head: var(--wp--preset--font-family--heading);
  --ff-body: var(--wp--preset--font-family--body);
}

*,*::before,*::after{ box-sizing:border-box }
.pnv{ margin:0; font-family:var(--ff-body); font-size:17px; line-height:1.6;
  color:var(--ink-2); background:var(--bg); -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility; }
.pnv img{ display:block; max-width:100% }
.pnv a{ color:inherit; text-decoration:none }
.pnv button{ font-family:inherit; cursor:pointer }
.pnv h1,.pnv h2,.pnv h3,.pnv h4{ font-family:var(--ff-head); font-weight:700;
  letter-spacing:-.02em; color:var(--ink); margin:0; line-height:1.12; }
.pnv :focus-visible{ outline:2px solid var(--blue); outline-offset:3px; border-radius:4px }

/* shared atoms ------------------------------------------------------------ */
.grad-text{ background:var(--grad); -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent; }
.eyebrow{ display:inline-flex; align-items:center; gap:10px; margin:0;
  font-family:var(--ff-body); font-weight:600; font-size:12.5px; line-height:1;
  text-transform:uppercase; letter-spacing:.14em; color:var(--blue-d); }
.eyebrow__bar{ width:26px; height:3px; border-radius:var(--r-pill);
  background:var(--grad); flex:none; }

.btn{ display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:46px; padding:0 22px; border-radius:var(--r-pill); border:1px solid transparent;
  font-family:var(--ff-body); font-weight:600; font-size:15px; letter-spacing:-.005em;
  white-space:nowrap; transition:transform .18s ease, box-shadow .18s ease,
  background-color .18s ease, color .18s ease, border-color .18s ease; }
.btn svg{ width:18px; height:18px; flex:none }
.btn.btn-primary{ background:var(--grad); color:#fff; box-shadow:var(--shadow-brand);
  background-size:140% 140%; background-position:0% 50%; }
.btn.btn-primary:hover{ transform:translateY(-2px); background-position:100% 50%;
  box-shadow:0 22px 46px -14px rgba(28,157,215,.55); }
.btn.btn-ghost{ background:var(--bg); color:var(--ink); border-color:var(--line-2); }
.btn-ghost:hover{ color:var(--blue-d); border-color:var(--blue); transform:translateY(-2px);
  box-shadow:var(--shadow-sm); }
.btn-sm{ min-height:44px; padding:0 18px; font-size:14.5px }

.pill{ display:inline-flex; align-items:center; gap:7px; min-height:32px; padding:0 13px;
  border-radius:var(--r-pill); font-size:12.5px; font-weight:600; letter-spacing:.01em;
  line-height:1; }
.pill--cat{ background:var(--bg); color:var(--blue-d); box-shadow:var(--shadow-sm);
  border:1px solid rgba(28,157,215,.16); }

/* reveal — pure-CSS auto entrance (no JS dependency) ---------------------- */
@keyframes pnvReveal{ from{ transform:translateY(20px) } to{ transform:none } }
.reveal{ animation:pnvReveal .7s cubic-bezier(.2,.7,.2,1) both }
.post-grid .post-card.reveal:nth-child(2){ animation-delay:.07s }
.post-grid .post-card.reveal:nth-child(3){ animation-delay:.14s }
.post-grid .post-card.reveal:nth-child(4){ animation-delay:.07s }
.post-grid .post-card.reveal:nth-child(5){ animation-delay:.14s }
.post-grid .post-card.reveal:nth-child(6){ animation-delay:.21s }
@media (prefers-reduced-motion: reduce){
  .pnv *{ animation:none !important; scroll-behavior:auto !important }
  .reveal{ opacity:1 !important; transform:none !important }
  .btn:hover,.post-card:hover{ transform:none !important }
}

.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gut) }

/* === HEADER ============================================================== */
.blog-header{ position:sticky; top:0; z-index:50; background:rgba(255,255,255,.86);
  backdrop-filter:saturate(160%) blur(12px); -webkit-backdrop-filter:saturate(160%) blur(12px);
  border-bottom:1px solid var(--line); }
.blog-header__inner{ display:flex; align-items:center; gap:18px; min-height:72px }
.blog-header__brand{ display:inline-flex; align-items:center; gap:12px; flex:none; margin-right:6px }
.blog-header__logoimg{ height:28px; width:auto; display:block }
.blog-header__blogtag{ font-family:var(--ff-body); font-weight:700; font-size:11px; letter-spacing:.18em;
  text-transform:uppercase; color:var(--blue-d); line-height:1; padding-left:12px;
  border-left:1px solid var(--line-2); }

.blog-header__nav{ display:flex; align-items:center; gap:4px; margin-inline:auto }
.blog-header__link{ position:relative; padding:9px 12px; border-radius:var(--r-sm);
  font-weight:500; font-size:15px; color:var(--ink-2); white-space:nowrap;
  transition:color .16s ease, background-color .16s ease; }
.blog-header__link:hover{ color:var(--ink); background:var(--bg-soft) }
.blog-header__link--services{ color:var(--blue-d); font-weight:600 }
.blog-header__link--services::after{ content:"↗"; margin-left:5px; font-size:12px }
.blog-header__sep{ width:1px; height:24px; background:var(--line); margin:0 4px }

/* categorías dropdown */
.blog-header__dd{ position:relative }
.blog-header__ddbtn{ display:inline-flex; align-items:center; gap:7px; border:0; background:transparent; cursor:pointer }
.blog-header__ddbtn svg{ width:15px; height:15px; transition:transform .2s ease }
.blog-header__ddbtn.is-open svg{ transform:rotate(180deg) }
.blog-header__ddmenu{ position:absolute; top:calc(100% + 14px); left:0; min-width:252px;
  background:var(--bg); border:1px solid var(--line); border-radius:var(--r-md);
  box-shadow:var(--shadow-lg); padding:8px; z-index:60;
  opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s; }
.blog-header__ddmenu.is-open{ opacity:1; visibility:visible; transform:none }
.blog-header__dditem{ display:block; width:100%; text-align:left; border:0; background:transparent;
  padding:11px 13px; border-radius:var(--r-sm); font-family:var(--ff-body); font-weight:500;
  font-size:15px; color:var(--ink-2); cursor:pointer;
  transition:color .14s ease, background-color .14s ease; }
.blog-header__dditem:hover{ background:var(--bg-soft); color:var(--ink) }
.dd-backdrop{ position:fixed; inset:0; z-index:40; border:0; background:transparent; cursor:default }

.blog-header__actions{ display:flex; align-items:center; gap:10px; flex:none }
.iconbtn{ display:inline-grid; place-items:center; width:46px; height:46px; flex:none;
  border-radius:var(--r-pill); border:1px solid var(--line-2); background:var(--bg);
  color:var(--ink-2); transition:color .16s ease, border-color .16s ease, background-color .16s ease; }
.iconbtn:hover{ color:var(--blue-d); border-color:var(--blue) }
.iconbtn svg{ width:20px; height:20px }
.hamburger{ display:none }

/* search drawer */
.blog-search{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .26s ease;
  border-bottom:1px solid transparent; background:var(--bg-soft); }
.blog-search.is-open{ grid-template-rows:1fr; border-bottom-color:var(--line) }
.blog-search__inner{ overflow:hidden }
.blog-search__form{ display:flex; align-items:center; gap:12px; padding:14px 0 }
.blog-search__field{ display:flex; align-items:center; gap:12px; flex:1;
  background:var(--bg); border:1px solid var(--line-2); border-radius:var(--r-pill);
  padding:0 8px 0 18px; min-height:52px; box-shadow:var(--shadow-sm); }
.blog-search__field svg{ width:21px; height:21px; color:var(--muted); flex:none }
.blog-search__input{ flex:1; border:0; outline:0; background:transparent; min-height:50px;
  font-family:var(--ff-body); font-size:16.5px; color:var(--ink); }
.blog-search__input::placeholder{ color:var(--muted) }

/* mobile panel */
.blog-mobile{ display:none }

/* === HUB ================================================================= */
.hub{ background:var(--bg) }
.hub__intro{ padding:clamp(48px,7vw,86px) 0 6px; max-width:760px }
.hub__title{ font-size:clamp(38px,6vw,62px); margin:18px 0 0 }
.hub__lead{ margin:22px 0 0; font-size:clamp(17px,2.2vw,20px); color:var(--ink-3);
  max-width:640px; text-wrap:pretty; }

.hub__filters{ display:flex; flex-wrap:wrap; justify-content:center; text-align:center;
  gap:10px; padding:34px 0 30px; border-bottom:1px solid var(--line); }
.pill--filter{ min-height:44px; padding:0 18px; background:var(--bg); color:var(--ink-2);
  border:1px solid var(--line-2); font-size:14.5px; font-weight:600;
  transition:color .16s ease, border-color .16s ease, background-color .16s ease, transform .16s ease; }
.pill--filter:hover{ color:var(--ink); border-color:var(--line-2); transform:translateY(-1px);
  box-shadow:var(--shadow-sm); }
.pill--filter.is-active{ background:var(--grad); color:#fff; border-color:transparent;
  box-shadow:var(--shadow-brand); }

.hub__section{ padding:42px 0 0 }
.hub__count{ font-size:14px; color:var(--muted); font-weight:600; letter-spacing:.01em;
  margin:0 0 22px; }

/* === POST CARD =========================================================== */
.post-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; margin-top:34px;
  align-items:stretch; }

.post-card{ height:100%; display:flex; flex-direction:column; background:var(--bg);
  border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--shadow-sm); transition:transform .22s ease, box-shadow .22s ease,
  border-color .22s ease; }
.post-card:hover{ transform:translateY(-7px); box-shadow:var(--shadow-md);
  border-color:var(--line-2); }
.post-card__media{ position:relative; display:block; aspect-ratio:16/10; width:100%;
  background-color:var(--bg-soft-2); overflow:hidden; }
.post-card:hover .post-card__media .ph__label{ opacity:.55 }
.post-card__cat{ position:absolute; left:14px; top:14px; z-index:2 }
.post-card__body{ display:flex; flex-direction:column; flex:1; padding:22px 22px 24px }
.post-card__title{ font-size:21px; line-height:1.22; margin:0 }
.post-card__title a{ background-image:linear-gradient(var(--blue),var(--blue));
  background-size:0% 1.5px; background-repeat:no-repeat; background-position:0 100%;
  transition:background-size .25s ease; }
.post-card:hover .post-card__title a{ background-size:100% 1.5px }
.post-card__excerpt{ margin:11px 0 0; font-size:15.5px; color:var(--ink-3); line-height:1.55;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.post-card__meta{ display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin-top:auto;
  padding-top:20px; font-size:13px; color:var(--muted); font-weight:500; }
.post-card__author{ display:inline-flex; align-items:center; gap:8px; color:var(--ink-2);
  font-weight:600; }
.avatar{ width:26px; height:26px; border-radius:var(--r-pill); background:var(--grad);
  display:grid; place-items:center; color:#fff; font-size:10.5px; font-weight:700;
  font-family:var(--ff-head); flex:none; }
.meta__dot{ width:3px; height:3px; border-radius:50%; background:var(--line-2); flex:none }
.post-card__meta time{ font-variant-numeric:tabular-nums }

/* featured variant */
.post-card--featured{ display:grid; grid-template-columns:1.05fr .95fr; align-items:stretch;
  border-radius:var(--r-xl); box-shadow:var(--shadow-md); }
.post-card--featured:hover{ transform:translateY(-5px); box-shadow:var(--shadow-lg) }
.post-card--featured .post-card__media{ aspect-ratio:auto; height:100%; min-height:340px }
.post-card--featured .post-card__body{ padding:clamp(28px,3.4vw,46px); justify-content:center }
.post-card--featured .post-card__flag{ display:inline-flex; align-items:center; gap:8px;
  font-size:11.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--blue-d); margin-bottom:16px; }
.post-card--featured .post-card__title{ font-size:clamp(26px,3vw,38px); line-height:1.12 }
.post-card--featured .post-card__excerpt{ -webkit-line-clamp:3; font-size:17px; margin-top:16px;
  max-width:46ch; }
.post-card--featured .post-card__meta{ padding-top:26px; font-size:13.5px }
.post-card--featured .avatar{ width:30px; height:30px; font-size:11.5px }

/* media placeholders (striped) */
.ph{ position:absolute; inset:0; display:grid; place-items:center;
  background-image:repeating-linear-gradient(135deg,
    rgba(28,157,215,.07) 0 14px, rgba(140,198,63,.07) 14px 28px); }
.ph__label{ font-family:ui-monospace,"SF Mono",Menlo,monospace; font-size:12px;
  letter-spacing:.02em; color:var(--ink-3); background:rgba(255,255,255,.78);
  border:1px solid var(--line); padding:6px 11px; border-radius:var(--r-pill);
  transition:opacity .22s ease; }
.tone-a{ background-color:#EAF4FB }
.tone-b{ background-color:#EEF6E7 }
.tone-c{ background-color:#EAF6F3 }
.tone-d{ background-color:#F1F0F7 }
.tone-a .ph{ background-image:repeating-linear-gradient(135deg, rgba(28,157,215,.10) 0 14px, rgba(28,157,215,.03) 14px 28px) }
.tone-b .ph{ background-image:repeating-linear-gradient(135deg, rgba(140,198,63,.12) 0 14px, rgba(140,198,63,.03) 14px 28px) }
.tone-c .ph{ background-image:repeating-linear-gradient(135deg, rgba(70,179,154,.12) 0 14px, rgba(70,179,154,.03) 14px 28px) }
.tone-d .ph{ background-image:repeating-linear-gradient(135deg, rgba(107,111,128,.10) 0 14px, rgba(107,111,128,.03) 14px 28px) }

/* load more */
.hub__more{ display:flex; flex-direction:column; align-items:center; gap:16px;
  padding:40px 0 0; }

/* === HUB MODULES ======================================================== */
.module{ padding-top:clamp(54px,7vw,80px); margin-top:clamp(40px,5vw,60px);
  border-top:1px solid var(--line); }
.module__head{ margin-bottom:4px }
.module__title{ font-size:clamp(27px,3.6vw,40px); margin:14px 0 0 }

/* lo más leído — #1 destacado + lista con miniaturas */
.mostread{ display:grid; grid-template-columns:1.05fr .95fr; gap:38px 56px;
  align-items:start; margin-top:34px; list-style:none; padding:0; counter-reset:mr; }

/* badge de ranking (compartido) */
.mr-rank{ display:inline-grid; place-items:center; font-family:var(--ff-head); font-weight:700;
  line-height:1; color:#fff; background:var(--grad); border-radius:var(--r-pill);
  box-shadow:var(--shadow-brand); }

/* #1 destacado */
.mostread__lead{ display:flex; flex-direction:column; background:var(--bg);
  border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--shadow-sm); transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.mostread__lead:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:var(--line-2) }
.mostread__lead-media{ position:relative; display:block; aspect-ratio:16/9; width:100%;
  background-color:var(--bg-soft-2); overflow:hidden; }
.mostread__lead-media .mr-rank{ position:absolute; left:16px; top:16px; z-index:2;
  width:46px; height:46px; font-size:19px; }
.mostread__lead-body{ padding:24px 24px 26px; display:flex; flex-direction:column; gap:11px }
.mr-top{ font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  color:var(--blue-d); }
.mostread__lead-title{ font-family:var(--ff-head); font-weight:700; font-size:clamp(22px,2.5vw,28px);
  line-height:1.18; letter-spacing:-.02em; color:var(--ink); }
.mostread__lead-title a{ transition:color .16s ease }
.mostread__lead-title a:hover{ color:var(--blue-d) }
.mostread__lead-excerpt{ font-size:15.5px; color:var(--ink-3); line-height:1.55;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.mostread__lead-meta{ display:flex; align-items:center; gap:9px; font-size:13px;
  color:var(--muted); font-weight:500; margin-top:2px; }

/* lista #2–#5 */
.mostread__list{ display:flex; flex-direction:column }
.mostread__item{ display:flex; align-items:center; gap:18px; padding:17px 0;
  border-top:1px solid var(--line); }
.mostread__item:first-child{ border-top:none; padding-top:2px }
.mostread__thumb{ position:relative; flex:none; width:96px; aspect-ratio:1/1;
  border-radius:var(--r-md); overflow:hidden; background-color:var(--bg-soft-2);
  box-shadow:var(--shadow-sm); }
.mostread__thumb .mr-rank{ position:absolute; left:8px; top:8px; width:28px; height:28px;
  font-size:13px; border-radius:9px; }
.mostread__thumb .ph__label{ display:none }
.mostread__body{ display:flex; flex-direction:column; gap:5px; min-width:0 }
.mostread__cat{ font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  color:var(--blue-d); }
.mostread__title{ font-family:var(--ff-head); font-weight:600; font-size:16.5px; line-height:1.28;
  color:var(--ink); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.mostread__title a{ transition:color .16s ease }
.mostread__item:hover .mostread__title a{ color:var(--blue-d) }
.mostread__item:hover .mostread__thumb{ box-shadow:var(--shadow-md) }
.mostread__meta{ font-size:12.5px; color:var(--muted) }

/* imagen destacada real que llena el contenedor (la caja ya tiene aspect-ratio) */
.mostread__img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover }

/* curated rows */
.curated__head{ display:flex; align-items:flex-end; justify-content:space-between;
  flex-wrap:wrap; gap:16px 28px; }
.curated__cta{ flex:none }
.curated-band{ margin-top:clamp(44px,6vw,64px); background:var(--bg-soft);
  border-block:1px solid var(--line); }
.curated-band > .wrap{ padding-block:clamp(48px,6vw,72px) }
.curated-band .module{ border-top:none; margin-top:0; padding-top:0 }
.curated-band .module + .module{ margin-top:clamp(40px,5vw,56px);
  padding-top:clamp(40px,5vw,56px); border-top:1px solid var(--line-2); }
/* "Temas populares" va justo después de la banda curada, que ya cierra con su
   propio borde inferior. Quitamos el border-top y el margen superior de ese
   primer module para que quede UNA sola división (no doble línea). */
.curated-band + .wrap .module{ border-top:none; margin-top:0 }

/* temas populares */
.tagcloud{ display:flex; flex-wrap:wrap; gap:12px; margin-top:28px }
/* Chips de etiqueta. Se acotan a `.tagcloud .tag`: en los archivos de ETIQUETA,
   WordPress añade la clase `tag` al <body>, y una regla `.tag::before` sin acotar
   pintaba un "#" huérfano flotando en la página. */
.tagcloud .tag{ display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 18px;
  border-radius:var(--r-pill); background:var(--bg-soft); border:1px solid var(--line);
  font-size:15px; font-weight:600; color:var(--ink-2);
  transition:color .16s ease, border-color .16s ease, background-color .16s ease, transform .16s ease; }
.tagcloud .tag::before{ content:"#"; color:var(--green-d); font-weight:700 }
.tagcloud .tag:hover{ color:var(--ink); border-color:var(--blue); transform:translateY(-2px); box-shadow:var(--shadow-sm) }

/* newsletter (full-bleed, sección oscura de marca) */
.newsletter{ margin-top:clamp(64px,8vw,96px); background:var(--ink); color:#C7CAD6;
  position:relative; overflow:hidden; }
.newsletter::before{ content:""; position:absolute; right:-140px; top:-140px; width:380px; height:380px;
  background:var(--grad); filter:blur(130px); opacity:.5; pointer-events:none; }
.newsletter__inner{ position:relative; display:grid; grid-template-columns:1.1fr .9fr;
  align-items:center; gap:40px; padding:clamp(46px,6vw,72px) var(--gut); }
.newsletter .newsletter__title{ color:#fff; font-size:clamp(25px,3.2vw,38px); margin:16px 0 0 }
.newsletter__text{ margin:14px 0 0; color:#9AA0B0; font-size:16.5px; max-width:42ch }
.eyebrow--light{ color:rgba(255,255,255,.72) }
.newsletter__form{ display:flex; gap:12px; flex-wrap:wrap }
.newsletter__input{ flex:1; min-width:200px; min-height:54px; padding:0 20px;
  border-radius:var(--r-pill); border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06); color:#fff; font-family:var(--ff-body); font-size:16px; }
.newsletter__input::placeholder{ color:#8A8FA3 }
.newsletter__input:focus{ outline:none; border-color:var(--green); background:rgba(255,255,255,.1) }
.newsletter__form .btn{ min-height:54px }
.newsletter :focus-visible{ outline-color:var(--green) }

/* === FOOTER (idéntico al del sitio principal — versión clara) =========== */
.footer{ background:#eff1f3; color:var(--ink-3); padding-block:64px 28px }
.footer__top{ display:grid; grid-template-columns:2fr .85fr; column-gap:clamp(36px,4vw,64px); row-gap:16px; padding-bottom:42px; border-bottom:1px solid var(--line-2) }
.footer__top > *{ min-width:0 }
.footer__about, .footer__links, .footer__contact{ min-width:0 }
.footer h3{ color:var(--ink); font-size:14px; font-family:var(--ff-head); text-transform:uppercase; letter-spacing:.08em; margin-bottom:18px }

.footer__about p{ font-size:14.5px; line-height:1.75; max-width:62ch }
.footer__about p a{ color:var(--green-d); font-weight:600; text-decoration:none;
  border-bottom:1px solid transparent; transition:border-color .2s, color .2s }
.footer__about p a:hover{ color:var(--ink); border-bottom-color:currentColor }
.footer__about p b, .footer__about p strong{ color:var(--ink) }
.footer__more{ display:inline-flex; align-items:center; gap:7px; margin-top:18px;
  font-family:var(--ff-head); font-weight:600; font-size:13.5px; letter-spacing:.04em; text-transform:uppercase; color:var(--ink) }
.footer__more span{ color:var(--green-d); font-size:17px; transition:transform .25s }
.footer__more:hover span{ transform:translateX(4px) }

.footer__links{ grid-column:1 / 2; display:grid; grid-template-columns:repeat(3,1fr); gap:32px; margin-top:4px }
/* list-style:none evita el punto nativo del <li> (quedaba junto a la flecha verde ›). */
.footer ul{ display:flex; flex-direction:column; gap:12px; list-style:none; margin:0; padding:0 }
.footer ul a{ position:relative; display:inline-flex; align-items:baseline; gap:9px; padding-left:15px;
  font-size:14px; transition:color .2s, padding .2s }
.footer ul a::before{ content:"\203A"; position:absolute; left:0; color:var(--green-d); font-weight:700 }
.footer ul a:hover{ color:var(--ink); padding-left:19px }

.footer__contact{ grid-column:2 / 3; grid-row:1 / 3 }
.fc-line{ display:flex; align-items:center; gap:13px; margin-bottom:16px; font-size:14.5px; color:var(--ink-3); transition:color .2s; min-width:0 }
.fc-line > span:last-child, .fc-line > div{ min-width:0; overflow-wrap:anywhere }
a.fc-line:hover{ color:var(--ink) }
a.fc-line:hover b{ color:var(--green-d); transition:color .2s }
a.fc-line[href^="https://wa.me"]:hover b{ color:#25d366 }
a.fc-line[href^="https://wa.me"]:hover .fc-ic{ border-color:#25d366; color:#25d366 }
a.fc-line[href^="tel:"]:hover .fc-ic{ border-color:var(--green-d); color:var(--green-d) }
.fc-line--lg b{ font-family:var(--ff-head); font-size:21px; font-weight:700; color:var(--ink); letter-spacing:-.01em }
.fc-line--text b{ color:var(--ink); font-weight:600 }
.fc-ic{ flex:none; width:40px; height:40px; border-radius:50%; display:grid; place-items:center;
  border:1.5px solid var(--line-2); color:var(--green-d) }
.fc-ic svg{ width:19px; height:19px }
.fc-ic--wa{ color:#25D366 }
.footer__social-title{ margin-top:30px }

.socials{ display:flex; gap:11px; margin-top:0; flex-wrap:wrap }
.socials a{ width:42px; height:42px; border-radius:50%; display:grid; place-items:center;
  background:#fff; border:1px solid var(--line-2); color:var(--ink-2); transition:transform .2s, background .2s, color .2s, border-color .2s }
.socials a:hover{ color:#fff; border-color:transparent }
.socials a:hover{ transform:translateY(-3px); background:var(--grad) }
.socials a svg{ width:19px; height:19px }
.footer__logo-link{ display:inline-block; transition:opacity .2s }
.footer__logo-link:hover{ opacity:.7 }
.footer__logo{ display:block; height:54px; width:auto; margin:34px 0 0; opacity:1 }

.footer__bottom{ display:flex; align-items:center; justify-content:center; text-align:center; gap:14px; padding-top:24px; font-size:13px; flex-wrap:wrap; color:var(--muted) }
.footer__brand-link{ color:inherit; transition:color .2s }
.footer__brand-link:hover{ color:var(--ink) }

/* ===== FOOTER (responsive) ===== */
@media (max-width:1080px){
  .footer__top { grid-template-columns:1fr 1fr }
  .footer__links { grid-column:1 / 2; margin-top:20px }
  .footer__contact { grid-column:2 / 3; grid-row:1 / 3 }
}
@media (max-width:992px){
  .footer__top { grid-template-columns:1fr; gap:44px }
  .footer__about, .footer__links, .footer__contact { grid-column:1; grid-row:auto; margin-top:0 }
  .footer__links { grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px 24px }
  .footer__logo { margin-top:26px }
}
@media (min-width:993px) and (max-width:1199px){
  .footer__top { grid-template-columns:1.4fr 1fr }
}
@media (max-width:768px){
  .footer__top { grid-template-columns:1fr; gap:44px }
  .footer__about, .footer__links, .footer__contact { grid-column:1; grid-row:auto; margin-top:0 }
  .footer__links { grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px 24px }
  .footer__logo { margin-top:26px }
}
@media (max-width:560px){
  .footer__links { grid-template-columns:repeat(2,1fr) }
}

/* === RESPONSIVE ========================================================== */
@media (max-width:1080px){
  .blog-header__nav{ display:none }
  .hamburger{ display:inline-grid }
  /* Sin el nav (que aportaba el margin-inline:auto), agrupamos las acciones a la
     derecha: logo a la izquierda, acciones juntas a la derecha. min-width:0 evita
     que el grupo fuerce el desbordamiento horizontal del contenedor. */
  .blog-header__actions{ margin-left:auto; min-width:0 }
  .post-card--featured{ grid-template-columns:1fr }
  .post-card--featured .post-card__media{ min-height:0; aspect-ratio:16/9 }
  .newsletter__inner{ grid-template-columns:1fr; gap:28px }
}
@media (max-width:768px){
  .pnv{ font-size:16px }
  .post-grid{ grid-template-columns:repeat(2,1fr); gap:22px }
  .mostread{ grid-template-columns:1fr; gap:30px }
}
@media (max-width:560px){
  .blog-header__blogtag{ display:none }
  .post-grid{ grid-template-columns:1fr }
  .hub__intro{ padding-top:38px }
  .curated__head{ align-items:flex-start }
  .newsletter__form .btn{ width:100% }
}
@media (max-width:480px){
  /* En moviles muy angostos el boton WhatsApp con texto no cabe junto al buscador
     y la hamburguesa: rompia el ancho (scroll horizontal). Se oculta aqui; el
     acceso a WhatsApp se conserva dentro del menu movil (blog-mobile__cta). */
  .blog-header__actions .btn-primary{ display:none }
  /* CTAs de vertical/coleccion ("Ver servicio de … →"): su texto es largo y el .btn
     es white-space:nowrap + flex:none, asi que en pantallas angostas se salia del
     contenedor. A este ancho se vuelven de ancho completo y el texto puede envolver. */
  .curated__cta, .vcta .btn{ width:100%; white-space:normal }
}

/* mobile menu (shown via state) */
.blog-mobile.is-open{ display:block; border-bottom:1px solid var(--line);
  background:var(--bg); box-shadow:var(--shadow-md); }
.blog-mobile__inner{ padding:14px 0 22px; display:flex; flex-direction:column; gap:4px }
.blog-mobile__link{ padding:13px 14px; border-radius:var(--r-sm); font-weight:600; font-size:16px;
  color:var(--ink); }
.blog-mobile__link:hover{ background:var(--bg-soft) }
.blog-mobile__link--services{ color:var(--blue-d) }
.blog-mobile__divider{ height:1px; background:var(--line); margin:10px 0 }
.blog-mobile__cta{ margin-top:8px }
/* CTA de WhatsApp del menu movil: ancho segun contenido y alineado a la izquierda como
   el resto de opciones; menos alto/padding para que no se vea desproporcionado. */
.blog-mobile__cta .btn{ margin-left:14px; min-height:42px; padding:0 18px; font-size:14.5px }
@media (min-width:1081px){ .blog-mobile.is-open{ display:none } }

/* ============================================================================
   PASO 3 — Ajustes para la plantilla del hub en WordPress.
   No duplican el diseño: habilitan la integración con los bloques nativos
   (sticky footer, imagen destacada que llena la tarjeta, paginación con aspecto
   de botón, numeración de "Lo más leído" y nube de etiquetas).
   ============================================================================ */

/* (B) Sticky footer: el footer queda pegado al fondo aunque haya poco contenido.
   .wp-site-blocks es el contenedor que WordPress pone alrededor de la plantilla. */
.wp-site-blocks{ display:flex; flex-direction:column; min-height:100vh }
.wp-site-blocks > main{ flex:1 0 auto }
/* Header, main y footer van pegados: sin márgenes verticales del layout de flujo
   entre ellos (evita la franja blanca entre el newsletter oscuro y el footer). */
.wp-site-blocks > *{ margin-block:0 }
.hub > .newsletter:last-child{ margin-bottom:0 }

/* Imagen destacada real dentro de .post-card__media (sin CLS, sin deformar).
   - Rejilla en bloque: el bloque "Imagen destacada" ya trae aspect-ratio 16/10
     y object-fit cover; solo aseguramos que ocupe todo el ancho.
   - Destacado en bloque: la caja crece a lo alto, así que forzamos la cadena de
     alturas para que la imagen llene el alto disponible.
   - Tarjetas PHP (curadas): la imagen lleva la clase .post-card__img. */
.post-card__media .wp-block-post-featured-image{ margin:0 }
.post-card__media .wp-block-post-featured-image img{ width:100%; display:block }
.post-card__img{ display:block; width:100%; height:100%; object-fit:cover }
.post-card--featured .post-card__media :where(a, figure, .wp-block-post-featured-image){
  display:block; height:100%; margin:0; }
.post-card--featured .post-card__media img{ width:100%; height:100%; object-fit:cover }

/* Paginación numerada con flechas: números en pastillas, página activa con el
   gradiente de marca, "‹ Anteriores" / "Siguientes ›" a los lados. */
.hub__more .wp-block-query-pagination{ gap:10px; align-items:center }
.hub__more .wp-block-query-pagination .page-numbers,
.hub__more .wp-block-query-pagination-previous,
.hub__more .wp-block-query-pagination-next{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  min-height:46px; padding:0 18px; border-radius:var(--r-pill);
  border:1px solid var(--line-2); background:var(--bg); color:var(--ink);
  font-family:var(--ff-body); font-weight:600; font-size:14.5px; text-decoration:none;
  transition:color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
/* Números (1, 2, 3…) como pastillas equilibradas. */
.hub__more .wp-block-query-pagination .page-numbers:not(.dots){ min-width:46px; padding:0 14px }
.hub__more .wp-block-query-pagination .page-numbers:hover,
.hub__more .wp-block-query-pagination-previous:hover,
.hub__more .wp-block-query-pagination-next:hover{
  color:var(--blue-d); border-color:var(--blue); transform:translateY(-2px); box-shadow:var(--shadow-sm); }
/* Página activa: gradiente de marca (WordPress le añade aria-current="page"). */
.hub__more .wp-block-query-pagination .page-numbers.current{
  background:var(--grad); color:#fff; border-color:transparent; box-shadow:var(--shadow-brand); }
.hub__more .wp-block-query-pagination .page-numbers.dots{
  border-color:transparent; background:transparent; min-width:auto; padding:0 6px }

/* CAUSA REAL del desfase vertical en la rejilla de artículos:
   el Query Loop sale como <ul class="...is-layout-flow"> y WordPress aplica
   `:where(.is-layout-flow) > *{ margin-block-start: var(--wp--preset--spacing--40) }`
   con `:first-child{ margin-block-start:0 }`. Al convertir esa lista en grid,
   ese margen superior empuja hacia abajo a las tarjetas 2.ª+ (deja la 1.ª más
   arriba). Lo anulamos en los <li> para que todas compartan la misma línea
   superior al píxel. ("Lo más leído" ya no es Query Loop, así que no aplica.) */
.post-grid > li{ margin-block:0 }

/* "Temas populares": chips .tag generados en PHP (patrón popular-tags), que
   excluye las verticales salud/agroalimentario. El estilo .tag/.tagcloud ya
   está definido arriba (sistema de diseño); aquí no hace falta nada extra. */

/* ============================================================================
   PASO 5 — componentes compartidos por single + archivos/búsqueda/autor/404.
   (.crumbs y .author-box venían de article.css; se comparten, viven aquí.)
   ============================================================================ */

/* Breadcrumb */
.crumbs{ padding:22px 0 0 }
.crumbs ol{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; list-style:none;
  margin:0; padding:0; font-size:13.5px; color:var(--muted) }
.crumbs a{ color:var(--ink-3); transition:color .16s ease }
.crumbs a:hover{ color:var(--blue-d) }
.crumbs li[aria-current]{ color:var(--ink-2); font-weight:600; max-width:42ch;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.crumbs__sep{ color:var(--line-2) }

/* Caja de autor (E-E-A-T) — artículo y página de autor */
.author-box{ display:flex; gap:24px; align-items:flex-start; margin:38px 0; padding:30px 32px;
  border-radius:var(--r-lg); background:var(--bg-soft); border:1px solid var(--line) }
.author-box--header{ margin:22px 0 0 }
.author-box__photo{ width:96px; height:96px; border-radius:var(--r-pill); object-fit:cover; flex:none;
  box-shadow:var(--shadow-md) }
.author-box__b{ min-width:0 }
.author-box__role{ font-size:11.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--blue-d) }
.author-box__name{ font-family:var(--ff-head); font-weight:700; font-size:clamp(23px,2.6vw,30px); color:var(--ink); margin:6px 0 0 }
.author-box__bio{ margin:11px 0 0; font-size:15.5px; line-height:1.6; color:var(--ink-3) }
.author-box__link{ display:inline-flex; align-items:center; gap:6px; margin-top:14px; font-weight:600;
  font-size:14.5px; color:var(--blue-d) }
.author-box__link svg{ width:15px; height:15px; transition:transform .18s ease }
.author-box__link:hover svg{ transform:translateX(3px) }
@media (max-width:768px){
  .author-box{ flex-direction:column; gap:18px }
  .author-box__photo{ width:80px; height:80px }
}

/* CTA de vertical bajo el encabezado de etiqueta (salud/dental/agro) */
.vcta{ display:flex; align-items:center; justify-content:space-between; gap:16px 28px; flex-wrap:wrap;
  margin-top:26px; padding:20px 26px; border-radius:var(--r-lg); background:var(--grad-soft);
  border:1px solid rgba(28,157,215,.2) }
.vcta__t{ min-width:0 }
.vcta__t strong{ display:block; font-family:var(--ff-head); font-weight:700; font-size:17px; color:var(--ink) }
.vcta__t span{ font-size:14.5px; color:var(--ink-3) }
.vcta .btn{ flex:none }

/* Estado vacío / búsqueda sin resultados / 404 */
.hub-empty{ text-align:center; padding:clamp(36px,5vw,64px) 0 }
.hub-empty__title{ font-family:var(--ff-head); font-weight:700; font-size:clamp(21px,2.6vw,27px);
  color:var(--ink); margin:0 }
.hub-empty p{ margin:12px auto 0; max-width:54ch; color:var(--ink-3) }
.hub-empty__actions{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:22px }
.hub-empty .blog-search__form{ max-width:520px; margin:22px auto 0; justify-content:center }
.hub-empty__cats{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:20px }

/* 404 */
.notfound{ padding:clamp(48px,7vw,90px) 0 clamp(40px,6vw,72px); max-width:680px; margin-inline:auto; text-align:center }
.notfound .hub__lead{ margin-inline:auto }
.notfound .blog-search__form{ max-width:520px; margin:26px auto 0; justify-content:center }
.notfound__actions{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:24px }
