/* Integración WordPress / Blog Cavalier */
.cavalier-blog-page{background:#a7a7a7 url('../img/texture-wall-exact.webp') center center/cover fixed no-repeat;color:#111416}
.cavalier-blog-page::before{content:"";position:fixed;inset:0;z-index:-2;background:#a7a7a7 url('../img/texture-wall-exact.webp') center/cover no-repeat}
.wp-cavalier-main{min-height:70vh;padding-top:112px}
.blog-hero{padding:78px 0 44px}
.blog-hero__inner{max-width:950px}
.blog-hero .eyebrow{margin-bottom:18px}
.blog-hero h1{font-family:Outfit,Manrope,system-ui,sans-serif;font-size:clamp(54px,8vw,112px);line-height:.84;letter-spacing:-.075em;margin:0 0 24px;font-weight:500;color:#111416}
.blog-hero h1 strong{display:block;font-weight:900}
.blog-hero p{max-width:720px;margin:0;color:#5c605d;font-size:clamp(17px,1.5vw,20px);line-height:1.65}
.blog-index-section{padding:24px 0 110px}
.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.blog-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:28px;background:rgba(247,248,245,.76);border:1px solid rgba(17,20,22,.10);box-shadow:0 18px 50px rgba(17,20,22,.08);transition:transform .22s ease,background .22s ease,border-color .22s ease}
.blog-card:hover{transform:translateY(-4px);background:#fff;border-color:rgba(17,20,22,.18)}
.blog-card__media{display:block;aspect-ratio:16/10;overflow:hidden;background:rgba(17,20,22,.08)}
.blog-card__media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.blog-card:hover .blog-card__media img{transform:scale(1.025)}
.blog-card__placeholder{height:100%;display:grid;place-items:center;background:linear-gradient(145deg,rgba(255,255,255,.25),rgba(17,20,22,.08)),url('../img/texture-wall-exact.webp') center/cover}
.blog-card__placeholder img{width:45%;height:auto;object-fit:contain;opacity:.72}
.blog-card__body{display:flex;flex:1;flex-direction:column;padding:24px}
.blog-card__meta,.article-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;color:#707570;font-size:11px;font-weight:800;letter-spacing:.10em;text-transform:uppercase}
.blog-card__meta span+span::before,.article-meta span+span::before{content:"·";margin-right:10px;color:#9b9e9b}
.blog-card h2,.blog-card h3{font-family:Outfit,Manrope,system-ui,sans-serif;margin:15px 0 12px;font-size:clamp(24px,2.2vw,32px);line-height:1.02;letter-spacing:-.045em;color:#111416}
.blog-card h2 a,.blog-card h3 a{color:inherit;text-decoration:none}
.blog-card__excerpt{margin:0 0 22px;color:#5b615d;font-size:15px;line-height:1.62}
.blog-card__link{margin-top:auto;display:inline-flex;align-items:center;gap:8px;color:#111416;text-decoration:none;font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.blog-card__link::after{content:"→";font-size:16px;line-height:1;transition:transform .2s ease}
.blog-card__link:hover::after{transform:translateX(3px)}
.blog-pagination{margin-top:46px;display:flex;justify-content:center}
.blog-pagination .nav-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.blog-pagination .page-numbers{display:grid;place-items:center;min-width:44px;height:44px;padding:0 14px;border-radius:999px;border:1px solid rgba(17,20,22,.12);background:rgba(255,255,255,.48);color:#111416;text-decoration:none;font-size:12px;font-weight:800}
.blog-pagination .page-numbers.current,.blog-pagination a.page-numbers:hover{background:#111416;color:#fff}
.no-posts-card{max-width:820px;padding:46px 48px;border-radius:28px;background:rgba(255,255,255,.62);border:1px solid rgba(17,20,22,.10);box-shadow:0 18px 50px rgba(17,20,22,.06)}
.no-posts-card .eyebrow{display:inline-flex;margin-bottom:16px}
.no-posts-card h2{max-width:680px;margin:0 0 14px;font-family:Outfit,Manrope,system-ui,sans-serif;font-size:clamp(30px,3.6vw,48px);line-height:1;letter-spacing:-.05em;color:#111416}
.no-posts-card p{max-width:680px;margin:0;color:#5c615d;font-size:16px;line-height:1.7}
.article-shell{padding:68px 0 110px}
.article-header{max-width:980px;margin:0 auto 36px;text-align:left}
.article-header .eyebrow{margin-bottom:17px}
.article-header h1{font-family:Outfit,Manrope,system-ui,sans-serif;margin:0 0 22px;font-size:clamp(46px,7vw,88px);line-height:.92;letter-spacing:-.065em;color:#111416}
.article-header__excerpt{max-width:800px;margin:20px 0 0;color:#5c615d;font-size:18px;line-height:1.62}
.article-featured{max-width:1160px;margin:0 auto 46px;border-radius:32px;overflow:hidden;border:1px solid rgba(17,20,22,.10);box-shadow:0 24px 60px rgba(17,20,22,.10)}
.article-featured img{display:block;width:100%;height:auto;max-height:720px;object-fit:cover}
.article-layout{display:grid;grid-template-columns:minmax(0,666px) 260px;gap:54px;max-width:980px;margin-left:auto;margin-right:auto;justify-content:center;align-items:start}
.article-content{padding:38px 42px;border-radius:28px;background:rgba(248,249,246,.78);border:1px solid rgba(17,20,22,.10);box-shadow:0 18px 50px rgba(17,20,22,.06);font-size:17px;line-height:1.78;color:#303532;overflow-wrap:anywhere}
.article-content>*:first-child{margin-top:0}
.article-content>*:last-child{margin-bottom:0}
.article-content h2,.article-content h3,.article-content h4{font-family:Outfit,Manrope,system-ui,sans-serif;color:#111416;letter-spacing:-.04em;line-height:1.06}
.article-content h2{font-size:38px;margin:48px 0 18px}
.article-content h3{font-size:28px;margin:38px 0 14px}
.article-content p{margin:0 0 22px}
.article-content ul,.article-content ol{padding-left:24px;margin:0 0 24px}
.article-content li{margin-bottom:8px}
.article-content a{color:#111416;text-decoration-thickness:1px;text-underline-offset:3px}
.article-content img{max-width:100%;height:auto;border-radius:18px}
.article-content blockquote{margin:34px 0;padding:6px 0 6px 22px;border-left:3px solid #111416;font-size:21px;line-height:1.5;color:#181b19}
.article-sidebar{position:sticky;top:116px;display:grid;gap:14px}
.article-side-card{padding:22px;border-radius:22px;background:rgba(255,255,255,.56);border:1px solid rgba(17,20,22,.10)}
.article-side-card span{display:block;margin-bottom:10px;color:#696e69;font-size:10px;font-weight:900;letter-spacing:.15em;text-transform:uppercase}
.article-side-card strong{display:block;font-family:Outfit,Manrope,system-ui,sans-serif;font-size:22px;line-height:1.05;letter-spacing:-.04em}
.article-side-card .btn{margin-top:18px;width:100%;justify-content:center}
.article-back{display:inline-flex;margin-bottom:24px;color:#111416;text-decoration:none;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.article-back::before{content:"←";margin-right:8px}
.blog-search-title{font-family:Outfit,Manrope,system-ui,sans-serif;font-size:clamp(42px,6vw,72px);letter-spacing:-.055em;line-height:.95;margin:0 0 22px}
.cavalier-blog-page .site-header{background:rgba(229,231,226,.82);border-bottom:1px solid rgba(20,22,20,.08);backdrop-filter:blur(18px)}
.cavalier-blog-page .main-nav>a.is-active{background:rgba(17,20,22,.08);border-radius:999px;padding:10px 14px}
@media (max-width:1100px){.blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.article-header{max-width:820px}.article-layout{grid-template-columns:minmax(0,820px);max-width:820px}.article-sidebar{position:static;grid-template-columns:repeat(2,minmax(0,1fr));max-width:820px}.article-content{max-width:820px}.article-layout{justify-items:center}.article-sidebar{width:100%}}
@media (max-width:760px){.wp-cavalier-main{padding-top:76px}.blog-hero{padding:60px 0 34px}.blog-hero h1{font-size:clamp(49px,16vw,74px)}.blog-grid{grid-template-columns:1fr}.blog-index-section{padding-bottom:72px}.blog-card{border-radius:23px}.no-posts-card{padding:32px 26px;border-radius:23px}.article-shell{padding:50px 0 76px}.article-header h1{font-size:clamp(42px,12vw,64px)}.article-featured{border-radius:23px;margin-bottom:28px}.article-content{padding:26px 22px;border-radius:23px;font-size:16px}.article-content h2{font-size:32px}.article-content h3{font-size:25px}.article-sidebar{grid-template-columns:1fr}.cavalier-blog-page .main-nav>a.is-active{padding:0;background:none}}


/* V4 · alineación editorial y navegación del blog */
.blog-hero__inner,
.blog-index-section>.container{width:min(950px,calc(100% - 40px));max-width:950px;margin-inline:auto;}
.blog-index-section>.container{padding-inline:0;}
.no-posts-card{margin-left:0;}
.article-frame{width:min(980px,100%);max-width:980px;margin-inline:auto;}
.article-header{max-width:none;margin:0 0 36px;}
.article-featured{max-width:none;margin:0 0 46px;}
.article-layout{max-width:none;margin:0;justify-content:stretch;}
.cavalier-blog-page .main-nav--blog{gap:18px;}
.cavalier-blog-page .main-nav--blog>a.is-active{background:rgba(17,20,22,.08);border-radius:999px;padding:10px 14px;}
@media (max-width:1100px){
  .article-frame{width:min(820px,100%);max-width:820px;}
  .article-header,.article-layout{max-width:none;width:100%;}
}
@media (max-width:760px){
  .blog-hero__inner,.blog-index-section>.container{width:min(calc(100% - 40px),950px);}
  .article-frame{width:100%;}
  .cavalier-blog-page .main-nav--blog>a.is-active{padding:0;background:none;}
}


/* V5 · página 404 Cavalier */
.cavalier-404{min-height:calc(100vh - 260px);display:flex;align-items:center;}
.cavalier-404__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px;}
@media (max-width:760px){.cavalier-404{min-height:auto}.cavalier-404__actions{align-items:stretch}.cavalier-404__actions .btn{justify-content:center}}

/* V8 · últimas 3 entradas en portada, mismo lenguaje visual del Blog */
.home-blog-section{
  position:relative;
  overflow:hidden;
  background:#e4e5e0;
  padding:86px 0 98px;
  color:#111416;
}
.home-blog-section::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.18;
  background:url('../img/texture-wall-exact.webp') center/cover no-repeat;
}
.home-blog-section>.container{position:relative;z-index:1}
.home-blog-container{width:min(1080px,calc(100% - 40px));max-width:1080px;margin-inline:auto}
.home-blog-head{margin-bottom:34px}
.home-blog-head>.eyebrow{margin-bottom:15px}
.home-blog-head__row{display:flex;align-items:flex-end;justify-content:space-between;gap:40px}
.home-blog-head__copy{min-width:0}
.home-blog-head h2{
  max-width:720px;
  margin:0;
  font-family:Outfit,Manrope,system-ui,sans-serif;
  font-size:clamp(38px,4.4vw,58px);
  line-height:.96;
  letter-spacing:-.055em;
  font-weight:700;
  color:#111416;
}
.home-blog-head__copy p{
  max-width:560px;
  margin:12px 0 0;
  color:#646964;
  font-size:15px;
  line-height:1.6;
}
.home-blog-all{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:5px;
  color:#111416;
  text-decoration:none;
  font-size:11px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.home-blog-all::after{content:"→";font-size:16px;line-height:1;transition:transform .2s ease}
.home-blog-all:hover::after{transform:translateX(3px)}
.home-blog-grid{gap:22px}
.home-blog-grid .blog-card{height:100%}
.home-blog-grid .blog-card__body{padding:22px}
.home-blog-grid .blog-card h3{font-size:clamp(23px,2vw,29px)}
.home-blog-grid .blog-card__excerpt{font-size:14px;line-height:1.55;margin-bottom:18px}
.home-blog-empty{
  max-width:760px;
  padding:30px 0 0;
  border-top:1px solid rgba(17,20,22,.14);
}
.home-blog-empty .eyebrow{margin-bottom:13px}
.home-blog-empty h3{
  margin:0 0 10px;
  font-family:Outfit,Manrope,system-ui,sans-serif;
  font-size:clamp(30px,3.4vw,44px);
  line-height:1;
  letter-spacing:-.048em;
  color:#111416;
}
.home-blog-empty p{max-width:620px;margin:0;color:#5d625e;font-size:15px;line-height:1.65}
@media (max-width:980px){
  .home-blog-head__row{align-items:flex-start;flex-direction:column;gap:18px}
  .home-blog-all{margin-bottom:0}
  .home-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:680px){
  .home-blog-section{padding:70px 0 78px}
  .home-blog-container{width:min(calc(100% - 32px),1080px)}
  .home-blog-head{margin-bottom:28px}
  .home-blog-head h2{font-size:clamp(38px,11.5vw,52px)}
  .home-blog-head__copy p{font-size:14px}
  .home-blog-grid{grid-template-columns:1fr;gap:24px}
  .home-blog-grid .blog-card__body{padding:21px}
}
