/* Undécima Compañía «George Garland» · sitio público
   Colores del escudo: burdeos #590e0e y dorado #bb9d67. Títulos en Cinzel (letra romana, como el logo),
   texto en Libre Franklin. Fuentes alojadas en el propio sitio. */

@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("../fonts/libre-franklin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --burdeos: #590e0e; --burdeos-os: #3a0709; --burdeos-cl: #7c1f1b;
  --oro: #bb9d67; --oro-cl: #dcc596; --oro-os: #7a5e2c;
  --papel: #fbf8f2; --crema: #f2eadc; --blanco: #fff;
  --tinta: #261a17; --gris: #5f524b; --linea: #e4d9c7;
  --azul: #1f3471; --rojo: #c8102e;
  --titulo: "Cinzel", "Trajan Pro", Georgia, serif;
  --texto: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 1200px;
  --sombra: 0 1px 2px rgba(38, 26, 23, .06), 0 8px 24px -12px rgba(38, 26, 23, .25);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 1.0625rem/1.65 var(--texto); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--burdeos); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--burdeos-cl); }
h1, h2, h3 { font-family: var(--titulo); font-weight: 700; line-height: 1.15; margin: 0; color: var(--burdeos); letter-spacing: .01em; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
[hidden] { display: none !important; }
main:focus { outline: none; }
.saltar { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--oro); color: var(--burdeos-os); padding: 10px 16px; font-weight: 700; }
.saltar:focus { top: 12px; }
.envoltura { width: min(100% - 32px, var(--ancho)); margin-inline: auto; }

/* ---------- Cabecera ---------- */
.cabecera { position: relative; z-index: 20; background: var(--burdeos-os); color: var(--papel);
  border-bottom: 3px solid var(--oro); box-shadow: 0 1px 0 var(--burdeos-cl) inset; }
.cabecera::before { content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--azul) 0 33.3%, #fff 33.3% 66.6%, var(--rojo) 66.6%); opacity: .9; }
.cabecera-in { width: min(100% - 32px, var(--ancho)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.marca { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; padding: 10px 0; }
.marca img { width: 58px; height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.marca-txt { display: flex; flex-direction: column; font-family: var(--titulo); line-height: 1.05; }
.marca-1 { font-size: .8rem; font-weight: 600; letter-spacing: .2em; color: var(--oro-cl); padding-bottom: 5px; margin-bottom: 5px;
  border-bottom: 1px solid rgba(187, 157, 103, .55); }
.marca-2 { font-size: 1.55rem; font-weight: 700; color: var(--papel); letter-spacing: .03em; }
.marca:hover .marca-2 { color: var(--oro-cl); }

.menu ul { list-style: none; margin: 0; padding: 0; }
.menu > ul { display: flex; align-items: center; gap: 2px; }
.menu a, .menu summary { display: block; padding: 10px 12px; color: var(--papel); text-decoration: none; cursor: pointer;
  font: 600 .9rem/1.2 var(--titulo); letter-spacing: .06em; border-radius: 2px; }
.menu > ul > li > a:hover, .menu summary:hover { color: var(--oro-cl); }
.menu > ul > li > a[aria-current="page"], .menu details.actual > summary { color: var(--oro-cl); box-shadow: inset 0 -2px 0 var(--oro); }
.menu summary { list-style: none; display: flex; align-items: center; gap: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.menu details[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.tiene-sub { position: relative; }
.sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; background: var(--papel); border-top: 3px solid var(--oro);
  box-shadow: 0 18px 40px -16px rgba(20, 5, 5, .55); padding: 8px 0; }
.sub a { color: var(--tinta); font: 500 1rem/1.3 var(--texto); letter-spacing: 0; padding: 10px 20px; border-radius: 0; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--crema); color: var(--burdeos); }
.sub a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--burdeos); }

.menu-btn { display: none; align-items: center; gap: 10px; background: transparent; border: 1px solid rgba(187, 157, 103, .6); color: var(--papel);
  padding: 9px 14px; border-radius: 2px; cursor: pointer; font: 600 .85rem var(--titulo); letter-spacing: .1em; }
.menu-ico { display: grid; gap: 4px; width: 20px; }
.menu-ico i { display: block; height: 2px; background: var(--oro-cl); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] .menu-ico i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-ico i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-ico i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .js .menu-btn { display: inline-flex; }
  .cabecera-in { flex-wrap: wrap; min-height: 76px; }
  .marca img { width: 48px; }
  .marca-2 { font-size: 1.3rem; }
  .menu { width: 100%; }
  .js .menu { display: none; }
  .js .menu.abierto { display: block; }
  .menu > ul { flex-direction: column; align-items: stretch; padding: 4px 0 16px; border-top: 1px solid rgba(187, 157, 103, .35); }
  .menu a, .menu summary { padding: 13px 4px; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .menu summary { justify-content: space-between; }
  .menu > ul > li > a[aria-current="page"], .menu details.actual > summary { box-shadow: inset 3px 0 0 var(--oro); padding-left: 12px; }
  .sub { position: static; min-width: 0; box-shadow: none; border-top: 0; background: rgba(255, 255, 255, .04); padding: 0; }
  .sub a { color: var(--papel); padding: 12px 20px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .sub a:hover, .sub a[aria-current="page"] { background: rgba(255, 255, 255, .08); color: var(--oro-cl); }
}

/* ---------- Portada ---------- */
.hero { position: relative; background: var(--burdeos-os); color: var(--papel); overflow: hidden; isolation: isolate; }
.carrusel { position: relative; }
.carrusel-pista { list-style: none; margin: 0; padding: 0; display: grid; }
.carrusel-item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.carrusel-item:first-child, .carrusel-item.activo { opacity: 1; visibility: visible; transition: opacity 1.1s ease; }
.js .carrusel-item:first-child:not(.activo) { opacity: 0; visibility: hidden; }
.carrusel-item img { width: 100%; height: clamp(440px, 68vh, 700px); object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(35, 5, 7, .88) 0%, rgba(35, 5, 7, .62) 34%, rgba(35, 5, 7, .08) 70%),
              linear-gradient(0deg, rgba(35, 5, 7, .75) 0%, rgba(35, 5, 7, 0) 45%); }
.hero-texto { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(64px, 10vh, 110px); width: min(100% - 32px, var(--ancho)); margin-inline: auto; }
.hero-pre { font: 600 .78rem/1 var(--texto); letter-spacing: .28em; text-transform: uppercase; color: var(--oro-cl); margin: 0 0 18px;
  display: flex; align-items: center; gap: 14px; }
.hero-pre::before { content: ""; width: 44px; height: 1px; background: var(--oro); }
.hero h1 { color: var(--papel); font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 700; letter-spacing: .02em; max-width: 12ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero h1 span { display: block; font-size: .36em; font-weight: 600; letter-spacing: .24em; color: var(--oro-cl); margin-bottom: .45em; }
.hero-frase { margin: 26px 0 0; font: 600 clamp(1rem, 1.6vw, 1.2rem)/1.4 var(--titulo); letter-spacing: .08em; color: var(--papel);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-top: 18px; border-top: 1px solid rgba(187, 157, 103, .5); max-width: 520px; }
.hero-frase span { font: 400 .9em var(--texto); letter-spacing: .04em; color: var(--oro-cl); font-style: italic; }
.carrusel-ctrl { position: absolute; z-index: 3; right: max(16px, calc((100% - var(--ancho)) / 2)); bottom: 22px; display: flex; align-items: center; gap: 10px; }
.carrusel-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(220, 197, 150, .7); background: rgba(35, 5, 7, .45); color: var(--papel);
  cursor: pointer; font-size: 1.4rem; line-height: 1; display: grid; place-items: center; backdrop-filter: blur(4px); }
.carrusel-btn:hover { background: var(--oro); color: var(--burdeos-os); border-color: var(--oro); }
.carrusel-pausa span { width: 10px; height: 12px; border: solid currentColor; border-width: 0 3px; font-size: 0; }
.carrusel-pausa[aria-pressed="true"] span { width: 0; height: 0; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.carrusel-puntos { display: flex; gap: 2px; }
.carrusel-puntos button { width: 22px; height: 40px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; }
.carrusel-puntos button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: rgba(251, 248, 242, .5); transition: transform .2s, background .2s; }
.carrusel-puntos button[aria-current="true"]::after { background: var(--oro-cl); transform: scale(1.35); }
@media (max-width: 480px) {
  .marca-txt .marca-1 { font-size: .68rem; letter-spacing: .14em; }
  .marca-2 { font-size: 1.12rem; }
  .menu-btn { padding: 10px 12px; }
  .menu-btn-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero-pre { letter-spacing: .16em; font-size: .7rem; }
}
@media (max-width: 700px) {
  .carrusel-item img { height: 74vh; min-height: 460px; max-height: 620px; }
  .hero::after { background: linear-gradient(0deg, rgba(35, 5, 7, .94) 0%, rgba(35, 5, 7, .6) 48%, rgba(35, 5, 7, .1) 80%); }
  .hero-texto { bottom: 84px; }
  .carrusel-ctrl { left: 16px; right: 16px; justify-content: space-between; bottom: 18px; }
  .carrusel-puntos { order: -1; flex: 1; }
}

/* ---------- Secciones y titulares ---------- */
.seccion { padding: clamp(52px, 8vw, 96px) 0; }
.seccion-papel { background: var(--crema); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.titular { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.titular h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.titular h2::after, .banda h1::after { content: ""; display: block; width: 92px; height: 7px; margin-top: 14px;
  background: linear-gradient(var(--oro), var(--oro)) 0 0 / 100% 2px no-repeat, linear-gradient(var(--oro), var(--oro)) 0 100% / 60% 1px no-repeat; }
.enlace-flecha { font: 600 .82rem var(--texto); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--burdeos);
  border-bottom: 1px solid var(--oro); padding-bottom: 4px; }
.enlace-flecha::after { content: " →"; }
.enlace-flecha:hover { color: var(--burdeos-cl); border-color: var(--burdeos); }

/* Tarjetas de noticias */
.tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.tarjeta { position: relative; display: flex; flex-direction: column; background: var(--blanco); border: 1px solid var(--linea); box-shadow: var(--sombra);
  transition: transform .25s ease, box-shadow .25s ease; }
.tarjeta:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(38, 26, 23, .06), 0 18px 36px -16px rgba(38, 26, 23, .35); }
.tarjeta-img { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--crema); border-bottom: 3px solid var(--oro); }
.tarjeta-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tarjeta:hover .tarjeta-img img { transform: scale(1.04); }
.tarjeta-sin-img { display: grid; place-items: center; height: 100%; background: var(--burdeos-os); }
.tarjeta-sin-img img { width: 30%; height: auto; }
.tarjeta-txt { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.tarjeta h3 { font-size: 1.22rem; margin: 6px 0 12px; }
.tarjeta h3 a { color: var(--burdeos); text-decoration: none; }
.tarjeta h3 a::after { content: ""; position: absolute; inset: 0; }
.tarjeta p:last-child { color: var(--gris); margin: 0; font-size: .98rem; }
.fecha { font: 600 .76rem/1.3 var(--texto); letter-spacing: .14em; text-transform: uppercase; color: var(--oro-os); margin: 0; }

/* Destacados (afiches y video del inicio) */
.destacados { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(28px, 5vw, 64px); align-items: flex-start; }
.afiche { margin: 0; width: min(100%, 420px); padding: 10px; background: var(--blanco); border: 1px solid var(--linea); box-shadow: var(--sombra);
  outline: 1px solid var(--oro); outline-offset: -6px; }
.afiche a { display: block; }
.afiche img, .afiche video { width: 100%; }
.afiche-video { background: var(--burdeos-os); border-color: var(--burdeos-os); }
.afiche-video video { aspect-ratio: 9 / 16; object-fit: contain; background: #000; }

/* ---------- Encabezado de páginas interiores ---------- */
.banda { background: radial-gradient(120% 140% at 85% 0%, var(--burdeos-cl) 0%, var(--burdeos) 38%, var(--burdeos-os) 100%); color: var(--papel);
  padding: clamp(40px, 7vw, 76px) 0 clamp(34px, 5vw, 56px); position: relative; overflow: hidden; }
.banda::after { content: ""; position: absolute; right: max(-60px, calc((100% - var(--ancho)) / 2 - 80px)); top: 50%; width: 300px; aspect-ratio: 443 / 465;
  transform: translateY(-50%); background: url("../img/escudo-480.webp") center / contain no-repeat; opacity: .07; filter: grayscale(1) brightness(3); pointer-events: none; }
.banda h1 { color: var(--papel); font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 22ch; position: relative; z-index: 1; }
.banda .fecha { color: var(--oro-cl); margin-top: 18px; }
.miga { font: 600 .78rem var(--texto); letter-spacing: .2em; text-transform: uppercase; color: var(--oro-cl); margin: 0 0 14px; position: relative; z-index: 1; }
.miga a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(220, 197, 150, .5); }
.miga a:hover { color: var(--papel); }

/* ---------- Noticia ---------- */
.articulo { display: grid; gap: clamp(32px, 5vw, 64px); padding: clamp(40px, 6vw, 72px) 0; }
.articulo.con-lateral { grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); align-items: start; }
@media (max-width: 900px) { .articulo.con-lateral { grid-template-columns: 1fr; } }
.articulo-cuerpo { max-width: 700px; }
.articulo-portada { margin: 0 0 32px; border-bottom: 3px solid var(--oro); box-shadow: var(--sombra); }
.articulo-portada img { width: 100%; }
.bajada { font-size: 1.25rem; line-height: 1.55; color: var(--gris); }
.texto { font-size: 1.1rem; line-height: 1.78; }
.texto p { margin: 0 0 1.15em; }
.texto h2 { font-size: 1.5rem; margin: 1.6em 0 .6em; }
.texto ul { padding-left: 1.2em; margin: 0 0 1.15em; }
.texto li { margin: .3em 0; }
.texto li::marker { color: var(--oro-os); }
.texto a { overflow-wrap: anywhere; }
.articulo-lateral { display: grid; gap: 20px; }
.articulo-lateral .afiche { width: 100%; }
.foto-lateral { margin: 0; }
.foto-lateral img { width: 100%; border: 1px solid var(--linea); box-shadow: var(--sombra); transition: filter .2s; }
.foto-lateral a:hover img { filter: brightness(1.05); }
figcaption { font-size: .9rem; color: var(--gris); margin-top: 8px; }
.vecinas { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 0 clamp(48px, 7vw, 88px); }
.vecina { display: block; padding: 20px 22px; background: var(--blanco); border: 1px solid var(--linea); text-decoration: none;
  font: 700 1.05rem/1.3 var(--titulo); color: var(--burdeos); transition: border-color .2s; }
.vecina:hover { border-color: var(--oro); }
.vecina span { display: block; font: 600 .74rem var(--texto); letter-spacing: .16em; text-transform: uppercase; color: var(--oro-os); margin-bottom: 8px; }
.vecina-sig { grid-column: 2; text-align: right; }
@media (max-width: 640px) { .vecinas { grid-template-columns: 1fr; } .vecina-sig { grid-column: 1; } }

/* ---------- Páginas ---------- */
.texto-pagina { max-width: 760px; margin-bottom: 48px; }
.documentos { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.documento a { display: flex; flex-direction: column; height: 100%; background: var(--blanco); border: 1px solid var(--linea); text-decoration: none; color: inherit;
  box-shadow: var(--sombra); transition: transform .25s, box-shadow .25s; }
.documento a:hover { transform: translateY(-3px); }
.documento-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--crema); border-bottom: 3px solid var(--oro); }
.documento-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.documento-sin-img { aspect-ratio: auto; height: 110px; display: grid; place-items: center; color: var(--burdeos); background: linear-gradient(135deg, var(--crema), var(--papel)); }
.documento-sin-img svg { width: 56px; height: 56px; }
.documento-txt { padding: 20px 22px 22px; display: grid; gap: 12px; }
.documento-titulo { font: 700 1.15rem/1.3 var(--titulo); color: var(--burdeos); }
.documento-meta { display: flex; align-items: center; gap: 8px; font: 600 .78rem var(--texto); letter-spacing: .1em; text-transform: uppercase; color: var(--oro-os); }
.fotos { margin: 0 0 32px; }
.fotos figure { margin: 0; }
.fotos-grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.fotos-grilla img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: filter .2s; }
.fotos-grilla a:hover img { filter: brightness(1.08); }
.fotos-completa { display: grid; gap: 36px; }
.fotos-completa img { width: 100%; background: var(--blanco); border: 1px solid var(--linea); box-shadow: var(--sombra); }
.fotos-completa figcaption { font: 600 1rem var(--titulo); color: var(--burdeos); margin-top: 12px; }

.paginacion { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 48px; color: var(--gris); }
.paginacion a { font-weight: 600; }
.vacio { color: var(--gris); }
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 24px; margin: 4px 8px 4px 0; background: var(--burdeos); color: var(--papel);
  border: 1px solid var(--burdeos); text-decoration: none; font: 700 .9rem var(--titulo); letter-spacing: .1em; }
.boton:hover { background: var(--burdeos-cl); color: var(--papel); }
.boton-claro { background: transparent; color: var(--burdeos); }
.boton-claro:hover { background: var(--crema); color: var(--burdeos); }
.error-404 { min-height: 20vh; }

/* ---------- Pie ---------- */
.pie { background: var(--burdeos-os); color: rgba(251, 248, 242, .82); border-top: 3px solid var(--oro); }
.pie-in { width: min(100% - 32px, var(--ancho)); margin-inline: auto; padding: 56px 0 40px; display: grid; grid-template-columns: minmax(260px, 1fr) 2fr auto; gap: 40px; align-items: start; }
.pie-marca { display: flex; gap: 18px; align-items: center; }
.pie-marca img { width: 84px; }
.pie-marca p { margin: 0; display: flex; flex-direction: column; font-family: var(--titulo); line-height: 1.15; }
.pie-1 { color: var(--oro-cl); font-size: .82rem; letter-spacing: .18em; font-weight: 600; }
.pie-2 { color: var(--papel); font-size: 1.45rem; font-weight: 700; margin: 4px 0 10px; }
.pie-3 { font: 500 .78rem var(--texto); letter-spacing: .12em; text-transform: uppercase; color: rgba(251, 248, 242, .6); }
.pie-nav ul { list-style: none; margin: 0; padding: 0; columns: 3 150px; column-gap: 28px; }
.pie-nav li { break-inside: avoid; }
.pie-nav a { display: inline-block; padding: 5px 0; color: rgba(251, 248, 242, .82); text-decoration: none; font-size: .95rem; }
.pie-nav a:hover { color: var(--oro-cl); text-decoration: underline; }
.redes { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.redes a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--oro-cl); border: 1px solid rgba(187, 157, 103, .55); transition: background .2s, color .2s; }
.redes a:hover { background: var(--oro); color: var(--burdeos-os); }
.pie-base { border-top: 1px solid rgba(187, 157, 103, .25); }
.pie-base p { width: min(100% - 32px, var(--ancho)); margin: 0 auto; padding: 18px 0 22px; font-size: .85rem; color: rgba(251, 248, 242, .6); }
@media (max-width: 900px) { .pie-in { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Visor de fotos ---------- */
.visor { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.visor::backdrop { background: rgba(20, 4, 5, .94); }
.visor[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.visor figure { margin: 0; grid-column: 2; display: grid; justify-items: center; gap: 12px; }
.visor img { max-height: 86vh; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.visor figcaption { color: var(--oro-cl); text-align: center; font-family: var(--titulo); }
.visor-cerrar { position: fixed; top: 14px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(220, 197, 150, .6); background: rgba(0, 0, 0, .3);
  color: var(--papel); font-size: 1.9rem; line-height: 1; cursor: pointer; }
.visor-nav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(220, 197, 150, .6); background: rgba(0, 0, 0, .3); color: var(--papel);
  font-size: 1.8rem; cursor: pointer; justify-self: center; }
.visor-ant { grid-column: 1; grid-row: 1; } .visor-sig { grid-column: 3; grid-row: 1; }
.visor-cerrar:hover, .visor-nav:hover { background: var(--oro); color: var(--burdeos-os); }
@media (max-width: 640px) { .visor[open] { grid-template-columns: 1fr; } .visor-nav { position: fixed; bottom: 18px; } .visor-ant { left: 18px; } .visor-sig { right: 18px; } .visor figure { grid-column: 1; padding: 0 8px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .cabecera, .pie, .carrusel-ctrl, .vecinas, .visor { display: none !important; }
  .banda { background: none; color: #000; padding: 0 0 12px; } .banda h1 { color: #000; } .banda::after { display: none; }
  body { background: #fff; }
}
