:root{
  --bg:#FBF8F1; --surface:#FFFFFF; --ink:#14231A; --muted:#55645B; --line:#E7E1D2;
  --primary:#15803D; --primary-ink:#FFFFFF; --primary-soft:#E6F4EA;
  --sun:#F59E0B; --sun-soft:#FEF3C7; --ring:#15803D;
  --radius:20px; --shadow:0 1px 2px rgba(20,35,26,.05),0 8px 24px -12px rgba(20,35,26,.18);
  --serif:"Newsreader",Georgia,serif; --sans:"Public Sans",system-ui,sans-serif;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0E1511; --surface:#16201A; --ink:#EEF3EE; --muted:#A3B2A8; --line:#26332B;
  --primary:#4ADE80; --primary-ink:#0B1A10; --primary-soft:#173222; --sun:#FBBF24; --sun-soft:#3A2E0E; --ring:#4ADE80;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px -12px rgba(0,0,0,.6);
}}
:root[data-theme="dark"]{
  --bg:#0E1511; --surface:#16201A; --ink:#EEF3EE; --muted:#A3B2A8; --line:#26332B;
  --primary:#4ADE80; --primary-ink:#0B1A10; --primary-soft:#173222; --sun:#FBBF24; --sun-soft:#3A2E0E; --ring:#4ADE80;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px -12px rgba(0,0,0,.6);
}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink);font:400 16px/1.6 var(--sans);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
:focus-visible{outline:2px solid var(--ring);outline-offset:3px;border-radius:8px}
/* el atributo hidden debe ganarle a los display:flex de .card/.btn (pestañas del home) */
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{max-width:1200px;margin:0 auto;padding:0 16px}
@media(min-width:768px){.wrap{padding:0 32px}}
svg.i{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------- header ---------- */
header.site-header{position:sticky;top:0;z-index:50;backdrop-filter:saturate(1.6) blur(14px);-webkit-backdrop-filter:saturate(1.6) blur(14px);background:color-mix(in srgb,var(--bg) 78%,transparent);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;gap:16px;min-height:64px;flex-wrap:wrap}
.brand{display:flex;align-items:center;color:var(--ink)}
.brand .wm{display:flex;flex-direction:column;line-height:1}
.brand .wm b{font:400 28px/.9 "Caveat Brush",cursive;letter-spacing:.005em}
.brand .dot{display:inline-block;width:.24em;height:.24em;border-radius:50%;background:var(--sun);margin-left:.08em;box-shadow:0 0 0 .07em color-mix(in srgb,var(--sun) 25%,transparent)}
.brand .wm small{font:400 9.5px/1 var(--serif);letter-spacing:.36em;color:var(--muted);text-transform:uppercase;margin-top:5px;padding-left:2px}
.bar nav{display:none;order:3;flex-basis:100%;flex-direction:column;gap:2px;padding:4px 0 12px}
.bar nav.open{display:flex}
.bar nav a{white-space:nowrap;padding:10px 12px;border-radius:999px;font-size:14px;font-weight:500;color:var(--muted);transition:background .2s,color .2s}
.bar nav a:hover{background:var(--primary-soft);color:var(--ink)}
.bar nav a[aria-current="page"]{background:var(--primary-soft);color:var(--primary)}
.actions{margin-left:auto;display:flex;gap:8px}
.iconbtn{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer;transition:border-color .2s}
.iconbtn:hover{border-color:var(--primary)}
@media(min-width:1180px){.bar{flex-wrap:nowrap}.bar nav,.bar nav.open{display:flex;order:0;flex-basis:auto;flex-direction:row;gap:4px;padding:0;margin-left:auto}.bar nav a{padding:8px 12px}.actions{margin-left:8px}#menu{display:none}}

/* ---------- hero (home) ---------- */
.hero{position:relative;overflow:hidden;padding:40px 0 8px;text-align:center}
.aurora{position:absolute;inset:-20% -10% auto;height:520px;z-index:-1;filter:blur(60px);opacity:.55;pointer-events:none}
.aurora span{position:absolute;border-radius:50%;animation:float 18s ease-in-out infinite}
.aurora span:nth-child(1){width:420px;height:420px;left:10%;top:10%;background:radial-gradient(circle,#FDE68A,transparent 70%)}
.aurora span:nth-child(2){width:380px;height:380px;right:12%;top:0;background:radial-gradient(circle,#86EFAC,transparent 70%);animation-delay:-6s}
.aurora span:nth-child(3){width:300px;height:300px;left:42%;top:30%;background:radial-gradient(circle,#FDBA74,transparent 70%);animation-delay:-12s}
@keyframes float{50%{transform:translate(40px,-30px) scale(1.1)}}
.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:13px;font-weight:600;color:var(--muted);box-shadow:var(--shadow)}
.eyebrow .live{width:8px;height:8px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 0 var(--primary);animation:ping 2s infinite}
@keyframes ping{70%{box-shadow:0 0 0 8px transparent}100%{box-shadow:0 0 0 0 transparent}}
.hero h1{font:500 clamp(26px,5.2vw,56px)/1.08 var(--serif);letter-spacing:-.025em;margin:18px auto 0}
.hero h1 .l1{white-space:nowrap}
.rot{position:relative;display:inline-block;color:var(--primary);font-style:italic}
.rot span{position:absolute;left:0;white-space:nowrap;opacity:0;transform:translateY(.4em);transition:opacity .5s,transform .5s}
.rot span.on{position:relative;opacity:1;transform:none}
.hero p.lead{max-width:60ch;margin:14px auto 0;font-size:clamp(16px,1.6vw,17px);color:var(--muted);text-wrap:pretty}
.ctas{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:20px}
.ctas svg.i{width:16px;height:16px}
.btn{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 16px;border-radius:999px;font:600 14px var(--sans);cursor:pointer;border:1px solid transparent;transition:transform .15s,box-shadow .2s,background .2s}
.btn:active{transform:scale(.97)}
.btn.primary{background:var(--primary);color:var(--primary-ink);box-shadow:0 8px 20px -8px color-mix(in srgb,var(--primary) 70%,transparent)}
.btn.primary:hover{box-shadow:0 12px 28px -8px color-mix(in srgb,var(--primary) 80%,transparent)}
.btn.ghost{background:var(--surface);border-color:var(--line);color:var(--ink)}
.btn.ghost:hover{border-color:var(--primary)}
.stats{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 14px;margin:18px auto 0;font-size:13px;color:var(--muted)}
.stats b{font-weight:600;color:var(--ink)}
.stats span+span::before{content:"·";margin-right:14px;opacity:.6}
@media(max-width:560px){.stats span+span::before{display:none}}

/* ---------- section heads ---------- */
section.block{padding:72px 0 0}
#hoy{padding-top:40px}
.head{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:28px}
.head h2{font:500 clamp(30px,4vw,44px)/1.05 var(--serif);letter-spacing:-.02em}
.head p{color:var(--muted);max-width:48ch}
.more{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:14px;color:var(--primary);min-height:44px}
.more:hover svg{transform:translateX(3px)}
.more svg{transition:transform .2s}

/* ---------- cards ---------- */
.bento{display:grid;gap:16px;grid-template-columns:1fr}
@media(min-width:900px){.bento{grid-template-columns:1.5fr 1fr;grid-template-rows:1fr 1fr}.bento .card:first-child{grid-row:span 2}}
.card{position:relative;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .25s,border-color .25s;isolation:isolate}
.card:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--primary) 40%,var(--line))}
.card::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;opacity:0;transition:opacity .3s;background:radial-gradient(420px circle at var(--x,50%) var(--y,50%),color-mix(in srgb,var(--sun) 16%,transparent),transparent 45%)}
.card:hover::after{opacity:1}
.media{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--line)}
.media img{width:100%;height:100%;object-fit:cover;transition:transform .6s}
.card:hover .media img{transform:scale(1.04)}
.media.fallback,.cover-fallback{display:grid;place-items:center;background:var(--primary-soft);color:var(--primary)}
.media.fallback svg.i{width:44px;height:44px;stroke-width:1.5}
.bento .card.feature{justify-content:flex-end;min-height:420px}
.bento .card.feature .media{position:absolute;inset:0;aspect-ratio:auto}
.bento .card.feature .media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(8,16,11,.88))}
.bento .card.feature .media.fallback::after{background:none}
.bento .card.feature .body{flex:0 0 auto;position:relative;z-index:1;color:#fff}
.bento .card.feature.no-photo .body{color:var(--ink)}
.bento .card.feature .meta,.bento .card.feature .excerpt{color:rgba(255,255,255,.82)}
.bento .card.feature.no-photo .meta,.bento .card.feature.no-photo .excerpt{color:var(--muted)}
.body{display:flex;flex-direction:column;gap:10px;padding:20px 22px 22px;flex:1}
.tag{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;letter-spacing:.02em;background:var(--primary-soft);color:var(--primary)}
.feature:not(.no-photo) .tag{background:rgba(255,255,255,.16);color:#fff;backdrop-filter:blur(8px)}
.tag svg.i{width:14px;height:14px}
.card h3{font:600 21px/1.2 var(--serif);letter-spacing:-.01em;text-wrap:balance}
.feature h3{font-size:clamp(26px,3vw,36px);line-height:1.1}
.excerpt{color:var(--muted);font-size:15px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.meta{margin-top:auto;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.meta .src{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--sun-soft);color:var(--ink);font-size:10px;font-weight:700;flex:none}
.feature:not(.no-photo) .meta .src{background:rgba(255,255,255,.2);color:#fff}
.card > a.stretch{position:absolute;inset:0;z-index:3}

/* ---------- tabs + grid ---------- */
.tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;margin-bottom:24px;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--muted);font:600 14px var(--sans);white-space:nowrap;cursor:pointer;transition:all .2s}
.tabs button:hover{color:var(--ink);border-color:var(--primary)}
.tabs button[aria-selected="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.grid .card{animation:in .4s both}
@keyframes in{from{opacity:0;transform:translateY(8px)}}
.grid-foot{display:flex;justify-content:center;margin-top:20px}

/* ---------- trust strip ---------- */
.trust{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.trust div{padding:24px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--line)}
.trust .ico{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--primary-soft);color:var(--primary);margin-bottom:14px}
.trust h4{font:600 19px var(--serif);margin-bottom:4px}
.trust p{color:var(--muted);font-size:15px}

/* ---------- breadcrumbs ---------- */
.crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;color:var(--muted);padding-top:28px}
.crumbs a{color:var(--muted);min-height:32px;display:inline-flex;align-items:center}
.crumbs a:hover{color:var(--primary)}
.crumbs svg.i{width:14px;height:14px;opacity:.6}

/* ---------- category landing ---------- */
.cat-hero{position:relative;overflow:hidden;padding:0 0 8px}
.cat-hero .aurora{height:360px;opacity:.4}
.cat-title{display:flex;align-items:center;gap:16px;margin-top:12px}
.cat-ico{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:var(--primary-soft);color:var(--primary);flex:none}
.cat-ico svg.i{width:26px;height:26px}
.cat-hero h1{font:500 clamp(34px,5vw,52px)/1.05 var(--serif);letter-spacing:-.025em}
.cat-hero p.desc{color:var(--muted);max-width:60ch;margin-top:12px;font-size:17px}
.cat-hero .count{margin-top:6px;font-size:13px;color:var(--muted)}
.cat-hero .count b{color:var(--ink)}
.switch{margin:24px 0 0}
.switch a{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--muted);font:600 13px var(--sans);white-space:nowrap;transition:all .2s}
.switch a:hover{color:var(--ink);border-color:var(--primary)}
.switch a[aria-current="page"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.switch svg.i{width:15px;height:15px}
.lead-card{display:grid;grid-template-columns:1fr}
@media(min-width:820px){.lead-card{grid-template-columns:1.25fr 1fr}.lead-card .media{aspect-ratio:auto;min-height:340px}}
.lead-card .body{padding:28px;justify-content:center;gap:14px}
.lead-card h3{font-size:clamp(24px,2.6vw,32px);line-height:1.12}
.lead-card .excerpt{-webkit-line-clamp:4;font-size:16px}
.lead-card .meta{margin-top:8px}
.list-head{display:flex;align-items:baseline;justify-content:space-between;margin:48px 0 20px;gap:12px}
.list-head h2{font:500 26px/1.1 var(--serif);letter-spacing:-.015em}
.list-head span{font-size:13px;color:var(--muted)}
.empty-note{color:var(--muted);padding:32px 0}

/* ---------- note page ---------- */
.article{width:100%}
.art-head{text-align:center}
.art-head .crumbs{justify-content:center}
.art-head .tag{margin-top:20px}
.art-head h1{font:500 clamp(26px,3.4vw,38px)/1.15 var(--serif);letter-spacing:-.02em;margin:14px auto 0;max-width:30ch;text-wrap:balance}
.byline{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 14px;margin-top:18px;font-size:14px;color:var(--muted)}
.byline .who{display:inline-flex;align-items:center;gap:8px;color:var(--ink);font-weight:600}
.byline .src{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--sun-soft);color:var(--ink);font-size:11px;font-weight:700}
.byline .sep::before{content:"·";opacity:.6}
@media(max-width:560px){.byline .sep{display:none}}
.cover{margin:28px 0 0}
.cover img,.cover-fallback{width:100%;aspect-ratio:16/9;max-height:520px;object-fit:cover;border-radius:var(--radius);background:var(--line)}
.cover-fallback svg.i{width:72px;height:72px;stroke-width:1.3}
.cover figcaption{font-size:12px;color:var(--muted);margin-top:8px}
.art-body{display:grid;gap:32px;margin-top:36px}
@media(min-width:960px){.art-body{grid-template-columns:minmax(0,1fr) 340px;gap:56px}.art-side{position:sticky;top:88px;align-self:start}}
.art-side{display:grid;gap:16px}
.prose{max-width:68ch}
.prose p{font-size:clamp(17px,1.9vw,19px);line-height:1.75;margin-bottom:1.1em;text-wrap:pretty}
.prose p:first-child::first-letter{float:left;font:600 3.4em/.85 var(--serif);color:var(--primary);margin:.08em .1em 0 0}
.source-box{display:grid;gap:14px;padding:24px;border-radius:var(--radius);background:var(--primary-soft);border:1px solid color-mix(in srgb,var(--primary) 25%,transparent)}
.source-box p{font-size:15px;color:var(--ink)}
.source-box p span{color:var(--muted)}
.source-box .btn{justify-self:start}
.share{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:20px 24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);font-size:14px;color:var(--muted)}
.share > span{flex-basis:100%}
.more-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:64px 0 20px;padding-top:32px;border-top:1px solid var(--line)}
.more-head h2{font:500 28px/1.1 var(--serif);letter-spacing:-.015em}

/* ---------- footer ---------- */
footer.site-footer .wrap{margin-top:72px;border-top:1px solid var(--line);padding-top:48px;padding-bottom:32px;color:var(--muted);font-size:14px;text-align:center}
footer .flogo{display:inline-flex;margin-bottom:20px;text-align:left}
footer .note{max-width:62ch;margin:0 auto;display:grid;gap:10px;line-height:1.65;text-wrap:pretty}
footer .note strong{color:var(--ink);font-weight:600}
footer .legal{display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:center;margin-top:28px;font-size:13px}
footer .legal span+span::before{content:"·";margin-right:16px;opacity:.6}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
