/*
Theme Name: KH Site — Karen Heredia
Theme URI: https://karenheredia.com/
Author: Karen Heredia
Author URI: https://www.linkedin.com/in/karenheredia/
Description: Tema completo para el sitio de Karen Heredia — Experta en Transformación Digital. Incluye portada con servicios y cotizador, blog (entrada destacada + 4), revista KH Leaders (entrevistas), Mi Lab (proyectos), servicio premium Dashboard Ejecutivo, testimonios y tienda. Misma línea de diseño: Inter + Space Grotesk, paleta negro/bronce/blanco.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kh-site
Tags: blog, portfolio, business, one-column, custom-logo, custom-menu, featured-images, custom-post-types, translation-ready, responsive
*/

:root{
  --background:0 0% 100%;
  --foreground:0 0% 4%;
  --card:0 0% 100%;
  --muted:0 0% 96%;
  --muted-foreground:0 0% 42%;
  --primary:0 0% 4%;
  --primary-foreground:0 0% 100%;
  --secondary:30 50% 45%;
  --accent:142 70% 49%;
  --wa:#25D366;            /* verde oficial de WhatsApp (rgb 37,211,102) */
  --border:0 0% 91%;
  --ring:0 0% 4%;
  --font-sans:"Inter",-apple-system,BlinkMacSystemFont,sans-serif;
  --font-heading:"Space Grotesk",-apple-system,BlinkMacSystemFont,sans-serif;
  --maxw:1120px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--font-sans);
  background:hsl(var(--background));
  color:hsl(var(--foreground));
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,.font-head{font-family:var(--font-heading);font-weight:700;line-height:1.08;letter-spacing:-.02em}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.muted{color:hsl(var(--muted-foreground))}
.accent{color:hsl(var(--accent))}
.eyebrow{
  font-family:var(--font-heading);font-weight:600;font-size:.72rem;letter-spacing:.18em;
  text-transform:uppercase;color:hsl(var(--muted-foreground));
}
:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:3px;border-radius:4px}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.55rem;
  font-family:var(--font-heading);font-weight:600;font-size:.95rem;
  padding:.85rem 1.6rem;border-radius:999px;border:1px solid transparent;
  cursor:pointer;transition:transform .15s ease,background .2s ease,color .2s ease,border-color .2s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:hsl(var(--primary));color:hsl(var(--primary-foreground))}
.btn-primary:hover{background:#000}
.btn-accent{background:var(--wa);color:#fff}
.btn-accent:hover{filter:brightness(1.05)}
.btn-ghost{background:transparent;border-color:hsl(var(--border));color:hsl(var(--foreground))}
.btn-ghost:hover{border-color:hsl(var(--foreground))}
.btn-sm{padding:.6rem 1.1rem;font-size:.85rem}
.btn[disabled]{opacity:.45;cursor:not-allowed;transform:none}
.wa-ic{width:18px;height:18px;flex:none}

/* Header */
header.site{
  position:sticky;top:0;z-index:50;
  background:hsla(0,0%,100%,.82);backdrop-filter:blur(12px);
  border-bottom:1px solid hsl(var(--border));
}
.nav{display:flex;align-items:center;justify-content:space-between;height:68px;gap:1rem}
.nav-links a.link.active{color:hsl(var(--foreground))}
.mobile-menu a.active{color:hsl(var(--secondary))}
.brand{display:flex;align-items:center;gap:.7rem;font-family:var(--font-heading);font-weight:700;font-size:1.05rem}
.brand small{display:block;font-family:var(--font-sans);font-weight:400;font-size:.7rem;color:hsl(var(--muted-foreground));letter-spacing:.02em}
.logo-img{height:34px;width:auto;display:block}
footer.site .logo-img{height:30px}
.nav-links{display:flex;align-items:center;gap:1.1rem}
.nav-links a.link{font-size:.9rem;font-weight:500;color:hsl(var(--muted-foreground));transition:color .2s;white-space:nowrap}
.nav-links a.link:hover{color:hsl(var(--foreground))}
.nav-cta{display:flex;align-items:center;gap:.9rem}
.burger{display:none;background:none;border:none;cursor:pointer;padding:8px}
.burger span{display:block;width:22px;height:2px;background:hsl(var(--foreground));margin:5px 0;transition:.25s}
.mobile-menu{display:none;border-top:1px solid hsl(var(--border));background:#fff}
.mobile-menu a{display:block;padding:14px 24px;font-weight:500;border-bottom:1px solid hsl(var(--border))}

/* Hero */
.hero{
  min-height:85vh;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:90px 24px;position:relative;overflow:hidden;
  background:hsl(var(--background));
}
.hero .eyebrow{margin-bottom:1.4rem}
.hero h1{font-size:clamp(2.6rem,7vw,5rem);max-width:14ch}
.hero .role{
  font-family:var(--font-heading);font-weight:600;font-size:clamp(1.05rem,2.4vw,1.5rem);
  margin-top:1.1rem;color:hsl(var(--foreground));
}
.hero .role b{color:inherit}
.hero p.lead{max-width:60ch;margin:1.5rem auto 0;font-size:1.08rem;color:hsl(var(--muted-foreground))}
.hero .actions{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center;margin-top:2.4rem}
.scroll-cue{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);color:hsl(var(--muted-foreground));font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;display:flex;flex-direction:column;align-items:center;gap:.4rem}
.scroll-cue .arrow{width:1px;height:30px;background:hsl(var(--border));animation:cue 1.8s ease-in-out infinite}
@keyframes cue{0%,100%{opacity:.3;transform:scaleY(.6)}50%{opacity:1;transform:scaleY(1)}}

/* Sections */
section.block{padding:96px 0;border-top:1px solid hsl(var(--border))}
.sec-head{max-width:680px;margin-bottom:56px}
.sec-head h2{font-size:clamp(2rem,4.5vw,3rem)}
.sec-head h2 .alt{color:inherit;display:inline}
.sec-head p{margin-top:1rem;font-size:1.05rem;color:hsl(var(--muted-foreground))}

/* About */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:hsl(var(--border));border:1px solid hsl(var(--border));border-radius:18px;overflow:hidden;margin:8px 0 48px}
.stat{background:#fff;padding:28px 22px}
.stat .num{font-family:var(--font-heading);font-weight:700;font-size:2.1rem;line-height:1}
.stat .lbl{margin-top:.5rem;font-size:.85rem;color:hsl(var(--muted-foreground))}
.about-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:48px}
.bio p{margin-bottom:1.1rem;color:hsl(var(--foreground))}
.bio p .hl{color:hsl(var(--foreground));font-weight:600}
.bio .pre{font-weight:600;color:hsl(var(--muted-foreground))}
.cert{background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:18px;padding:28px}
.cert h4{font-size:1rem;margin-bottom:1rem}
.cert ul{list-style:none;display:flex;flex-direction:column;gap:.7rem}
.cert li{display:flex;gap:.7rem;align-items:flex-start;font-size:.95rem}
.cert li .dot{width:7px;height:7px;border-radius:50%;background:hsl(var(--secondary));margin-top:.55rem;flex:none}

/* Tabs */
.tabs{display:inline-flex;gap:4px;background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:999px;padding:5px;margin-bottom:40px}
.tab{border:none;background:transparent;cursor:pointer;font-family:var(--font-heading);font-weight:600;font-size:.85rem;padding:.55rem 1.2rem;border-radius:999px;color:hsl(var(--muted-foreground));transition:.2s}
.tab.active{background:hsl(var(--primary));color:#fff}

/* Service cards */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.card{
  display:flex;flex-direction:column;border:1px solid hsl(var(--border));border-radius:20px;
  padding:28px;background:#fff;transition:border-color .2s,box-shadow .2s,transform .2s;
}
.card:hover{border-color:hsl(var(--foreground));box-shadow:0 18px 40px -28px rgba(0,0,0,.4);transform:translateY(-3px)}
.card.hide{display:none}
.badge{align-self:flex-start;font-family:var(--font-heading);font-weight:600;font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;color:hsl(var(--secondary));background:hsla(30,50%,45%,.1);padding:.3rem .65rem;border-radius:999px;margin-bottom:1rem}
.card h3{font-size:1.22rem;margin-bottom:.7rem}
.card .desc{font-size:.93rem;color:hsl(var(--muted-foreground));flex:none}
.card .toggle-inc{margin-top:1rem;background:none;border:none;cursor:pointer;font-family:var(--font-heading);font-weight:600;font-size:.82rem;color:hsl(var(--foreground));display:inline-flex;align-items:center;gap:.35rem;padding:0}
.card .toggle-inc .chev{transition:transform .25s}
.card .toggle-inc.open .chev{transform:rotate(180deg)}
.inc{max-height:0;overflow:hidden;transition:max-height .3s ease}
.inc ul{list-style:none;padding:14px 0 2px;display:flex;flex-direction:column;gap:.55rem}
.inc li{display:flex;gap:.6rem;align-items:flex-start;font-size:.88rem}
.inc li .ck{color:hsl(var(--secondary));flex:none;margin-top:.15rem}
.card .foot{margin-top:auto;padding-top:22px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.price{font-family:var(--font-heading);font-weight:700;font-size:1.7rem;line-height:1}
.price .per{display:block;font-family:var(--font-sans);font-weight:400;font-size:.78rem;color:hsl(var(--muted-foreground));margin-top:.2rem}
.price .from{font-family:var(--font-sans);font-weight:500;font-size:.7rem;color:hsl(var(--muted-foreground));letter-spacing:.05em;text-transform:uppercase}
.price .custom{font-family:var(--font-heading);font-weight:700;font-size:1.5rem;line-height:1;display:block}
.foot-actions{display:flex;flex-direction:column;align-items:flex-end;gap:.55rem}
.detail-link{font-family:var(--font-heading);font-weight:600;font-size:.8rem;color:hsl(var(--foreground));white-space:nowrap;border-bottom:1px solid transparent;transition:border-color .2s,color .2s}
.detail-link:hover{color:hsl(var(--secondary));border-color:hsl(var(--secondary))}
.badge.premium{color:#fff;background:hsl(var(--secondary));letter-spacing:.1em}
.card.premium{border-color:hsl(var(--secondary));box-shadow:0 1px 0 hsl(var(--secondary)) inset, 0 0 0 1px hsla(30,50%,45%,.25)}
.card.premium:hover{border-color:hsl(var(--secondary))}

/* Cotizador */
.quote-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:32px;align-items:start}
.q-list{display:flex;flex-direction:column;gap:12px}
.q-item{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  border:1px solid hsl(var(--border));border-radius:14px;padding:16px 20px;cursor:pointer;
  transition:border-color .2s,background .2s;user-select:none;
}
.q-item:hover{border-color:hsl(var(--foreground))}
.q-item.on{border-color:hsl(var(--foreground));background:hsla(30,50%,45%,.06)}
.q-item .info .t{font-family:var(--font-heading);font-weight:600;font-size:1rem}
.q-item .info .s{font-size:.82rem;color:hsl(var(--muted-foreground));margin-top:.15rem}
.sw{width:46px;height:26px;border-radius:999px;background:hsl(var(--border));position:relative;flex:none;transition:background .2s}
.sw::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .2s;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.q-item.on .sw{background:hsl(var(--foreground))}
.q-item.on .sw::after{transform:translateX(20px)}
.summary{position:sticky;top:90px;border:1px solid hsl(var(--border));border-radius:20px;padding:28px;background:hsl(var(--muted))}
.summary h3{font-size:1.2rem;margin-bottom:1.1rem}
#sumList{list-style:none;display:flex;flex-direction:column;gap:.65rem;margin-bottom:1.2rem}
#sumList li{display:flex;justify-content:space-between;gap:12px;font-size:.9rem;padding-bottom:.65rem;border-bottom:1px dashed hsl(var(--border))}
#sumList li span:last-child{font-family:var(--font-heading);font-weight:600;white-space:nowrap}
.sum-empty{font-size:.92rem;color:hsl(var(--muted-foreground))}
.sum-total{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:.4rem}
.sum-total .lbl{font-family:var(--font-heading);font-weight:600}
.sum-total .val{font-family:var(--font-heading);font-weight:700;font-size:1.6rem}
.sum-note{font-size:.74rem;color:hsl(var(--muted-foreground));margin-bottom:1.2rem}
.summary .btn{width:100%}

/* Testimonials */
.tgrid{display:flex;flex-wrap:wrap;justify-content:center;gap:22px}
.tcard{flex:1 1 320px;max-width:352px;border:1px solid hsl(var(--border));border-radius:20px;padding:30px;display:flex;flex-direction:column;background:#fff}
.tcard .quo{font-family:var(--font-heading);font-size:2.4rem;line-height:1;color:hsl(var(--secondary));margin-bottom:.4rem}
.tcard p{font-size:.95rem;color:hsl(var(--foreground));flex:1}
.tcard .who{margin-top:1.4rem;padding-top:1.2rem;border-top:1px solid hsl(var(--border))}
.tcard .who .n{font-family:var(--font-heading);font-weight:600;font-size:.95rem}
.tcard .who .r{font-size:.8rem;color:hsl(var(--muted-foreground));margin-top:.2rem}

/* Footer */
footer.site{border-top:1px solid hsl(var(--border));padding:60px 0 40px}
.foot-top{display:flex;justify-content:space-between;gap:32px;flex-wrap:wrap;align-items:flex-start}
.foot-brand .brand{margin-bottom:.6rem}
.foot-links{display:flex;gap:28px;flex-wrap:wrap}
.foot-links a{font-weight:500;font-size:.92rem;color:hsl(var(--muted-foreground));transition:color .2s}
.foot-links a:hover{color:hsl(var(--foreground))}
.copy{margin-top:40px;padding-top:24px;border-top:1px solid hsl(var(--border));font-size:.82rem;color:hsl(var(--muted-foreground))}

/* Floating WA */
.fab{position:fixed;right:22px;bottom:22px;z-index:60;width:58px;height:58px;border-radius:50%;background:var(--wa);display:grid;place-items:center;box-shadow:0 12px 30px -8px hsla(142,71%,28%,.55);transition:transform .2s}
.fab:hover{transform:scale(1.08)}
.fab svg{width:30px;height:30px}

/* Responsive */
@media(max-width:920px){
  .about-grid{grid-template-columns:1fr;gap:32px}
  .cards{grid-template-columns:repeat(2,1fr)}
  .tcard{max-width:none}
  .quote-grid{grid-template-columns:1fr}
  .summary{position:static}
}
@media(max-width:1040px){
  .nav-links{display:none}
  .nav .nav-cta .link-wa{display:none}
  .burger{display:block}
}
@media(max-width:760px){
  .stats{grid-template-columns:repeat(2,1fr)}
  .cards{grid-template-columns:1fr}
  section.block{padding:72px 0}
}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;scroll-behavior:auto!important;transition:none!important}
}


/* =========================================================
   Compatibilidad del menú con wp_nav_menu (ul > li > a)
   ========================================================= */
.nav-links ul.menu{display:flex;align-items:center;gap:1.4rem;list-style:none;margin:0;padding:0}
.nav-links a{font-size:.92rem;font-weight:500;color:hsl(var(--muted-foreground));transition:color .2s;white-space:nowrap}
.nav-links a:hover,.nav-links .current-menu-item>a,.nav-links li.active>a,.nav-links a.active{color:hsl(var(--foreground))}
.mobile-menu ul.menu{list-style:none;margin:0;padding:0}
.mobile-menu li.active>a{color:hsl(var(--secondary))}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:8px;top:8px;background:#fff;padding:8px 14px;border:1px solid hsl(var(--border));border-radius:8px;z-index:100}

/* =========================================================
   Sub-página: hero genérico + placeholders
   ========================================================= */
.page-hero{padding:84px 0 50px;border-bottom:1px solid hsl(var(--border))}
.page-hero.center{text-align:center}
.page-hero .eyebrow{display:block;margin-bottom:1.1rem}
.page-hero h1{font-size:clamp(2.2rem,5.5vw,3.8rem)}
.page-hero .lead{max-width:64ch;margin:1.1rem 0 0;font-size:1.12rem;color:hsl(var(--muted-foreground))}
.page-hero.center .lead{margin-left:auto;margin-right:auto}
.page-hero .actions{display:flex;gap:1rem;flex-wrap:wrap;margin-top:2rem}
.page-hero.center .actions{justify-content:center}

.section{padding:64px 0 90px}
.soon-card{background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:24px;padding:54px 40px;text-align:center;max-width:760px;margin:56px auto 0}
.soon-card .tag{display:inline-block;font-family:var(--font-heading);font-weight:600;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:#fff;background:hsl(var(--secondary));padding:.35rem .8rem;border-radius:999px;margin-bottom:1.1rem}
.soon-card h2{font-size:clamp(1.5rem,3.4vw,2.1rem)}
.soon-card p{max-width:54ch;margin:1rem auto 0;color:hsl(var(--muted-foreground))}
.soon-card .actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;margin-top:1.8rem}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.mini{border:1px solid hsl(var(--border));border-radius:18px;padding:28px;background:#fff}
.mini h3{font-size:1.1rem;margin:0 0 .5rem}
.mini p{font-size:.92rem;color:hsl(var(--muted-foreground));margin:0}
.mini .ico{width:44px;height:44px;border-radius:12px;background:hsl(var(--muted));display:grid;place-items:center;font-family:var(--font-heading);font-weight:700;color:hsl(var(--secondary));margin-bottom:1rem;font-size:1.05rem}

/* =========================================================
   Dashboard (servicio premium)
   ========================================================= */
.badge-prem{display:inline-block;font-family:var(--font-heading);font-weight:600;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:#fff;background:hsl(var(--secondary));padding:.35rem .8rem;border-radius:999px;margin-bottom:1.3rem}
.feat{list-style:none;display:grid;grid-template-columns:repeat(2,1fr);gap:16px 32px;margin:0;padding:0}
.feat li{display:flex;gap:.85rem;align-items:flex-start;font-size:1.02rem}
.feat li .ck{color:hsl(var(--secondary));flex:none;margin-top:.28rem}
.excel{background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:22px;padding:44px}
.excel h2{font-size:clamp(1.5rem,3.4vw,2.1rem);max-width:24ch}
.excel p{margin-top:1.1rem;font-size:1.05rem}
.excel p .hl{color:hsl(var(--secondary));font-weight:600}
.chips{display:flex;flex-wrap:wrap;gap:12px}
.chip{font-family:var(--font-heading);font-weight:600;font-size:.92rem;border:1px solid hsl(var(--border));border-radius:999px;padding:.6rem 1.2rem;background:#fff}
.cta-band{text-align:center;padding:84px 0}
.cta-band h2{font-size:clamp(1.6rem,3.6vw,2.3rem);max-width:24ch;margin:0 auto}
.cta-band p{max-width:60ch;margin:1.1rem auto 0;color:hsl(var(--muted-foreground))}
.cta-band .actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;margin-top:1.9rem}

/* =========================================================
   Mi Lab — listado de proyectos
   ========================================================= */
.proj-list{display:flex;flex-direction:column;gap:16px}
.proj-card{display:flex;gap:24px;align-items:flex-start;border:1px solid hsl(var(--border));border-radius:18px;padding:26px 28px;background:#fff;transition:border-color .2s,transform .2s,box-shadow .2s}
.proj-card:hover{border-color:hsl(var(--foreground));transform:translateY(-2px);box-shadow:0 18px 40px -30px rgba(0,0,0,.4)}
.proj-card .idx{font-family:var(--font-heading);font-weight:700;font-size:1.1rem;color:hsl(var(--secondary));min-width:42px}
.proj-card .pc-body{flex:1}
.proj-card h3{font-size:1.25rem;margin:0 0 .4rem}
.proj-card h3 a:hover{color:hsl(var(--secondary))}
.proj-card .pc-desc{color:hsl(var(--muted-foreground));font-size:.98rem;margin:0}
.proj-card .pc-tag{display:inline-block;margin-top:.7rem;font-family:var(--font-heading);font-weight:600;font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:hsl(var(--secondary))}

/* =========================================================
   KH Leaders — entrevistas
   ========================================================= */
.intv-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.intv-card{display:flex;flex-direction:column;border:1px solid hsl(var(--border));border-radius:20px;overflow:hidden;background:#fff;transition:border-color .2s,transform .2s,box-shadow .2s}
.intv-card:hover{border-color:hsl(var(--foreground));transform:translateY(-3px);box-shadow:0 18px 40px -28px rgba(0,0,0,.4)}
.intv-card .ph{display:block;aspect-ratio:3/4;background:hsl(var(--muted));overflow:hidden}
.intv-card .ph img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.intv-card:hover .ph img{transform:scale(1.04)}
.intv-card .ph.placeholder{display:grid;place-items:center;font-family:var(--font-heading);font-weight:700;font-size:2.2rem;color:hsl(var(--secondary))}
.intv-card .ic-body{padding:20px;display:flex;flex-direction:column;flex:1}
.intv-card h3{font-size:1.08rem;margin:0 0 .35rem}
.intv-card .role{font-size:.78rem;color:hsl(var(--secondary));font-family:var(--font-heading);font-weight:600;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.6rem}
.intv-card p{font-size:.9rem;color:hsl(var(--muted-foreground));margin:0;flex:1}
.intv-card .more{margin-top:1rem;font-family:var(--font-heading);font-weight:600;font-size:.82rem;align-self:flex-start;border-bottom:1px solid transparent;transition:.2s}
.intv-card .more:hover{color:hsl(var(--secondary));border-color:hsl(var(--secondary))}

/* =========================================================
   Blog — listado (destacada + grilla)
   ========================================================= */
.list{padding:56px 0 80px}
.post-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:26px}
.pcard{display:flex;flex-direction:column;border:1px solid hsl(var(--border));border-radius:20px;overflow:hidden;background:#fff;transition:border-color .2s,box-shadow .2s,transform .2s}
.pcard:hover{border-color:hsl(var(--foreground));box-shadow:0 18px 40px -28px rgba(0,0,0,.4);transform:translateY(-3px)}
.pcard .thumb{display:block;aspect-ratio:16/10;background:hsl(var(--muted));overflow:hidden}
.pcard .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.pcard:hover .thumb img{transform:scale(1.04)}
.pcard .pbody{padding:24px;display:flex;flex-direction:column;flex:1}
.pcard .meta{font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:hsl(var(--secondary));font-family:var(--font-heading);font-weight:600;margin-bottom:.7rem}
.pcard h2{font-size:1.25rem;margin:0 0 .55rem}
.pcard h2 a:hover{color:hsl(var(--secondary))}
.pcard .excerpt{font-size:.93rem;color:hsl(var(--muted-foreground));flex:1;margin:0}
.pcard .more{margin-top:1.1rem;font-family:var(--font-heading);font-weight:600;font-size:.85rem;display:inline-flex;gap:.35rem;align-self:flex-start;border-bottom:1px solid transparent;transition:.2s}
.pcard .more:hover{color:hsl(var(--secondary));border-color:hsl(var(--secondary))}
.pcard.feature{grid-column:1 / -1;flex-direction:row}
.pcard.feature .thumb{flex:1 1 54%;aspect-ratio:auto}
.pcard.feature .pbody{flex:1 1 46%;justify-content:center;padding:42px}
.pcard.feature h2{font-size:clamp(1.6rem,3vw,2.3rem)}
.pcard.feature .excerpt{font-size:1rem}
.blog-sub{margin:46px 0 0;font-family:var(--font-heading);font-weight:600;font-size:1.1rem}

.pagination{margin-top:52px;display:flex;justify-content:center}
.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap}
.pagination a,.pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;border:1px solid hsl(var(--border));border-radius:999px;font-family:var(--font-heading);font-weight:600;font-size:.9rem;color:hsl(var(--foreground))}
.pagination a:hover{border-color:hsl(var(--foreground))}
.pagination .current{background:hsl(var(--primary));color:#fff;border-color:hsl(var(--primary))}

/* =========================================================
   Artículo individual
   ========================================================= */
.article{padding:56px 0 80px}
.article-head{max-width:760px;margin:0 auto 34px;text-align:center}
.article-head .cats{margin-bottom:1rem}
.article-head .cats a{font-family:var(--font-heading);font-weight:600;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:hsl(var(--secondary))}
.article-head h1{font-size:clamp(2rem,4.6vw,3.2rem)}
.article-head .submeta{margin-top:1rem;font-size:.9rem;color:hsl(var(--muted-foreground))}
.article-cover{max-width:var(--maxw);margin:0 auto 44px;border-radius:24px;overflow:hidden}
.article-cover img{width:100%;height:auto}
.article-body{max-width:760px;margin:0 auto;font-size:1.08rem;line-height:1.8}
.article-body h2{font-size:1.7rem;margin:1.8em 0 .5em}
.article-body h3{font-size:1.35rem;margin:1.5em 0 .4em}
.article-body a{color:hsl(var(--secondary));text-decoration:underline;text-underline-offset:3px}
.article-body img{border-radius:16px;margin:1.6em 0}
.article-body blockquote{margin:1.6em 0;padding:.4em 0 .4em 1.4em;border-left:3px solid hsl(var(--secondary));font-size:1.2rem;font-family:var(--font-heading)}
.article-body ul,.article-body ol{padding-left:1.3em;margin:0 0 1.1em}
.article-body code{background:hsl(var(--muted));padding:.15em .4em;border-radius:6px;font-size:.92em}
.article-body pre{background:hsl(var(--foreground));color:#fff;padding:20px;border-radius:14px;overflow:auto;margin:1.6em 0}
.article-body pre code{background:none;padding:0;color:inherit}
.article-tags{max-width:760px;margin:40px auto 0;display:flex;flex-wrap:wrap;gap:10px}
.article-tags a{font-size:.82rem;border:1px solid hsl(var(--border));border-radius:999px;padding:.45rem 1rem;color:hsl(var(--muted-foreground));transition:.2s}
.article-tags a:hover{border-color:hsl(var(--foreground));color:hsl(var(--foreground))}
.article-cta{max-width:760px;margin:54px auto 0;background:hsl(var(--muted));border:1px solid hsl(var(--border));border-radius:20px;padding:34px;text-align:center}
.article-cta h3{font-size:1.3rem}
.article-cta p{color:hsl(var(--muted-foreground));margin-bottom:1.3rem}
.post-nav{max-width:760px;margin:50px auto 0;display:flex;justify-content:space-between;gap:20px;border-top:1px solid hsl(var(--border));padding-top:28px}
.post-nav a{max-width:48%}
.post-nav .lbl{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:hsl(var(--muted-foreground));font-family:var(--font-heading);font-weight:600}
.post-nav .ttl{font-family:var(--font-heading);font-weight:600;margin-top:.3rem;display:block}
.post-nav .next{text-align:right;margin-left:auto}

/* =========================================================
   Comentarios / búsqueda / vacío
   ========================================================= */
.comments{max-width:760px;margin:60px auto 0}
.comments h3{font-size:1.4rem;margin-bottom:1.2rem}
.commentlist{list-style:none;margin:0;padding:0}
.commentlist li{border:1px solid hsl(var(--border));border-radius:16px;padding:20px;margin-bottom:16px}
.commentlist .children{list-style:none;margin:16px 0 0 24px;padding:0}
.comment-author{font-family:var(--font-heading);font-weight:600}
.comment-meta{font-size:.78rem;color:hsl(var(--muted-foreground));margin-bottom:.5rem}
.comment-form{margin-top:24px}
.comment-form p{margin-bottom:14px}
.comment-form label{display:block;font-size:.85rem;font-weight:600;margin-bottom:.35rem}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea,.search-form input[type=search]{width:100%;font-family:inherit;font-size:1rem;padding:.8rem 1rem;border:1px solid hsl(var(--border));border-radius:12px;background:#fff;color:inherit}
.comment-form textarea{min-height:130px;resize:vertical}
.comment-form .submit,.search-form button{background:hsl(var(--primary));color:#fff;border:none;border-radius:999px;padding:.8rem 1.6rem;font-family:var(--font-heading);font-weight:600;cursor:pointer}
.search-form{display:flex;gap:10px;max-width:480px}
.search-form button{white-space:nowrap}
.empty{padding:90px 0;text-align:center}
.empty h1{font-size:clamp(2rem,5vw,3rem)}
.empty p{color:hsl(var(--muted-foreground));max-width:48ch;margin:1rem auto 2rem}

/* WP core */
.aligncenter{margin-left:auto;margin-right:auto}
.alignleft{float:left;margin:0 1.4em 1em 0}
.alignright{float:right;margin:0 0 1em 1.4em}
.wp-caption{max-width:100%}
.wp-caption-text{font-size:.85rem;color:hsl(var(--muted-foreground));text-align:center;margin-top:.5rem}
.sticky .pcard{border-color:hsl(var(--secondary))}

/* Responsive add-ons */
@media(max-width:980px){.intv-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:880px){
  .post-grid{grid-template-columns:1fr}
  .pcard.feature{flex-direction:column}
  .pcard.feature .thumb{aspect-ratio:16/9}
  .pcard.feature .pbody{padding:28px}
  .feat{grid-template-columns:1fr}
  .grid3{grid-template-columns:1fr}
  .excel{padding:28px}
}
@media(max-width:620px){
  .intv-grid{grid-template-columns:1fr}
  .proj-card{flex-direction:column;gap:8px}
  .post-nav{flex-direction:column}
  .post-nav a{max-width:100%}
  .post-nav .next{text-align:left;margin-left:0}
}
