/* ══════════════════════════════════════════════════════════
   Blog — Tu Asesor Mendoza
   Estilos compartidos por el índice y los artículos.
   ══════════════════════════════════════════════════════════ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --navy:#0D2A4A;--navy-900:#061828;--navy-700:#12365C;--navy-mid:#1A4A7A;
  --gold:#F0C040;--gold-bright:#FFD24A;
  --ink:#121F2E;--tmid:#4A6080;--tlight:#A8C0D6;
  --off:#F4F7FA;--line:#E2EAF2;--wa:#25D366;
  --r:16px;--r-pill:999px;
  --sh-1:0 1px 2px rgba(13,42,74,.06),0 2px 8px rgba(13,42,74,.05);
  --sh-2:0 2px 6px rgba(13,42,74,.07),0 12px 28px rgba(13,42,74,.09);
}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:'Poppins',system-ui,-apple-system,sans-serif;
  background:var(--off);color:var(--ink);font-size:16px;line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto}
a:focus-visible,button:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:5px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}}

/* ── Cabecera ─────────────────────────────────────────── */
.site-hdr{
  position:sticky;top:0;z-index:50;background:rgba(9,29,52,.94);
  backdrop-filter:saturate(160%) blur(14px);-webkit-backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid rgba(255,255,255,.09);
}
.hdr-inner{
  max-width:1120px;margin:0 auto;padding:.7rem clamp(1.1rem,4vw,2rem);
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.brand img{height:40px;width:auto;object-fit:contain;display:block}
.hdr-right{display:flex;align-items:center;gap:10px}
.lang-toggle{display:flex;align-items:center;gap:3px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);border-radius:var(--r-pill);padding:4px}
.lang-btn{font-family:inherit;font-size:12px;font-weight:700;color:rgba(255,255,255,.6);padding:5px 12px;border-radius:var(--r-pill);cursor:pointer;border:none;background:transparent}
.lang-btn:hover{color:#fff}
.lang-btn.active{background:var(--gold);color:var(--navy)}
.hdr-cta{
  display:inline-flex;align-items:center;background:var(--gold);color:var(--navy);
  border-radius:var(--r-pill);padding:10px 18px;font-size:14px;font-weight:800;text-decoration:none;
}
.hdr-cta:hover{background:var(--gold-bright)}
@media(max-width:600px){.hdr-cta{display:none}}

/* ── Portada del blog ─────────────────────────────────── */
.blog-hero{
  background:var(--navy);color:#fff;padding:clamp(2.5rem,7vw,4.5rem) clamp(1.1rem,4vw,2rem);
  text-align:center;position:relative;isolation:isolate;overflow:hidden;
}
.blog-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(90% 80% at 50% 0%,rgba(240,192,64,.14),transparent 62%)}
.eyebrow{
  display:inline-block;background:rgba(240,192,64,.13);border:1px solid rgba(240,192,64,.34);
  border-radius:var(--r-pill);padding:6px 16px;font-size:12px;font-weight:700;color:var(--gold);
  letter-spacing:1.4px;text-transform:uppercase;margin-bottom:1rem;
}
.blog-hero h1{font-size:clamp(28px,5.4vw,44px);font-weight:900;line-height:1.1;letter-spacing:-.025em;margin-bottom:.7rem;text-wrap:balance}
.blog-hero p{font-size:clamp(15px,2.3vw,18px);color:rgba(200,220,238,.88);max-width:56ch;margin:0 auto;line-height:1.65}

/* ── Índice de artículos ──────────────────────────────── */
.blog-list{max-width:900px;margin:0 auto;padding:clamp(2.5rem,6vw,4rem) clamp(1.1rem,4vw,2rem)}
.post-card{
  display:block;background:#fff;border:1px solid var(--line);border-radius:var(--r);
  padding:1.7rem;margin-bottom:1.2rem;text-decoration:none;color:inherit;box-shadow:var(--sh-1);
  transition:box-shadow .2s,transform .2s,border-color .2s;
}
.post-card:hover{box-shadow:var(--sh-2);transform:translateY(-3px);border-color:#CBDCEC}
.post-tag{
  display:inline-block;background:#EAF1FB;color:var(--navy-mid);border-radius:var(--r-pill);
  padding:4px 12px;font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;margin-bottom:.8rem;
}
.post-tag.urgente{background:#FDECEC;color:#B3261E}
.post-card h2{font-size:clamp(19px,3vw,25px);font-weight:800;color:var(--navy);line-height:1.25;margin-bottom:.5rem;letter-spacing:-.015em}
.post-card p{font-size:15px;color:var(--tmid);line-height:1.6;margin-bottom:.9rem}
.post-meta{font-size:13px;color:var(--tmid);display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.post-link{color:var(--navy-mid);font-weight:700;font-size:14px}

/* ── Artículo ─────────────────────────────────────────── */
.article{max-width:740px;margin:0 auto;padding:clamp(2rem,5vw,3.5rem) clamp(1.1rem,4vw,2rem) 4rem}
.breadcrumb{font-size:13px;color:var(--tmid);margin-bottom:1.6rem}
.breadcrumb a{color:var(--navy-mid);text-decoration:none;font-weight:600}
.breadcrumb a:hover{text-decoration:underline}

.article h2{
  font-size:clamp(21px,3.4vw,29px);font-weight:800;color:var(--navy);
  line-height:1.25;letter-spacing:-.02em;margin:2.6rem 0 .9rem;
}
.article h3{font-size:clamp(17px,2.6vw,21px);font-weight:700;color:var(--navy);line-height:1.3;margin:1.8rem 0 .6rem}
.article p{font-size:17px;line-height:1.75;margin-bottom:1.1rem;color:#22303F}
.article strong{color:var(--navy);font-weight:700}
.article ul,.article ol{margin:0 0 1.2rem 1.3rem;display:flex;flex-direction:column;gap:.55rem}
.article li{font-size:17px;line-height:1.7;color:#22303F}
.article a{color:var(--navy-mid);font-weight:600}

.lead{font-size:19px!important;line-height:1.7;color:var(--tmid)!important;margin-bottom:1.8rem}

.callout{
  background:#FFF8E6;border:1px solid rgba(240,192,64,.55);border-left:5px solid var(--gold);
  border-radius:0 12px 12px 0;padding:1.2rem 1.4rem;margin:1.8rem 0;
}
.callout.alerta{background:#FDECEC;border-color:#F5C2C0;border-left-color:#C0392B}
.callout p{font-size:16px;margin-bottom:0}
.callout p+p{margin-top:.7rem}
.callout-lbl{display:block;font-size:12px;font-weight:800;letter-spacing:1.1px;text-transform:uppercase;color:#8A6200;margin-bottom:.45rem}
.callout.alerta .callout-lbl{color:#B3261E}

.tabla-wrap{overflow-x:auto;margin:1.6rem 0;-webkit-overflow-scrolling:touch}
table{border-collapse:collapse;width:100%;min-width:460px;font-size:15px;background:#fff;border-radius:12px;overflow:hidden;box-shadow:var(--sh-1)}
th{background:var(--navy);color:#fff;text-align:left;padding:12px 14px;font-size:13px;font-weight:700;letter-spacing:.3px}
td{padding:12px 14px;border-top:1px solid var(--line);color:#22303F;line-height:1.5;vertical-align:top}
tr:nth-child(even) td{background:#FAFCFE}

.cta-box{
  background:linear-gradient(135deg,var(--navy-700),var(--navy));border-radius:var(--r);
  padding:2rem 1.7rem;text-align:center;margin:2.8rem 0 1rem;
}
.cta-box h3{color:#fff;font-size:clamp(19px,3vw,24px);font-weight:800;margin-bottom:.5rem;line-height:1.25}
.cta-box p{color:rgba(200,220,238,.88);font-size:15px;margin-bottom:1.4rem}
.btn-wa{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;background:var(--wa);color:#fff;
  border-radius:var(--r-pill);padding:15px 28px;font-size:16px;font-weight:800;text-decoration:none;
  box-shadow:0 6px 22px rgba(37,211,102,.4);transition:background .15s,transform .15s;
}
.btn-wa:hover{background:#1EBE59;transform:translateY(-2px)}
.cta-alt{display:block;margin-top:.9rem;font-size:14px;color:var(--gold);text-decoration:none;font-weight:600}

.fuentes{background:#fff;border:1px solid var(--line);border-radius:12px;padding:1.3rem 1.5rem;margin-top:2.5rem}
.fuentes h3{font-size:14px;text-transform:uppercase;letter-spacing:1.1px;color:var(--tmid);margin:0 0 .7rem}
.fuentes ul{margin-left:1.1rem;gap:.4rem}
.fuentes li{font-size:14px;line-height:1.55}

.aviso-legal{font-size:13px;color:var(--tmid);font-style:italic;line-height:1.65;margin-top:2rem;padding-top:1.3rem;border-top:1px solid var(--line)}

/* ── Pie ──────────────────────────────────────────────── */
.footer{background:var(--navy-900);padding:2.5rem clamp(1.1rem,4vw,2rem) 1.8rem;text-align:center}
.footer img{height:44px;width:auto;margin:0 auto 14px;display:block;opacity:.95}
.footer .fc{font-size:18px;color:var(--gold);font-weight:800;text-decoration:none;display:inline-block;margin-bottom:4px}
.footer .fw{font-size:14px;color:var(--tlight)}
.footer-links{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;margin:1.4rem 0}
.footer-links a{font-size:13px;color:rgba(168,192,214,.7);text-decoration:none}
.footer-links a:hover{color:var(--gold)}
.footer-disclaimer{font-size:11px;color:rgba(168,192,214,.5);line-height:1.65;max-width:640px;margin:1rem auto 0;font-style:italic}
