:root{
  --af-dark:#0f172a;
  --af-dark-2:#111827;
  --af-surface:#1e293b;
  --af-light:#f8fafc;
  --af-white:#ffffff;
  --af-text:#0f172a;
  --af-muted:#64748b;
  --af-line:#e2e8f0;
  --af-accent:#818cf8;
  --af-accent-dark:#0369a1;
  --af-green:#25d366;
  --shadow-sm:0 1px 2px rgba(15,23,42,.05);
  --shadow-md:0 10px 30px rgba(15,23,42,.08);
  --shadow-xl:0 28px 70px rgba(15,23,42,.18);
  --radius-sm:12px;
  --radius-md:20px;
  --radius-lg:32px;
  --container:1280px;
  --header-height:78px;
}

/* Reset y protección contra desbordamiento */
*,*::before,*::after{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
}
body{
  margin:0;
  min-width:320px;
  overflow-x:hidden;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--af-text);
  background:var(--af-white);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img,svg,video,canvas,iframe{display:block;max-width:100%}
img{height:auto}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit;max-width:100%}
button{cursor:pointer}
[hidden]{display:none!important}

.container{
  width:min(calc(100% - 32px),var(--container));
  margin-inline:auto;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.skip-link:focus{
  position:fixed;
  left:16px;
  top:16px;
  z-index:9999;
  width:auto;
  height:auto;
  clip:auto;
  margin:0;
  padding:12px 16px;
  border-radius:10px;
  background:#fff;
  color:var(--af-dark);
  box-shadow:var(--shadow-md);
  font-weight:800;
}

/* Header */
.site-header{
  position:fixed;
  inset:0 0 auto;
  z-index:1000;
  width:100%;
  background:rgba(255,255,255,.95);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--af-line);
  box-shadow:var(--shadow-sm);
}
.nav-wrap{
  min-height:var(--header-height);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.nav-wrap>a{flex:0 0 auto}
.brand-logo{width:150px;height:auto}
.desktop-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(16px,2vw,28px);
  min-width:0;
}
.desktop-nav a{
  font-size:14px;
  font-weight:700;
  color:#475569;
  white-space:nowrap;
}
.desktop-nav a:hover,.desktop-nav a[aria-current="page"]{color:var(--af-accent-dark)}
.nav-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--af-dark)!important;
  color:#fff!important;
  padding:12px 22px;
  border-radius:999px;
  transition:.25s ease;
}
.nav-cta:hover{background:#1e293b!important;transform:translateY(-1px)}
.menu-btn{
  display:none;
  flex:0 0 44px;
  width:44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--af-dark);
}
.menu-btn svg{width:25px;height:25px}
.mobile-nav{
  display:none;
  width:100%;
  max-height:calc(100vh - var(--header-height));
  overflow-y:auto;
  padding:18px 0 24px;
  border-top:1px solid var(--af-line);
  background:#fff;
}
.mobile-nav.open{display:block}
.mobile-nav-inner{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
}
.mobile-nav a{
  display:block;
  width:100%;
  padding:12px 2px;
  font-size:17px;
  font-weight:800;
}
.mobile-nav .nav-cta{margin-top:6px;padding:14px 18px;text-align:center}

/* WhatsApp flotante */
.whatsapp-float{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:1200;
  width:60px;
  height:60px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--af-green);
  color:#fff;
  box-shadow:0 12px 34px rgba(37,211,102,.34);
  transition:.25s ease;
}
.whatsapp-float svg{width:28px;height:28px}
.whatsapp-float:hover{transform:scale(1.08)}

/* Introducción */
.blog-intro{
  position:relative;
  overflow:hidden;
  background:var(--af-light);
  padding:150px 0 82px;
}
.blog-intro::after{
  content:"";
  position:absolute;
  width:430px;
  height:430px;
  right:-170px;
  top:80px;
  border-radius:50%;
  background:rgba(129,140,248,.12);
  filter:blur(110px);
  pointer-events:none;
}
.eyebrow{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  gap:10px;
  max-width:100%;
  padding:9px 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--af-line);
  font-size:12px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  box-shadow:var(--shadow-sm);
}
.eyebrow-dot{flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:var(--af-accent)}
.blog-intro h1{
  position:relative;
  z-index:1;
  max-width:950px;
  margin:24px 0 0;
  font-size:clamp(2.4rem,7vw,5rem);
  line-height:1.02;
  letter-spacing:-.05em;
  font-weight:950;
  overflow-wrap:anywhere;
}
.blog-intro p{
  position:relative;
  z-index:1;
  max-width:760px;
  margin:24px 0 0;
  color:var(--af-muted);
  font-size:clamp(1.05rem,2vw,1.3125rem);
  font-weight:550;
  line-height:1.7;
}

/* Destacado */
.featured-section{padding:0 0 96px;background:#fff}
.featured-card{
  position:relative;
  min-height:640px;
  overflow:hidden;
  border-radius:var(--radius-lg);
  background:var(--af-dark);
  box-shadow:var(--shadow-xl);
}
.featured-card>img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .7s ease;
}
.featured-card:hover>img{transform:scale(1.045)}
.featured-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(15,23,42,.98) 0%,rgba(15,23,42,.82) 48%,rgba(15,23,42,.16) 100%),
    linear-gradient(0deg,rgba(15,23,42,.95) 0%,rgba(15,23,42,.1) 70%);
}
.featured-content{
  position:relative;
  z-index:2;
  min-height:640px;
  max-width:900px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:64px;
}
.badges{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:22px}
.badge{
  display:inline-flex;
  max-width:100%;
  padding:9px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.1);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  color:#fff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.badge.accent{background:rgba(129,140,248,.18);color:#eef2ff}
.featured-content h2{
  margin:0;
  color:#fff;
  font-size:clamp(2.25rem,5.5vw,4.25rem);
  line-height:1.04;
  letter-spacing:-.045em;
  font-weight:950;
  overflow-wrap:anywhere;
}
.featured-content p{
  max-width:690px;
  margin:22px 0 0;
  color:#cbd5e1;
  font-size:18px;
  line-height:1.7;
  font-weight:550;
}
.featured-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:30px}
.primary-btn,.secondary-btn,.outline-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:46px;
  max-width:100%;
  padding:14px 22px;
  border-radius:999px;
  font-size:14px;
  font-weight:900;
  line-height:1.2;
  text-align:center;
  transition:.25s ease;
}
.primary-btn{background:#fff;color:var(--af-dark)}
.primary-btn:hover{transform:scale(1.04);background:#f1f5f9}
.secondary-btn{border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.06);color:#fff}
.secondary-btn:hover{background:rgba(255,255,255,.1)}
.featured-meta{color:#cbd5e1;font-size:14px;font-weight:700}

/* Artículos */
.posts-section{padding:92px 0;background:var(--af-light);border-block:1px solid var(--af-line)}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:24px 30px;
  margin-bottom:46px;
}
.section-head>div{flex:1 1 360px;min-width:0}
.section-kicker{font-size:12px;font-weight:950;color:var(--af-accent-dark);letter-spacing:.16em;text-transform:uppercase}
.section-title{
  margin:10px 0 0;
  font-size:clamp(2.25rem,5vw,3.5rem);
  line-height:1.05;
  letter-spacing:-.045em;
  font-weight:950;
  overflow-wrap:anywhere;
}
.filter-nav{
  flex:0 1 auto;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:9px;
  max-width:100%;
}
.filter-pill{
  flex:0 0 auto;
  white-space:nowrap;
  border:1px solid var(--af-line);
  background:#fff;
  color:#475569;
  padding:10px 17px;
  border-radius:999px;
  font-size:14px;
  font-weight:800;
}
.filter-pill:hover,.filter-pill.active{background:var(--af-dark);border-color:var(--af-dark);color:#fff}
.posts-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:54px 28px;
}
.post-card{min-width:0;transition:transform .35s ease}
.post-card>a{display:block;height:100%}
.post-card:hover{transform:translateY(-6px)}
.post-image{
  position:relative;
  aspect-ratio:16/11;
  overflow:hidden;
  border-radius:24px;
  background:#e2e8f0;
}
.post-image img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.post-card:hover .post-image img{transform:scale(1.05)}
.post-category{
  position:absolute;
  left:16px;
  top:16px;
  max-width:calc(100% - 32px);
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.32);
  background:rgba(15,23,42,.82);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  color:#fff;
  font-size:11px;
  font-weight:950;
  letter-spacing:.08em;
  line-height:1.25;
  text-transform:uppercase;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.post-body{padding-top:22px}
.post-label{margin:0 0 11px;font-size:12px;font-weight:950;letter-spacing:.09em;text-transform:uppercase}
.violet{color:#7c3aed}.orange{color:#ea580c}.sky{color:#0284c7}.amber{color:#d97706}.teal{color:#0f766e}
.post-title{
  margin:0;
  font-size:clamp(1.3rem,2vw,1.5625rem);
  line-height:1.18;
  letter-spacing:-.025em;
  font-weight:950;
  overflow-wrap:anywhere;
}
.post-description{
  margin:12px 0 0;
  color:var(--af-muted);
  font-size:15px;
  line-height:1.7;
  font-weight:550;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.read-link{display:inline-flex;align-items:center;gap:8px;margin-top:18px;font-size:14px;font-weight:900}
.post-card:hover .read-link{color:var(--af-accent-dark)}
.filter-empty{text-align:center;color:var(--af-muted);font-weight:700;margin:32px 0 0}

/* Autor */
.author-section{padding:80px 0;background:#fff}
.author-card{
  display:grid;
  grid-template-columns:96px minmax(0,1fr) auto;
  align-items:center;
  gap:28px;
  padding:34px;
  border-radius:var(--radius-lg);
  background:var(--af-light);
  border:1px solid var(--af-line);
  box-shadow:var(--shadow-sm);
}
.author-photo{
  width:96px;
  height:96px;
  border-radius:50%;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--af-line);
  box-shadow:var(--shadow-sm);
}
.author-photo img{width:100%;height:100%;object-fit:cover}
.author-copy{min-width:0}
.author-copy span{font-size:12px;color:var(--af-accent-dark);font-weight:950;letter-spacing:.14em;text-transform:uppercase}
.author-copy h2{margin:8px 0 0;font-size:clamp(1.65rem,3vw,1.875rem);line-height:1.15;letter-spacing:-.025em;overflow-wrap:anywhere}
.author-copy p{margin:12px 0 0;color:var(--af-muted);line-height:1.7;font-weight:550}
.outline-btn{border:1px solid #cbd5e1;background:#fff;color:var(--af-dark)}
.outline-btn:hover{border-color:var(--af-dark)}

/* CTA */
.cta-section{padding:0 0 110px;background:#fff}
.cta-box{
  position:relative;
  overflow:hidden;
  padding:76px 34px;
  border-radius:var(--radius-lg);
  background:var(--af-dark);
  text-align:center;
  box-shadow:var(--shadow-xl);
}
.cta-box::before,.cta-box::after{content:"";position:absolute;border-radius:50%;filter:blur(95px);pointer-events:none}
.cta-box::before{width:300px;height:300px;left:-100px;top:-120px;background:rgba(129,140,248,.28)}
.cta-box::after{width:320px;height:320px;right:-80px;bottom:-150px;background:rgba(139,92,246,.22)}
.cta-inner{position:relative;z-index:1;max-width:760px;margin:auto}
.cta-mini{
  display:inline-flex;
  max-width:100%;
  padding:8px 13px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05);
  color:#cbd5e1;
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.cta-inner h2{
  margin:20px 0 0;
  color:#fff;
  font-size:clamp(2.2rem,5vw,3.625rem);
  line-height:1.05;
  letter-spacing:-.045em;
  font-weight:950;
  overflow-wrap:anywhere;
}
.cta-inner p{max-width:660px;margin:20px auto 0;color:#94a3b8;font-size:18px;line-height:1.7;font-weight:550}
.cta-actions{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:30px}

/* Footer */
.site-footer{padding:64px 0 28px;background:var(--af-dark);color:#fff;border-top:1px solid #1e293b}
.footer-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(160px,1fr) minmax(180px,1fr);gap:50px}
.footer-grid>div{min-width:0}
.footer-logo{width:150px;filter:brightness(0) invert(1);opacity:.8}
.footer-about{max-width:450px;margin-top:18px;color:#94a3b8;font-size:14px;line-height:1.7;font-weight:550}
.footer-col h3{margin:0;font-size:13px;letter-spacing:.12em;text-transform:uppercase}
.footer-col ul{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:11px}
.footer-col a,.footer-col span{color:#94a3b8;font-size:14px;font-weight:550;overflow-wrap:anywhere}
.footer-col a:hover{color:#fff}
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:12px 20px;
  margin-top:44px;
  padding-top:24px;
  border-top:1px solid #1e293b;
  color:#64748b;
  font-size:14px;
  font-weight:550;
}
.footer-bottom p{margin:0}

/* Focus */
a:focus-visible,button:focus-visible{outline:3px solid rgba(129,140,248,.5);outline-offset:4px}

/* Portátiles y tablets grandes */
@media (max-width:1100px){
  .desktop-nav{gap:16px}
  .desktop-nav a{font-size:13px}
  .nav-cta{padding:11px 16px}
  .posts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .featured-content{padding:48px}
  .author-card{grid-template-columns:96px minmax(0,1fr)}
  .author-card .outline-btn{grid-column:2;justify-self:start}
}

/* Tablets */
@media (max-width:860px){
  :root{--header-height:72px}
  .desktop-nav{display:none}
  .menu-btn{display:grid;place-items:center}
  .nav-wrap{min-height:var(--header-height)}
  .section-head{align-items:flex-start;flex-direction:column}
  .section-head>div{flex-basis:auto;width:100%}
  .filter-nav{width:100%;justify-content:flex-start}
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px}
  .footer-grid>div:first-child{grid-column:1/-1}
}

/* Móviles */
@media (max-width:640px){
  :root{--radius-lg:22px}
  .container{width:min(calc(100% - 24px),var(--container))}
  .brand-logo{width:132px}
  .blog-intro{padding:116px 0 58px}
  .blog-intro::after{width:280px;height:280px;right:-150px;top:90px;filter:blur(80px)}
  .eyebrow{padding:8px 11px;font-size:10px;letter-spacing:.12em}
  .blog-intro h1{margin-top:20px;font-size:clamp(2.15rem,11vw,3.25rem);line-height:1.06;letter-spacing:-.04em}
  .blog-intro p{margin-top:18px;font-size:1rem;line-height:1.65}

  .featured-section{padding-bottom:64px}
  .featured-card,.featured-content{min-height:540px}
  .featured-content{padding:26px 22px}
  .featured-overlay{background:linear-gradient(0deg,rgba(15,23,42,.99) 0%,rgba(15,23,42,.88) 60%,rgba(15,23,42,.38) 100%)}
  .badges{gap:8px;margin-bottom:16px}
  .badge{padding:7px 10px;font-size:10px;letter-spacing:.1em}
  .featured-content h2{font-size:clamp(2rem,10vw,3rem);line-height:1.08}
  .featured-content p{margin-top:16px;font-size:16px;line-height:1.6}
  .featured-actions{align-items:stretch;gap:12px;margin-top:22px}
  .featured-actions .primary-btn{width:100%}
  .featured-meta{width:100%;font-size:13px}

  .posts-section{padding:64px 0}
  .section-head{gap:20px;margin-bottom:34px}
  .section-title{font-size:clamp(2rem,10vw,2.75rem)}
  .filter-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .filter-pill{width:100%;padding:11px 10px;text-align:center;font-size:13px}
  .posts-grid{grid-template-columns:1fr;gap:44px}
  .post-image{border-radius:18px}
  .post-body{padding-top:18px}
  .post-title{font-size:1.4rem}

  .author-section{padding:64px 0}
  .author-card{display:block;padding:24px}
  .author-photo{width:84px;height:84px;margin-bottom:18px}
  .author-copy h2{font-size:1.65rem}
  .author-card .outline-btn{width:100%;margin-top:22px}

  .cta-section{padding-bottom:72px}
  .cta-box{padding:52px 20px}
  .cta-mini{font-size:10px;letter-spacing:.1em}
  .cta-inner h2{font-size:clamp(2rem,10vw,2.8rem);line-height:1.08}
  .cta-inner p{font-size:16px;line-height:1.65}
  .cta-actions{align-items:stretch}
  .cta-actions .primary-btn,.cta-actions .secondary-btn{width:100%}

  .site-footer{padding-top:52px}
  .footer-grid{grid-template-columns:1fr;gap:34px}
  .footer-grid>div:first-child{grid-column:auto}
  .footer-bottom{flex-direction:column}

  .whatsapp-float{right:14px;bottom:14px;width:54px;height:54px}
  .whatsapp-float svg{width:25px;height:25px}
}

/* Móviles pequeños */
@media (max-width:400px){
  .container{width:min(calc(100% - 20px),var(--container))}
  .filter-nav{grid-template-columns:1fr}
  .featured-card,.featured-content{min-height:510px}
  .featured-content{padding:22px 18px}
  .post-category{left:12px;top:12px;max-width:calc(100% - 24px);font-size:10px}
  .author-card{padding:22px}
  .cta-box{padding:46px 16px}
}

/* Dispositivos con poco alto */
@media (max-height:560px) and (max-width:860px){
  .mobile-nav{max-height:calc(100vh - var(--header-height))}
  .mobile-nav a{padding:9px 2px;font-size:15px}
}

/* Accesibilidad y rendimiento */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}