/* ═══════════════════════════════════════════════════════════
   HOSCON BLOG — shared styles for blog/index.html + blog/posts/*.html
   Matches the main site design system (Sora / DM Sans, navy + blue + cyan).
   Editing this file only affects the blog, never the main website.
   ═══════════════════════════════════════════════════════════ */
:root{--blue:#1565A8;--cyan:#22D3EE;--navy:#103D5E;--navy-deep:#0C2D48;--ink:#0d1b2a;--white:#fff;--g100:#F7F9FC;--g200:#EEF1F6;--g500:#6B7280;--g700:#374151;--off-white:#F5F8FE;--green:#2E8B3C;--gold:#F5A623;--dm:'DM Sans',system-ui,sans-serif;--sora:'Sora',system-ui,sans-serif;--nav-h:64px;--wrap:1120px}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--dm);color:var(--ink);background:var(--white);line-height:1.6;overflow-x:hidden;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font-family:inherit;cursor:pointer;border:none;background:none}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}

/* ── NAV ── */
.nav{position:sticky;top:0;z-index:200;height:var(--nav-h);background:rgba(255,255,255,.94);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(13,27,42,.06)}
.nav-inner{max-width:var(--wrap);height:100%;margin:0 auto;padding:0 20px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.nav-logo{height:32px;width:auto}
.nav-links{display:flex;align-items:center;gap:26px;font-family:var(--sora);font-size:.8rem;font-weight:500}
.nav-links a{color:var(--g700);transition:color .2s}
.nav-links a:hover,.nav-links a.active{color:var(--blue)}
.nav-links a.active{font-weight:700}
.nav-cta{padding:8px 20px;border-radius:99px;background:var(--blue);color:var(--white)!important;font-weight:600}
.nav-btn{display:none;width:40px;height:40px;border-radius:10px;background:var(--off-white);align-items:center;justify-content:center}
.nav-btn svg{width:20px;height:20px;stroke:var(--ink);stroke-width:2;fill:none}
@media(max-width:820px){
  .nav-btn{display:flex}
  .nav-links{position:fixed;top:var(--nav-h);left:0;right:0;flex-direction:column;align-items:stretch;gap:4px;padding:16px 20px 24px;background:var(--white);border-bottom:1px solid var(--g200);box-shadow:0 12px 32px rgba(13,27,42,.08);transform:translateY(-130%);transition:transform .3s}
  .nav-links.open{transform:none}
  .nav-links a{padding:12px 4px;border-bottom:1px solid var(--g200);font-size:.95rem}
  .nav-cta{text-align:center;margin-top:10px;border-bottom:0!important}
}

/* ── BLOG HERO ── */
.b-hero{background:linear-gradient(135deg,var(--navy-deep) 0%,var(--navy) 60%,#155B8A 100%);color:#fff;padding:64px 0 56px;position:relative;overflow:hidden}
.b-hero::after{content:'';position:absolute;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(34,211,238,.18),transparent 70%);top:-160px;right:-120px;pointer-events:none}
.b-label{display:inline-block;padding:5px 14px;border-radius:99px;background:rgba(34,211,238,.12);border:1px solid rgba(34,211,238,.25);color:var(--cyan);font-family:var(--sora);font-size:.7rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;margin-bottom:16px}
.b-hero h1{font-family:var(--sora);font-size:clamp(1.9rem,4.5vw,3rem);font-weight:800;line-height:1.15;max-width:720px}
.b-hero p{margin-top:14px;color:rgba(255,255,255,.78);font-size:1.02rem;max-width:620px}
.b-search{margin-top:28px;max-width:520px;position:relative}
.b-search input{width:100%;padding:14px 18px 14px 46px;border-radius:14px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;font-family:var(--dm);font-size:.95rem;outline:none;transition:border-color .2s,background .2s}
.b-search input::placeholder{color:rgba(255,255,255,.55)}
.b-search input:focus{border-color:var(--cyan);background:rgba(255,255,255,.12)}
.b-search svg{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:18px;height:18px;stroke:rgba(255,255,255,.6);fill:none;stroke-width:2}

/* ── FILTER CHIPS ── */
.b-filters{display:flex;gap:8px;flex-wrap:wrap;padding:28px 0 8px}
.b-chip{padding:8px 16px;border-radius:99px;border:1px solid var(--g200);background:var(--white);font-family:var(--sora);font-size:.76rem;font-weight:600;color:var(--g700);transition:all .2s}
.b-chip:hover{border-color:var(--blue);color:var(--blue)}
.b-chip.active{background:var(--blue);border-color:var(--blue);color:#fff}

/* ── POST CARDS ── */
.b-list{padding:20px 0 64px}
.b-featured{display:grid;grid-template-columns:1.15fr 1fr;border:1px solid var(--g200);border-radius:20px;overflow:hidden;margin-bottom:28px;background:var(--white);transition:box-shadow .25s,transform .25s}
.b-featured:hover{box-shadow:0 12px 40px rgba(13,27,42,.08);transform:translateY(-2px)}
.b-featured .b-cover{min-height:280px;height:100%}
.b-featured .b-body{padding:32px 30px;display:flex;flex-direction:column;justify-content:center}
.b-featured h2{font-family:var(--sora);font-size:clamp(1.3rem,2.4vw,1.75rem);font-weight:700;line-height:1.25;margin:10px 0 12px}
.b-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px}
.b-card{display:flex;flex-direction:column;border:1px solid var(--g200);border-radius:18px;overflow:hidden;background:var(--white);transition:box-shadow .25s,transform .25s}
.b-card:hover{box-shadow:0 10px 32px rgba(13,27,42,.08);transform:translateY(-2px)}
.b-card .b-cover{height:180px}
.b-card .b-body{padding:20px 20px 22px;display:flex;flex-direction:column;flex:1}
.b-card h3{font-family:var(--sora);font-size:1.05rem;font-weight:700;line-height:1.35;margin:8px 0 8px}
.b-cover{background:linear-gradient(135deg,var(--navy) 0%,var(--blue) 100%);display:flex;align-items:center;justify-content:center;font-size:3.2rem;overflow:hidden}
.b-cover img{width:100%;height:100%;object-fit:cover}
.b-cat{display:inline-block;align-self:flex-start;padding:3px 10px;border-radius:99px;background:rgba(21,101,168,.08);color:var(--blue);font-family:var(--sora);font-size:.66rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.b-excerpt{color:var(--g700);font-size:.9rem;line-height:1.6;flex:1}
.b-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;font-size:.76rem;color:var(--g500)}
.b-meta span+span::before{content:'·';margin-right:10px}
.b-more{margin-top:14px;font-family:var(--sora);font-size:.8rem;font-weight:600;color:var(--blue)}
.b-empty{text-align:center;padding:56px 20px;color:var(--g500);border:1px dashed var(--g200);border-radius:18px}
.b-empty strong{display:block;font-family:var(--sora);color:var(--ink);font-size:1.05rem;margin-bottom:6px}
@media(max-width:760px){
  .b-featured{grid-template-columns:1fr}
  .b-featured .b-cover{min-height:190px}
  .b-featured .b-body{padding:22px 20px 24px}
  .b-grid{grid-template-columns:1fr}
  .b-hero{padding:44px 0 40px}
}

/* ── CTA (lead capture buttons) ── */
.b-cta{background:linear-gradient(180deg,#F5F8FE 0%,#E8F0FE 100%);padding:56px 0}
.b-cta-box{max-width:620px;margin:0 auto;text-align:center}
.b-cta-box h2{font-family:var(--sora);font-size:clamp(1.4rem,3vw,1.9rem);font-weight:800;margin-bottom:8px}
.b-cta-box>p{color:var(--g700);margin-bottom:22px}
.lc-btns{display:flex;flex-direction:column;gap:12px;max-width:560px;margin:0 auto}
.lc-btn{display:flex;align-items:center;gap:14px;padding:16px 20px;border-radius:14px;text-align:left;background:var(--white);border:1px solid rgba(13,27,42,.1);color:var(--ink);box-shadow:0 2px 12px rgba(13,27,42,.04);transition:transform .2s,box-shadow .2s,border-color .2s}
.lc-btn:hover,.lc-btn:focus-visible{transform:translateY(-2px);border-color:var(--blue);box-shadow:0 6px 24px rgba(21,101,168,.12)}
.lc-btn:first-child{background:var(--blue);border-color:var(--blue);color:#fff}
.lc-ico{font-size:1.6rem;line-height:1;flex-shrink:0}
.lc-txt{flex:1;display:flex;flex-direction:column;gap:2px}
.lc-txt strong{font-family:var(--sora);font-size:1rem;font-weight:700}
.lc-txt small{font-size:.8rem;opacity:.75}
.lc-arrow{font-size:1.2rem;flex-shrink:0;transition:transform .2s}
.lc-btn:hover .lc-arrow{transform:translateX(4px)}
.lc-note{font-size:.8rem;margin-top:14px;color:var(--g500)}

/* ── ARTICLE (single post) ── */
.a-head{background:linear-gradient(135deg,var(--navy-deep) 0%,var(--navy) 70%,#155B8A 100%);color:#fff;padding:48px 0 44px}
.a-head .wrap{max-width:820px}
.a-crumb{font-size:.78rem;color:rgba(255,255,255,.6);margin-bottom:18px}
.a-crumb a{color:rgba(255,255,255,.8)}
.a-crumb a:hover{color:#fff;text-decoration:underline}
.a-head .b-cat{background:rgba(34,211,238,.14);color:var(--cyan)}
.a-head h1{font-family:var(--sora);font-size:clamp(1.7rem,4.2vw,2.6rem);font-weight:800;line-height:1.18;margin:14px 0 14px}
.a-head .b-meta{color:rgba(255,255,255,.65);margin-top:0}
.a-cover{max-width:820px;margin:-8px auto 0;padding:0 20px}
.a-cover img{border-radius:18px;width:100%;max-height:440px;object-fit:cover;margin-top:28px}
.article{max-width:740px;margin:0 auto;padding:40px 20px 24px;font-size:1.04rem;line-height:1.8;color:#1f2937}
.article>*+*{margin-top:1.1em}
.article h2{font-family:var(--sora);font-size:1.45rem;font-weight:700;line-height:1.3;color:var(--ink);margin-top:1.9em}
.article h3{font-family:var(--sora);font-size:1.15rem;font-weight:700;color:var(--ink);margin-top:1.6em}
.article a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}
.article ul,.article ol{padding-left:1.3em}
.article li+li{margin-top:.4em}
.article blockquote{border-left:4px solid var(--cyan);background:var(--off-white);padding:14px 18px;border-radius:0 12px 12px 0;color:var(--g700);font-style:italic}
.article img{border-radius:14px;margin:1.6em auto}
.article figure figcaption{font-size:.82rem;color:var(--g500);text-align:center;margin-top:-1em}
.article .callout{background:#FFFBEB;border:1px solid #FDE68A;border-radius:14px;padding:16px 18px;font-size:.96rem}
.article .tbl{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--g200);border-radius:14px}
.article table{width:100%;min-width:560px;border-collapse:collapse;font-size:.86rem;line-height:1.5}
.article th{background:var(--navy);color:#fff;text-align:left;padding:10px 12px;font-family:var(--sora);font-size:.74rem;font-weight:600}
.article td{padding:9px 12px;border-top:1px solid var(--g200);color:var(--g700)}
.article tr:nth-child(even) td{background:var(--g100)}
.a-share{max-width:740px;margin:0 auto;padding:8px 20px 40px;display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:.82rem;color:var(--g500)}
.a-share a{padding:7px 14px;border-radius:99px;border:1px solid var(--g200);font-weight:600;color:var(--g700);transition:all .2s}
.a-share a:hover{border-color:var(--blue);color:var(--blue)}
.a-related{padding:48px 0 64px;border-top:1px solid var(--g200)}
.a-related h2{font-family:var(--sora);font-size:1.3rem;font-weight:700;margin-bottom:20px}

/* ── FOOTER (same look as main site) ── */
.footer{background:linear-gradient(180deg,#0B2537 0%,#0d1b2a 100%);color:rgba(255,255,255,.8);font-size:.84rem}
.ft-inner{max-width:560px;margin:0 auto;padding:40px 20px 28px;text-align:center}
.ft-col h4{font-family:var(--sora);font-size:.68rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.4);margin-bottom:14px}
.ft-contact{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:10px;font-size:.8rem;color:rgba(255,255,255,.65)}
.ft-contact a{color:rgba(255,255,255,.7)}
.ft-contact a:hover{color:#fff}
.ft-contact svg{width:14px;height:14px;fill:var(--cyan);flex-shrink:0}
.ft-socials{display:flex;justify-content:center;gap:6px;margin-top:14px}
.ft-socials a{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);transition:all .2s}
.ft-socials a:hover{background:rgba(34,211,238,.12);border-color:rgba(34,211,238,.2)}
.ft-socials a svg{width:14px;height:14px;fill:rgba(255,255,255,.5)}
.ft-socials a:hover svg{fill:#fff}
.ft-bottom{border-top:1px solid rgba(255,255,255,.06);padding:14px 20px;max-width:1180px;margin:0 auto;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px}
.ft-copy{font-size:.7rem;color:rgba(255,255,255,.35)}

/* ── WHATSAPP FAB ── */
.waf{position:fixed;bottom:20px;right:20px;width:52px;height:52px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(37,211,102,.35);z-index:150;transition:transform .2s}
.waf:hover{transform:scale(1.08)}
.waf svg{width:26px;height:26px;fill:#fff}
