/* Residencia Divina Pastora — estilos de la web pública */
:root {
  --verde: #1d5340;
  --verde-osc: #00382c;
  --crema: #faf6ef;
  --arena: #efe6d6;
  --terracota: #8f282b;
  --texto: #22302b;
  --suave: #55635d;
  --blanco: #fff;
  --borde: #d9cfbd;
  --error: #a4161a;
  --ok: #1d5c35;
  --foco: #0b57d0;
  --escala: 1;
  --fuente: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --titulos: Georgia, "Times New Roman", serif;
  --radio: 10px;
  --ancho: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: calc(106.25% * var(--escala)); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--fuente); line-height: 1.65; color: var(--texto); background: var(--crema); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde-osc); text-underline-offset: .18em; }
a:hover { color: var(--terracota); }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; border-radius: 3px; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--titulos); line-height: 1.2; color: var(--verde-osc); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 1.4em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--verde-osc); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px; }
.skip:focus { top: 0; color: #fff; }
.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: 18px; }
.contenedor--estrecho { max-width: 820px; }
.centro { text-align: center; }
.ico { vertical-align: -4px; flex: none; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: .55em 1.2em; border: 2px solid var(--verde); border-radius: 999px; background: var(--verde); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--verde-osc); border-color: var(--verde-osc); color: #fff; }
.btn--sec { background: transparent; color: var(--verde-osc); }
.btn--sec:hover { background: var(--verde-osc); color: #fff; }
.btn--claro { background: #fff; border-color: #fff; color: var(--verde-osc); }
.btn--claro:hover { background: var(--arena); border-color: var(--arena); color: var(--verde-osc); }
.btn--grande { font-size: 1.08rem; padding: .7em 1.6em; }
.enlace-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; text-align: left; }

/* Cabecera y menú superior */
.cabecera { background: var(--blanco); border-bottom: 1px solid var(--borde); position: sticky; top: 0; z-index: 50; }
.barra-sup { background: var(--verde-osc); color: #fff; font-size: .88rem; }
.barra-sup a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; min-height: 36px; padding: 0 .3em; }
.barra-sup a:hover { text-decoration: underline; }
.barra-sup__in { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.barra-sup ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.idioma { border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 0 .8em !important; min-height: 28px !important; }
.cabecera__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--verde-osc); }
.logo__txt { display: flex; flex-direction: column; line-height: 1.2; }
.logo__txt strong { font-family: var(--titulos); font-size: 1.15rem; }
.logo__txt small { color: var(--suave); font-size: .8rem; }
.nav-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: var(--verde); color: #fff; border: 0; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.nav-btn__barras, .nav-btn__barras::before, .nav-btn__barras::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-btn__barras::before { position: absolute; top: -6px; }
.nav-btn__barras::after { position: absolute; top: 6px; }
.nav { display: flex; align-items: center; gap: 10px; }
.nav__lista { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__enlace { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--texto); text-decoration: none; border-radius: 8px; cursor: pointer; }
.nav__enlace:hover, .nav__enlace[aria-expanded="true"] { background: var(--arena); color: var(--verde-osc); }
.nav__enlace.es-actual { color: var(--terracota); box-shadow: inset 0 -3px 0 var(--terracota); border-radius: 8px 8px 0 0; }
.nav__enlace .ico { width: 14px; height: 14px; }
.nav__sub { display: none; list-style: none; margin: 0; padding: 6px; position: absolute; right: 0; top: 100%; min-width: 230px; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 60; }
.nav__enlace[aria-expanded="true"] + .nav__sub { display: block; }
.nav__sub a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--texto); }
.nav__sub a:hover, .nav__sub a[aria-current] { background: var(--arena); color: var(--verde-osc); }
.buscador { display: flex; align-items: center; border: 1px solid var(--borde); border-radius: 999px; background: var(--crema); overflow: hidden; }
.buscador input { border: 0; background: transparent; font: inherit; padding: 8px 4px 8px 14px; width: 9.5em; color: var(--texto); min-height: 40px; }
.buscador button { border: 0; background: none; color: var(--verde-osc); min-width: 44px; min-height: 40px; cursor: pointer; }
.buscador--pagina { display: block; border: 0; background: none; overflow: visible; margin-bottom: 1.5em; }
.buscador__fila { display: flex; gap: 8px; margin-top: 6px; }
.buscador--pagina input { flex: 1; width: auto; border: 2px solid var(--borde); border-radius: 8px; background: #fff; padding: 10px 12px; }

@media (max-width: 1020px) {
  .nav-btn { display: inline-flex; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  .nav.abierto { display: flex; }
  .nav__lista { flex-direction: column; align-items: stretch; }
  .nav__enlace { width: 100%; justify-content: space-between; padding: 0 12px; min-height: 48px; }
  .nav__enlace.es-actual { box-shadow: inset 4px 0 0 var(--terracota); border-radius: 8px; }
  .nav__sub { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--arena); border-radius: 0; margin-left: 12px; }
  .buscador input { flex: 1; width: auto; }
  .cabecera { position: static; }
}
@media (max-width: 560px) { .solo-md { display: none; } .logo__txt strong { font-size: 1rem; } .logo img { width: 42px; height: 42px; } }

/* Portada */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(70vh, 560px); display: flex; align-items: center; background: var(--verde-osc); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__velo { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,45,38,.88), rgba(20,45,38,.55) 60%, rgba(20,45,38,.3)); z-index: -1; }
.hero__in { padding-block: 60px; }
.hero h1 { color: #fff; max-width: 16ch; font-size: clamp(2.1rem, 6vw, 3.6rem); }
.hero p { max-width: 46ch; font-size: 1.2rem; }
.hero .btn { background: #fff; border-color: #fff; color: var(--verde-osc); }
.hero .btn:hover { background: var(--arena); border-color: var(--arena); }
.seccion { padding-block: 52px; }
.seccion--arena { background: var(--arena); }
.seccion--verde { background: var(--verde-osc); color: #fff; }
.seccion--verde h2, .seccion--verde a:not(.btn) { color: #fff; }
.seccion > .contenedor > h2:first-child, .seccion h2:first-child { margin-top: 0; }
.tarjetas { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tarjeta { background: #fff; border: 1px solid var(--borde); border-top: 5px solid var(--terracota); border-radius: var(--radio); padding: 24px; }
.tarjeta p { margin: 0; }
.dos-col { display: grid; gap: 36px; grid-template-columns: 1.1fr 1fr; align-items: center; }
.dos-col--form { align-items: start; }
@media (max-width: 820px) { .dos-col { grid-template-columns: 1fr; } }
.redonda { border-radius: var(--radio); }
.cta__datos { display: flex; gap: 8px 28px; justify-content: center; flex-wrap: wrap; font-size: 1.3rem; font-weight: 600; }

/* Páginas */
.cab-pagina { background: var(--arena); padding-block: 30px 26px; border-bottom: 1px solid var(--borde); }
.cab-pagina h1 { margin: 0; }
.cab-pagina p { margin: .5em 0 0; }
.migas { font-size: .9rem; margin-bottom: .6em; color: var(--suave); }
.img-pagina { width: 100%; max-height: 460px; object-fit: cover; margin-bottom: 1.6em; }
.prosa { max-width: 75ch; }
.prosa img { border-radius: var(--radio); margin-block: 1em; }
.prosa ul, .prosa ol { padding-left: 1.3em; }
.prosa li { margin-bottom: .35em; }
.prosa blockquote { margin: 1.2em 0; padding: .6em 1.2em; border-left: 5px solid var(--terracota); background: #fff; }
.prosa table { width: 100%; border-collapse: collapse; margin-block: 1em; display: block; overflow-x: auto; }
.prosa th, .prosa td { border: 1px solid var(--borde); padding: 8px 10px; text-align: left; vertical-align: top; }
.prosa th { background: var(--arena); }
.meta { color: var(--suave); font-size: .92rem; }
.galeria { list-style: none; margin: 1.6em 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.galeria a { display: block; border-radius: var(--radio); overflow: hidden; }
.galeria img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .25s; }
.galeria a:hover img { transform: scale(1.04); }
.visor { border: 0; padding: 0; background: #111; color: #fff; max-width: min(96vw, 1100px); border-radius: var(--radio); }
.visor::backdrop { background: rgba(0,0,0,.8); }
.visor img { max-height: 82vh; margin: auto; }
.visor__pie { margin: 0; padding: 10px 16px; text-align: center; }
.visor__cerrar { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: #111; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Blog */
.entradas { list-style: none; margin: 0 0 1.6em; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.entrada { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; position: relative; display: flex; flex-direction: column; }
.entrada img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.entrada__txt { padding: 18px; }
.entrada h3 { margin-bottom: .3em; }
.entrada h3 a { text-decoration: none; }
.entrada h3 a::after { content: ""; position: absolute; inset: 0; }
.entrada:hover { border-color: var(--verde); }
.entrada:focus-within { outline: 3px solid var(--foco); outline-offset: 2px; }
.entrada p:last-child { margin: 0; }
.paginacion { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }
.resultados { list-style: none; padding: 0; }
.resultados li { padding-block: 14px; border-bottom: 1px solid var(--borde); }
.resultados h2 { font-size: 1.2rem; margin: 0 0 .3em; }

/* Formularios */
.formulario { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 26px; }
.formulario h2 { margin-top: 0; }
.campo { margin-bottom: 1.1em; }
.campo label { display: block; font-weight: 600; margin-bottom: .3em; }
.campo small { font-weight: 400; color: var(--suave); }
.campo input[type=text], .campo input[type=email], .campo input[type=tel], .campo textarea { width: 100%; font: inherit; color: var(--texto); padding: 11px 12px; border: 2px solid #8a958f; border-radius: 8px; background: #fff; }
.campo [aria-invalid=true] { border-color: var(--error); }
.campo__error { color: var(--error); font-weight: 600; margin: .3em 0 0; }
.campo--check { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; }
.campo--check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--verde); }
.campo--check label { font-weight: 400; margin: 0; }
.campo--check .campo__error { grid-column: 2; }
.trampa { position: absolute; left: -9999px; }
.aviso { padding: 14px 16px; border-radius: 8px; border: 2px solid; font-weight: 600; }
.aviso p { margin: 0; }
.aviso--ok { background: #e8f5ec; border-color: var(--ok); color: var(--ok); }
.aviso--error { background: #fdecec; border-color: var(--error); color: var(--error); }
.nota, .letra-peq { font-size: .88rem; color: var(--suave); }
.letra-peq { margin: 1.2em 0 0; }
.datos p { margin-bottom: .4em; }
address { font-style: normal; }

/* Mapa */
.mapa { padding-bottom: 52px; }
.mapa__caja { background: var(--arena); border: 1px dashed var(--suave); border-radius: var(--radio); padding: 28px; text-align: center; }
.mapa__caja p:last-child { margin: 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.mapa iframe { width: 100%; height: 420px; border: 1px solid var(--borde); border-radius: var(--radio); display: block; }

/* Pie */
.pie { background: var(--verde-osc); color: #eaf1ee; margin-top: 20px; }
.pie a { color: #fff; }
.pie__cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding-block: 44px 30px; }
.pie__tit { color: #fff; font-size: 1.1rem; margin: 0 0 .7em; }
.pie__lista { list-style: none; margin: 0; padding: 0; }
.pie__lista li { margin-bottom: .45em; }
.pie__redes a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; margin-right: 6px; }
.pie address p { display: flex; gap: 8px; align-items: flex-start; margin-bottom: .5em; }
.pie address .ico { margin-top: 4px; }
.pie__copy { border-top: 1px solid rgba(255,255,255,.2); padding-block: 16px; font-size: .88rem; }

/* Cookies */
.cookies { position: fixed; inset: auto 12px 12px 12px; z-index: 90; display: flex; justify-content: center; }
.cookies[hidden] { display: none; }
.cookies__in { background: #fff; color: var(--texto); border: 2px solid var(--verde-osc); border-radius: var(--radio); box-shadow: 0 10px 40px rgba(0,0,0,.3); padding: 20px 22px; max-width: 760px; max-height: 86vh; overflow: auto; }
.cookies h2 { font-size: 1.2rem; margin: 0 0 .4em; }
.cookies__opc { display: grid; gap: 10px; margin-bottom: 1em; }
.cookies__opc label { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.cookies__opc input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--verde); }
.cookies__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookies__btns .btn { flex: 1 1 150px; }

/* Barra de accesibilidad */
.a11y { position: fixed; left: 0; top: 42%; z-index: 80; }
.a11y__btn { width: 48px; height: 48px; border: 2px solid #fff; border-left: 0; border-radius: 0 10px 10px 0; background: #0b3d91; color: #fff; cursor: pointer; display: grid; place-items: center; }
.a11y__btn .ico { width: 26px; height: 26px; }
.a11y__panel { position: absolute; left: 0; top: 54px; width: 230px; background: #fff; color: #111; border: 2px solid #0b3d91; border-left: 0; border-radius: 0 10px 10px 0; padding: 10px; display: grid; gap: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.a11y__panel[hidden] { display: none; }
.a11y__tit { margin: 0 0 2px; font-weight: 700; }
.a11y__panel button { min-height: 40px; text-align: left; padding: 6px 10px; border: 1px solid #667; border-radius: 6px; background: #f4f6f8; color: #111; font: inherit; font-size: .92rem; cursor: pointer; }
.a11y__panel button[aria-pressed=true] { background: #0b3d91; color: #fff; border-color: #0b3d91; }
@media (max-height: 620px) { .a11y { top: 20%; } }

/* Modos de accesibilidad */
.a11y-links a { text-decoration: underline !important; }
.a11y-font body, .a11y-font h1, .a11y-font h2, .a11y-font h3, .a11y-font .logo__txt strong { font-family: Verdana, Tahoma, Arial, sans-serif !important; }
.a11y-spacing body { line-height: 1.9; letter-spacing: .06em; word-spacing: .14em; }
.a11y-gray .cabecera, .a11y-gray main, .a11y-gray .pie { filter: grayscale(1); }
.a11y-contrast { --verde: #000; --verde-osc: #000; --crema: #000; --arena: #000; --terracota: #ffe600; --texto: #fff; --suave: #fff; --blanco: #000; --borde: #fff; --error: #ff8a8a; --ok: #8dffb0; --foco: #ffe600; }
.a11y-contrast body, .a11y-contrast .cabecera, .a11y-contrast .tarjeta, .a11y-contrast .entrada, .a11y-contrast .formulario, .a11y-contrast .nav__sub, .a11y-contrast .cookies__in, .a11y-contrast .prosa blockquote, .a11y-contrast .aviso { background: #000 !important; color: #fff !important; }
.a11y-contrast h1, .a11y-contrast h2, .a11y-contrast h3, .a11y-contrast .logo, .a11y-contrast .nav__enlace { color: #fff !important; }
.a11y-contrast a, .a11y-contrast .nav__sub a, .a11y-contrast .enlace-btn { color: #ffe600 !important; }
.a11y-contrast .btn, .a11y-contrast .nav-btn, .a11y-contrast .buscador button { background: #ffe600 !important; color: #000 !important; border-color: #ffe600 !important; }
.a11y-contrast .campo input, .a11y-contrast .campo textarea, .a11y-contrast .buscador, .a11y-contrast .buscador input { background: #000 !important; color: #fff !important; border-color: #fff !important; }
.a11y-contrast .hero__img { display: none; }
.a11y-contrast .hero__velo { background: #000; }
.a11y-contrast .pie, .a11y-contrast .barra-sup, .a11y-contrast .cab-pagina, .a11y-contrast .seccion--verde { border-top: 2px solid #fff; }
.a11y-contrast .nav__enlace:hover, .a11y-contrast .nav__enlace[aria-expanded="true"], .a11y-contrast .nav__sub a:hover { background: #333 !important; }

@media print {
  .cabecera .nav, .nav-btn, .barra-sup, .a11y, .cookies, .pie nav, .mapa { display: none !important; }
  body { background: #fff; }
}

/* En pantallas estrechas el botón de accesibilidad baja a la esquina para no tapar el texto */
@media (max-width: 1260px) {
  .a11y { top: auto; bottom: 14px; }
  .a11y__panel { top: auto; bottom: 54px; }
}

/* ---------- Logotipo ---------- */
.logo img { width: auto; height: 62px; }
@media (max-width: 560px) { .logo img { width: auto; height: 46px; } }
.a11y-contrast .logo img { filter: invert(1); }

/* ---------- Página de historia o semblanza (tipo «story») ---------- */
.cab-pagina__sub { font-family: var(--titulos); font-style: italic; font-size: 1.15rem; color: var(--suave); }
.historia { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); max-width: 900px; margin-inline: auto; padding: clamp(20px, 5vw, 60px); box-shadow: 0 2px 14px rgba(60, 50, 30, .07); }
.prosa--historia { max-width: none; font-family: var(--titulos); font-size: 1.1rem; line-height: 1.75; }
.prosa--historia::after { content: ""; display: block; clear: both; }
.prosa--historia p { margin: 0 0 1.05em; hyphens: auto; }
.prosa--historia > p:first-of-type::first-letter { float: left; font-size: 3.7em; line-height: .82; padding: .06em .1em 0 0; color: var(--terracota); font-weight: 700; }
.prosa--historia h2 { clear: both; text-align: center; font-size: 1.45rem; margin: 2em 0 1.1em; }
.prosa--historia h2::after { content: ""; display: block; width: 64px; height: 3px; background: var(--terracota); margin: .5em auto 0; border-radius: 2px; }
.prosa--historia figure { float: right; width: min(42%, 330px); margin: .35em 0 1em 1.8em; }
.prosa--historia figure:nth-of-type(even) { float: left; width: min(34%, 250px); margin: .35em 1.8em 1em 0; }
.prosa--historia figure:nth-of-type(n+3) { width: min(36%, 270px); }
.prosa--historia figure img { display: block; width: 100%; height: auto; margin: 0; border-radius: 6px; }
.prosa--historia figure:nth-of-type(odd) img { box-shadow: 0 6px 20px rgba(40, 30, 10, .22); }
.prosa--historia figcaption { font-family: var(--fuente); font-size: .85rem; color: var(--suave); text-align: center; margin-top: .5em; }
.prosa--historia blockquote { border: 0; background: none; margin: 1.5em 0; padding: 0 0 0 1.3em; border-left: 4px solid var(--terracota); font-style: italic; font-size: 1.22rem; line-height: 1.6; color: var(--verde-osc); overflow: hidden; }
.prosa--historia blockquote p { margin: 0; hyphens: manual; }
.prosa--historia hr { clear: both; border: 0; height: 1px; background: var(--borde); margin: 2.4em auto 2em; width: 60%; }
.prosa--historia hr ~ p { text-align: center; hyphens: manual; }
.prosa--historia hr ~ p strong { color: var(--verde-osc); }
.prosa--historia > p:last-child { font-style: italic; font-size: 1.9rem; margin: 1.2em 0 0; color: var(--terracota); }
@media (max-width: 620px) {
  .prosa--historia { font-size: 1.04rem; }
  .prosa--historia figure, .prosa--historia figure:nth-of-type(even), .prosa--historia figure:nth-of-type(n+3) { float: none; width: min(100%, 300px); margin: 1.2em auto 1.4em; }
}
.a11y-contrast .historia { background: #000 !important; border-color: #fff; }
.a11y-contrast .prosa--historia blockquote, .a11y-contrast .prosa--historia hr ~ p strong { color: #fff; }
@media print { .historia { border: 0; box-shadow: none; padding: 0; } }
.prosa--historia hr ~ figure:nth-of-type(n) { float: none; width: min(100%, 580px); margin: 1.8em auto 1em; }


/* ---------- Cabecera: menú y buscador en la misma línea, bajo el logotipo ---------- */
.cabecera__in { justify-content: flex-start; row-gap: 6px; }
.cabecera__in > .nav { flex-basis: 100%; justify-content: space-between; margin-left: -12px; }
@media (max-width: 1020px) {
  .nav-btn { margin-left: auto; }
  .cabecera__in > .nav { margin-left: 0; }
}

/* ---------- Selector de idioma ---------- */
.idiomas { display: inline-flex; align-items: center; gap: 2px; margin-block: 4px; padding: 2px; background: rgba(255,255,255,.14); border-radius: 999px; }
.idiomas .ico { width: 16px; height: 16px; margin: 0 4px 0 8px; opacity: .85; }
.barra-sup .idiomas__op { display: inline-flex; align-items: center; min-height: 28px; padding: 0 .9em; border-radius: 999px; font-weight: 600; color: #fff; text-decoration: none; }
.barra-sup a.idiomas__op:hover { background: rgba(255,255,255,.22); text-decoration: none; }
.barra-sup .idiomas__op.es-actual { background: #fff; color: var(--verde-osc); }
.a11y-contrast .barra-sup .idiomas__op.es-actual { background: #ffe600; color: #000 !important; }
/* ---------- Detalles con el rojo y el verde del logotipo ---------- */
:root { --rojo: #8f282b; --hoja: #2d5725; }
.logo img { height: 74px; }
@media (max-width: 560px) { .logo img { height: 54px; } }
.a11y-contrast .logo img { filter: none; background: #fff; border-radius: 8px; padding: 2px; }
.barra-sup { border-bottom: 3px solid var(--rojo); }
.pie { border-top: 4px solid var(--rojo); }
.cab-pagina h1::after, .seccion h2[id]::after { content: ""; display: block; width: 46px; height: 8px; margin-top: .45em; background: radial-gradient(circle at 4px 4px, var(--rojo) 3.6px, transparent 4.2px) 0 0 / 15px 8px repeat-x; }
.seccion--verde h2[id]::after { background-image: radial-gradient(circle at 4px 4px, #fff 3.6px, transparent 4.2px); }
.prosa--historia h2::after { width: 38px; height: 8px; background: radial-gradient(circle at 4px 4px, var(--rojo) 3.6px, transparent 4.2px) 0 0 / 15px 8px repeat-x; border-radius: 0; }
.prosa ul li::marker { color: var(--rojo); }
.a11y-contrast .barra-sup, .a11y-contrast .pie { border-color: #fff; }
