
    /* ========== Variables y base ========== */
    :root{
      --green:#2e7d32; --green-dark:#1b5e20; --green-tint:#e8f3e9;
      --blue:#0288d1; --blue-dark:#01579b; --blue-tint:#e3f2fb;
      --bg:#f8f9fa; --surface:#fff; --ink:#1b2a1f; --muted:#516056; --line:#dfe5e1;
      --radius:16px; --max:1180px;
      --shadow:0 1px 2px rgba(20,40,25,.06),0 10px 28px rgba(20,40,25,.08);
    }
    *,*::before,*::after{box-sizing:border-box}
    html{scroll-behavior:smooth;scroll-padding-top:88px;-webkit-text-size-adjust:100%}
    body{margin:0;font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;font-size:1.0625rem;line-height:1.65;color:var(--ink);background:var(--bg)}
    img{max-width:100%;display:block}
    [hidden]{display:none!important}
    a{color:var(--blue-dark)}
    h1,h2,h3{line-height:1.2;letter-spacing:-.02em}
    :focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:4px}
    .wrap{width:min(100% - 2rem,var(--max));margin-inline:auto}
    .skip{position:absolute;left:-999px;top:0;background:var(--green-dark);color:#fff;padding:.75rem 1rem;z-index:200;border-radius:0 0 8px 0}
    .skip:focus{left:0}
    .todo{background:#fff3b0;padding:0 .25em;border-radius:3px}
    #privacidad .todo,#terminos .todo,#cookies .todo,#aviso-legal .todo{background:none;padding:0;border-radius:0;color:inherit}

    /* ========== Botones ========== */
    .btn{display:inline-flex;align-items:center;justify-content:center;padding:.8rem 1.4rem;border-radius:999px;font-family:inherit;font-weight:600;font-size:1rem;line-height:1.2;text-decoration:none;border:2px solid transparent;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
    .btn-primary{background:var(--green);color:#fff}
    .btn-primary:hover{background:var(--green-dark)}
    .btn-ghost{background:#fff;color:var(--green-dark);border-color:var(--green)}
    .btn-ghost:hover{background:var(--green-tint)}
    .btn-link{background:none;border:0;padding:0;font:inherit;font-weight:600;color:var(--blue-dark);cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-align:left}
    .btn-link:hover{color:var(--green-dark)}

    /* ========== Cabecera ========== */
    .site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
    .bar{display:flex;align-items:center;justify-content:space-between;min-height:68px;gap:1rem}
    .brand{display:flex;align-items:center;gap:.6rem;font-weight:800;font-size:1.4rem;letter-spacing:-.03em;color:var(--green-dark);text-decoration:none}
    .brand svg{width:34px;height:34px;flex:none}
    .nav-toggle{background:#fff;border:1.5px solid var(--line);border-radius:10px;padding:.5rem .9rem;font:inherit;font-weight:600;color:var(--ink);cursor:pointer}
    #menu{position:absolute;inset:100% 0 auto 0;background:#fff;border-bottom:1px solid var(--line);display:none;padding:.5rem 1rem 1rem}
    #menu.open{display:block}
    #menu ul{list-style:none;margin:0;padding:0;display:grid;gap:.15rem}
    #menu a{display:block;padding:.7rem .8rem;border-radius:10px;color:var(--ink);text-decoration:none;font-weight:500}
    #menu a:hover,#menu a[aria-current="true"]{background:var(--green-tint);color:var(--green-dark)}
    @media(min-width:880px){
      .nav-toggle{display:none}
      #menu{position:static;display:block;border:0;padding:0;background:none}
      #menu ul{display:flex;gap:.25rem}
    }

    /* ========== Hero ========== */
    .hero{background:linear-gradient(180deg,#fff 0%,var(--green-tint) 100%);padding:2.5rem 0 3.25rem}
    .hero-grid{display:grid;gap:2.5rem;align-items:center}
    .hero h1{font-size:clamp(2.2rem,6vw,3.6rem);line-height:1.07;letter-spacing:-.035em;font-weight:800;margin:0 0 1.1rem;max-width:18ch;color:var(--green-dark)}
    .hero p{font-size:1.15rem;color:var(--muted);max-width:52ch;margin:0 0 1.75rem}
    .hero-cta{display:flex;flex-wrap:wrap;gap:.8rem}
    .hero-art{position:relative;justify-self:center;width:min(86%,380px)}
    .hero-art::before{content:"";position:absolute;inset:16px -16px -16px 16px;border-radius:999px 999px 28px 28px;background:var(--blue-tint)}
    .hero-art figure{position:relative;margin:0;aspect-ratio:4/5;border-radius:999px 999px 28px 28px;overflow:hidden;box-shadow:var(--shadow);background:var(--green-tint)}
    .hero-art img{width:100%;height:100%;object-fit:cover}
    @media(min-width:900px){.hero-grid{grid-template-columns:1.15fr .85fr}.hero{padding:4rem 0 4.5rem}}

    /* ========== Aviso médico (YMYL) ========== */
    .medical{display:flex;gap:.9rem;background:var(--blue-tint);border-left:5px solid var(--blue);border-radius:12px;padding:1rem 1.25rem;margin:1.75rem 0 0;font-size:.98rem}
    .medical svg{flex:none;width:26px;height:26px;color:var(--blue-dark);margin-top:.15rem}
    .medical p{margin:0}
    .medical strong{color:var(--blue-dark)}

    /* ========== Layout principal ========== */
    .layout{display:grid;gap:2.5rem;padding:2.5rem 0 3rem}
    @media(min-width:1000px){.layout{grid-template-columns:minmax(0,1fr) 320px;align-items:start}}
    .section-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.5rem 1rem;margin-bottom:1.25rem}
    .section-head h2{margin:0;font-size:clamp(1.5rem,3vw,2rem);font-weight:800}
    .section-head p{margin:0;color:var(--muted);font-size:.95rem}

    /* ========== Artículos ========== */
    .posts{display:grid;gap:1.5rem}
    @media(min-width:700px){.posts{grid-template-columns:repeat(2,minmax(0,1fr))}}
    .post{display:flex;flex-direction:column;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
    .post-img{margin:0;aspect-ratio:16/10;background:linear-gradient(135deg,var(--green-tint),var(--blue-tint));overflow:hidden}
    .post-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
    .post:hover .post-img img{transform:scale(1.03)}
    .img-fallback img{opacity:0}
    .post-body{padding:1.35rem 1.4rem 1.5rem;display:flex;flex-direction:column;gap:.7rem;flex:1}
    .meta{display:flex;flex-wrap:wrap;gap:.4rem .8rem;align-items:center;font-size:.88rem;color:var(--muted)}
    .tag{display:inline-block;padding:.1rem .65rem;border-radius:999px;font-weight:600;font-size:.85rem}
    .tag-tec{background:var(--green-tint);color:var(--green-dark)}
    .tag-rec{background:var(--blue-tint);color:var(--blue-dark)}
    .tag-comp{background:#e0f2f1;color:#00695c}
    .post h3{margin:0;font-size:1.3rem;font-weight:800}
    .post p{margin:0}
    .points{list-style:none;margin:.2rem 0 0;padding:0;display:grid;gap:.45rem;font-size:.97rem}
    .points li{position:relative;padding-left:1.6rem}
    .points li::before{content:"";position:absolute;left:.1rem;top:.5em;width:.75rem;height:.4rem;border-left:2.5px solid var(--green);border-bottom:2.5px solid var(--green);transform:rotate(-45deg)}
    .post .btn-link{margin-top:auto;padding-top:.5rem}
    @media(min-width:700px){
      .post.lead{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}
      .post.lead .post-img{aspect-ratio:auto;position:relative;min-height:340px}
      .post.lead .post-img img{position:absolute;inset:0}
      .post.lead h3{font-size:1.65rem}
      .post.lead .post-body{padding:1.9rem}
    }
    .empty{padding:2rem;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);text-align:center}

    /* ========== Publicidad (espacios reservados) ========== */
    .ad{margin:0 0 1.5rem}
    .ad[hidden]{display:none!important}
    .ad-label{display:block;font-size:.78rem;color:var(--muted);margin-bottom:.35rem;text-align:center}
    .ad-slot{display:flex;align-items:center;justify-content:center;text-align:center;min-height:250px;border:2px dashed #9bb7a0;border-radius:12px;background:repeating-linear-gradient(45deg,#f1f6f2,#f1f6f2 12px,#e8f0ea 12px,#e8f0ea 24px);color:var(--muted);font-size:.9rem;padding:1rem}
    .ad-banner .ad-slot{min-height:100px}
    .ad-wide{margin-top:2rem}

    /* ========== Sidebar ========== */
    .widget{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:1.25rem;margin-bottom:1.5rem}
    .widget h2{font-size:1.1rem;margin:0 0 .9rem;font-weight:800}
    .search{display:flex;gap:.5rem}
    .search input{flex:1;min-width:0;padding:.7rem .9rem;border:1.5px solid var(--line);border-radius:10px;font:inherit;background:#fff}
    .search input:focus{border-color:var(--blue)}
    .search .btn{padding:.7rem 1rem}
    .featured{list-style:none;margin:0;padding:0}
    .featured li{padding:.8rem 0;border-top:1px solid var(--line);display:grid;gap:.25rem}
    .featured li:first-child{border-top:0;padding-top:0}
    .featured li:last-child{padding-bottom:0}
    .featured .tag{justify-self:start;font-size:.78rem}
    .cats{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem}
    .cats button{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:.35rem .9rem;font:inherit;font-size:.92rem;font-weight:500;cursor:pointer;color:var(--ink)}
    .cats button:hover{border-color:var(--green);background:var(--green-tint)}

    /* ========== Galería ========== */
    .gallery-sec{padding:0 0 3.5rem}
    .gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:.9rem}
    @media(min-width:800px){.gallery{grid-template-columns:repeat(4,1fr)}}
    .gallery figure{position:relative;margin:0;aspect-ratio:4/5;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);background:linear-gradient(135deg,var(--green-tint),var(--blue-tint))}
    .gallery img{width:100%;height:100%;object-fit:cover}
    .gallery figcaption{position:absolute;inset:auto 0 0 0;padding:2.5rem .9rem .8rem;color:#fff;font-weight:600;font-size:.95rem;background:linear-gradient(transparent,rgba(10,30,15,.78))}

    /* ========== Vistas internas (legales, about, contacto) ========== */
    .view{padding:2.5rem 0 4rem}
    .view h1{font-size:clamp(1.9rem,4.5vw,2.8rem);font-weight:800;margin:0 0 .5rem;color:var(--green-dark)}
    .view .lede{color:var(--muted);margin:0 0 1.5rem;max-width:62ch}
    .prose{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:1.5rem}
    @media(min-width:700px){.prose{padding:2.25rem 2.5rem}}
    .prose>*{max-width:72ch}
    .prose h2{font-size:1.3rem;margin:2rem 0 .6rem;font-weight:800}
    .prose h2:first-child{margin-top:0}
    .prose h3{font-size:1.08rem;margin:1.4rem 0 .4rem}
    .prose ul{padding-left:1.25rem}
    .prose li{margin:.25rem 0}
    .table-wrap{overflow-x:auto;max-width:100%!important;margin:1rem 0}
    table{border-collapse:collapse;width:100%;min-width:560px;font-size:.95rem}
    th,td{border:1px solid var(--line);padding:.6rem .75rem;text-align:left;vertical-align:top}
    th{background:var(--green-tint)}
    .callout{background:var(--blue-tint);border-left:5px solid var(--blue);border-radius:12px;padding:1rem 1.25rem;margin:1.25rem 0}
    .callout p{margin:.3rem 0}
    .contact-grid{display:grid;gap:1.5rem}
    @media(min-width:900px){.contact-grid{grid-template-columns:1.4fr 1fr}}
    .field{margin-bottom:1.1rem}
    .field label{display:block;font-weight:600;margin-bottom:.35rem}
    .field input[type=text],.field input[type=email],.field select,.field textarea{width:100%;padding:.75rem .9rem;border:1.5px solid var(--line);border-radius:10px;font:inherit;background:#fff;color:var(--ink)}
    .field textarea{min-height:150px;resize:vertical}
    .field input:focus,.field select:focus,.field textarea:focus{border-color:var(--blue)}
    .field [aria-invalid="true"]{border-color:#c62828}
    .field .err{display:block;color:#b71c1c;font-size:.9rem;margin-top:.3rem;min-height:0}
    .check{display:flex;gap:.6rem;align-items:flex-start}
    .check input{margin-top:.4rem;width:1.1rem;height:1.1rem;accent-color:var(--green)}
    .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
    .form-status{margin-top:1rem;padding:.9rem 1.1rem;border-radius:10px;font-weight:500}
    .form-status.ok{background:var(--green-tint);color:var(--green-dark)}
    .form-status.warn{background:#fff3e0;color:#7a4300}
    .form-status.bad{background:#fdecea;color:#8e1b1b}

    /* ========== Pie de página ========== */
    .site-footer{background:#14241a;color:#d6e2d9;padding:3rem 0 1.5rem;margin-top:1rem}
    .site-footer a{color:#e8f3e9}
    .site-footer a:hover{color:#fff}
    .foot-grid{display:grid;gap:2rem}
    @media(min-width:800px){.foot-grid{grid-template-columns:1.4fr 1fr 1fr}}
    .site-footer h2{font-size:1.02rem;color:#fff;margin:0 0 .8rem}
    .site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:.45rem}
    .site-footer .brand{color:#fff;margin-bottom:.7rem}
    .site-footer p{margin:0 0 .8rem;font-size:.95rem}
    .foot-note{border-top:1px solid rgba(255,255,255,.14);margin-top:2rem;padding-top:1.25rem;font-size:.88rem;color:#aebfb3}
    .site-footer .btn-link{color:#e8f3e9}

    /* ========== Cookies y diálogos ========== */
    .cookie{position:fixed;z-index:120;left:1rem;right:1rem;bottom:1rem;background:#fff;border-radius:18px;box-shadow:0 12px 40px rgba(10,30,15,.28);padding:1.25rem 1.25rem 1.1rem;border:1px solid var(--line)}
    @media(min-width:560px){.cookie{left:auto;width:390px;right:1.25rem;bottom:1.25rem}}
    .cookie h2{font-size:1.1rem;margin:0 2rem .4rem 0}
    .cookie p{margin:0 0 .9rem;font-size:.92rem;color:var(--muted);line-height:1.5}
    .cookie-actions{display:flex;flex-wrap:wrap;gap:.5rem}
    .cookie-actions .btn{padding:.6rem 1rem;font-size:.93rem}
    .cookie-close{position:absolute;top:.6rem;right:.6rem;width:34px;height:34px;border-radius:50%;border:0;background:var(--bg);font-size:1.3rem;line-height:1;cursor:pointer;color:var(--ink)}
    .cookie-close:hover{background:var(--green-tint)}
    dialog{border:0;border-radius:20px;padding:0;width:min(100% - 2rem,760px);max-height:90vh;box-shadow:0 20px 60px rgba(10,30,15,.35);color:var(--ink);overflow:hidden}
    dialog::backdrop{background:rgba(15,30,20,.55)}
    .dialog-inner{padding:1.5rem;overflow-y:auto;max-height:90vh}
    @media(min-width:700px){.dialog-inner{padding:2rem 2.25rem}}
    .dialog-close{position:sticky;top:0;float:right;margin:-.5rem -.5rem 0 .5rem;width:38px;height:38px;border-radius:50%;border:0;background:var(--bg);font-size:1.4rem;cursor:pointer;color:var(--ink);z-index:2}
    .dlg-img{margin:0 0 1.25rem;border-radius:14px;overflow:hidden;aspect-ratio:16/8;background:linear-gradient(135deg,var(--green-tint),var(--blue-tint))}
    .dlg-img img{width:100%;height:100%;object-fit:cover}
    .keybox{background:var(--green-tint);border-left:5px solid var(--green);border-radius:12px;padding:1rem 1.25rem;margin:1rem 0}
    .keybox ul{margin:.4rem 0 0}
    .full h2{font-size:1.7rem;margin:0 0 .4rem;font-weight:800}
    .full h3{font-size:1.15rem;margin:1.5rem 0 .4rem}
    .full p,.full ul{margin:.5rem 0}
    .full ul{padding-left:1.25rem}
    .byline{color:var(--muted);font-size:.9rem}
    .sources{margin-top:1.5rem!important;padding-top:1rem;border-top:1px solid var(--line);font-size:.9rem;color:var(--muted)}
    .pref{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;padding:1rem 0;border-top:1px solid var(--line)}
    .pref p{margin:.15rem 0 0;color:var(--muted);font-size:.93rem}
    .pref input{width:1.3rem;height:1.3rem;accent-color:var(--green);flex:none;margin-top:.2rem}
    .dialog-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.25rem}

    @media(prefers-reduced-motion:reduce){
      html{scroll-behavior:auto}
      *{transition:none!important;animation:none!important}
    }
    .layout{grid-template-columns:minmax(0,1fr)}
    .posts{grid-template-columns:minmax(0,1fr)}
    .post,.post-body{min-width:0}
    .full ol{margin:.5rem 0;padding-left:1.4rem}
    .full li{margin:.3rem 0}
    .full table{min-width:520px;font-size:.92rem}
    .full .table-wrap{margin:1rem 0}
    @media(min-width:700px){.posts{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media(min-width:1000px){.layout{grid-template-columns:minmax(0,1fr) 320px}}

  
a.btn-link{display:inline-block}
.cats a{display:inline-block;padding:.35rem .8rem;border:1px solid var(--line);border-radius:999px;text-decoration:none;color:inherit;font-size:.92rem}
.cats a:hover{border-color:var(--green);color:var(--green-dark)}
.article-page{max-width:820px;margin:0 auto;padding:1.5rem 1rem 3rem}
.crumbs{font-size:.9rem;margin-bottom:1rem}.crumbs a{color:var(--blue-dark)}
.full h1{font-size:1.9rem;margin:0 0 .4rem;font-weight:800;line-height:1.2}
.article-page .full h2{font-size:1.25rem;margin:1.8rem 0 .4rem}
.related{margin-top:2.5rem;border-top:1px solid var(--line);padding-top:1.2rem}.related ul{padding-left:1.2rem}
