.editorial { margin-block: 2.75rem 5rem; }
.cab-editorial { display:flex; justify-content:space-between; flex-wrap:wrap; align-items:center; gap:1rem; padding-bottom:1.2rem; border-bottom:1px solid var(--borde); }
.cab-editorial h1 { font-size:clamp(2rem,5vw,3.4rem); margin-bottom:.35rem; }
#ad-mensaje,.editorial p,.editorial dd { overflow-wrap:anywhere; }
#ad-mensaje { margin-block:1rem; min-height:1.6em; color:var(--secundario); }
#ad-mensaje[data-error=true] { color:var(--resalte); font-weight:650; }
#ad-secciones,.controles { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
#ad-secciones { border-bottom:1px solid var(--borde); padding-bottom:.9rem; margin-bottom:1.25rem; }
.editorial button,.editorial input,.editorial select,.editorial textarea { font:inherit; line-height:1.36; }
.editorial button,.editorial select { cursor:pointer; }
.editorial button { background:var(--tarjeta); color:var(--texto); border:1px solid var(--borde); border-radius:.45rem; padding:.62rem .84rem; min-height:44px; font-weight:610; }
.editorial button[aria-current=true],.editorial button[type=submit] { background:#1d573f; border-color:#1d573f; color:white; }
.editorial button:disabled { opacity:.62; cursor:default; }
.editorial :is(input,textarea,select,summary,button):focus-visible { outline:3px solid var(--resalte);outline-offset:3px; }
.editorial input:not([type=checkbox]),.editorial select,.editorial textarea { display:block; border:1px solid var(--borde); background:var(--tarjeta); color:var(--texto); padding:.62rem; border-radius:.4rem; width:100%; max-width:100%; min-height:44px; }
.editorial input[type=checkbox] { width:1.15rem; height:1.15rem; vertical-align:middle; }
.editorial input[type=checkbox]+span { padding-left:.5rem; }
.editorial textarea { resize:vertical; }
.editorial label { display:block; margin:.65rem 0; color:var(--texto); font-weight:620; }
.editorial .campos { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1.2rem; }
.editorial .fila-paginacion { display:flex;gap:.8rem;align-items:center;flex-wrap:wrap;margin-top:1rem; }
.editorial h2 { font-size:clamp(1.55rem,3vw,2.2rem); margin-bottom:.8rem; }
.editorial h3 { font-size:1.22rem;margin:1rem 0 .5rem; }
.editorial .resumen { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(12rem,100%),1fr));gap:.7rem; margin-top:1rem; }
.editorial .resumen>div,.editorial details.ficha,.editorial .informe,.editorial fieldset { border:1px solid var(--borde);background:var(--tarjeta);padding:1rem 1.15rem;border-radius:.65rem;min-width:0; }
.editorial .resumen dd { font-size:1.7rem;font-weight:690; }
.editorial .informe,.editorial details.ficha,.editorial fieldset,.editorial .controles { margin-top:.75rem; }
.editorial details.ficha summary { cursor:pointer;min-height:44px;align-content:center;overflow-wrap:anywhere;font-weight:640; }
.editorial .ficha p,.editorial .informe p { margin:.5rem 0;white-space:pre-line; }
.editorial .meta { color:var(--secundario);font-size:.88rem; }
.editorial .ficha ol { padding-inline-start:1.4rem; }
.editorial .ficha li { margin:.5rem 0;overflow-wrap:anywhere; }
.editorial legend { padding-inline:.4rem;font-weight:650; }
.editorial .advertencia { padding:.8rem;border-left:3px solid var(--tinta-enlace);background:var(--tinta-suave); }
#ad-dialogo { width:min(28rem,calc(100% - 2rem));max-height:calc(100vh - 2rem);border:1px solid var(--borde);background:var(--tarjeta);color:var(--texto);padding:1.5rem;border-radius:1rem; }
#ad-dialogo::backdrop { background:rgb(5 24 16 / .30); }
@media(max-width:40rem){.editorial{margin-block:1.4rem 2.5rem}.editorial .campos{grid-template-columns:1fr}.editorial .ficha,.editorial fieldset{padding:.75rem}}
