/* ==========================================================================
   Real Hermandad de la Soledad · child theme de Astra
   Mismo sistema de diseño que Sucedió en Belén (morado y oro, gótica + Inter).
   ========================================================================== */

@font-face { font-family: "Grenze Gotisch"; src: url("../fonts/grenze-gotisch.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
	--ls-morado: #582c83;
	--ls-morado-intenso: #5c068c;
	--ls-morado-noche: #24123a;
	--ls-negro: #17101f;
	--ls-dorado: #ffc72c;
	--ls-dorado-viejo: #c9a227;
	--ls-tinta: #2d2926;
	--ls-marfil: #fbf8f2;
	--ls-linea: rgba(45, 41, 38, .12);
	--ls-font-display: "Grenze Gotisch", "Times New Roman", serif;
	--ls-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ls-radius: 16px;
	--ls-shadow: 0 18px 50px rgba(36, 18, 58, .18);
	--ls-header-h: 76px;
	--ls-wide: min(1200px, 100vw - 2.5rem);
}

/* ---------- Base (sobrescribe a Astra) ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ls-header-h) + 12px); }
body.ls-theme { font-family: var(--ls-font); color: var(--ls-tinta); background: var(--ls-marfil); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
.ls-theme h1, .ls-theme h2, .ls-theme h3, .ls-theme h4, .ls-theme h5 { font-family: var(--ls-font); color: var(--ls-tinta); line-height: 1.25; }
.ls-theme a { color: var(--ls-morado); }
.ls-theme a:hover { color: var(--ls-morado-intenso); }
.ls-theme img { max-width: 100%; height: auto; }
.ls-theme .site-content { padding: 0; }
.ls-theme #page { overflow-x: clip; }
.ls-theme #ast-scroll-top { display: none !important; }
:focus-visible { outline: 3px solid var(--ls-dorado); outline-offset: 3px; }
.ls-theme a, .ls-theme button, .ls-theme summary { touch-action: manipulation; }

.ls-container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.ls-container--narrow { width: min(820px, 100% - 2.5rem); }
.ls-icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }

.ls-eyebrow { display: inline-block; margin: 0 0 .75rem; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ls-dorado); }
.ls-eyebrow--dark { color: var(--ls-morado); }
.ls-theme .ls-h2 { font-family: var(--ls-font-display); font-weight: 700; font-size: clamp(2.1rem, 4.5vw, 3.2rem); line-height: 1.05; margin: 0 0 1rem; color: var(--ls-morado); letter-spacing: .01em; }
.ls-theme .ls-h2--light { color: #fff; }

/* ---------- Botones ---------- */
.ls-btn { display: inline-flex; align-items: center; gap: .55rem; justify-content: center; padding: .8rem 1.4rem; border-radius: 99px; font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background-color .15s, color .15s; white-space: nowrap; cursor: pointer; font-family: var(--ls-font); }
.ls-btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.ls-theme .ls-btn--gold { background: var(--ls-dorado); color: var(--ls-tinta); box-shadow: 0 8px 24px rgba(255, 199, 44, .3); }
.ls-theme .ls-btn--gold:hover { background: #ffd357; color: var(--ls-tinta); transform: translateY(-2px); }
.ls-theme .ls-btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.ls-theme .ls-btn--ghost:hover { background: #fff; color: var(--ls-tinta); }
.ls-theme .ls-btn--outline { border-color: var(--ls-morado); color: var(--ls-morado); background: transparent; }
.ls-theme .ls-btn--outline:hover { background: var(--ls-morado); color: #fff; }
.ls-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; }
.ls-link .ls-icon { transition: transform .15s; }
.ls-link:hover .ls-icon { transform: translateX(3px); }

/* ---------- Cabecera y menú ---------- */
.ls-header { position: sticky; top: 0; z-index: 100; background: var(--ls-morado-noche); transition: background-color .25s, box-shadow .25s; }
.admin-bar .ls-header { top: 32px; }
.ls-header--overlay { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(23, 16, 31, .7), transparent); }
.ls-header.is-scrolled, .ls-header.is-open { background: rgba(36, 18, 58, .97); box-shadow: 0 8px 30px rgba(0, 0, 0, .2); }
.ls-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--ls-header-h); }
.ls-theme .ls-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; flex: none; }
.ls-brand img { width: 40px; height: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.ls-brand__text { display: grid; line-height: 1.05; }
.ls-brand__text strong { font-family: var(--ls-font-display); font-weight: 700; font-size: 1.55rem; color: var(--ls-dorado); letter-spacing: .01em; }
.ls-brand__text small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .8); font-weight: 600; }

.ls-nav__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.ls-nav__list li { position: relative; }
.ls-nav__list > li { display: flex; align-items: center; }
.ls-theme .ls-nav__list a { color: #fff; text-decoration: none; font-weight: 600; font-size: .93rem; display: block; padding: .55rem .7rem; border-radius: 8px; }
.ls-theme .ls-nav__list a:hover, .ls-theme .ls-nav__list .current-menu-item > a, .ls-theme .ls-nav__list .current-menu-ancestor > a { color: var(--ls-dorado); }
.ls-theme .ls-nav__list a[data-ls-group] { cursor: default; }
.ls-theme .ls-sub-toggle, .ls-theme .ls-sub-toggle:hover, .ls-theme .ls-sub-toggle:focus { background: none; border: 0; color: rgba(255, 255, 255, .7); padding: .3rem; margin-left: -.55rem; cursor: pointer; box-shadow: none; display: grid; place-items: center; }
.ls-sub-toggle .ls-icon { width: 16px; height: 16px; transition: transform .2s; }
.ls-nav .sub-menu { list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-radius: 14px; box-shadow: var(--ls-shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 10; }
.ls-nav .sub-menu .sub-menu { top: -.5rem; left: 100%; }
.ls-theme .ls-nav .sub-menu a { color: var(--ls-tinta); font-size: .92rem; padding: .55rem .8rem; }
.ls-theme .ls-nav .sub-menu a:hover, .ls-theme .ls-nav .sub-menu .current-menu-item > a { background: rgba(88, 44, 131, .08); color: var(--ls-morado); }
.ls-nav .sub-menu li { display: flex; align-items: center; justify-content: space-between; }
.ls-nav .sub-menu li > a { flex: 1; }
.ls-theme .ls-nav .sub-menu .ls-sub-toggle { color: var(--ls-morado); margin: 0; }
.ls-nav .sub-menu .ls-sub-toggle .ls-icon { transform: rotate(-90deg); }
@media (min-width: 1241px) {
	.ls-nav li:hover > .sub-menu, .ls-nav li:focus-within > .sub-menu, .ls-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.ls-nav li:hover > .ls-sub-toggle .ls-icon { transform: rotate(180deg); }
	.ls-nav .sub-menu li:hover > .ls-sub-toggle .ls-icon { transform: rotate(-90deg); }
}
.ls-theme .ls-burger { display: none; }
.ls-theme .ls-burger, .ls-theme .ls-burger:hover, .ls-theme .ls-burger:focus { background: transparent; border: 0; color: #fff; padding: .4rem; cursor: pointer; box-shadow: none; }
.ls-burger .ls-icon { width: 30px; height: 30px; }
.ls-burger__close { display: none; }

/* ---------- Portada: hero ---------- */
.ls-hero { position: relative; min-height: min(100svh, 900px); display: grid; align-items: end; color: #fff; isolation: isolate; overflow: hidden; background: var(--ls-negro); }
.ls-theme .ls-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 70% 30%; z-index: -2; }
.ls-hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23, 16, 31, .92) 0%, rgba(23, 16, 31, .7) 38%, rgba(23, 16, 31, .1) 70%), linear-gradient(180deg, transparent 60%, rgba(23, 16, 31, .9) 100%); }
.ls-hero__content { padding: calc(var(--ls-header-h) + 4rem) 0 5rem; max-width: 640px; margin-left: max(1.25rem, (100% - 1200px) / 2); }
.ls-theme .ls-hero__title { font-family: var(--ls-font-display); font-weight: 700; color: var(--ls-dorado); font-size: clamp(3.2rem, 8vw, 6.2rem); line-height: .95; margin: 0 0 1.1rem; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.ls-hero__tagline { font-size: clamp(1.02rem, 2vw, 1.2rem); margin: 0 0 2rem; color: rgba(255, 255, 255, .9); max-width: 34rem; }
.ls-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Aviso */
.ls-notice { background: var(--ls-tinta); color: #fff; }
.ls-notice__inner { display: flex; gap: .9rem; align-items: center; padding: 1rem 0; }
.ls-notice p { margin: 0; font-weight: 600; }
.ls-notice__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ls-dorado); flex: none; }

/* ---------- Secciones ---------- */
.ls-section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.ls-section__head { margin-bottom: 2.5rem; }
.ls-section__head--center { text-align: center; }
.ls-section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.ls-section__head--row .ls-h2 { margin: 0; }
.ls-section__lead { max-width: 40rem; margin: 0 auto; color: rgba(45, 41, 38, .75); }

/* Titulares */
.ls-titulares { background: #fff; }
.ls-titulares__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.ls-theme .ls-titular { position: relative; display: block; border-radius: var(--ls-radius); overflow: hidden; aspect-ratio: 4 / 5; color: #fff; text-decoration: none; box-shadow: var(--ls-shadow); background: var(--ls-negro); }
.ls-titular__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ls-titular:hover .ls-titular__img { transform: scale(1.04); }
.ls-titular::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(23, 16, 31, .95)); }
.ls-titular__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.75rem; display: grid; gap: .35rem; }
.ls-titular__body small { color: var(--ls-dorado); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; }
.ls-titular__body strong { font-family: var(--ls-font-display); font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1; font-weight: 700; }
.ls-theme .ls-titular .ls-link { color: #fff; margin-top: .5rem; }

/* Presentación + cifras */
.ls-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.ls-split__text p { font-size: 1.08rem; }
.ls-figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.ls-figure { background: #fff; border-radius: var(--ls-radius); padding: 1.5rem 1.25rem; border-top: 4px solid var(--ls-dorado); box-shadow: 0 10px 30px rgba(36, 18, 58, .06); }
.ls-figure strong { display: block; font-family: var(--ls-font-display); font-size: clamp(2.5rem, 5vw, 3.3rem); line-height: 1; color: var(--ls-morado); }
.ls-figure span { display: block; margin-top: .45rem; font-size: .92rem; color: rgba(45, 41, 38, .75); line-height: 1.4; }

/* Cultos (banda oscura) */
.ls-cultos { background: radial-gradient(ellipse at top, var(--ls-morado-intenso), var(--ls-morado-noche) 70%); color: #fff; position: relative; overflow: hidden; }
.ls-cultos::before { content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 26px 26px; }
.ls-cultos .ls-container { position: relative; }
.ls-cult-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ls-theme .ls-cult { display: grid; gap: .3rem; padding: 1.4rem 1.5rem; border-radius: var(--ls-radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 199, 44, .3); color: #fff; text-decoration: none; transition: transform .2s, background-color .2s, border-color .2s; }
.ls-theme .ls-cult:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .11); border-color: var(--ls-dorado); color: #fff; }
.ls-cult strong { font-family: var(--ls-font-display); font-size: 1.7rem; line-height: 1.05; color: var(--ls-dorado); font-weight: 700; }
.ls-cult span { opacity: .85; font-size: .95rem; }

/* Agenda */
.ls-agenda { display: grid; gap: 1rem; }
.ls-agenda--dark { grid-template-columns: repeat(2, 1fr); }
.ls-agenda-item { display: flex; gap: 1.1rem; align-items: center; background: #fff; border-radius: var(--ls-radius); padding: 1rem 1.25rem; border: 1px solid var(--ls-linea); }
.ls-agenda--dark .ls-agenda-item { background: rgba(255, 255, 255, .07); border-color: rgba(255, 199, 44, .3); }
.ls-agenda-item__date { display: grid; place-items: center; min-width: 64px; padding: .5rem; border-radius: 12px; background: var(--ls-morado); color: #fff; text-align: center; line-height: 1; }
.ls-agenda--dark .ls-agenda-item__date { background: var(--ls-dorado); color: var(--ls-tinta); }
.ls-agenda-item__date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.ls-agenda-item__date strong { font-family: var(--ls-font-display); font-size: 2.2rem; }
.ls-agenda-item h3 { margin: 0 0 .25rem; font-size: 1.12rem; }
.ls-theme .ls-agenda-item h3 a { text-decoration: none; color: inherit; }
.ls-theme .ls-agenda--dark .ls-agenda-item h3 a { color: #fff; }
.ls-agenda-item__meta { margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .9rem; color: rgba(45, 41, 38, .7); }
.ls-agenda--dark .ls-agenda-item__meta { color: rgba(255, 255, 255, .8); }
.ls-agenda-item__meta span { display: inline-flex; gap: .35rem; align-items: center; }

/* Noticias */
.ls-news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ls-news-card { background: #fff; border-radius: var(--ls-radius); overflow: hidden; box-shadow: 0 10px 30px rgba(36, 18, 58, .06); display: flex; flex-direction: column; }
.ls-news-card__media { display: block; aspect-ratio: 16 / 9; background: var(--ls-morado-noche); overflow: hidden; }
.ls-news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ls-news-card__media .ls-news-card__placeholder { object-fit: contain; padding: 1.5rem; opacity: .9; }
.ls-news-card:hover .ls-news-card__media img { transform: scale(1.04); }
.ls-news-card__body { padding: 1.25rem 1.4rem 1.5rem; }
.ls-news-card time { font-size: .8rem; font-weight: 700; color: var(--ls-morado); text-transform: uppercase; letter-spacing: .08em; }
.ls-news-card h3 { margin: .35rem 0 .5rem; font-size: 1.2rem; }
.ls-theme .ls-news-card h3 a { color: var(--ls-tinta); text-decoration: none; }
.ls-news-card p { margin: 0; color: rgba(45, 41, 38, .75); font-size: .95rem; }

/* Publicaciones */
.ls-pubs { background: #fff; }
.ls-pubs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.ls-theme .ls-pub { display: grid; gap: .75rem; text-decoration: none; text-align: center; }
.ls-pub img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; border-radius: 10px; box-shadow: 0 12px 30px rgba(36, 18, 58, .2); transition: transform .2s; }
.ls-pub:hover img { transform: translateY(-5px) rotate(-.6deg); }
.ls-pub span { font-family: var(--ls-font-display); font-size: 1.6rem; color: var(--ls-morado); font-weight: 700; line-height: 1; }
.ls-pubs__more { text-align: center; margin: 2.5rem 0 0; }

/* Álbumes */
.ls-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.ls-theme .ls-album { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--ls-radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--ls-morado-noche); }
.ls-album img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ls-album:hover img { transform: scale(1.05); }
.ls-album::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(23, 16, 31, .9)); }
.ls-album__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.1rem 1.2rem; display: grid; }
.ls-album__body strong { font-size: 1.1rem; }
.ls-album__body small { opacity: .8; }
.ls-album__empty { display: grid; place-items: center; height: 100%; color: rgba(255, 255, 255, .4); }
.ls-album__empty .ls-icon { width: 48px; height: 48px; }

/* Banda final */
.ls-cta-band { background: linear-gradient(110deg, var(--ls-morado) 0%, var(--ls-morado-intenso) 100%); padding: 3.5rem 0; color: rgba(255, 255, 255, .9); }
.ls-cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.ls-cta-band .ls-h2 { margin: 0 0 .5rem; font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.ls-cta-band p { margin: 0; max-width: 34rem; }
.ls-cta-band__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Páginas interiores ---------- */
.ls-page-header { position: relative; background: radial-gradient(ellipse at 15% 0%, var(--ls-morado-intenso), var(--ls-morado-noche) 75%); color: #fff; padding: clamp(2.75rem, 6vw, 4.25rem) 0; text-align: center; isolation: isolate; overflow: hidden; }
.ls-page-header--image { padding: clamp(6rem, 14vw, 10rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.ls-theme .ls-page-header__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 30%; z-index: -2; }
.ls-page-header--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(36, 18, 58, .45), rgba(23, 16, 31, .92)); }
.ls-theme .ls-page-header__title { font-family: var(--ls-font-display); color: var(--ls-dorado); font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 auto; line-height: 1.02; font-weight: 700; max-width: 22ch; text-wrap: balance; }
.ls-page-header__sub { margin: .85rem auto 0; color: rgba(255, 255, 255, .85); font-size: 1.08rem; max-width: 46rem; }
.ls-page-header .ls-eyebrow { margin-bottom: .6rem; }
.ls-page { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3.5rem, 8vw, 6rem); }

/* Texto de las páginas (contenido editable con bloques) */
.ls-prose { font-size: 1.07rem; }
.ls-prose > * { margin-top: 0; margin-bottom: 1.15rem; }
.ls-theme .ls-prose h2 { font-family: var(--ls-font-display); color: var(--ls-morado); font-size: clamp(1.9rem, 3.6vw, 2.4rem); line-height: 1.05; margin: 2.75rem 0 1rem; font-weight: 700; }
.ls-theme .ls-prose h3 { font-size: 1.3rem; margin: 2.2rem 0 .75rem; color: var(--ls-morado-noche); }
.ls-theme .ls-prose h4 { font-size: 1.08rem; margin: 1.75rem 0 .6rem; }
.ls-prose > h2:first-child, .ls-prose > h3:first-child { margin-top: 0; }
.ls-prose img { border-radius: 12px; }
.ls-prose figure { margin-left: 0; margin-right: 0; }
.ls-prose figcaption { font-size: .88rem; color: rgba(45, 41, 38, .65); text-align: center; margin-top: .5rem; }
.ls-prose blockquote { border-left: 4px solid var(--ls-dorado); margin-left: 0; padding: .25rem 0 .25rem 1.25rem; font-style: italic; color: rgba(45, 41, 38, .85); }
.ls-prose hr, .ls-prose .wp-block-separator { border: 0; height: 1px; background: var(--ls-linea); margin: 2.5rem auto; max-width: 160px; }
.ls-prose .alignwide { width: var(--ls-wide); max-width: none; margin-left: calc(50% - var(--ls-wide) / 2); }
.ls-prose .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.ls-prose .wp-block-image.alignleft, .ls-prose .alignleft { float: left; margin: .35rem 1.5rem 1rem 0; max-width: 45%; }
.ls-prose .wp-block-image.alignright, .ls-prose .alignright { float: right; margin: .35rem 0 1rem 1.5rem; max-width: 45%; }
.ls-prose h2, .ls-prose hr { clear: both; }
.ls-prose .wp-block-embed { margin: 1.25rem 0 2rem; }
.ls-prose .wp-block-embed iframe { border-radius: 12px; }
.ls-prose .has-text-align-center { text-align: center; }
.ls-prose .ls-lead { font-size: 1.2rem; color: rgba(45, 41, 38, .85); }

/* Galerías de fotos (bloque Galería) */
.ls-theme .wp-block-gallery.has-nested-images { gap: .75rem; }
.ls-theme .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 10px; }
.ls-theme .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { margin: 0; }
.ls-theme .wp-block-gallery a { cursor: zoom-in; }

/* Portadas (anuarios, Espadañas, carteles, libros): rejilla con pie */
.ls-theme .wp-block-gallery.ls-covers { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.75rem 1.25rem; }
.ls-theme .wp-block-gallery.ls-covers figure.wp-block-image:not(#individual-image) { width: auto !important; display: grid; align-content: start; }
.ls-theme .wp-block-gallery.ls-covers figure.wp-block-image img { aspect-ratio: 210 / 297; object-fit: cover; height: auto; box-shadow: 0 10px 26px rgba(36, 18, 58, .2); transition: transform .2s; }
.ls-theme .wp-block-gallery.ls-covers figure.wp-block-image a:hover img { transform: translateY(-4px); }
.ls-theme .wp-block-gallery.ls-covers figure.wp-block-image figcaption { position: static; background: none; color: var(--ls-tinta); font-weight: 700; font-size: .95rem; padding: .7rem 0 0; text-align: center; max-height: none; overflow: visible; text-shadow: none; }
.ls-theme .wp-block-gallery.ls-covers figure.wp-block-image figcaption::before, .ls-theme .wp-block-gallery.ls-covers::before { display: none; }
.ls-theme .wp-block-gallery.ls-covers a[href*="drive.google"] { cursor: pointer; position: relative; display: block; }
.ls-theme .wp-block-gallery.ls-covers a[href*="drive.google"]::after { content: "Leer ↗"; position: absolute; right: .5rem; bottom: .5rem; background: var(--ls-dorado); color: var(--ls-tinta); font-size: .75rem; font-weight: 800; padding: .25rem .55rem; border-radius: 99px; opacity: 0; transition: opacity .15s; }
.ls-theme .wp-block-gallery.ls-covers a[href*="drive.google"]:hover::after, .ls-theme .wp-block-gallery.ls-covers a[href*="drive.google"]:focus::after { opacity: 1; }
@media (hover: none) { .ls-theme .wp-block-gallery.ls-covers a[href*="drive.google"]::after { opacity: 1; } }

/* Junta de Gobierno: cargos en tarjetas */
.ls-cargos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.ls-prose .ls-cargos li { margin: 0; background: #fff; border: 1px solid var(--ls-linea); border-radius: 14px; padding: 1rem 1.1rem; display: grid; gap: .2rem; line-height: 1.35; }
.ls-cargos li strong { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ls-morado); }
.ls-cargos--main li:first-child { background: var(--ls-morado); border-color: var(--ls-morado); color: #fff; }
.ls-cargos--main li:first-child strong { color: var(--ls-dorado); }

/* Lista de nombres en columnas (presidentes, miembros...) */
.ls-prose ul.ls-names { columns: 2 220px; column-gap: 2rem; padding-left: 1.1rem; }
.ls-prose ul.ls-names li { break-inside: avoid; margin-bottom: .3rem; }

/* Patrimonio: fichas */
.ls-pieza { display: grid; grid-template-columns: 280px 1fr; gap: 1.75rem; align-items: start; padding: 2rem 0; border-top: 1px solid var(--ls-linea); }
.ls-prose .ls-pieza > * { margin: 0; }
.ls-pieza__media { display: grid; gap: .75rem; }
.ls-pieza__media img { width: 100%; border-radius: 12px; box-shadow: 0 10px 26px rgba(36, 18, 58, .15); background: #fff; }
.ls-theme .ls-prose .ls-pieza h2 { margin: 0 0 .6rem; font-size: clamp(1.6rem, 3vw, 2rem); }
.ls-pieza__text > p { margin: 0 0 .9rem; }
.ls-prose .ls-ficha { font-size: .88rem; background: #fff; border-left: 3px solid var(--ls-dorado); padding: .75rem 1rem; border-radius: 0 10px 10px 0; color: rgba(45, 41, 38, .85); line-height: 1.55; margin: 0 0 1rem; }
.ls-index { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.ls-prose .ls-index li { margin: 0; }
.ls-theme .ls-index a { display: inline-block; padding: .4rem .85rem; border-radius: 99px; background: rgba(88, 44, 131, .08); color: var(--ls-morado); font-weight: 600; font-size: .86rem; text-decoration: none; }
.ls-theme .ls-index a:hover { background: var(--ls-morado); color: #fff; }

/* Pregones */
.ls-pregones { display: grid; gap: 1rem; }
.ls-pregon { background: #fff; border-radius: var(--ls-radius); padding: 1.25rem 1.4rem; border: 1px solid var(--ls-linea); display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.25rem; align-items: center; }
.ls-prose .ls-pregon > * { margin: 0; }
.ls-pregon__num { grid-row: span 3; display: grid; place-items: center; min-width: 74px; height: 74px; padding: 0 .4rem; border-radius: 14px; background: var(--ls-morado); color: var(--ls-dorado); font-weight: 800; font-size: 1.05rem; letter-spacing: .03em; text-align: center; line-height: 1.1; }
.ls-pregon__num small { display: block; font-size: .62rem; letter-spacing: .14em; color: rgba(255, 255, 255, .75); font-weight: 700; }
.ls-theme .ls-prose .ls-pregon h3 { margin: 0; font-size: 1.15rem; color: var(--ls-tinta); }
.ls-pregon__date { color: rgba(45, 41, 38, .65); font-size: .92rem; }
.ls-pregon__links { display: flex; flex-wrap: wrap; gap: .5rem; }
.ls-theme .ls-pregon__links a { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 99px; background: rgba(88, 44, 131, .08); color: var(--ls-morado); font-weight: 700; font-size: .85rem; text-decoration: none; }
.ls-theme .ls-pregon__links a:hover { background: var(--ls-morado); color: #fff; }
.ls-pregon__links .ls-icon { width: 1.05em; height: 1.05em; }

/* Documentación */
.ls-docs { display: grid; gap: .75rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.ls-prose .ls-docs li { margin: 0; }
.ls-theme .ls-docs a { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--ls-linea); border-radius: 14px; text-decoration: none; color: var(--ls-tinta); font-weight: 600; transition: border-color .15s, transform .15s; }
.ls-theme .ls-docs a:hover { border-color: var(--ls-morado); transform: translateX(3px); color: var(--ls-morado); }
.ls-docs a::before { content: ""; width: 38px; height: 38px; flex: none; border-radius: 10px; background: rgba(88, 44, 131, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23582c83' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E") center / 22px no-repeat; }
.ls-docs a::after { content: "↗"; margin-left: auto; color: var(--ls-morado); }

/* Contacto: tarjeta de datos */
.ls-contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: start; }
.ls-contact-card { background: var(--ls-morado-noche); color: rgba(255, 255, 255, .85); border-radius: var(--ls-radius); padding: 1.75rem; }
.ls-prose .ls-contact-card > * { margin: 0 0 1rem; }
.ls-theme .ls-prose .ls-contact-card h2 { color: var(--ls-dorado); margin: 0 0 1rem; font-size: 1.9rem; }
.ls-theme .ls-contact-card a { color: #fff; }
.ls-alert { padding: 1rem 1.2rem; border-radius: 12px; margin: 0 0 1.25rem; }
.ls-alert--ok { background: #ecfdf3; color: #05603a; border: 1px solid #abefc6; }
.ls-alert--error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }

/* Avisos y bloques varios */
.ls-soon { text-align: center; padding: 3rem 1.5rem; background: #fff; border-radius: var(--ls-radius); border: 1px dashed rgba(88, 44, 131, .3); }
.ls-soon .ls-icon { width: 48px; height: 48px; color: var(--ls-morado); }
.ls-theme .ls-soon h2 { font-family: var(--ls-font-display); color: var(--ls-morado); font-size: 2rem; margin: .5rem 0; }
.ls-facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-weight: 600; }
.ls-facts li { display: inline-flex; gap: .4rem; align-items: center; }
.ls-facts .ls-icon { color: var(--ls-morado); }
.ls-back { margin-top: 3rem; }
.ls-article-media img { border-radius: var(--ls-radius); width: 100%; }
.ls-pagination ul { display: flex; gap: .4rem; list-style: none; padding: 0; justify-content: center; margin: 2.5rem 0 0; flex-wrap: wrap; }
.ls-pagination a, .ls-pagination span { display: inline-block; padding: .5rem .9rem; border-radius: 10px; background: #fff; border: 1px solid var(--ls-linea); text-decoration: none; }
.ls-pagination .current { background: var(--ls-morado); color: #fff; border-color: var(--ls-morado); }

/* ---------- Pie ---------- */
.ls-footer { background: var(--ls-negro); color: rgba(255, 255, 255, .78); padding-top: 4rem; font-size: .95rem; }
.ls-theme .ls-footer a { color: #fff; text-decoration: none; }
.ls-theme .ls-footer a:hover { color: var(--ls-dorado); }
.ls-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.ls-footer__brand { display: flex; gap: 1.25rem; align-items: flex-start; }
.ls-footer__brand img { width: 80px; height: auto; flex: none; }
.ls-footer__brand p { margin: 0; }
.ls-footer__title { font-family: var(--ls-font-display); color: var(--ls-dorado); font-size: 2rem; line-height: 1; margin-bottom: .6rem !important; }
.ls-footer__full { font-size: .82rem; line-height: 1.5; color: rgba(255, 255, 255, .6); }
.ls-footer__head { color: var(--ls-dorado); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin: 0 0 1rem; }
.ls-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ls-footer__list li { display: flex; gap: .55rem; align-items: flex-start; }
.ls-footer__list .ls-icon { color: var(--ls-dorado); margin-top: .2rem; }
.ls-social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.ls-theme .ls-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.ls-theme .ls-social a:hover { background: var(--ls-dorado); color: var(--ls-tinta); }
.ls-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.25rem 0; font-size: .85rem; }
.ls-footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.ls-footer__bottom p { margin: 0; }
.ls-footer__legal { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }

/* 404 */
.ls-404 { padding: clamp(4rem, 12vw, 8rem) 0; text-align: center; }
.ls-404__code { font-family: var(--ls-font-display); font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--ls-dorado); margin: 0; }
.ls-theme .ls-404__title { font-family: var(--ls-font-display); color: var(--ls-morado); font-size: clamp(2.1rem, 5vw, 3rem); margin: .5rem 0 .75rem; }
.ls-404__text { font-size: 1.1rem; color: rgba(45, 41, 38, .75); margin: 0 0 2rem; }
.ls-404__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* Visor de fotos a pantalla completa */
.ls-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 6, 16, .95); display: grid; place-items: center; padding: 3.5rem 1rem; }
.ls-lightbox[hidden] { display: none; }
.ls-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.ls-theme .ls-lightbox button { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: none; }
.ls-theme .ls-lightbox button:hover { background: rgba(255, 255, 255, .22); }
.ls-lightbox__close { top: 1rem; right: 1rem; }
.ls-lightbox__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.ls-lightbox__next { right: 1rem; top: 50%; translate: 0 -50%; }
.ls-lightbox__count { position: absolute; bottom: 1rem; left: 50%; translate: -50% 0; color: rgba(255, 255, 255, .75); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
	:root { --ls-header-h: 66px; }
	.ls-theme .ls-burger { display: block; }
	.ls-nav { position: fixed; inset: var(--ls-header-h) 0 0 0; height: calc(100dvh - var(--ls-header-h)); padding: 1rem 1.25rem 3rem; background: var(--ls-morado-noche); transform: translateX(100%); transition: transform .3s; overflow-y: auto; z-index: 101; }
	.admin-bar .ls-nav { inset-block-start: calc(var(--ls-header-h) + 32px); height: calc(100dvh - var(--ls-header-h) - 32px); }
	.ls-header.is-open .ls-nav { transform: none; }
	.ls-header.is-open .ls-burger__open { display: none; }
	.ls-header.is-open .ls-burger__close { display: block; }
	.ls-header.is-open { position: fixed; top: 0; left: 0; right: 0; background: var(--ls-morado-noche); }
	.admin-bar .ls-header.is-open { top: 32px; }
	.ls-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.ls-nav__list > li, .ls-nav .sub-menu li { display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.ls-theme .ls-nav__list a { font-size: 1.15rem; padding: .95rem .25rem; }
	.ls-theme .ls-sub-toggle, .ls-theme .ls-nav .sub-menu .ls-sub-toggle { margin: 0; width: 46px; height: 46px; color: #fff; border-radius: 10px; background: rgba(255, 255, 255, .06); }
	.ls-sub-toggle .ls-icon, .ls-nav .sub-menu .ls-sub-toggle .ls-icon { width: 20px; height: 20px; transform: none; }
	.ls-nav li.is-open > .ls-sub-toggle .ls-icon { transform: rotate(180deg); }
	.ls-nav .sub-menu, .ls-nav .sub-menu .sub-menu { grid-column: 1 / -1; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 .5rem 1rem; min-width: 0; display: none; border-radius: 0; }
	.ls-nav li.is-open > .sub-menu { display: block; }
	.ls-nav .sub-menu li { border-bottom: 0; }
	.ls-theme .ls-nav .sub-menu a { color: rgba(255, 255, 255, .85); font-size: 1rem; padding: .65rem .25rem; }
	.ls-theme .ls-nav .sub-menu a:hover, .ls-theme .ls-nav .sub-menu .current-menu-item > a { background: none; color: var(--ls-dorado); }
	.ls-theme .ls-nav .sub-menu .ls-sub-toggle { background: transparent; }
	body.ls-menu-open { position: fixed; left: 0; right: 0; overflow: hidden; }
	body.ls-menu-open:not(.ls-home) #page { padding-top: var(--ls-header-h); }
}
@media (max-width: 920px) {
	.ls-split, .ls-footer__grid, .ls-contact-grid { grid-template-columns: 1fr; }
	.ls-cult-grid, .ls-news__grid { grid-template-columns: repeat(2, 1fr); }
	.ls-agenda--dark { grid-template-columns: 1fr; }
	.ls-pubs__grid { grid-template-columns: repeat(2, 1fr); }
	.ls-pieza { grid-template-columns: 200px 1fr; }
}
@media (max-width: 782px) {
	.admin-bar .ls-header { top: 46px; }
	.admin-bar .ls-header.is-open { top: 46px; }
	.admin-bar .ls-nav { inset-block-start: calc(var(--ls-header-h) + 46px); height: calc(100dvh - var(--ls-header-h) - 46px); }
}
@media (max-width: 760px) {
	.ls-hero { min-height: 92svh; }
	.ls-theme .ls-hero__bg { object-position: 72% 20%; }
	.ls-hero__veil { background: linear-gradient(180deg, rgba(23, 16, 31, .55) 0%, rgba(23, 16, 31, .1) 25%, rgba(23, 16, 31, .55) 55%, rgba(23, 16, 31, .97) 85%); }
	.ls-hero__content { padding-bottom: 3.5rem; }
	.ls-titulares__grid { grid-template-columns: 1fr; }
	.ls-pieza { grid-template-columns: 1fr; }
	.ls-pieza__media { max-width: 360px; }
	.ls-form__row { grid-template-columns: 1fr; }
	.ls-prose .wp-block-image.alignleft, .ls-prose .alignleft, .ls-prose .wp-block-image.alignright, .ls-prose .alignright { float: none; margin: 1rem auto; max-width: 100%; }
}
@media (max-width: 600px) {
	body.ls-theme { font-size: 16px; }
	.ls-brand__text strong { font-size: 1.3rem; }
	.ls-hero__actions .ls-btn { width: 100%; }
	.ls-cult-grid, .ls-news__grid { grid-template-columns: 1fr; }
	.ls-figures { grid-template-columns: 1fr 1fr; }
	.ls-pubs__grid { gap: 1rem; }
	.ls-theme .wp-block-gallery.ls-covers { grid-template-columns: repeat(2, 1fr); gap: 1.25rem .9rem; }
	.ls-pregon { grid-template-columns: 1fr; }
	.ls-pregon__num { grid-row: auto; justify-self: start; height: auto; min-width: 0; padding: .35rem .7rem; display: inline-flex; gap: .4rem; }
	.ls-pregon__num small { display: inline; }
	.ls-cta-band__inner { text-align: center; justify-content: center; }
	.ls-cta-band__actions { justify-content: center; width: 100%; }
	.ls-cta-band__actions .ls-btn { width: 100%; }
	.ls-section__head--row { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
.ls-theme .ls-figure strong.ls-figure__roman { font-family: var(--ls-font); font-weight: 800; letter-spacing: .04em; }

/* Los grupos de bloques (pregones, piezas, contacto) controlan su propio espaciado */
.ls-theme .ls-prose .wp-block-group > * { margin-block-start: 0; }
.ls-theme .ls-pregones > .ls-pregon, .ls-theme .ls-pregones > * { margin: 0; }
.ls-theme .ls-pieza__text > * + * { margin-top: .9rem; }
.ls-theme .ls-pieza__text > .ls-ficha + * { margin-top: 0; }
@media (max-width: 760px) {
	.ls-hero__content { width: calc(100% - 2.5rem); margin-inline: auto; }
}
.ls-theme .ls-roman { font-family: var(--ls-font); font-weight: 800; font-size: .82em; letter-spacing: .03em; }
.ls-theme .ls-page-header__bg { object-position: center 42%; }

/* Hover: enlaces sobre fondo oscuro mantienen el texto claro (el morado general de los enlaces no se lee ahí) */
.ls-theme .ls-titular:hover, .ls-theme .ls-titular:focus { color: #fff; }
.ls-theme .ls-titular:hover .ls-link { color: var(--ls-dorado); }
.ls-theme .ls-brand:hover, .ls-theme .ls-brand:focus { color: #fff; }
.ls-theme .ls-album:hover, .ls-theme .ls-album:focus { color: #fff; }
.ls-theme .ls-pub:hover span { color: var(--ls-morado-intenso); }

/* ---------- Sucedió en Belén: botón del menú y sección de portada ---------- */
.ls-nav { display: flex; align-items: center; gap: 1rem; }
.ls-theme .ls-nav__cta { padding: .6rem 1.05rem; font-size: .9rem; flex: none; }
.ls-theme .ls-nav__cta .ls-icon { width: 1.1em; height: 1.1em; }
.ls-belen { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--ls-morado-noche); padding: clamp(5rem, 11vw, 8rem) 0; }
.ls-theme .ls-belen__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 50%; z-index: -2; }
.ls-belen::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(36, 18, 58, .95) 0%, rgba(36, 18, 58, .78) 45%, rgba(36, 18, 58, .2) 100%); }
.ls-belen__text { max-width: 560px; }
.ls-belen__text p { color: rgba(255, 255, 255, .9); font-size: 1.07rem; }
.ls-theme .ls-belen__title { font-family: var(--ls-font-display); color: var(--ls-dorado); font-size: clamp(3rem, 7vw, 5rem); line-height: .95; margin: 0 0 1rem; font-weight: 700; text-shadow: 0 4px 24px rgba(0, 0, 0, .4); }
.ls-theme .ls-belen__dates { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; color: #fff; padding: .5rem 1rem; border: 1px solid rgba(255, 199, 44, .5); border-radius: 99px; background: rgba(0, 0, 0, .25); }
.ls-belen__dates .ls-icon { color: var(--ls-dorado); }
.ls-belen__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
@media (max-width: 1480px) and (min-width: 1241px) {
	.ls-theme .ls-nav__list a { padding: .55rem .5rem; font-size: .88rem; }
	.ls-brand__text strong { font-size: 1.35rem; }
}
@media (max-width: 1240px) {
	.ls-nav { flex-direction: column; align-items: stretch; gap: 1.5rem; }
	.ls-theme .ls-nav__cta { font-size: 1.05rem; padding: 1rem; }
}
@media (max-width: 760px) {
	.ls-belen::after { background: linear-gradient(180deg, rgba(36, 18, 58, .55) 0%, rgba(36, 18, 58, .9) 55%, rgba(36, 18, 58, .97) 100%); }
	.ls-belen { padding-top: 12rem; }
	.ls-belen__actions .ls-btn { width: 100%; }
}

/* ==========================================================================
   Lecturas largas (Historia y textos con capítulos)
   ========================================================================== */
.ls-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.ls-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ls-dorado), #ffe08a); box-shadow: 0 0 10px rgba(255, 199, 44, .6); }
.admin-bar .ls-progress { top: 32px; }
.ls-container--wide { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.ls-longread__grid { display: grid; grid-template-columns: 250px minmax(0, 720px); gap: clamp(2rem, 5vw, 4.5rem); justify-content: center; align-items: start; }
.ls-longread__aside { position: sticky; top: calc(var(--ls-header-h) + 1.5rem); }
.admin-bar .ls-longread__aside { top: calc(var(--ls-header-h) + 32px + 1.5rem); }
.ls-toc { border-left: 2px solid var(--ls-linea); padding-left: 1.1rem; }
.ls-toc__title { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ls-morado); margin: 0 0 .8rem; }
.ls-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.ls-theme .ls-toc a { display: flex; gap: .65rem; align-items: baseline; padding: .4rem .5rem; margin-left: calc(-1.1rem - 2px); border-left: 2px solid transparent; text-decoration: none; color: rgba(45, 41, 38, .7); font-size: .92rem; line-height: 1.35; transition: color .15s, border-color .15s, background-color .15s; }
.ls-toc a span { font-size: .72rem; font-weight: 800; color: rgba(88, 44, 131, .5); min-width: 1.2rem; }
.ls-theme .ls-toc a:hover { color: var(--ls-morado); background: rgba(88, 44, 131, .05); }
.ls-theme .ls-toc a.is-active { color: var(--ls-morado); font-weight: 700; border-left-color: var(--ls-dorado); background: rgba(255, 199, 44, .1); }
.ls-toc a.is-active span { color: var(--ls-morado); }

/* Capítulos */
.ls-theme .ls-longread__body h2 { position: relative; padding-top: 2.5rem; margin-top: 3rem; border-top: 1px solid var(--ls-linea); scroll-margin-top: calc(var(--ls-header-h) + 1rem); }
.ls-theme .ls-longread__body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ls-chapter__num { display: block; font-family: var(--ls-font); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ls-dorado-viejo); margin-bottom: .5rem; }
.ls-chapter__num::before { content: "Capítulo "; }
.ls-longread__body p { font-size: 1.1rem; line-height: 1.8; }
.ls-longread__body .wp-block-image figure, .ls-longread__body figure.wp-block-image { margin-bottom: 1.25rem; }
.ls-longread__body .wp-block-image img { box-shadow: 0 14px 36px rgba(36, 18, 58, .18); }
.ls-longread__body .alignleft, .ls-longread__body .alignright { max-width: 42%; }
.ls-longread__body .alignleft { margin-left: -2rem; }
.ls-longread__body .alignright { margin-right: -2rem; }

/* Letra capitular */
.ls-dropcap > p:first-of-type::first-letter, .ls-dropcap > h2:first-child + p::first-letter, .ls-dropcap > h2:first-child + figure + p::first-letter {
	font-family: var(--ls-font-display); float: left; font-size: 4.8rem; line-height: .78; padding: .35rem .65rem 0 0; color: var(--ls-morado); font-weight: 700;
}

/* Portada de Historia */
.ls-xhero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--ls-negro); min-height: 70vh; display: grid; align-items: end; }
.ls-theme .ls-xhero__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 40%; z-index: -2; }
.ls-xhero--sepia .ls-xhero__bg { filter: sepia(.55) contrast(1.05) brightness(.9); }
.ls-xhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 16, 31, .55) 0%, rgba(23, 16, 31, .35) 35%, rgba(23, 16, 31, .95) 100%), radial-gradient(ellipse at 15% 100%, rgba(92, 6, 140, .45), transparent 60%); }
.ls-xhero__content { padding: 7rem 0 3rem; }
.ls-theme .ls-xhero__title { font-family: var(--ls-font-display); color: var(--ls-dorado); font-size: clamp(3.6rem, 10vw, 7.5rem); line-height: .9; margin: 0 0 1rem; font-weight: 700; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.ls-xhero__sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 40rem; margin: 0 0 2rem; color: rgba(255, 255, 255, .9); }
.ls-xhero__chapters { list-style: none; margin: 0; padding: 1.25rem 0 0; border-top: 1px solid rgba(255, 199, 44, .35); display: flex; flex-wrap: wrap; gap: .5rem; counter-reset: cap; }
.ls-xhero__chapters li { counter-increment: cap; }
.ls-theme .ls-xhero__chapters a { display: inline-flex; gap: .45rem; align-items: center; padding: .45rem .9rem; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; text-decoration: none; font-size: .88rem; font-weight: 600; backdrop-filter: blur(4px); transition: background-color .15s, border-color .15s, color .15s; }
.ls-xhero__chapters a::before { content: counter(cap); font-size: .7rem; font-weight: 800; color: var(--ls-dorado); }
.ls-theme .ls-xhero__chapters a:hover { background: var(--ls-dorado); border-color: var(--ls-dorado); color: var(--ls-tinta); }
.ls-theme .ls-xhero__chapters a:hover::before { color: var(--ls-morado); }

/* Sigue leyendo */
.ls-related { background: #fff; padding: clamp(3.5rem, 7vw, 5rem) 0; border-top: 1px solid var(--ls-linea); }
.ls-related .ls-h2 { text-align: center; margin-bottom: 2rem; }
.ls-related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.ls-theme .ls-related__card { display: flex; flex-direction: column; border-radius: var(--ls-radius); overflow: hidden; background: var(--ls-marfil); border: 1px solid var(--ls-linea); text-decoration: none; color: var(--ls-tinta); transition: transform .2s, box-shadow .2s; }
.ls-theme .ls-related__card:hover { transform: translateY(-4px); box-shadow: var(--ls-shadow); color: var(--ls-tinta); }
.ls-related__card > img, .ls-related__ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: grid; place-items: center; background: var(--ls-morado-noche); }
.ls-related__ph img { width: 54px; height: auto; }
.ls-related__body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .25rem; }
.ls-related__body small { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ls-morado); }
.ls-related__body strong { font-size: 1.02rem; line-height: 1.3; }

/* ==========================================================================
   Coronación Canónica
   ========================================================================== */
.ls-chero { background: radial-gradient(ellipse at 80% 20%, var(--ls-morado-intenso), var(--ls-morado-noche) 65%); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; position: relative; overflow: hidden; }
.ls-chero::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 26px 26px; }
.ls-chero__grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.ls-theme .ls-chero__title { font-family: var(--ls-font-display); color: var(--ls-dorado); font-size: clamp(3rem, 7.5vw, 5.6rem); line-height: .92; margin: 0 0 1.25rem; font-weight: 700; }
.ls-chero__date { display: flex; align-items: baseline; gap: .8rem; margin: 0 0 1.25rem; flex-wrap: wrap; }
.ls-chero__date span:first-child { font-family: var(--ls-font-display); font-size: clamp(4rem, 9vw, 6rem); line-height: .8; color: #fff; }
.ls-chero__date span:nth-child(2) { font-size: 1.4rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--ls-dorado); }
.ls-chero__date span:last-child { font-size: 1.4rem; font-weight: 300; letter-spacing: .14em; }
.ls-chero__sub { font-size: 1.1rem; color: rgba(255, 255, 255, .85); max-width: 32rem; margin: 0 0 1.75rem; }
.ls-chero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.ls-chero__facts li { padding: .8rem 1.1rem; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 199, 44, .3); display: grid; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.ls-chero__facts strong { color: #fff; font-size: 1rem; }
.ls-chero__media { margin: 0; position: relative; justify-self: center; max-width: 440px; }
.ls-chero__media::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid rgba(255, 199, 44, .55); border-radius: 220px 220px 20px 20px; }
.ls-theme .ls-chero__img { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 220px 220px 20px 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }

/* Línea de tiempo (lista numerada con clase ls-steps) */
.ls-theme .ls-prose ol.ls-steps { list-style: none; padding: 0; margin: 1.5rem 0 2.5rem; position: relative; counter-reset: paso; }
.ls-prose ol.ls-steps::before { content: ""; position: absolute; left: 21px; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(var(--ls-dorado), var(--ls-morado)); }
.ls-prose ol.ls-steps li { counter-increment: paso; position: relative; padding: 0 0 1.4rem 4rem; margin: 0; }
.ls-prose ol.ls-steps li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ls-morado); color: var(--ls-dorado); font-weight: 800; box-shadow: 0 0 0 5px var(--ls-marfil); }
.ls-prose ol.ls-steps li:last-child::before { background: var(--ls-dorado); color: var(--ls-tinta); }
.ls-prose ol.ls-steps li strong { display: block; font-family: var(--ls-font-display); font-size: 1.6rem; color: var(--ls-morado); line-height: 1.1; margin-bottom: .2rem; }

/* Cita grande */
.ls-theme .ls-prose blockquote.ls-bigquote { border: 0; margin: 2.5rem 0; padding: 2.5rem 2rem 2rem; text-align: center; background: var(--ls-morado-noche); border-radius: var(--ls-radius); position: relative; overflow: hidden; font-style: normal; }
.ls-prose blockquote.ls-bigquote::before { content: "“"; position: absolute; top: -2.5rem; left: 50%; translate: -50% 0; font-family: var(--ls-font-display); font-size: 12rem; line-height: 1; color: rgba(255, 199, 44, .14); }
.ls-theme .ls-prose blockquote.ls-bigquote p { font-family: var(--ls-font-display); font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; color: var(--ls-dorado); margin: 0 0 .75rem; position: relative; }
.ls-prose blockquote.ls-bigquote cite { color: rgba(255, 255, 255, .75); font-style: normal; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.ls-coronacion .wp-block-image.alignright { margin-right: -3rem; }

/* ==========================================================================
   Patrimonio: catálogo con filtros y fichas
   ========================================================================== */
.ls-patrimonio__intro { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.ls-patrimonio__count { margin: 0; color: rgba(45, 41, 38, .7); }
.ls-patrimonio__count strong { font-family: var(--ls-font-display); font-size: 2.4rem; color: var(--ls-morado); line-height: 1; vertical-align: -.2rem; margin-right: .2rem; }
.ls-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.ls-theme .ls-filter button { font-family: var(--ls-font); font-size: .88rem; font-weight: 700; padding: .55rem 1rem; border-radius: 99px; border: 1.5px solid rgba(88, 44, 131, .25); background: #fff; color: var(--ls-morado); cursor: pointer; box-shadow: none; line-height: 1.2; transition: background-color .15s, border-color .15s, color .15s; }
.ls-theme .ls-filter button:hover { border-color: var(--ls-morado); background: rgba(88, 44, 131, .06); color: var(--ls-morado); }
.ls-theme .ls-filter button.is-active, .ls-theme .ls-filter button.is-active:hover { background: var(--ls-morado); border-color: var(--ls-morado); color: #fff; }
.ls-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.ls-theme .ls-card-pieza { display: flex; flex-direction: column; text-decoration: none; color: var(--ls-tinta); background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--ls-linea); transition: transform .2s, box-shadow .2s, border-color .2s; }
.ls-theme .ls-card-pieza:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(36, 18, 58, .14); border-color: rgba(88, 44, 131, .3); color: var(--ls-tinta); }
.ls-card-pieza__img { aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #fff, #f1ece4); display: grid; place-items: center; padding: .75rem; }
.ls-card-pieza__img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; mix-blend-mode: multiply; }
.ls-card-pieza__body { padding: .8rem .9rem 1rem; display: grid; gap: .2rem; border-top: 1px solid var(--ls-linea); }
.ls-card-pieza__body small { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ls-dorado-viejo); }
.ls-card-pieza__body strong { font-size: .93rem; line-height: 1.3; }
.ls-card-pieza[hidden], .ls-pieza[hidden] { display: none !important; }

.ls-theme .ls-fichas__title { font-family: var(--ls-font-display); color: var(--ls-morado); font-size: clamp(2rem, 4vw, 2.6rem); text-align: center; margin: 0 0 1rem; }
.ls-theme .ls-fichas > .ls-lead { text-align: center; max-width: 44rem; margin: 0 auto 2rem; }
.ls-fichas .ls-pieza { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); padding: clamp(2.5rem, 5vw, 3.5rem) 0; scroll-margin-top: calc(var(--ls-header-h) + 1rem); }
.ls-fichas .ls-pieza:nth-of-type(even) .ls-pieza__media { order: 2; }
.ls-fichas .ls-pieza__media { position: sticky; top: calc(var(--ls-header-h) + 1.5rem); padding: 1.25rem; background: radial-gradient(circle at 50% 35%, #fff, #f1ece4); border-radius: 18px; border: 1px solid var(--ls-linea); }
.ls-fichas .ls-pieza__media img { box-shadow: none; border-radius: 8px; mix-blend-mode: multiply; width: 100%; max-height: 70vh; object-fit: contain; }
.ls-fichas .ls-pieza__media figure { margin: 0; }
.ls-theme .ls-fichas .ls-pieza h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: .5rem; scroll-margin-top: calc(var(--ls-header-h) + 1rem); }
.ls-pieza__cat { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ls-dorado-viejo); margin-bottom: .6rem; }
.ls-theme .ls-prose .ls-ficha { display: block; background: var(--ls-morado-noche); color: rgba(255, 255, 255, .85); border: 0; border-radius: 14px; padding: 1rem 1.25rem; font-size: .9rem; line-height: 1.75; margin: .75rem 0 1.25rem; }
.ls-prose .ls-ficha strong { color: var(--ls-dorado); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-right: .2rem; }
.ls-pieza__top { margin: 1.5rem 0 0; font-size: .85rem; }
.ls-theme .ls-pieza__top a { color: rgba(45, 41, 38, .55); text-decoration: none; font-weight: 600; }
.ls-theme .ls-pieza__top a:hover { color: var(--ls-morado); }

@media (max-width: 1100px) {
	.ls-longread__grid { grid-template-columns: minmax(0, 720px); }
	.ls-longread__aside { position: static; }
	.ls-toc { display: none; }
	.ls-longread__body .alignleft { margin-left: 0; }
	.ls-longread__body .alignright, .ls-coronacion .wp-block-image.alignright { margin-right: 0; }
	.ls-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
	.ls-chero__grid { grid-template-columns: 1fr; }
	.ls-chero__media { max-width: 340px; order: -1; }
	.ls-fichas .ls-pieza { grid-template-columns: 1fr; }
	.ls-fichas .ls-pieza:nth-of-type(even) .ls-pieza__media { order: 0; }
	.ls-fichas .ls-pieza__media { position: static; max-width: 420px; }
}
@media (max-width: 600px) {
	.ls-xhero { min-height: 78svh; }
	.ls-xhero__chapters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1.25rem; padding: 1rem 1.25rem .25rem; scrollbar-width: none; }
	.ls-xhero__chapters li { flex: none; }
	.ls-chero__media { max-width: 240px; }
	.ls-chero__media::before { inset: -10px 10px 10px -10px; }
	.ls-related__grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
	.ls-catalog { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
	.ls-filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1.25rem; padding: 0 1.25rem .4rem; scrollbar-width: none; }
	.ls-filter button { flex: none; }
	.ls-dropcap > p:first-of-type::first-letter { font-size: 3.8rem; }
	.ls-prose ol.ls-steps li { padding-left: 3.4rem; }
}

/* Ajustes: tarjetas del catálogo iguales, fichas alternas y galerías cortas centradas */
.ls-card-pieza__img { aspect-ratio: 4 / 5; padding: 0; overflow: hidden; background: var(--ls-morado-noche); }
.ls-theme .ls-card-pieza__img img { width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; mix-blend-mode: normal; transition: transform .4s; }
.ls-card-pieza:hover .ls-card-pieza__img img { transform: scale(1.05); }
.ls-card-pieza__body { flex: 1; align-content: start; }
.ls-fichas .ls-pieza:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
.ls-fichas .ls-pieza__media { display: grid; gap: .75rem; justify-items: center; }
.ls-fichas .ls-pieza__media img { width: auto; max-width: 100%; }
.ls-theme .wp-block-gallery.ls-covers { grid-template-columns: repeat(auto-fit, minmax(170px, 210px)); justify-content: center; }
.ls-prose ol.ls-steps::before { bottom: 2.2rem; }
@media (max-width: 920px) {
	.ls-fichas .ls-pieza:nth-of-type(even) { grid-template-columns: 1fr; }
	.ls-fichas .ls-pieza__media { justify-self: center; width: 100%; }
}
@media (max-width: 600px) {
	.ls-theme .wp-block-gallery.ls-covers { grid-template-columns: repeat(2, 1fr); }
}
.ls-xhero { grid-template-columns: minmax(0, 1fr); } .ls-xhero__content { min-width: 0; }

/* ==========================================================================
   Formulario de contacto (sencillo)
   ========================================================================== */
.ls-theme .ls-prose .ls-contact-form > * + * { margin-top: 1rem; }
.ls-theme .ls-prose .ls-contact-form > .ls-form { margin-top: 1.75rem; }
.ls-theme .ls-form { display: grid; gap: 1.1rem; background: none; border: 0; padding: 0; box-shadow: none; }
.ls-theme .ls-form .ls-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.ls-theme .ls-form .ls-field { display: grid; gap: .4rem; margin: 0; min-width: 0; }
.ls-theme .ls-form .ls-field label { font-weight: 600; font-size: .92rem; color: var(--ls-tinta); margin: 0; }
.ls-theme .ls-form .ls-field label small { font-weight: 400; color: rgba(45, 41, 38, .55); }
.ls-theme .ls-form input[type="text"], .ls-theme .ls-form input[type="email"], .ls-theme .ls-form input[type="tel"], .ls-theme .ls-form select, .ls-theme .ls-form textarea {
	width: 100%; min-height: 50px; margin: 0; padding: .75rem 1rem; border: 1.5px solid rgba(45, 41, 38, .16); border-radius: 12px; background: #fff;
	font: 400 16px/1.4 var(--ls-font); color: var(--ls-tinta); box-shadow: none; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s;
}
.ls-theme .ls-form select { padding-right: 2.75rem; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23582c83' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 18px; }
.ls-theme .ls-form textarea { min-height: 140px; resize: vertical; }
.ls-theme .ls-form input:focus, .ls-theme .ls-form select:focus, .ls-theme .ls-form textarea:focus { outline: none; border-color: var(--ls-morado); box-shadow: 0 0 0 3px rgba(88, 44, 131, .14); }
.ls-theme .ls-form .is-invalid input, .ls-theme .ls-form .is-invalid textarea { border-color: #d92d20; }
.ls-theme .ls-form .ls-check { display: flex; gap: .65rem; align-items: flex-start; margin: 0; font-size: .95rem; font-weight: 400; cursor: pointer; }
.ls-theme .ls-form .ls-check input { width: 20px; height: 20px; margin: .15rem 0 0; flex: none; accent-color: var(--ls-morado); }
.ls-theme .ls-form .ls-check.is-invalid span { color: #b42318; }
.ls-theme .ls-form .ls-form__error { margin: 0; color: #b42318; font-size: .92rem; font-weight: 600; }
.ls-theme .ls-form .ls-form__actions { margin: .25rem 0 0; }
.ls-theme .ls-form .ls-form__submit { border: 0; min-width: 200px; }
.ls-form__submit.is-sending { opacity: .7; pointer-events: none; }
.ls-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 920px) {
	.ls-contact-grid { grid-template-columns: 1fr; }
	.ls-contact-grid .ls-contact-form { order: -1; }
}
@media (max-width: 600px) {
	.ls-theme .ls-form .ls-form__row { grid-template-columns: 1fr; }
	.ls-theme .ls-form .ls-form__submit { width: 100%; }
}

/* Fondo oscuro bajo el pie (Safari en iPhone muestra el fondo de la página al final y bajo su barra) */
html { background: var(--ls-negro); }
.ls-footer { padding-bottom: env(safe-area-inset-bottom); }

/* ---------- Línea de tiempo animada (ls-steps) ---------- */
.ls-theme .ls-prose ol.ls-steps { --p: 1; }
.ls-prose ol.ls-steps::before { background: rgba(88, 44, 131, .14); bottom: 2.4rem; }
.ls-prose ol.ls-steps::after { content: ""; position: absolute; left: 21px; top: .5rem; bottom: 2.4rem; width: 2px; background: linear-gradient(var(--ls-dorado), var(--ls-morado)); transform-origin: top; transform: scaleY(var(--p)); border-radius: 2px; box-shadow: 0 0 10px rgba(255, 199, 44, .5); }
.ls-prose ol.ls-steps li { z-index: 1; }
.ls-theme .ls-prose ol.ls-steps.is-armed li { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.ls-theme .ls-prose ol.ls-steps.is-armed li.is-in { opacity: 1; transform: none; }
.ls-theme .ls-prose ol.ls-steps.is-armed li::before { background: #fff; color: rgba(88, 44, 131, .55); box-shadow: 0 0 0 5px var(--ls-marfil), inset 0 0 0 2px rgba(88, 44, 131, .25); transform: scale(.82); transition: background-color .35s, color .35s, box-shadow .35s, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.ls-theme .ls-prose ol.ls-steps.is-armed li strong { color: rgba(88, 44, 131, .55); transition: color .4s; }
.ls-theme .ls-prose ol.ls-steps.is-armed li.is-reached::before { background: var(--ls-morado); color: var(--ls-dorado); transform: scale(1); box-shadow: 0 0 0 5px var(--ls-marfil); }
.ls-theme .ls-prose ol.ls-steps.is-armed li.is-reached strong { color: var(--ls-morado); }
.ls-theme .ls-prose ol.ls-steps.is-armed li.is-reached:last-child::before { background: var(--ls-dorado); color: var(--ls-tinta); animation: ls-glow 2.2s ease-in-out infinite; }
@keyframes ls-glow {
	0%, 100% { box-shadow: 0 0 0 5px var(--ls-marfil), 0 0 0 0 rgba(255, 199, 44, 0); }
	50% { box-shadow: 0 0 0 5px var(--ls-marfil), 0 0 18px 6px rgba(255, 199, 44, .4); }
}
@media (prefers-reduced-motion: reduce) {
	.ls-theme .ls-prose ol.ls-steps.is-armed li { opacity: 1; transform: none; }
}

/* Lecturas largas: galerías y rótulos dentro del texto */
.ls-theme .ls-longread__body .alignwide { width: 100%; margin-left: 0; }
.ls-theme .ls-longread__body .wp-block-gallery { margin: 1.5rem 0 0; }
.ls-theme .ls-longread__body .ls-gallery-virgen.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: calc(33.333% - .5rem); }
.ls-theme .ls-longread__body .ls-gallery-virgen.wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 3 / 4; object-fit: cover; height: 100%; box-shadow: 0 8px 22px rgba(36, 18, 58, .14); transition: transform .3s, filter .3s; }
.ls-theme .ls-longread__body .ls-gallery-virgen a:hover img { transform: scale(1.03); filter: brightness(1.05); }
.ls-theme .ls-prose .ls-gallery-note { font-size: .95rem; color: rgba(45, 41, 38, .6); margin: -.25rem 0 0; }
.ls-theme .ls-longread__body p > strong:first-child { color: var(--ls-morado); font-size: .82em; letter-spacing: .06em; }
.ls-theme .ls-longread__body h3 { font-family: var(--ls-font-display); font-size: 1.7rem; color: var(--ls-morado); margin: 2rem 0 .5rem; font-weight: 700; }
@media (max-width: 600px) {
	.ls-theme .ls-longread__body .ls-gallery-virgen.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: calc(50% - .375rem); }
}

/* Documentos propios (PDF) con peso y flecha de descarga */
.ls-docs a small { margin-left: auto; padding-left: 1rem; font-size: .78rem; font-weight: 600; color: rgba(45, 41, 38, .5); white-space: nowrap; }
.ls-docs a::after { content: ""; margin-left: .9rem; width: 18px; height: 18px; flex: none; background: var(--ls-morado); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 600px) { .ls-docs a { flex-wrap: wrap; } .ls-docs a small { padding-left: 0; } }

/* Visor: la foto se ajusta siempre a la pantalla */
.ls-lightbox { padding: 4.5rem 4.5rem 3rem; }
.ls-theme .ls-lightbox img { width: auto; height: auto; max-width: min(100%, 1400px); max-height: calc(100vh - 7.5rem); max-height: calc(100dvh - 7.5rem); object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
@media (max-width: 600px) { .ls-lightbox { padding: 4rem .75rem 3rem; } .ls-lightbox__prev, .ls-lightbox__next { top: auto; bottom: .6rem; translate: none; } }

/* Galerías de fotos en las páginas: miniaturas del mismo formato, 4 columnas en ordenador */
.ls-theme .ls-prose .wp-block-gallery.has-nested-images:not(.ls-covers):not(.ls-gallery-virgen) { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.ls-theme .ls-prose .wp-block-gallery.has-nested-images:not(.ls-covers):not(.ls-gallery-virgen) figure.wp-block-image:not(#individual-image) { width: auto; margin: 0; }
.ls-theme .ls-prose .wp-block-gallery.has-nested-images:not(.ls-covers):not(.ls-gallery-virgen) figure.wp-block-image img { aspect-ratio: 4 / 5; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; transition: transform .3s, filter .3s; }
.ls-theme .ls-prose .wp-block-gallery:not(.ls-covers) a:hover img { filter: brightness(1.06); }
@media (max-width: 920px) { .ls-theme .ls-prose .wp-block-gallery.has-nested-images:not(.ls-covers):not(.ls-gallery-virgen) { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .ls-theme .ls-prose .wp-block-gallery.has-nested-images:not(.ls-covers):not(.ls-gallery-virgen) { grid-template-columns: repeat(2, 1fr); gap: .5rem; } }
