/*
Theme Name: RH en Breve Editorial
Theme URI: https://rhenbreve.com
Author: RH en Breve
Description: Tema editorial ligero, compatible con el editor de bloques. Sin constructores ni llamadas a fuentes externas.
Version: 1.1.2
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: rheb-editorial
*/

/* Tokens y breakpoints según RH01 Especificación FINAL para RC001 (secciones 2 y 3). */
/* ==========================================================================
   1. Base
   ========================================================================== */
:root{--navy:#0F2D5B;--green:#22C55E;--mist:#E6EDF5;--ink:#1F2937;--white:#FFFFFF;--muted:#4C5F78;--line:#CCD7E4;--soft:#F5F7FA;--darkline:#44618A;--max:1248px;--radius:18px;--header-height:94px;--gutter:40px;--font:"Montserrat",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:auto;scroll-padding-top:calc(var(--header-height) + var(--adminbar,0px) + 12px)}
body.admin-bar{--adminbar:32px}
body.admin-bar .site-header{top:var(--adminbar)}
@media(max-width:782px){body.admin-bar{--adminbar:46px}}
@media(max-width:600px){body.admin-bar{--adminbar:0px}}
body{margin:0;background:var(--white);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}
[hidden]{display:none!important}
img{display:block;max-width:100%;height:auto}
a{color:var(--navy);text-underline-offset:.22em}
a:hover{text-decoration-thickness:2px}
button,input{font:inherit;border-radius:0}
button,a,input{touch-action:manipulation}
button{cursor:pointer}
svg{display:block}
.icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none;flex:none}
::selection{background:var(--green);color:var(--navy)}
main{outline:none;scroll-margin-top:calc(var(--header-height) + var(--adminbar,0px))}
a:focus-visible,button:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--navy);outline-offset:4px}
.site-footer :focus-visible{outline-color:var(--green)}
h1,h2,h3,h4{margin:0 0 .6em;color:var(--navy);font-weight:750;line-height:1.1;letter-spacing:-.035em}
h1{font-size:clamp(48px,4.65vw,70px)}
h2{font-size:38px;letter-spacing:-.04em}
h3{font-size:23px;line-height:1.2;letter-spacing:-.025em}
p{margin:0 0 1.1em}
ul,ol{padding-left:1.3em}
.wrap{width:min(var(--max),calc(100% - (var(--gutter) * 2)));margin-inline:auto}
.eyebrow{color:var(--muted);font-size:11px;font-weight:750;letter-spacing:.13em;text-transform:uppercase;margin-bottom:16px;display:flex;align-items:center}
.eyebrow .green-marker{width:24px;height:3px;background:var(--green);display:inline-block;margin-right:10px;flex:none}
.muted{color:var(--muted)}
.screen-reader-text,.skip-link:not(:focus){position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link:focus{position:fixed;z-index:999999;left:12px;top:8px;padding:12px 20px;background:white;color:var(--navy);border:2px solid var(--navy);font-weight:750}

/* ==========================================================================
   2. Header y navegación
   ========================================================================== */
.site-header{position:sticky;top:0;z-index:100;background:var(--white);border-bottom:1px solid var(--line)}
.masthead{min-height:var(--header-height);display:flex;align-items:center;justify-content:space-between;gap:var(--gutter)}
.brand{text-decoration:none;display:inline-flex;align-items:center;gap:12px;color:var(--navy);flex-shrink:0}
.brand-type{font-size:1.52rem;line-height:1.03;font-weight:820;letter-spacing:-.065em}
.brand-type span{display:block;letter-spacing:-.045em}
.brand-mark{width:43px;height:43px;background:var(--navy);border-radius:11px;display:grid;place-items:center;color:white;font-size:.8rem;font-weight:800;position:relative;letter-spacing:-.04em}
.brand-mark::after{content:"";position:absolute;width:10px;height:10px;border:3px solid white;background:var(--green);border-radius:50%;right:-3px;bottom:-3px}
.custom-logo-link{max-width:200px}
.custom-logo{width:auto;max-height:64px}
.site-nav{display:flex;align-items:center;gap:28px;margin:0;padding:0;list-style:none}
.site-nav li{margin:0;list-style:none}
.nav-list{display:contents}
.site-nav a{font-size:14px;font-weight:650;text-decoration:none;display:flex;align-items:center;gap:10px;min-height:46px;position:relative;white-space:nowrap}
.site-nav a[aria-current=page]{position:relative}
.site-nav a[aria-current=page]::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--navy)}
.site-nav a:hover{text-decoration:underline}
.site-nav li.search-nav{border-left:1px solid var(--line);padding-left:24px;margin-left:4px}
.site-nav li.search-nav a{padding-left:0}
.menu-toggle{display:none;color:var(--navy);background:var(--white);border:1px solid var(--muted);min-height:46px;gap:8px;align-items:center;justify-content:center;padding:8px 12px;font-weight:650;border-radius:8px;font-size:13px}

/* ==========================================================================
   3. Botones
   ========================================================================== */
.button{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:50px;padding:13px 20px;border:1px solid var(--navy);border-radius:8px;font-size:14px;font-weight:740;line-height:1.4;text-decoration:none;color:var(--white);background:var(--navy);transition:background-color 140ms ease-out,border-color 140ms ease-out,color 140ms ease-out}
.button:hover{background:var(--ink);border-color:var(--ink);color:white}
.button.ghost{background:var(--white);color:var(--navy);border-color:var(--muted)}
.button.ghost:hover{background:var(--soft);color:var(--navy)}
.button.green{background:var(--green);color:var(--navy);border-color:var(--green)}
.button.green:hover{background:var(--white);border-color:var(--white)}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:29px}
.text-link{display:inline-flex;gap:9px;align-items:center;min-height:44px;flex:none;font-size:13px;font-weight:750;text-decoration:underline}
.text-link:hover{text-decoration-thickness:2px}

/* ==========================================================================
   4. Portada: hero, panel editorial, confianza (orden por CSS en móvil)
   ========================================================================== */
.home{display:block}
.home-flow{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);column-gap:56px;align-items:start}
.home-flow>.hero{grid-column:1;grid-row:1;padding:65px 0 52px}
.home-editorial{grid-column:2;grid-row:1;margin-top:65px;align-self:center}
.home-flow>.trust-row{grid-column:1/-1;grid-row:2;width:100%}
.home-publications{grid-column:1/-1;grid-row:3;width:100%}
.hero h1{margin:24px 0 26px;max-width:780px}
.hero h1 .highlight{font-style:normal;display:inline;box-shadow:inset 0 -.14em var(--green);padding-bottom:.03em}
.hero .lead{font-size:18px;line-height:1.7;color:var(--muted);max-width:660px}
.hero-proof{font-size:12px;color:var(--muted);margin-top:17px}
.hero-proof span{font-weight:800;color:var(--navy)}
.editorial-panel{border:1px solid var(--line);background:var(--soft);border-radius:var(--radius);overflow:hidden;box-shadow:7px 7px 0 var(--mist)}
.panel-heading{padding:25px 28px 27px;background:var(--navy)}
.panel-heading .eyebrow{color:var(--mist);display:flex;align-items:center;justify-content:space-between;margin-bottom:0}
.panel-heading .edition-mark{font-size:12px;font-weight:850;color:var(--navy);background:var(--green);border-radius:4px;padding:4px 8px}
.panel-heading h2{color:var(--white);font-size:31px;line-height:1.15;letter-spacing:-1px;margin-top:16px;margin-bottom:0;max-width:300px}
.panel-steps{padding:2px 28px}
.panel-step{display:grid;grid-template-columns:28px 1fr;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}
.panel-step:last-child{border:0}
.panel-step .step-number{font-size:11px;font-weight:750;color:var(--muted);padding-top:2px}
.panel-step strong{font-size:15px;color:var(--navy);display:block;margin-bottom:3px}
.panel-step p{font-size:12px;color:var(--muted);margin:0}
.trust-row{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.trust-item{display:flex;gap:13px;align-items:flex-start;border-right:1px solid var(--line);padding-right:20px}
.trust-item:last-child{border-right:0}
.trust-icon{display:flex;align-items:center;justify-content:center;background:var(--mist);color:var(--navy);width:36px;height:36px;border-radius:50%;flex:none}
.trust-icon .icon{width:18px;height:18px}
.trust-item strong{font-size:13px;color:var(--navy);display:block}
.trust-item p{font-size:12px;color:var(--muted);margin:3px 0 0}
.section{padding-block:66px}
.home-publications{padding-block:66px}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}
.section-head h2{margin:0}
.section-kicker{font-size:11px;font-weight:750;letter-spacing:.11em;color:var(--muted);margin-bottom:12px;text-transform:uppercase}
.section-kicker span{color:var(--navy);margin-right:12px}

/* ==========================================================================
   5. Tarjetas con y sin imagen (16:9), destacada, guía, compacta, cambio
   ========================================================================== */
.card-media{aspect-ratio:16/9;width:100%;overflow:hidden;background:var(--mist);border-bottom:1px solid var(--line);position:relative;flex:none}
.card-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%;position:relative;z-index:1}
.card-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:13px;color:var(--navy);background:linear-gradient(135deg,var(--soft),var(--mist))}
.card-media--image .card-fallback{display:none}
.fallback-mark{font-size:30px;font-weight:850;letter-spacing:-1.5px}
.fallback-line{width:3px;height:31px;background:var(--green)}
.feature-card{min-height:388px;border-radius:var(--radius);background:var(--navy);color:var(--white);overflow:hidden}
.feature-card>a{display:flex;flex-direction:column;height:100%;min-height:388px;padding:32px;color:var(--white);text-decoration:none}
.feature-card .card-media{margin:-32px -32px 22px;width:calc(100% + 64px);border-color:var(--darkline)}
.feature-card .card-media--fallback,.feature-card .card-fallback{background:#173A6B;color:var(--mist)}
.feature-card .fallback-line{background:var(--green)}
.feature-card .eyebrow{color:var(--mist);margin-top:0;margin-bottom:0}
.feature-card h3{color:var(--white);font-size:39px;line-height:1.12;font-weight:750;letter-spacing:-1.4px;margin:23px 0 16px;max-width:490px}
.feature-card p{font-size:14px;max-width:410px;color:var(--mist);margin:0}
.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:auto;padding-top:27px;font-size:12px;font-weight:700}
.round-arrow{display:flex;align-items:center;justify-content:center;width:43px;height:43px;border-radius:50%;background:var(--green);color:var(--navy);flex:none}
.feature-card a:hover h3,.compact-card a:hover h3,.guide-card a:hover h3,.result-item a:hover h2,.change-card a:hover h3{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}
.feature-layout{display:grid;grid-template-columns:minmax(0,1.42fr) minmax(0,1fr);gap:20px}
.feature-layout.is-single{grid-template-columns:1fr}
.compact-stack{display:grid;gap:20px}
.compact-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--white);overflow:hidden;min-width:0}
.compact-card>a{display:flex;flex-direction:column;min-height:184px;padding:23px 25px;color:var(--navy);text-decoration:none;height:100%}
.compact-card .card-media{margin:-23px -25px 20px;width:calc(100% + 50px)}
.compact-card .card-top{display:flex;align-items:center;justify-content:space-between;gap:15px}
.compact-card h3{font-size:23px;line-height:1.2;margin:15px 0 0;max-width:360px}
.compact-card .card-bottom{padding-top:14px;font-size:12px;font-weight:600;color:var(--muted)}
.compact-card .icon{width:20px;height:20px;color:var(--navy)}
.changes-row{border-block:1px solid var(--line);padding:30px 0;display:grid;grid-template-columns:1fr 2fr;gap:32px;align-items:center;margin-top:26px}
.changes-heading h3{font-size:27px;margin:0}
.changes-heading .eyebrow{margin-bottom:8px}
.change-list{display:grid;gap:4px}
.change-card>a{display:flex;gap:20px;align-items:center;text-decoration:none;color:var(--navy);padding:12px 0}
.change-number{color:var(--navy);font-size:35px;font-weight:350;letter-spacing:-2px;line-height:1;flex:none}
.change-card h3{font-size:21px;line-height:1.2;margin:0}
.change-card .icon{margin-left:auto;flex:none}
.topics-section{background:var(--soft);border-block:1px solid var(--line);padding-block:50px}
.topics-section .section-head{margin-bottom:25px}
.topics-section h2{font-size:30px}
.topic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.topic-card{border:1px solid var(--line);background:var(--white);border-radius:10px;color:var(--navy);text-decoration:none;display:flex;align-items:center;gap:15px;min-height:86px;padding:20px}
.topic-card:hover{background:var(--mist);border-color:var(--navy)}
.topic-icon{color:var(--navy);display:flex;align-items:center;justify-content:center;width:38px;height:38px;background:var(--mist);border-radius:8px;flex:none}
.topic-card strong{font-size:14px;font-weight:710;line-height:1.35;display:block}
.topic-card .topic-arrow{margin-left:auto;width:18px;height:18px;flex:none}
div.topic-card.is-static{cursor:default}
.guides-section{padding-block:65px}
.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.guide-card{background:var(--soft);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;min-width:0}
.guide-card>a{display:flex;flex-direction:column;padding:26px;height:100%;min-height:295px;text-decoration:none;color:var(--navy)}
.guide-card .card-media{margin:-26px -26px 20px;width:calc(100% + 52px)}
.guide-card:nth-child(2){background:var(--white)}
.guide-card:nth-child(3){background:var(--mist)}
.guide-card .card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.guide-number{font-size:33px;font-weight:300;line-height:1;color:var(--muted);letter-spacing:-1px}
.guide-card .eyebrow{margin-top:28px;margin-bottom:0}
.guide-card h3{font-size:27px;line-height:1.15;margin:12px 0 4px}
.guide-card .card-bottom{border-top:1px solid var(--line);margin-top:28px;padding-top:18px;font-size:11px;color:var(--muted)}
.method{background:var(--mist);padding-block:64px}
.method-grid{display:grid;grid-template-columns:1.08fr 1fr;gap:90px}
.method h2{font-size:48px;line-height:1.05;margin:18px 0 24px}
.method-intro{font-size:16px;color:var(--muted);max-width:560px;margin:0}
.method-list{display:flex;flex-direction:column;justify-content:center}
.method-item{border-bottom:1px solid var(--line);display:grid;grid-template-columns:34px 1fr;gap:18px;padding:23px 0}
.method-item:last-child{border-bottom:0}
.method-item .index{font-size:13px;color:var(--muted);font-weight:700}
.method-item h3{font-size:20px;margin-bottom:8px}
.method-item p{font-size:14px;color:var(--muted);margin:0}
.method .text-link{margin-top:20px}
.home-channels{padding-block:48px 0}
.channel-band{display:grid;grid-template-columns:1fr auto;gap:30px;align-items:center;background:var(--navy);color:white;padding:35px;border-radius:20px}
.channel-band h2{color:white;font-size:1.7rem}
.channel-band p{color:var(--mist);font-size:.9rem;margin:0}

/* ==========================================================================
   6. Footer
   ========================================================================== */
.site-footer{background:var(--navy);color:var(--mist);padding:54px 0 24px}
.footer-main{display:grid;grid-template-columns:1.8fr 1fr 1.2fr;gap:60px;padding-bottom:40px}
.site-footer a{color:white}
.site-footer .brand{color:white}
.site-footer .brand-mark{background:white;color:var(--navy)}
.site-footer .brand-mark::after{border-color:var(--navy)}
.footer-about{font-size:15px;line-height:1.55;margin-top:18px;max-width:365px}
.footer-small{display:block;font-size:11px;margin-top:17px}
.footer-column h2{font-size:11px;font-weight:700;letter-spacing:.12em;color:var(--mist);text-transform:uppercase;margin:8px 0 17px}
.footer-links{list-style:none;margin:0;padding:0;display:grid}
.footer-links a{display:block;width:fit-content;font-size:13px;min-height:42px;text-decoration:none;padding-block:10px;line-height:1.5}
.footer-links a:hover{text-decoration:underline}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:50px;border-top:1px solid var(--darkline);padding-top:24px}
.footer-bottom p{font-size:12px;max-width:800px;line-height:1.65;margin:0}
.footer-bottom span{font-size:9px;letter-spacing:.1em;line-height:1.8;flex:none}

/* ==========================================================================
   7. Páginas, artículo e índice
   ========================================================================== */
.breadcrumb{font-size:12px;color:var(--muted);display:flex;flex-wrap:wrap;gap:10px;margin-bottom:27px}
.breadcrumb a{font-weight:650}
.page-content{padding-bottom:68px}
.page-head{padding-top:41px;margin-bottom:30px}
.page-head h1{font-size:clamp(48px,4.1vw,61px);max-width:970px;line-height:1.08;margin-bottom:0}
.page-head .eyebrow{margin-bottom:16px}
.page-lead{max-width:880px;margin-top:22px}
.page-lead p{font-size:18px;color:var(--muted);margin-bottom:14px}
.archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.archive-grid .compact-card>a{min-height:255px}
.archive-grid .compact-card h3{font-size:26px}
.archive-grid .compact-card p{font-size:13px;color:var(--muted);margin-top:14px}
.result-count{font-size:12px;color:var(--muted);margin:18px 0}
.result-count strong{color:var(--navy)}
.filter-box{margin:27px 0 28px;padding:23px;background:var(--soft);border:1px solid var(--line);border-radius:12px;min-width:0}
.filter-box legend{padding:0;font-weight:740;color:var(--navy);font-size:13px;float:left;width:100%;margin-bottom:14px}
.filter-buttons{display:flex;flex-wrap:wrap;gap:9px;clear:both}
.filter-button{display:inline-flex;align-items:center;text-decoration:none;font-size:12px;font-weight:650;background:var(--white);color:var(--navy);border:1px solid var(--muted);border-radius:6px;min-height:44px;padding:10px 14px;transition:background-color 140ms ease-out,border-color 140ms ease-out,color 140ms ease-out}
.filter-button[aria-current=true]{background:var(--navy);color:var(--white);border-color:var(--navy)}
.filter-button[aria-current=true]::before{content:"\2713";margin-right:7px}
.filter-button:hover{border-color:var(--navy)}
.state-box{border:1px solid var(--line);border-left:4px solid var(--green);border-radius:12px;background:var(--soft);padding:36px;display:grid;grid-template-columns:52px 1fr;gap:25px;max-width:100%}
.state-box .state-icon{width:50px;height:50px;border:1px solid var(--line);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--navy);background:var(--white);flex:none}
.state-box .eyebrow{margin-bottom:12px}
.state-box h1,.state-box h2,.state-box h3{font-size:30px;line-height:1.15;margin-bottom:15px}
.state-box p{font-size:15px;color:var(--muted);max-width:640px;margin-bottom:10px}
.state-box .actions{margin-top:23px}
.state-box.error{border-left-color:var(--navy)}
.search-box{max-width:820px;margin-top:26px}
.search-box label{display:block;font-weight:750;font-size:14px;color:var(--navy);margin-bottom:10px}
.search-controls{display:flex;gap:10px}
.search-controls input{width:100%;min-width:0;border:1px solid var(--muted);background:var(--white);padding:14px 17px;border-radius:8px;min-height:54px;font-size:16px;color:var(--ink)}
.search-controls .button{min-width:112px}
.search-results{max-width:1000px;margin-top:34px}
.search-results>.result-count{padding-bottom:15px;border-bottom:1px solid var(--line)}
.result-item{border-bottom:1px solid var(--line);padding:24px 0}
.result-item>a{display:block;text-decoration:none;padding:4px 8px 4px 0;color:var(--navy)}
.result-item h2{font-size:29px;line-height:1.18;margin:12px 0}
.result-item p{font-size:14px;max-width:750px;color:var(--muted);margin:0}
.result-meta{display:flex;gap:14px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:11px}
.query-value{overflow-wrap:anywhere}
.article-top{max-width:940px}
.article-top h1{font-size:clamp(44px,4.2vw,64px);margin:20px 0 22px}
.article-summary{font-size:20px;line-height:1.7;max-width:770px;color:var(--muted)}
.article-summary p{margin:0}
.article-meta{display:flex;flex-wrap:wrap;gap:10px 24px;font-size:12px;color:var(--muted);margin-top:26px;padding-block:18px;border-block:1px solid var(--line)}
.article-figure{margin:32px 0 0;max-width:1160px}
.article-figure figcaption{font-size:12px;color:var(--muted);margin-top:10px}
.article-layout{display:grid;grid-template-columns:minmax(0,750px) minmax(220px,1fr);gap:56px;align-items:start;margin-top:42px;max-width:1160px;padding-bottom:68px}
.article-layout:not(.has-toc) .article-aside{grid-column:2}
.article-body{grid-column:1;grid-row:1;min-width:0;font-size:18px;line-height:1.85}
.prose{overflow-wrap:anywhere}
.article-body .prose p{max-width:70ch}
.prose h2{font-size:27px;margin:36px 0 17px;scroll-margin-top:calc(var(--header-height) + var(--adminbar,0px) + 20px)}
.prose h2:first-child{margin-top:0}
.prose h3{font-size:22px;margin-top:28px;margin-bottom:16px;scroll-margin-top:calc(var(--header-height) + var(--adminbar,0px) + 20px)}
.prose li{margin-block:10px}
.prose img{border-radius:12px}
.prose table{border-collapse:collapse;width:100%;font-size:.89rem}
.prose th,.prose td{padding:12px;border:1px solid var(--line);text-align:left}
.prose blockquote{margin:2em 0;padding:20px 24px;border-left:4px solid var(--green);background:var(--soft)}
.article-aside{grid-column:2;grid-row:1;position:sticky;top:calc(var(--header-height) + var(--adminbar,0px) + 25px);background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:23px}
.article-aside h2{font-size:14px;margin:0 0 16px;letter-spacing:0}
.article-index{display:flex;flex-direction:column}
.article-index a{display:flex;align-items:center;gap:12px;padding:11px 0;min-height:44px;font-size:12px;color:var(--muted);text-decoration:none;border-bottom:1px solid var(--line);line-height:1.5}
.article-index a:last-child{border:0}
.article-index a:hover{text-decoration:underline;color:var(--navy)}
.article-index a[aria-current=location]{color:var(--navy);font-weight:750}
.article-index a[aria-current=location] .index-dot{background:var(--navy)}
.article-index a.is-sub{padding-left:14px}
.index-dot{width:5px;height:5px;border-radius:50%;background:var(--line);flex:none}
.aside-warning{font-size:12px;line-height:1.75;color:var(--muted);margin-top:21px;padding-top:17px;border-top:1px solid var(--line)}
.aside-warning p{margin:0 0 10px}
.aside-warning p:last-child{margin-bottom:0}
.article-notice{font-size:15px;background:var(--mist);border-left:4px solid var(--green);padding:24px;line-height:1.8;border-radius:0 10px 10px 0;margin-top:32px}
.document-layout{display:grid;grid-template-columns:minmax(0,780px) 1fr;gap:90px;margin-top:28px;padding-bottom:68px;align-items:start}
.document-note{padding:25px;background:var(--mist);border-radius:12px;color:var(--muted);font-size:13px;line-height:1.8}
.document-note h2{font-size:18px;margin-bottom:14px}
.email-text{font-weight:650;color:var(--navy);overflow-wrap:anywhere}
.pagination{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:35px}
.pagination .page-numbers{padding:8px 15px;min-height:44px;display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:8px;text-decoration:none;font-size:.85rem}
.pagination .current{background:var(--navy);color:white}
.related{margin-top:24px}
.page-head-crumb{padding-top:41px;margin-bottom:24px}
.big-404{font-size:80px;font-weight:800;color:var(--navy);line-height:1;letter-spacing:-4px;margin:22px 0}

/* ==========================================================================
   8. Responsive (breakpoints RH01: escritorio >=1024, tablet 761-1023, móvil <=760, estrecho <=380)
   ========================================================================== */
@media(min-width:1600px){.hero h1{font-size:72px}}
@media(max-width:1100px){:root{--gutter:28px}.home-flow{column-gap:35px}.site-nav{gap:22px}.method-grid{gap:50px}.feature-card h3{font-size:34px}.article-layout{gap:38px;grid-template-columns:minmax(0,1fr) 260px}.document-layout{gap:40px;grid-template-columns:minmax(0,1fr) 250px}.guide-card h3{font-size:24px}.footer-main{gap:36px}}
@media(max-width:1023px) and (min-width:761px){:root{--gutter:28px}.home-flow{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}.guide-grid,.archive-grid{grid-template-columns:repeat(2,1fr)}.topic-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){
    .home-flow{column-gap:28px}
    .home-flow>.hero{padding-top:48px}
    .home-editorial{margin-top:48px}
    .hero .lead{font-size:16px}
    .panel-heading{padding:24px 20px}
    .panel-heading h2{font-size:25px}
    .panel-steps{padding:0 20px}
    .trust-row{gap:14px}
    .trust-icon{display:none}
    .guide-grid,.archive-grid{grid-template-columns:repeat(2,1fr)}
    .section-head h2{font-size:33px}
    .guide-card h3{font-size:28px}
    .method h2{font-size:39px}
    .topic-grid{grid-template-columns:repeat(2,1fr)}
    .feature-layout{grid-template-columns:1.15fr 1fr}
    .feature-card h3{font-size:31px}
    .feature-card .card-media{margin:-25px -25px 20px;width:calc(100% + 50px)}
    .compact-card h3{font-size:22px}
    .document-layout{display:block}
    .document-note{margin-top:28px}
    .site-nav{gap:18px}
    .site-nav a{font-size:13px}
    .site-nav li.search-nav{padding-left:16px}
}
@media(max-width:760px){
    :root{--header-height:80px;--gutter:20px}
    .masthead{min-height:80px;gap:20px}
    .menu-toggle{display:flex}
    html.js .site-nav:not(.is-open){display:none}
    .site-nav{position:absolute;top:100%;left:0;right:0;padding:16px 20px 20px;flex-direction:column;align-items:stretch;gap:0;background:var(--white);border-bottom:2px solid var(--navy);box-shadow:0 14px 22px rgba(15,45,91,.08)}
    .site-nav a{font-size:16px;min-height:51px;border-bottom:1px solid var(--line);padding:8px 12px}
    .site-nav a[aria-current=page]{background:var(--mist)}
    .site-nav a[aria-current=page]::after{left:0;right:auto;top:8px;bottom:8px;height:auto;width:3px}
    .site-nav li.search-nav{border-left:0;border-bottom:0;padding-left:12px}
    /* Sin JavaScript (RH01 mejora progresiva, RC003 H-01): no hay botón; la navegación queda visible, estática y compacta (enlaces en fila, con salto de línea)
       debajo de la marca, y el header deja de ser sticky para no tapar los destinos del índice ni el contenido. Sin barra de desplazamiento propia ni JS. */
    html:not(.js){--header-height:0px}
    html:not(.js) .site-header{position:static}
    html:not(.js) .menu-toggle{display:none}
    html:not(.js) .masthead{flex-wrap:wrap;padding-block:12px;gap:4px 20px}
    html:not(.js) .site-nav{position:static;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:0 22px;width:100%;padding:0;background:transparent;border-bottom:0;box-shadow:none}
    html:not(.js) .site-nav a{font-size:15px;min-height:44px;padding:6px 0;border-bottom:0}
    html:not(.js) .site-nav a[aria-current=page]{background:transparent}
    html:not(.js) .site-nav a[aria-current=page]::after{left:0;right:0;top:auto;bottom:0;height:3px;width:auto}
    html:not(.js) .site-nav li.search-nav{border-left:0;padding-left:0;margin-left:0}

    /* Orden móvil obligatorio RH01: hero -> Publicaciones -> panel editorial -> confianza -> temas -> guías -> método -> footer */
    .home-flow{display:flex;flex-direction:column}
    .home-flow>.hero{order:1;padding:24px 0 20px;width:100%}
    .home-publications{order:2;padding:28px 0 36px}
    .home-editorial{order:3;width:100%;margin:0 0 20px}
    .home-flow>.trust-row{order:4;width:100%;margin-bottom:16px}
    .hero h1{font-size:clamp(36px,10vw,42px);line-height:1.055;margin:14px 0 15px;letter-spacing:-.045em}
    .hero .lead{font-size:16px;line-height:1.6}
    .hero .actions{margin-top:18px;gap:9px}
    .hero .actions .button{flex:1 1 0;min-width:0}
    .hero-proof{margin-top:11px;line-height:1.45}
    .feature-card .card-media{margin:-27px -27px 20px;width:calc(100% + 54px)}
    .compact-card .card-media{margin:-23px -23px 18px;width:calc(100% + 46px)}
    .guide-card .card-media{margin:-25px -25px 18px;width:calc(100% + 50px)}
    .editorial-panel{box-shadow:5px 5px 0 var(--mist)}
    .panel-heading{padding:23px 24px}
    .panel-heading h2{max-width:440px;font-size:29px;margin-top:15px}
    .panel-steps{padding:0 24px}
    .panel-step{padding:17px 0;grid-template-columns:26px 1fr;gap:12px}
    .panel-step strong{font-size:14px}
    .trust-row{display:block;padding:5px 0;gap:0}
    .trust-item{border:0;border-bottom:1px solid var(--line);padding:15px 0;gap:13px}
    .trust-item:last-child{border-bottom:0}
    .trust-icon{display:flex}
    .section{padding-block:43px}
    .section-head{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:18px}
    .section-head h2{font-size:32px;max-width:500px}
    .section-kicker{margin-bottom:10px}
    .section-head>.text-link{min-height:40px}
    .topics-section{padding-block:34px}
    .topics-section .section-head{gap:6px}
    .topics-section h2{font-size:28px}
    .guides-section{padding-block:43px}
    .method{padding-block:41px}
    .method-item{padding-block:22px}
    .compact-stack{gap:14px}
    .guide-grid,.archive-grid{grid-template-columns:1fr;gap:14px}
    .topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .topic-grid>*{min-width:0}
    .topic-card{min-height:79px;padding:15px;gap:10px}
    .topic-card strong{font-size:13px}
    .topic-icon{width:32px;height:32px}
    .topic-icon .icon{width:19px;height:19px}
    .topic-arrow{display:none}
    .guide-card>a,.guide-card>a{min-height:258px;padding:25px}
    .guide-card h3{font-size:29px}
    .compact-card .card-top{flex-wrap:nowrap}
    .compact-card h3{font-size:25px;max-width:470px}
    .feature-card h3{font-size:34px;max-width:550px}
    .footer-links a{min-height:44px;font-size:12px}
    .compact-card .card-bottom{padding-top:18px}
    .home-flow>.home-publications{padding:30px 0 36px}
    .feature-layout{grid-template-columns:1fr;gap:14px}
    .feature-card>a{min-height:350px;padding:27px}
    .compact-card>a{min-height:180px;padding:23px}
    .changes-row{grid-template-columns:1fr;gap:12px;margin-top:23px;padding-block:24px}
    .method-grid{grid-template-columns:1fr;gap:14px}
    .method h2{font-size:43px}
    .footer-main{grid-template-columns:1fr 1fr;gap:30px 22px;padding-bottom:30px}
    .footer-main>.footer-brand{grid-column:1/-1}
    .footer-bottom{flex-direction:column;align-items:flex-start;gap:20px}
    .page-head{padding-top:29px;margin-bottom:25px}
    .page-head h1{font-size:44px}
    .filter-box{padding:18px;margin:23px 0}
    .filter-button{padding:10px 12px;font-size:12px;min-height:44px}
    .state-box{grid-template-columns:1fr;padding:26px;gap:20px}
    .state-box h1,.state-box h2,.state-box h3{font-size:27px}
    .search-controls{gap:8px}
    .article-top h1{font-size:43px;line-height:1.1}
    .article-summary{font-size:18px}
    .article-layout,.article-layout.has-toc{display:flex;flex-direction:column;gap:27px;margin-top:27px;padding-bottom:44px}
    .article-aside{position:static;order:-1;width:100%;padding:22px}
    .article-index{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}
    .article-index a{font-size:12px;min-height:46px}
    .article-body{font-size:17px;line-height:1.8;width:100%}
    .prose{font-size:16px;line-height:1.8}
    .article-body .prose{font-size:17px;line-height:1.8}
    .prose h2{font-size:26px;margin-top:30px}
    .document-layout{padding-bottom:42px}
}
@media(max-width:380px){
    :root{--gutter:16px}
    .hero h1{font-size:36px}
    .hero .actions{flex-direction:column;align-items:stretch}
    .topic-grid{grid-template-columns:1fr}
    .article-index{grid-template-columns:1fr}
    .feature-card h3{font-size:31px}
    .page-head h1,.article-top h1{font-size:39px}
    .search-controls{flex-wrap:wrap}
    .search-controls .button{width:100%}
    .method h2{font-size:38px}
}

/* ==========================================================================
   9. Movimiento reducido e impresión
   ========================================================================== */
.button,.filter-button,.topic-card,.site-nav a,.compact-card>a,.guide-card>a,.feature-card>a,.change-card>a{transition:background-color 140ms ease-out,border-color 140ms ease-out,color 140ms ease-out}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.site-header,.menu-toggle,.site-nav,.site-footer,.article-aside,.actions,.related{display:none!important}.wrap{width:100%;max-width:none}.article-layout,.document-layout{display:block}.home-flow{display:block}body{font-size:11pt;color:#000}.prose{max-width:none}.prose a[href]::after{content:" (" attr(href) ")";font-size:9pt}}
