/* ============================================================
   SISTEMA DE DISEÑO — FEPA Veterinaria
   Portal de noticias de salud animal.
   Paleta: teal/petróleo (marca) + dorado (acento) sobre fondo claro.
   ============================================================ */
:root{
  --paper:#F4F6F6;
  --bg:#FFFFFF;
  --ink:#1A1A1E;
  --ink-2:#4A4A52;
  --muted:#7E7E86;
  --line:#E6E4DE;
  --line-2:#F0EEE8;

  /* Tema NEGRO + DORADO (marca real FEPA). Se conservan los nombres --teal* por
     compatibilidad, pero ahora son negros/carbón. --gold = dorado del logo. */
  --teal:#16161A;       --teal-2:#0B0B0E;   --teal-3:#33343B;
  --gold:#C9A24B;       --gold-2:#9C7B2C;   --gold-bg:#F8F1DE;
  --teal-bg:#ECEAE3;
  --green:#1E9D54;      --green-bg:#E4F2E9;
  --amber:#E08A2B;      --amber-bg:#FBEFDD;
  --red:#D8413B;        --red-bg:#FBE8E7;
  --blue:#2E6FB0;       --blue-bg:#E6EEF7;

  --r:8px;
  --r-sm:5px;
  --maxw:1200px;
  --f-disp:"Poppins",-apple-system,Segoe UI,Roboto,sans-serif;
  --f-body:"Source Sans 3",-apple-system,Segoe UI,Roboto,sans-serif;
  --f-mono:"Source Sans 3",ui-monospace,monospace;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--f-body);color:var(--ink);background:var(--paper);line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
img{max-width:100%;display:block}
h1,h2,h3,h4,h5,.brand-name{font-family:var(--f-disp)}
::selection{background:var(--gold);color:#fff}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

.i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.brand-mark svg,.feat-fb .i,.ph-fb .i{fill:none;stroke:currentColor}

::-webkit-scrollbar{width:11px}
::-webkit-scrollbar-track{background:var(--line-2)}
::-webkit-scrollbar-thumb{background:#c6cdce;border:3px solid var(--line-2);border-radius:6px}
::-webkit-scrollbar-thumb:hover{background:var(--teal)}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 22px}
.mono{font-family:var(--f-mono)}

/* ================= TOP BAR ================= */
.topbar{background:var(--teal-2);color:#b9b7ae}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;height:34px}
.topbar .date{font-size:11.5px;letter-spacing:.03em;display:flex;align-items:center;gap:10px;text-transform:uppercase;font-weight:600}
.topbar .edi{display:inline-flex;align-items:center;gap:7px;color:#fff}
.topbar .sq{width:7px;height:7px;background:var(--gold);border-radius:2px}
.tb-tag{font-size:11px;color:#908e85;letter-spacing:.04em;text-transform:uppercase}

/* ================= NAV (barra de marca teal) ================= */
.nav{position:sticky;top:0;z-index:50;background:var(--teal);color:#fff;box-shadow:0 1px 0 rgba(0,0,0,.08);transition:box-shadow .25s}
.nav.scrolled{box-shadow:0 6px 22px rgba(0,0,0,.28)}
.nav .wrap{display:flex;align-items:center;gap:22px;height:74px}
.brand{display:flex;align-items:center;gap:12px;flex:none}
.brand-logo-img{height:34px;width:auto;display:block;max-width:60vw;object-fit:contain;object-position:left center}
.foot-brand .brand-logo-img{height:32px}
@media(max-width:760px){.brand-logo-img{height:30px}}
.brand-mark{width:50px;height:50px;border-radius:11px;flex:none;overflow:hidden;background:#0B0B0E;box-shadow:0 2px 8px rgba(0,0,0,.28)}
.brand-mark img{width:100%;height:100%;object-fit:cover}
.brand-txt{display:flex;flex-direction:column;line-height:1.05}
.brand-name{font-size:21px;font-weight:600;letter-spacing:-.01em;color:#fff}
.brand-name b{font-weight:800;color:var(--gold)}
.brand-tag{font-size:10.5px;color:#a8a69d;letter-spacing:.02em;margin-top:3px}
.nav-menu{flex:1}
.nav-menu ul{display:flex;list-style:none;gap:2px}
.nav-menu ul a{display:block;padding:10px 14px;font-size:14.5px;font-weight:600;color:#d9d7d0;position:relative;transition:color .2s;border-radius:6px}
.nav-menu ul a:hover{color:#fff}
.nav-menu ul a.active{color:#fff}
.nav-menu ul a.active::after{content:"";position:absolute;left:14px;right:14px;bottom:2px;height:3px;background:var(--gold);border-radius:2px}
.nav-r{display:flex;align-items:center;gap:8px;flex:none}
.burger{display:none;flex-direction:column;gap:4px;cursor:pointer;padding:9px;background:none;border:none}
.burger span{width:22px;height:2px;background:#fff;border-radius:2px}

/* ================= AD / PARTNER ================= */
.adslot{border:1px solid var(--line);border-radius:var(--r);background:#fafbfb;display:grid;place-items:center;text-align:center;color:#aeb6b9}
.adslot .lbl{font-family:var(--f-mono);font-size:10px;letter-spacing:.2em;text-transform:uppercase;font-weight:700}
.adslot .dim{font-family:var(--f-mono);font-size:11px;margin-top:4px;color:#c2c9cb}
.adslot.leader{height:90px;margin:22px auto 4px;max-width:760px}
.adslot.box{height:250px;width:100%}

/* ================= SECTION HEAD ================= */
.sec{padding:36px 0}
.sec-head{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.sec-head .bar{width:5px;height:20px;background:var(--gold);border-radius:3px}
.sec-head h2{font-size:18px;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
.sec-head .more{margin-left:auto;font-size:13px;font-weight:600;color:var(--teal-3);display:flex;align-items:center;gap:6px}
.sec-head .more .i{width:15px;height:15px;transition:transform .2s}
.sec-head .more:hover .i{transform:translateX(3px)}

/* etiqueta de categoría */
.tag{display:inline-flex;align-items:center;gap:6px;font-family:var(--f-mono);font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:5px 9px;border-radius:4px;color:#fff;background:var(--gold);line-height:1.1}
.tag.gold{background:var(--gold);color:#3d2a06}
.tag.teal{background:var(--teal-3)}
.tag.green{background:var(--green)}
.tag.amber{background:var(--amber)}
.tag.red{background:var(--red)}
.tag.blue{background:var(--blue)}

.meta-line{display:flex;align-items:center;gap:7px;font-family:var(--f-mono);font-size:12px;color:var(--muted);font-weight:500}
.meta-line.light{color:#dad8d1}
.meta-line .i{width:14px;height:14px;stroke-width:1.7}

/* placeholder de imagen */
.ph{position:relative;overflow:hidden;background:var(--line-2)}
.ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2}
.ph .ph-fb{position:absolute;inset:0;display:grid;place-items:center;z-index:1}
.ph .ph-fb .i{width:34%;max-width:58px;height:auto;stroke-width:1.3}
.ph.t-gold{background:var(--gold-bg)}  .ph.t-gold .ph-fb{color:var(--gold-2)}
.ph.t-teal{background:var(--teal-bg)}  .ph.t-teal .ph-fb{color:var(--teal-3)}
.ph.t-green{background:var(--green-bg)} .ph.t-green .ph-fb{color:var(--green)}
.ph.t-amber{background:var(--amber-bg)} .ph.t-amber .ph-fb{color:var(--amber)}
.ph.t-red{background:var(--red-bg)}    .ph.t-red .ph-fb{color:var(--red)}
.ph.t-blue{background:var(--blue-bg)}  .ph.t-blue .ph-fb{color:var(--blue)}

/* ================= PORTADA (2 columnas: main + sidebar continuo) ================= */
.home{padding:16px 0 8px}
.home-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;align-items:start}
.home-main{min-width:0}
.hero-top{display:grid;grid-template-columns:1.6fr 1fr;gap:20px;margin-bottom:32px}
.hero-top.solo{grid-template-columns:1fr}
.hero-top.solo .feature{min-height:480px}
.home-aside{display:flex;flex-direction:column;gap:18px;position:static}

/* feature grande */
.feature{position:relative;border-radius:var(--r);overflow:hidden;min-height:430px;display:flex;align-items:flex-end;background:var(--teal-2);box-shadow:0 8px 26px rgba(0,0,0,.12)}
.feature .hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.feature:hover .hero-img{transform:scale(1.045)}
.feature .feat-fb{position:absolute;inset:0;display:grid;place-items:center;z-index:1;color:rgba(255,255,255,.25)}
.feature .feat-fb .i{width:90px;height:90px}
.feature::after{content:"";position:absolute;inset:0;z-index:3;background:linear-gradient(to top,rgba(10,10,12,.95) 0%,rgba(10,10,12,.6) 45%,rgba(10,10,12,.05) 82%)}
.fc{position:relative;z-index:4;padding:30px;color:#fff;max-width:92%}
.kick{display:inline-flex;align-items:center;gap:7px;background:var(--gold);color:#3d2a06;font-family:var(--f-mono);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:6px 11px;border-radius:5px;margin-bottom:15px}
.kick .i{width:14px;height:14px;stroke-width:2;fill:#3d2a06;stroke:#3d2a06}
.feature h2{font-size:32px;line-height:1.12;font-weight:700;letter-spacing:-.02em;margin-bottom:12px}
.feature p{font-size:15px;line-height:1.55;color:#dbe6e8;margin-bottom:20px;max-width:92%}
.frow{display:flex;align-items:center;gap:18px;flex-wrap:wrap}

.btn{display:inline-flex;align-items:center;gap:9px;background:var(--gold);color:#3d2a06;font-family:var(--f-disp);font-weight:700;font-size:13.5px;padding:11px 18px;border-radius:8px;transition:background .2s,transform .15s;border:none;cursor:pointer}
.btn:hover{background:#e7a740;transform:translateY(-1px)}
.btn .i{width:16px;height:16px;stroke-width:2.2}
.btn .gly{width:16px;height:16px;fill:currentColor}
.btn-line{background:transparent;color:var(--teal);border:1px solid var(--teal)}
.btn-line:hover{background:var(--teal);color:#fff}

/* ---- estados "sin notas" (sitio en espera) ---- */
.empty-hero{background:var(--bg);border:1px solid var(--line);border-radius:var(--r);padding:48px 38px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;box-shadow:0 8px 26px rgba(0,0,0,.08)}
.empty-mark{width:84px;height:84px;border-radius:20px;overflow:hidden;background:#0B0B0E;margin-bottom:20px;box-shadow:0 4px 14px rgba(0,0,0,.2)}
.empty-mark img{width:100%;height:100%;object-fit:cover}
.empty-hero h2{font-size:30px;font-weight:700;letter-spacing:-.02em;line-height:1.15;margin:8px 0 12px}
.empty-hero p{font-size:15.5px;color:var(--ink-2);line-height:1.6;max-width:560px;margin-bottom:22px}
.empty-note{grid-column:1/-1;text-align:center;border:1px dashed var(--line);border-radius:var(--r);background:var(--bg);padding:54px 28px;display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:30px}
.empty-note .i{width:46px;height:46px;color:var(--gold);stroke-width:1.6;margin-bottom:8px}
.empty-note h3{font-size:21px;font-weight:700;letter-spacing:-.01em}
.empty-note p{font-size:15px;color:var(--ink-2);max-width:460px;margin:2px 0 14px}

/* columna media: 3 notas laterales — imagen grande, texto mínimo */
.hero-side{display:flex;flex-direction:column;gap:14px}
.side-item{display:flex;gap:12px;background:var(--bg);border:1px solid var(--line);border-radius:var(--r);padding:9px;transition:border-color .2s,box-shadow .2s,transform .15s;cursor:pointer}
.side-item:hover{border-color:var(--gold);box-shadow:0 6px 16px rgba(0,0,0,.08);transform:translateY(-2px)}
.side-item .thumb{width:172px;height:118px;flex:none;border-radius:6px}
.side-item .si-body{display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:0}
.side-item .si-body .tag{align-self:flex-start;font-size:9px;padding:3px 6px;letter-spacing:.04em}
.side-item .si-body .meta-line{display:none}
.side-item h3{font-size:13px;font-weight:600;line-height:1.25;letter-spacing:-.01em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.side-item:hover h3{color:var(--teal-3)}

/* columna derecha del hero */
.hero-aside{display:flex;flex-direction:column;gap:18px}

/* ================= LAYOUT (recientes + sidebar) ================= */
.layout{display:grid;grid-template-columns:1fr 322px;gap:32px;align-items:start}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.card{background:var(--bg);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s,border-color .2s;cursor:pointer}
.card:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(0,0,0,.12);border-color:var(--gold)}
.card .ph{height:215px}
.card .ph .tag{position:absolute;top:11px;left:11px;z-index:3}
.card .cbody{padding:15px 16px 17px;display:flex;flex-direction:column;gap:8px;flex:1}
.card h3{font-size:16.5px;font-weight:600;line-height:1.28;letter-spacing:-.01em;transition:color .2s;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card:hover h3{color:var(--teal-3)}
.card p{font-size:13px;color:var(--ink-2);line-height:1.5;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card .read{font-family:var(--f-mono);font-size:12px;font-weight:700;color:var(--gold-2);display:flex;align-items:center;gap:6px;padding-top:6px}
.card .read .i{width:14px;height:14px;transition:transform .2s}
.card:hover .read .i{transform:translateX(3px)}

/* ================= SIDEBAR / WIDGETS ================= */
.sidebar{display:flex;flex-direction:column;gap:18px;position:sticky;top:88px}
.widget{background:var(--bg);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.widget-h{display:flex;align-items:center;gap:9px;padding:13px 15px;font-family:var(--f-disp);font-weight:700;font-size:14px}
.widget-h .i{width:18px;height:18px;stroke-width:1.9}
.widget-h.gold{background:var(--gold);color:#3d2a06}
.widget-h.gold .i{stroke:#3d2a06;fill:none}
.widget-h.dark{background:var(--teal);color:#fff}
.widget-h.dark .i{stroke:var(--gold);fill:none}

/* listas rankeadas */
.ranklist{padding:6px}
.rank{display:flex;gap:11px;padding:9px 9px;align-items:center;transition:background .2s;cursor:pointer;border-radius:6px}
.rank:hover{background:var(--paper)}
.rank .num{font-family:var(--f-disp);font-size:18px;font-weight:800;color:var(--gold);flex:none;width:22px;text-align:center}
.rank .thumb{width:92px;height:72px;flex:none;border-radius:6px}
.rank .rk-body{min-width:0}
.rank h4{font-size:13px;font-weight:600;line-height:1.28;letter-spacing:-.01em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rank:hover h4{color:var(--teal-3)}
.rank small{font-size:11px;color:var(--muted);display:block;margin-top:2px}

/* Instagram widget COMPACTO (secundario) */
.ig-compact{background:var(--bg);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.igc-row{display:flex;align-items:center;gap:10px;padding:12px}
.igc-av{width:42px;height:42px;border-radius:50%;overflow:hidden;flex:none;background:var(--teal);padding:2px;background:linear-gradient(45deg,#f9ce5a,#d62976,#7a31c4)}
.igc-av img{width:100%;height:100%;object-fit:cover;border-radius:50%;border:2px solid var(--bg)}
.igc-info{min-width:0;flex:1}
.igc-info b{display:block;font-size:13.5px;font-weight:700;letter-spacing:-.01em}
.igc-info small{color:var(--muted);font-size:11px}
.igc-ic{flex:none}
.igc-ic .gly{width:20px;height:20px;fill:#C13584}
.ig-compact .ig-follow{margin:0 12px 12px}

/* Instagram widget (grande, ya no usado) */
.ig-card{background:var(--bg);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.ig-top{padding:18px 16px 14px;text-align:center}
.ig-avatar-ring{width:80px;height:80px;border-radius:50%;margin:0 auto 11px;padding:3px;background:linear-gradient(45deg,#f9ce5a,#d62976,#7a31c4)}
.ig-avatar{width:100%;height:100%;border-radius:50%;border:3px solid var(--bg);overflow:hidden;position:relative;background:var(--teal);display:grid;place-items:center}
.ig-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ig-name{font-weight:700;font-size:16px;letter-spacing:-.01em}
.ig-handle{font-family:var(--f-mono);font-size:12.5px;color:var(--muted);margin-top:3px;display:inline-block}
.ig-handle:hover{color:var(--gold-2)}
.ig-bio{font-size:12.5px;color:var(--ink-2);line-height:1.5;margin:10px 4px 2px}
.ig-stats{display:flex;border-top:1px solid var(--line-2);border-bottom:1px solid var(--line-2);margin-top:13px}
.ig-stats div{flex:1;text-align:center;padding:11px 4px}
.ig-stats div + div{border-left:1px solid var(--line-2)}
.ig-stats b{display:block;font-family:var(--f-disp);font-size:17px;font-weight:700}
.ig-stats span{font-family:var(--f-mono);font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.ig-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}
.ig-grid .gcell{aspect-ratio:1;position:relative;overflow:hidden;background:var(--line-2)}
.ig-grid .gcell img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .35s}
.ig-grid .gcell:hover img{transform:scale(1.08)}
.ig-follow{display:flex;align-items:center;justify-content:center;gap:8px;margin:12px;background:var(--teal);color:#fff;font-family:var(--f-disp);font-weight:700;font-size:13.5px;padding:11px;border-radius:8px;transition:background .2s}
.ig-follow:hover{background:var(--gold);color:#3d2a06}
.ig-follow svg{width:16px;height:16px;fill:currentColor}

/* tarjeta de redes compacta */
.social-mini .social-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:13px}
.social-mini .social-row a{display:flex;flex-direction:column;align-items:center;gap:6px;border:1px solid var(--line);border-radius:7px;padding:11px 6px;font-size:11px;font-weight:600;color:var(--ink-2);text-align:center;transition:border-color .2s,color .2s}
.social-mini .social-row a:hover{border-color:var(--gold);color:var(--teal-3)}
.social-mini .social-row a .gly{width:19px;height:19px;fill:var(--teal-3)}

/* ================= GUÍAS ================= */
.guides{background:var(--bg);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.guide-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.guide{background:var(--bg);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column;transition:border-color .2s,box-shadow .2s,transform .15s;cursor:pointer}
.guide:hover{border-color:var(--gold);box-shadow:0 10px 22px rgba(0,0,0,.1);transform:translateY(-3px)}
.guide-ph{height:172px}
.guide-ph .tag{position:absolute;top:10px;left:10px;z-index:3}
.guide:hover .guide-ph img{transform:scale(1.05)}
.guide-ph img{transition:transform .4s cubic-bezier(.2,.7,.2,1)}
.guide-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:9px;flex:1}
.guide h3{font-size:15.5px;font-weight:600;letter-spacing:-.01em;line-height:1.28;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.guide:hover h3{color:var(--teal-3)}
.guide .gtime{font-family:var(--f-mono);font-size:11px;color:var(--muted);display:flex;align-items:center;gap:6px;margin-top:auto;font-weight:600}
.guide .gtime .i{width:13px;height:13px;stroke-width:1.8}

/* ================= MÉTRICAS ================= */
.metrics{background:var(--teal);color:#fff;background-image:radial-gradient(circle at 12% 20%,rgba(255,255,255,.05),transparent 40%)}
.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.metric{padding:34px 18px;text-align:center;border-right:1px solid rgba(255,255,255,.1)}
.metric:last-child{border-right:none}
.metric b{font-family:var(--f-disp);font-size:64px;font-weight:800;letter-spacing:-.03em;color:#fff;line-height:1;display:block}
.metric b.b-247{font-size:42px}
.metric b .u{color:var(--gold);font-size:.42em;letter-spacing:0}
.metric span{font-family:var(--f-mono);font-size:11.5px;color:#a8a69d;margin-top:11px;display:block;letter-spacing:.03em;text-transform:uppercase;font-weight:600}

/* ================= NEWSLETTER ================= */
.news{background:var(--gold-bg);border-bottom:1px solid var(--line)}
.news .wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center;padding:46px 22px}
.news .nl-cross{display:inline-grid;place-items:center;width:46px;height:46px;border-radius:11px;background:var(--gold);color:#3d2a06;margin-bottom:15px}
.news .nl-cross svg{width:24px;height:24px;stroke:#3d2a06;fill:none}
.news h2{font-size:28px;font-weight:700;letter-spacing:-.02em;line-height:1.15;margin-bottom:11px}
.news p{font-size:15px;color:var(--ink-2);line-height:1.55}
.nl-form{display:flex;gap:9px}
.nl-form input{flex:1;border:1px solid var(--line);border-radius:8px;outline:none;padding:13px 14px;font-size:14px;font-family:var(--f-body);color:var(--ink);background:var(--bg);min-width:0}
.nl-form input:focus{border-color:var(--gold)}
.nl-note{font-family:var(--f-mono);font-size:11.5px;color:var(--ink-2);margin-top:12px;display:flex;align-items:center;gap:7px}
.nl-note .i{width:14px;height:14px;flex:none;stroke-width:1.7}

/* ================= FOOTER ================= */
footer{background:var(--teal);color:#b9b7ae;padding:50px 0 24px;border-top:4px solid var(--gold);margin-top:30px}
footer .brand-name{color:#fff}
.foot-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:34px;padding-bottom:30px;border-bottom:1px solid rgba(255,255,255,.1)}
.foot-brand .brand{margin-bottom:14px}
.foot-brand p{font-size:13.5px;line-height:1.65;margin-bottom:16px;max-width:330px}
.foot-soc{display:flex;gap:9px}
.foot-soc a{width:38px;height:38px;border:1px solid rgba(255,255,255,.16);border-radius:9px;display:grid;place-items:center;transition:background .2s,border-color .2s}
.foot-soc a:hover{background:var(--gold);border-color:var(--gold)}
.foot-soc a:hover svg{fill:#3d2a06}
.foot-soc svg{width:17px;height:17px;fill:#fff}
.foot-col h5{color:#fff;font-family:var(--f-mono);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;margin-bottom:14px}
.foot-col a{display:block;font-size:13.5px;padding:6px 0;transition:color .2s}
.foot-col a:hover{color:var(--gold)}
.foot-bot{display:flex;align-items:center;justify-content:space-between;padding-top:20px;font-family:var(--f-mono);font-size:11.5px;flex-wrap:wrap;gap:10px}
.foot-bot a:hover{color:var(--gold)}
.foot-refs{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;padding:18px 0 2px;font-size:13px}
.foot-refs .mono{color:#94928a;font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;font-weight:700}
.foot-refs a{color:#bdbbb2}
.foot-refs a:hover{color:var(--gold)}
.disclaimer{display:flex;gap:11px;align-items:flex-start;border:1px solid rgba(217,150,43,.35);background:rgba(217,150,43,.1);color:#e8d3ab;font-size:12.5px;border-radius:var(--r);padding:13px 15px;margin-top:24px;line-height:1.5}
.disclaimer .i{width:18px;height:18px;flex:none;margin-top:1px;color:var(--gold);stroke-width:1.9}

/* ================= PÁGINAS INTERIORES ================= */
.crumbs{display:flex;align-items:center;gap:8px;font-family:var(--f-mono);font-size:12px;color:var(--muted);padding:20px 0 0;flex-wrap:wrap;font-weight:600}
.crumbs a:hover{color:var(--gold-2)}
.crumbs .sep{color:#c2c9cb}

.note-head{padding:16px 0 20px}
.note-head h1{font-size:34px;font-weight:700;letter-spacing:-.02em;line-height:1.14;max-width:840px;margin:12px 0 14px}
.note-meta{display:flex;gap:18px;flex-wrap:wrap}

/* imagen de la nota: COMPLETA (caja 16:9 = imagen 1920×1080, sin recorte) y a ~75% (centrada) */
.note-hero{aspect-ratio:16/9;height:auto;max-width:75%;margin:0 auto 26px;border-radius:var(--r);box-shadow:0 10px 28px rgba(0,0,0,.12);background:#0B0B0E}
.note-hero img{object-fit:contain}
.note-layout{display:grid;grid-template-columns:minmax(0,1fr) 322px;gap:32px;align-items:start;padding-bottom:44px}

.prose{background:var(--bg);border:1px solid var(--line);border-radius:var(--r);padding:30px 34px 34px}
.prose .lead{font-size:17.5px;line-height:1.6;color:var(--ink);font-weight:500}
.prose h2{font-size:21px;font-weight:700;letter-spacing:-.01em;margin:28px 0 10px;padding-top:18px;border-top:1px solid var(--line-2);display:flex;align-items:center;gap:10px}
.prose h2 .hbar{width:5px;height:18px;background:var(--gold);flex:none;border-radius:3px}
.prose p{font-size:15.5px;color:var(--ink-2);line-height:1.75;margin:10px 0}
.prose ol{list-style:none;counter-reset:paso;margin:14px 0}
.prose ol li{counter-increment:paso;position:relative;padding:11px 0 11px 48px;font-size:15.5px;color:var(--ink-2);line-height:1.6;border-bottom:1px solid var(--line-2)}
.prose ol li:last-child{border-bottom:none}
.prose ol li::before{content:counter(paso);position:absolute;left:0;top:10px;font-family:var(--f-disp);font-size:13px;font-weight:700;color:#fff;background:var(--teal);border-radius:6px;width:28px;height:28px;display:grid;place-items:center}
.prose ul{list-style:none;margin:12px 0}
.prose ul li{position:relative;padding:6px 0 6px 24px;font-size:15.5px;color:var(--ink-2);line-height:1.65}
.prose ul li::before{content:"";position:absolute;left:3px;top:13px;width:8px;height:8px;background:var(--gold);border-radius:50%}
.prose b,.prose strong{color:var(--ink)}

.alert{display:flex;gap:12px;align-items:flex-start;border:1px solid rgba(216,65,59,.3);border-left:4px solid var(--red);background:var(--red-bg);border-radius:var(--r);padding:15px 17px;margin:24px 0 6px;font-size:14px;color:#8a2e2a;line-height:1.6}
.alert .i{width:19px;height:19px;flex:none;color:var(--red);margin-top:2px;stroke-width:1.9}
.alert b{color:#9c2520}

.cta-social{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}
.cta-social a{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;transition:border-color .2s,transform .15s}
.cta-social a:hover{border-color:var(--gold);transform:translateY(-2px)}
.cta-social .cs-ic{width:40px;height:40px;border-radius:9px;display:grid;place-items:center;flex:none}
.cta-social .cs-ic.ig{background:linear-gradient(45deg,#f9ce5a,#d62976,#7a31c4)}
.cta-social .cs-ic.fb{background:#1877F2}
.cta-social .cs-ic.tk{background:#010101}
.cta-social .cs-ic.yt{background:#FF0000}
.cta-social .cs-ic.th{background:#000}
.cta-social .cs-ic.x{background:#000}
.cta-social .cs-ic.teal{background:var(--teal)}
.cta-social .cs-ic svg{width:20px;height:20px;fill:#fff}
.cta-social .cs-ic .i{stroke:#fff;width:20px;height:20px}
.cta-social b{display:block;font-size:14px;letter-spacing:-.01em;color:var(--ink)}
.cta-social small{font-family:var(--f-mono);font-size:11px;color:var(--muted)}

/* ================= ARCHIVO DE NOTAS ================= */
.page-title{padding:24px 0 4px}
.page-title h1{font-size:30px;font-weight:700;letter-spacing:-.02em}
.page-title p{font-size:15px;color:var(--ink-2);margin-top:6px;max-width:640px}
.toolbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:20px 0 24px}
.chipbar{display:flex;gap:8px;flex-wrap:wrap}
.chip{font-family:var(--f-mono);font-size:12px;font-weight:700;letter-spacing:.02em;border:1px solid var(--line);border-radius:20px;background:var(--bg);color:var(--ink-2);padding:8px 15px;cursor:pointer;transition:all .2s}
.chip:hover{border-color:var(--teal-3);color:var(--teal-3)}
.chip.active{background:var(--teal);border-color:var(--teal);color:#fff}
.archive{padding-bottom:46px}
.no-results{display:none;border:1px dashed var(--line);border-radius:var(--r);background:var(--bg);text-align:center;padding:40px 20px;color:var(--muted);font-size:14px}
.no-results.show{display:block}

/* ================= PÁGINAS SIMPLES ================= */
.simple{padding:10px 0 50px}
.simple .prose{max-width:860px}
.simple .prose h2:first-of-type{border-top:none;padding-top:0;margin-top:6px}

/* ================= RELACIONADAS ================= */
.related{margin-top:30px}
.related .cards{gap:18px}
.related .card .ph{height:130px}
.related .card h3{font-size:15px}

/* honeypot + formularios */
.hp{position:absolute!important;left:-9999px!important;top:auto;width:1px;height:1px;overflow:hidden}
.form{display:flex;flex-direction:column;gap:15px;margin-top:6px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field{display:flex;flex-direction:column;gap:6px}
.field span{font-family:var(--f-mono);font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:700}
.field input,.field textarea{border:1px solid var(--line);border-radius:8px;background:var(--bg);padding:11px 13px;font-size:15px;font-family:var(--f-body);color:var(--ink);outline:none;width:100%;resize:vertical}
.field input:focus,.field textarea:focus{border-color:var(--gold)}
.form-foot{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.form-ok{display:flex;align-items:center;gap:8px;border:1px solid rgba(30,157,84,.35);background:var(--green-bg);color:#136139;border-radius:var(--r);padding:11px 14px;margin-bottom:12px;font-size:13.5px}
.form-ok .i{width:16px;height:16px;color:var(--green);stroke:var(--green);flex:none}
.form-err{display:flex;align-items:center;gap:8px;border:1px solid rgba(216,65,59,.35);background:var(--red-bg);color:#9c2520;border-radius:var(--r);padding:11px 14px;margin-bottom:12px;font-size:13.5px}
.form-err .i{width:16px;height:16px;color:var(--red);stroke:var(--red);flex:none}
.form-note{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}
.form-note .i{width:13px;height:13px;stroke-width:1.7}
.priv-note{color:var(--muted);font-size:12px;margin-top:2px}
.priv-note a,.nl-note a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.priv-note a:hover,.nl-note a:hover{color:var(--gold-2)}

.gly{width:18px;height:18px;fill:currentColor;flex:none}
.brand-ic{width:16px;height:16px;border-radius:4px;object-fit:cover;flex:none;display:inline-block;vertical-align:middle}
.meta-line .brand-ic{width:15px;height:15px}

/* ================= REVEAL ================= */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s cubic-bezier(.2,.7,.2,1),transform .6s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition-duration:.01ms!important}
  .reveal{opacity:1;transform:none}
  html{scroll-behavior:auto}
}

/* ================= RESPONSIVE ================= */
@media(max-width:1080px){
  .home-grid{grid-template-columns:minmax(0,1fr) 300px}
  .hero-top{grid-template-columns:1.5fr 1fr}
}
@media(max-width:980px){
  .home-grid{grid-template-columns:1fr}
  .home-aside{flex-direction:row;flex-wrap:wrap}
  .home-aside .widget{flex:1;min-width:280px}
  .home-aside .adslot.box{display:none}
  .hero-top{grid-template-columns:1fr}
  .layout,.note-layout{grid-template-columns:1fr}
  .sidebar{position:static}
  .cards{grid-template-columns:repeat(2,1fr)}
  .guide-grid{grid-template-columns:1fr 1fr}
  .news .wrap{grid-template-columns:1fr;gap:24px}
  .metric-grid{grid-template-columns:1fr 1fr}
  .metric:nth-child(2){border-right:none}
  .metric:nth-child(1),.metric:nth-child(2){border-bottom:1px solid rgba(255,255,255,.1)}
  .foot-grid{grid-template-columns:1fr 1fr}
  .note-head h1{font-size:28px}
}
/* el wordmark del logo es ancho: el menú colapsa a hamburguesa antes (≤980px) */
@media(max-width:980px){
  .nav-menu ul{display:none}
  .nav-menu ul.open{display:flex;position:absolute;top:100%;left:0;right:0;flex-direction:column;background:var(--teal);padding:8px 16px;gap:0;z-index:60;box-shadow:0 12px 24px rgba(0,0,0,.2)}
  .nav-menu ul.open a{padding:13px 8px;border-bottom:1px solid rgba(255,255,255,.1)}
  .burger{display:flex}
}
@media(max-width:760px){
  .nav .wrap{height:64px;gap:12px}
  .nav-menu ul{display:none}
  .nav-menu ul.open{display:flex;position:absolute;top:100%;left:0;right:0;flex-direction:column;background:var(--teal);padding:8px 16px;gap:0;z-index:60;box-shadow:0 12px 24px rgba(0,0,0,.2)}
  .nav-menu ul.open a{padding:13px 8px;border-bottom:1px solid rgba(255,255,255,.1)}
  .burger{display:flex}
  .brand-tag{display:none}
  .cards,.archive .cards,.related .cards{grid-template-columns:1fr}
  .feature h2{font-size:25px}
  .fc{padding:22px;max-width:100%}
  .guide-grid{grid-template-columns:1fr}
  .metric-grid{grid-template-columns:1fr 1fr}
  .foot-grid{grid-template-columns:1fr}
  .topbar .date span#today{display:none}
  .news h2{font-size:23px}
  .note-hero{height:auto;max-width:100%}
  .prose{padding:22px 18px 26px}
  .cta-social{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
}
@media(max-width:980px){.archive .cards{grid-template-columns:repeat(2,1fr)}}

/* === Direccion: esquinas TOTALMENTE cuadradas (sin redondeos ni curvas, incluidos circulos) === */
*, *::before, *::after { border-radius: 0 !important; }

/* Metricas: numeros uniformes y proporcionados (sin deformar) */
.metric b, .metric b.b-247 { letter-spacing: 0 !important; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
