@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Editorial palette states: light is paper and garnet, dark is their inversion. */
:root {
  --bg: #b2c7ab;
  --ink: #6a0c06;
  --line: rgba(106, 12, 6, .35);
  --paper: #b2c7ab;
  --quiet: #6a0c06;
  --contrast: #6a0c06;
  --on-contrast: #b2c7ab;
  font-family: 'Space Grotesk', Arial, Helvetica, sans-serif;
}
body.dark {
  --bg: #6a0c06;
  --ink: #b2c7ab;
  --line: rgba(178, 199, 171, .38);
  --paper: #6a0c06;
  --quiet: #b2c7ab;
  --contrast: #b2c7ab;
  --on-contrast: #6a0c06;
  color-scheme: dark;
}
html.dark {
  background: #6a0c06;
  color-scheme: dark;
  scrollbar-color: #b2c7ab #6a0c06;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', Arial, Helvetica, sans-serif;
  transition: background-color 240ms ease, color 240ms ease;
}
button, input { font-family: inherit; }
.home-body { grid-template-columns: 1.25fr .85fr; }

/* En la primera vista, las dos fotografías deben tener presencia suficiente
   para que la identidad de la cofradía cierre el encuadre inicial. */
.photo-grid .slideshow { height: clamp(400px, 36vw, 580px); }

/* Give the high-resolution crest enough scale and contrast to read as a mark. */
.crest-cell { overflow: hidden; padding: 12px; }
.crest-cell img {
  width: 100%;
  height: 220px;
  max-width: 220px;
  object-fit: contain;
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(14%) sepia(46%) saturate(2960%) hue-rotate(346deg) brightness(83%) contrast(113%);
}
.dark .crest-cell img { filter: none; }
.crest-photo { width: min(90%, 520px); max-height: 520px; }
@media (max-width: 700px) {
  .photo-grid .slideshow { height: 370px; }
  .crest-cell img { height: 150px; max-width: 160px; }
}
.site-frame,.topbar,#quick-nav,#directory,.identity-grid,.home-body,.section-title,.tiles,.titular-overview,.inner-heading,.inner-layout,.footer-top,.footer-word,.footer-bottom {
  transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease;
}
.dark .slide-controls { background: var(--ink); color: var(--bg); }
.dark .pending { background: var(--paper); }

/* A narrow moving edge keeps the previous state visible on the right. */
.theme-old {
  --bg: #b2c7ab;
  --ink: #6a0c06;
  --line: rgba(106, 12, 6, .35);
  --paper: #b2c7ab;
  --quiet: #6a0c06;
  --contrast: #6a0c06;
  --on-contrast: #b2c7ab;
  position: fixed;
  inset: 0;
  z-index: 1001;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
  animation: theme-old-reveal 720ms cubic-bezier(.77,0,.175,1) forwards;
}
.theme-old.dark {
  --bg: #6a0c06;
  --ink: #b2c7ab;
  --line: rgba(178,199,171,.38);
  --paper: #6a0c06;
  --quiet: #b2c7ab;
  --contrast: #b2c7ab;
  --on-contrast: #6a0c06;
}
.theme-old > .site-frame { max-width: 1800px; min-height: 100%; margin: 0 auto; }
.theme-old { color: var(--ink); }
.theme-old:not(.dark) .slide-controls { background: rgba(24,22,21,.9); color: #fff; }
.theme-old:not(.dark) .crest-cell img,
.theme-old:not(.dark) .crest-photo { filter: brightness(0) saturate(100%); }
.theme-wipe {
  --theme-band-size: 5cm;
  position: fixed;
  top: 0;
  bottom: 0;
  left: calc(var(--theme-band-size) * -1);
  width: var(--theme-band-size);
  z-index: 1002;
  pointer-events: none;
  background: var(--bg);
  box-shadow: 0 0 22px color-mix(in srgb, var(--ink) 22%, transparent);
  animation: theme-band 720ms cubic-bezier(.77,0,.175,1) forwards;
}
@keyframes theme-old-reveal { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes theme-band { from { left: calc(var(--theme-band-size) * -1); } to { left: calc(100% + var(--theme-band-size)); } }
@media (prefers-reduced-motion: reduce) {
  .theme-old,.theme-wipe { animation: none; }
}
@media (max-width: 700px) {
  .theme-wipe { --theme-band-size: 3cm; }
}




/* Contacto: dos bloques claros para la casa de hermandad y las redes. */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:0; margin:-40px -32px; }
.contact-card { min-height:360px; padding:42px 36px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); display:flex; flex-direction:column; justify-content:flex-start; }
.contact-card:last-child { border-right:0; }
.contact-kicker { margin:0 0 28px; font:10px 'Courier New',monospace; letter-spacing:.12em; text-transform:uppercase; }
.contact-card h2 { font-size:clamp(30px,4vw,58px); max-width:10ch; margin:0 0 48px; }
.contact-card address { font-style:normal; font-size:clamp(20px,2vw,30px); line-height:1.2; letter-spacing:-.035em; }
.contact-note { color:var(--quiet); font-size:13px; max-width:34ch; margin-top:auto; margin-bottom:0; }
.contact-email { display:inline-block; width:max-content; max-width:100%; margin-top:24px; color:var(--ink); font-size:14px; text-decoration:none; border-bottom:1px solid currentColor; overflow-wrap:anywhere; }\n.contact-email:hover { opacity:.68; }
.contact-social h2 { max-width:12ch; }
.social-list { margin-top:auto; }
.social-link { display:grid; grid-template-columns:28px 1fr auto; align-items:center; gap:16px; padding:17px 0; border-top:1px solid var(--line); text-decoration:none; font-size:18px; }
.social-link svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.social-link:hover { color:var(--ink); opacity:.68; }
.social-arrow { font-size:20px; transition:transform 180ms var(--ease); }
.social-link:hover .social-arrow { transform:translate(3px,-3px); }
.inner-layout:has(.contact-grid) { display:block; }
.inner-layout:has(.contact-grid) .inner-content { border-right:0; }
.inner-layout:has(.contact-grid) .related { display:none; }
@media (max-width:700px) {
  .contact-grid { grid-template-columns:1fr; margin:-30px -22px; }
  .contact-card { min-height:300px; padding:30px 22px; border-right:0; }
  .contact-card h2 { margin-bottom:34px; }
  .contact-card:last-child { border-top:1px solid var(--line); }
}


/* Historia de la sede: lectura editorial con índice navegable e imágenes intercaladas. */
.history-layout { display:grid; grid-template-columns:minmax(180px, .7fr) minmax(0, 2fr); gap:clamp(28px,5vw,84px); margin:-40px -32px; padding:42px 32px 70px; }
.history-index { position:sticky; top:24px; align-self:start; display:flex; flex-direction:column; gap:0; z-index:2; background:var(--bg); padding-bottom:12px; }
.history-index p { margin:0 0 18px; font:10px 'Courier New',monospace; letter-spacing:.12em; text-transform:uppercase; }
.history-index a { padding:13px 0; border-top:1px solid var(--line); font-size:13px; text-decoration:none; transition:padding 180ms var(--ease), color 180ms ease; }
.history-index a:last-child { border-bottom:0; padding-bottom:4px; }
.history-index a:hover { padding-left:8px; color:var(--ink); }
.history-article { min-width:0; }
.history-lead { max-width:750px; padding-bottom:70px; }
.history-kicker { margin:0 0 20px; font:10px 'Courier New',monospace; letter-spacing:.12em; text-transform:uppercase; }
.history-lead h2 { font-size:clamp(42px,6vw,88px); max-width:10ch; margin:0 0 28px; }
.history-lead>p:last-child { max-width:56ch; font-size:clamp(18px,2vw,26px); line-height:1.3; letter-spacing:-.025em; margin:0; }
.group-young-page .history-lead { max-width:820px; }
.group-young-page .history-lead h2 { max-width:12ch; }
.inner-layout:has(.group-young-page) { grid-template-columns:minmax(0,2.35fr) minmax(260px,.85fr); }
.inner-layout:has(.group-young-page) > .related { align-self:start; }
.group-young-visual { float:right; width:min(42%,360px); margin:0 0 30px 42px; }
.group-young-visual img { display:block; width:100%; aspect-ratio:3 / 4; object-fit:contain; object-position:center; background:#221f1d; }
.group-young-visual figcaption { margin-top:9px; color:var(--quiet); font-size:11px; line-height:1.4; }
.group-young-copy { max-width:780px; border-top:1px solid var(--line); }
.group-young-copy p { max-width:65ch; margin:0; padding:24px 0; border-bottom:1px solid var(--line); font-size:16px; line-height:1.55; }
.government-tiles { grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; }
.government-tiles .tile { position:relative; isolation:isolate; min-height:250px; padding:34px 30px; overflow:hidden; }
.government-tiles .tile::before { content:""; position:absolute; z-index:0; inset:7% 9%; background:url("assets/escudo-blanco.png") center / contain no-repeat; opacity:.2; filter:brightness(0) saturate(100%); pointer-events:none; }
.dark .government-tiles .tile::before { filter:none; opacity:.22; }
.government-tiles .tile > * { position:relative; z-index:1; }
.government-tiles .tile h3 { font-size:clamp(26px,2.7vw,42px); line-height:1.02; }
.government-tiles .tile p { max-width:26ch; }
@media (hover:hover) and (pointer:fine) {
  .government-tiles .tile:hover { background:var(--bg); color:var(--ink); }
}
.related-visual { margin:0 0 32px; }
.related-visual img { display:block; width:100%; height:320px; object-fit:contain; object-position:center; background:#221f1d; }
.related-visual figcaption { margin-top:9px; color:var(--quiet); font-size:11px; line-height:1.4; }
.article-signature { display:flex; flex-direction:column; gap:4px; margin-top:38px; padding-top:18px; border-top:1px solid var(--line); font-size:13px; }
.article-signature strong { font-size:16px; font-weight:500; }
.article-signature span { color:var(--quiet); font:10px 'Courier New',monospace; letter-spacing:.1em; text-transform:uppercase; }
@media (max-width:700px) {
  .government-tiles { grid-template-columns:1fr 1fr; }
  .group-young-visual { float:none; width:min(100%,360px); margin:0 0 30px; }
}
.history-section { display:grid; grid-template-columns:44px minmax(0,1fr); gap:20px; padding:58px 0; border-top:1px solid var(--line); scroll-margin-top:28px; }
.history-number { margin:3px 0 0; font:11px 'Courier New',monospace; }
.history-section h3 { font-size:clamp(30px,3.2vw,52px); line-height:1; letter-spacing:-.055em; font-weight:500; margin:0 0 24px; }
.history-section p:not(.history-number):not(.history-source) { max-width:66ch; font-size:16px; line-height:1.6; margin:0 0 17px; }
.history-section p:last-child { margin-bottom:0; }
.history-media { margin:0; }
.history-media img { display:block; width:100%; height:100%; object-fit:contain; object-position:center; background:var(--paper); filter:saturate(.82); }
.history-media figcaption { margin-top:9px; color:var(--quiet); font-size:11px; }
.history-media-wide { height:clamp(240px,35vw,490px); margin:0 0 15px; }
.history-media-wide img { object-position:center; }
.history-media-pair { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:4px 0 10px; }
.history-media-pair .history-media { height:clamp(190px,22vw,320px); }
.history-media-pair .history-media:first-child img { object-position:center; }
.history-media-pair .history-media:last-child img { object-position:center; }
.history-media-inset { width:82%; height:clamp(220px,28vw,380px); margin:5px auto 18px; }
.history-media-inset img { object-position:center; }
.history-source { color:var(--quiet); font-size:12px!important; }
@media (max-width:700px) {
  .history-layout { display:block; margin:-30px -22px; padding:25px 22px 45px; }
  .history-index { position:relative; top:auto; margin-bottom:38px; }
  .history-index a { font-size:12px; }
  .history-lead { padding-bottom:42px; }
  .history-lead h2 { font-size:46px; }
  .history-section { grid-template-columns:30px 1fr; gap:12px; padding:42px 0; }
  .history-section h3 { font-size:34px; }
  .history-section p:not(.history-number):not(.history-source) { font-size:15px; }
  .history-media-wide { height:280px; }
  .history-media-pair { gap:10px; }
  .history-media-pair .history-media { height:190px; }
  .history-media-inset { width:100%; height:240px; }
}

.history-shell .related { display:none!important; }
.history-shell .inner-content { border-right:0; }


.history-external { display:inline-flex; align-items:center; gap:18px; margin-top:28px; padding:12px 0; border-bottom:1px solid currentColor; color:var(--ink); font-size:13px; text-decoration:none; }
.history-external span { transition:transform 180ms var(--ease); }
.history-external:hover span { transform:translate(3px,-3px); }




.slide video { display:block; width:100%; height:100%; object-fit:cover; object-position:center; background:#221f1d; }
.slide .slide-video-poster { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; transform:none; z-index:1; pointer-events:none; opacity:1; transition:opacity 180ms ease; }
.slide .slide-video-poster.is-ready { opacity:0; }
.slide-controls { z-index:2; }
.slide img { transform:scale(var(--slide-zoom,1)); transform-origin:var(--slide-origin,50% 50%); }


/* Escudo: relato histórico con lectura larga y jerarquía editorial. */
.crest-history { margin:-40px -32px; padding:42px 32px 72px; }
.crest-history .crest-photo { width:min(340px,70%); max-height:330px; margin:0 auto 46px; }
.crest-history-copy { max-width:820px; margin:0 auto; }
.crest-history-copy h2 { font-size:clamp(42px,6vw,86px); max-width:12ch; margin:0 0 28px; }
.crest-history-copy>p:not(.history-kicker) { max-width:66ch; font-size:clamp(18px,2vw,25px); line-height:1.4; letter-spacing:-.02em; margin:0 0 58px; }
.crest-history-copy section { padding:38px 0; border-top:1px solid var(--line); }
.crest-history-copy section h3 { font-size:clamp(28px,3vw,48px); letter-spacing:-.05em; line-height:1; font-weight:500; margin:0 0 20px; }
.crest-history-copy section p { max-width:68ch; font-size:16px; line-height:1.65; margin:0 0 16px; }
.crest-history-copy section p:last-child { margin-bottom:0; }
@media (max-width:700px) {
  .crest-history { margin:-30px -22px; padding:30px 22px 48px; }
  .crest-history .crest-photo { width:85%; max-height:270px; margin-bottom:34px; }
  .crest-history-copy h2 { font-size:46px; }
  .crest-history-copy>p:not(.history-kicker) { font-size:18px; margin-bottom:38px; }
  .crest-history-copy section { padding:30px 0; }
  .crest-history-copy section h3 { font-size:34px; }
  .crest-history-copy section p { font-size:15px; }
}

/* Historia de la cofradía: cronología editorial */
.cofradia-history { margin:-40px -32px; padding:42px 32px 80px; }
.cofradia-history .history-lead { max-width:820px; padding-bottom:64px; }
.cofradia-history .history-lead h2 { max-width:12ch; }
.cofradia-history .history-lead>p:last-child { max-width:58ch; }
.timeline { max-width:920px; }
.timeline-item { display:grid; grid-template-columns:44px minmax(0,1fr); gap:22px; padding:56px 0; border-top:1px solid var(--line); scroll-margin-top:28px; }
.timeline-item .history-number { margin:4px 0 0; }
.timeline-item h3 { font-size:clamp(30px,3.4vw,54px); line-height:1; letter-spacing:-.055em; font-weight:500; margin:8px 0 22px; }
.timeline-date { display:block; color:var(--quiet); font:11px 'Courier New',monospace; letter-spacing:.12em; text-transform:uppercase; }
.timeline-item p:not(.history-number) { max-width:68ch; font-size:16px; line-height:1.65; margin:0 0 16px; }
.timeline-item p:last-child { margin-bottom:0; }
.history-placeholder { min-height:clamp(210px,26vw,340px); margin:4px 0 18px; border:1px dashed color-mix(in srgb,var(--ink) 45%,transparent); display:grid; place-items:center; background:color-mix(in srgb,var(--paper) 60%,transparent); }
.history-placeholder div { width:min(320px,78%); padding:30px 20px; text-align:center; border:1px solid var(--line); }
.history-placeholder span { display:block; font-size:clamp(28px,4vw,48px); letter-spacing:-.05em; }
.history-placeholder small { display:block; margin-top:10px; color:var(--quiet); font-size:11px; line-height:1.4; }
@media (max-width:700px){
 .cofradia-history { margin:-30px -22px; padding:30px 22px 52px; }
 .cofradia-history .history-lead { padding-bottom:40px; }
 .cofradia-history .history-lead h2 { font-size:46px; }
 .timeline-item { grid-template-columns:30px 1fr; gap:12px; padding:42px 0; }
 .timeline-item h3 { font-size:34px; }
 .timeline-item p:not(.history-number) { font-size:15px; }
 .history-placeholder { min-height:220px; }
}

.history-placeholder img { display:block; width:100%; height:100%; object-fit:contain; object-position:center; }

/* Portal del Hermano: acceso externo claro y seguro. */
.portal-shell { margin:-40px -32px; padding:42px 32px 80px; display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.8fr); gap:0; }
.portal-hero { padding:18px clamp(0px,4vw,64px) 52px 0; border-right:1px solid var(--line); }
.portal-kicker { margin:0 0 18px; font:10px 'Courier New',monospace; letter-spacing:.12em; text-transform:uppercase; }
.portal-hero h2 { max-width:10ch; font-size:clamp(46px,7vw,96px); line-height:.94; letter-spacing:-.07em; font-weight:500; margin:0 0 30px; }
.portal-hero>p:not(.portal-kicker) { max-width:46ch; font-size:clamp(18px,2vw,25px); line-height:1.35; letter-spacing:-.025em; margin:0; }
.portal-cta { display:inline-flex; align-items:center; gap:18px; margin-top:42px; padding:16px 20px; background:var(--ink); color:var(--bg); text-decoration:none; font-size:14px; transition:transform 180ms var(--ease), opacity 180ms ease; }
.portal-cta span { font-size:18px; transition:transform 180ms var(--ease); }
.portal-cta:hover { transform:translateY(-3px); }
.portal-cta:hover span { transform:translate(3px,-3px); }
.portal-access { padding:18px 0 0 clamp(28px,4vw,64px); align-self:end; }
.portal-access h3 { max-width:18ch; font-size:clamp(28px,3.2vw,48px); line-height:1; letter-spacing:-.055em; font-weight:500; margin:0 0 22px; }
.portal-access>p:not(.portal-kicker):not(.portal-note) { max-width:34ch; font-size:16px; line-height:1.55; margin:0; }
.portal-contact { display:flex; flex-direction:column; gap:10px; margin-top:28px; }
.portal-contact a { width:max-content; max-width:100%; color:var(--ink); font-size:14px; text-decoration:none; border-bottom:1px solid currentColor; overflow-wrap:anywhere; }
.portal-note { margin:30px 0 0; max-width:34ch; color:var(--quiet); font-size:12px; line-height:1.45; }
@media (max-width:700px) {
 .portal-shell { margin:-30px -22px; padding:30px 22px 52px; display:block; }
 .portal-hero { padding:0 0 42px; border-right:0; border-bottom:1px solid var(--line); }
 .portal-hero h2 { font-size:48px; }
 .portal-hero>p:not(.portal-kicker) { font-size:18px; }
 .portal-access { padding:38px 0 0; }
 .portal-access h3 { font-size:34px; }
}

.portal-purpose { padding:18px 0 0 clamp(28px,4vw,64px); align-self:end; }
.portal-purpose h3 { max-width:17ch; font-size:clamp(28px,3.2vw,48px); line-height:1; letter-spacing:-.055em; font-weight:500; margin:0 0 24px; }
.portal-purpose p:not(.portal-kicker) { max-width:42ch; font-size:16px; line-height:1.58; margin:0 0 17px; }
.related:has(.portal-kicker) h2 { font-size:clamp(28px,3.2vw,48px); line-height:1; letter-spacing:-.055em; margin:0 0 24px; }
.related:has(.portal-kicker) .portal-side-copy { max-width:28ch; font-size:15px; line-height:1.55; margin:0 0 16px; }
.related:has(.portal-kicker) .portal-contact { margin-top:26px; }
@media (max-width:700px) {
 .portal-purpose { padding:38px 0 0; }
 .portal-purpose h3 { font-size:34px; }
 .portal-purpose p:not(.portal-kicker) { font-size:15px; }
}

/* Portal refinado: jerarquía, pausas y una acción destacada. */
.portal-shell { display:block; }
.portal-hero { max-width:760px; padding:18px 0 62px; border-right:0; }
.portal-hero h2 { max-width:11ch; }
.portal-purpose { display:grid; grid-template-columns:minmax(190px,.62fr) minmax(0,1.38fr); gap:clamp(26px,5vw,84px); padding:54px 0 0; border-top:1px solid var(--line); }
.portal-purpose h3 { margin:0; }
.portal-purpose p:not(.portal-kicker) { max-width:58ch; margin:0 0 20px; }
.portal-model182 { grid-column:2; margin:18px 0 0; padding:24px 26px 26px; background:var(--ink); color:var(--bg); }
.portal-model182 span { display:block; margin-bottom:12px; font:11px 'Courier New',monospace; letter-spacing:.14em; text-transform:uppercase; }
.portal-model182 p { max-width:52ch!important; margin:0!important; color:var(--bg); }
.related:has(.portal-kicker) { align-self:start; }
.related:has(.portal-kicker) .portal-kicker { margin-bottom:18px; }
.related:has(.portal-kicker) h2 { margin-bottom:28px; }
@media (max-width:700px) {
 .portal-hero { padding-bottom:44px; }
 .portal-purpose { display:block; padding-top:38px; }
 .portal-purpose h3 { margin-bottom:26px; }
 .portal-model182 { margin-top:28px; padding:22px; }
}

/* Hazte hermano: formulario por bloques, legible y cómodo en móvil. */
.brother-page { margin:-40px -32px; padding:42px 32px 80px; }
.brother-intro { max-width:860px; padding-bottom:58px; }
.brother-intro h2 { max-width:9ch; font-size:clamp(48px,7vw,98px); line-height:.94; letter-spacing:-.07em; font-weight:500; margin:0 0 28px; }
.brother-intro>p:not(.history-kicker) { max-width:55ch; font-size:clamp(18px,2vw,25px); line-height:1.35; margin:0; }
.brother-fees { display:grid; grid-template-columns:auto 1fr 1fr; align-items:end; gap:18px 28px; max-width:760px; margin:34px 0 0; padding:20px 0 18px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.brother-fees > span { grid-column:1 / -1; font:10px 'Courier New',monospace; letter-spacing:.12em; text-transform:uppercase; color:var(--quiet); }
.brother-fees div { display:flex; flex-direction:column; gap:3px; }
.brother-fees strong { font-size:clamp(30px,3.5vw,48px); line-height:1; letter-spacing:-.06em; font-weight:500; }
.brother-fees small { font-size:12px; color:var(--quiet); }
.brother-downloads { display:flex; flex-wrap:wrap; gap:12px 24px; margin-top:30px; }
.brother-downloads a { color:var(--ink); font-size:13px; text-decoration:none; border-bottom:1px solid currentColor; }
.brother-downloads a span { display:inline-block; margin-left:6px; transition:transform 180ms var(--ease); }
.brother-downloads a:hover span { transform:translate(3px,-3px); }
.brother-form { max-width:940px; }
.brother-form fieldset { min-width:0; margin:0 0 28px; padding:32px 0 36px; border:0; border-top:1px solid var(--line); }
.brother-form legend { padding:0; color:var(--ink); font-size:clamp(23px,2.8vw,40px); letter-spacing:-.05em; font-weight:500; }
.form-help { margin:12px 0 28px; color:var(--quiet); font-size:13px; line-height:1.5; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 22px; }
.form-field { display:flex; flex-direction:column; gap:8px; min-width:0; color:var(--quiet); font:11px 'Courier New',monospace; letter-spacing:.06em; text-transform:uppercase; }
.form-field input { width:100%; box-sizing:border-box; padding:13px 14px; border:1px solid var(--line); border-radius:0; background:transparent; color:var(--ink); font:15px 'Space Grotesk',Arial,sans-serif; letter-spacing:0; text-transform:none; outline:none; transition:border-color 160ms ease, background-color 160ms ease; }
.form-field input:focus { border-color:var(--ink); background:color-mix(in srgb,var(--paper) 70%,transparent); }
.form-span-2 { grid-column:span 2; }
.nested-fieldset { display:flex; align-items:center; gap:22px; margin:30px 0 0!important; padding:20px 0 0!important; border-top:1px solid var(--line)!important; }
.nested-fieldset legend { margin-right:12px; font:11px 'Courier New',monospace; letter-spacing:.08em; text-transform:uppercase; }
.choice,.consent-check { display:flex; align-items:flex-start; gap:9px; color:var(--ink); font-size:14px; line-height:1.45; }
.choice input,.consent-check input { accent-color:var(--ink); margin-top:3px; }
.form-date-sign { display:grid; grid-template-columns:minmax(150px,.5fr) minmax(0,1fr); gap:18px 22px; margin-top:22px; }
.optional-label { color:var(--quiet); font:10px 'Courier New',monospace; letter-spacing:.08em; text-transform:uppercase; }
.privacy-box { padding-bottom:28px!important; }
.privacy-box p { max-width:76ch; margin:0 0 14px; color:var(--quiet); font-size:13px; line-height:1.55; }
.privacy-box a { color:var(--ink); }
.consent-check { max-width:760px; margin-top:24px; font-size:14px; }
.form-submit { display:flex; align-items:center; gap:22px; flex-wrap:wrap; padding-top:4px; }
.form-trap { position:absolute !important; left:-10000px !important; width:1px !important; height:1px !important; opacity:0 !important; pointer-events:none !important; }
.form-submit .portal-cta { border:0; cursor:pointer; }
.form-status { max-width:48ch; margin:0; color:var(--quiet); font-size:12px; line-height:1.45; }
@media (max-width:700px) {
 .brother-page { margin:-30px -22px; padding:30px 22px 52px; }
 .brother-intro { padding-bottom:42px; }
 .brother-intro h2 { font-size:50px; }
 .brother-intro>p:not(.history-kicker) { font-size:18px; }
 .brother-fees { grid-template-columns:1fr 1fr; gap:16px 22px; }
 .brother-fees > span { grid-column:1 / -1; }
 .brother-form fieldset { padding:28px 0 30px; }
 .form-grid { display:block; }
 .form-field { margin-bottom:16px; }
 .form-span-2 { grid-column:auto; }
 .nested-fieldset { flex-wrap:wrap; gap:14px 20px; }
 .nested-fieldset legend { width:100%; margin:0 0 2px; }
 .form-date-sign { display:block; }
 .form-date-sign .form-field { margin-bottom:16px; }
 .form-submit { display:block; }
 .form-status { margin-top:16px; }
}

.privacy-details { max-width:76ch; margin:20px 0 0; border-top:1px solid var(--line); }
.privacy-details summary { padding:13px 0; color:var(--ink); cursor:pointer; font-size:13px; }
.privacy-details p { margin:0 0 11px; }
.privacy-details p:last-child { padding-bottom:12px; }

.payment-choice { margin:22px 0 26px!important; padding:20px 0 0!important; }
.payment-choice .choice { padding:9px 13px; border:1px solid var(--line); transition:background-color 160ms ease, border-color 160ms ease; }
.payment-choice .choice:has(input:checked) { background:var(--ink); color:var(--bg); border-color:var(--ink); }
.bank-fields[hidden] { display:none; }
.bank-fields input:disabled { opacity:.45; cursor:not-allowed; }
.bank-fields { margin-top:26px; padding-top:26px; border-top:1px solid var(--line); }
.bank-form-heading { display:grid; grid-template-columns:minmax(160px,.38fr) minmax(0,1fr); gap:22px; margin-bottom:24px; }
.bank-form-heading>span { font:11px 'Courier New',monospace; letter-spacing:.12em; text-transform:uppercase; }
.bank-form-heading p { max-width:620px; margin:0; color:var(--quiet); font-size:14px; line-height:1.55; }
.form-field small { color:var(--quiet); font:11px/1.45 'Space Grotesk',Arial,sans-serif; letter-spacing:0; text-transform:none; }
.bank-consent { margin-top:22px; padding:18px 20px; border:1px solid var(--line); }
.form-field input:user-invalid { border-color:#a52d22; }
.form-status { min-height:1.4em; }
.form-error { display:block; margin-top:6px; color:#a52d22; font:12px/1.4 'Space Grotesk',Arial,sans-serif; letter-spacing:0; text-transform:none; }
.form-field input[aria-invalid="true"] { border-color:#a52d22; }
.consent-check .form-error,.nested-fieldset .form-error { flex-basis:100%; }
.media-error { min-height:180px; background:var(--paper); object-fit:contain!important; }

.bank-legal-note { margin-top:-18px; font-size:12px; font-style:italic; }

.bank-mail-note { max-width:620px; margin:4px 0 0; padding:24px 26px 26px; background:var(--ink); color:var(--bg); }
.bank-mail-note>span { display:block; margin-bottom:12px; font:11px 'Courier New',monospace; letter-spacing:.12em; text-transform:uppercase; }
.bank-mail-note p { margin:0 0 18px; color:var(--bg); font-size:14px; line-height:1.5; }
.bank-mail-note a { color:var(--bg); font-size:13px; text-decoration:none; border-bottom:1px solid currentColor; }
.bank-mail-note a span { display:inline-block; margin-left:7px; }

.membership-notice { margin:4px 0 28px; padding:18px 20px; border-left:3px solid var(--ink); background:var(--paper); color:var(--ink); font-size:13px; line-height:1.55; }
.membership-notice strong { font-weight:600; }
.submission-dialog { width:min(520px,calc(100vw - 40px)); padding:0; border:1px solid var(--line); background:var(--bg); color:var(--ink); }
.submission-dialog::backdrop { background:rgb(0 0 0 / .48); backdrop-filter:blur(3px); }
.submission-dialog-inner { padding:34px; }
.submission-dialog-mark { display:grid; place-items:center; width:42px; height:42px; margin-bottom:22px; border-radius:50%; background:var(--ink); color:var(--bg); font-size:22px; }
.submission-dialog h2 { font-size:clamp(28px,4vw,46px); margin:0 0 16px; }
.submission-dialog p { max-width:44ch; margin:0 0 26px; font-size:15px; line-height:1.55; color:var(--quiet); }
.submission-dialog .portal-cta { border:0; cursor:pointer; margin-top:0; }


/* Una sola cuadrícula: índice lateral y contenido de lectura amplio. */
.inner-layout:has(.brother-page) { display:block; }
.inner-layout:has(.brother-page) > .related { display:none; }
.inner-content:has(.brother-page) { padding:0; border:0; }
.inner-content:has(.brother-page) > .lead { display:none; }
.brother-page {
  margin:0 auto; max-width:1480px; padding:48px 32px 80px;
  display:grid; grid-template-columns:240px minmax(0,1fr);
  gap:0 clamp(40px,5vw,80px); align-items:start;
}
.brother-index { grid-column:1; grid-row:1 / span 2; top:96px; }
.brother-intro { grid-column:2; min-width:0; max-width:none; padding:0 0 44px; }
.brother-intro h2 { font-size:clamp(32px,3.4vw,50px); max-width:none; line-height:1.08; margin-bottom:20px; }
.brother-intro > p:not(.history-kicker) { max-width:58ch; font-size:20px; line-height:1.5; }
.brother-downloads { gap:16px 26px; }
.brother-downloads a { padding:8px 0; }
.brother-form { grid-column:2; width:100%; min-width:0; max-width:none; }
.brother-form > fieldset { scroll-margin-top:100px; padding:24px 0 36px; margin-bottom:24px; }
.brother-form > fieldset > legend { font-size:clamp(24px,2.4vw,34px); line-height:1.2; }
.form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 24px; }
.form-date-sign { grid-template-columns:minmax(0,1fr) minmax(0,2fr); }
.form-date-sign .form-span-2 { grid-column:auto; }
.form-help { font-size:15px; }
.brother-form .privacy-box p { font-size:14px; line-height:1.65; }
@media (max-width:1000px) {
  .brother-page { grid-template-columns:190px minmax(0,1fr); gap:0 32px; padding:36px 24px 64px; }
  .payment-choice { flex-wrap:wrap; }
}
@media (max-width:700px) {
  .bank-form-heading { display:block; }
  .bank-form-heading>span { display:block; margin-bottom:10px; }
  .brother-page { display:block; padding:28px 22px 52px; }
  .brother-index { position:static; margin-bottom:36px; }
  .brother-intro { padding-bottom:36px; }
  .brother-intro > p:not(.history-kicker) { font-size:18px; }
  .form-grid, .form-date-sign { display:block; }
}

/* Viernes Santo: itinerario interactivo con lectura editorial y recorrido por tramos. */
.inner-layout:has(.route-page) { display:block; }
.inner-layout:has(.route-page) > .related { display:none; }

.titular-image-yacente img { object-position:50% 47%; }

.slide.is-altar-cultos img { object-fit:cover; object-position:50% 50%; }
.slide.is-roomy-soledad::before { content:''; position:absolute; z-index:0; inset:-24px; background:var(--slide-backdrop) center / cover no-repeat; filter:blur(19px) saturate(.88) brightness(.8); transform:scale(1.08); }
.slide.is-roomy-soledad img { position:relative; z-index:1; object-fit:contain; object-position:center; }

.inner-layout:has(.government-page) { display:block; }
.inner-layout:has(.government-page) > .inner-content { border-right:0; padding:0; }
.inner-layout:has(.government-page) > .related { display:none; }
.government-page { padding:clamp(34px,5vw,76px); }
.government-intro { max-width:44ch; margin:0 0 clamp(36px,5vw,68px); font-size:clamp(19px,2vw,29px); line-height:1.24; letter-spacing:-.03em; }
.government-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; padding:0; list-style:none; border-top:1px solid var(--line); border-left:1px solid var(--line); }
.government-list li { position:relative; isolation:isolate; min-height:clamp(170px,18vw,250px); overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end; gap:20px; padding:clamp(22px,2.6vw,38px); border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.government-list li::before { content:''; position:absolute; z-index:-1; inset:12% 10% 9%; background:url('assets/escudo-blanco.webp') center / contain no-repeat; opacity:.08; filter:brightness(0) saturate(100%); }
.dark .government-list li::before { filter:none; opacity:.12; }
.government-list span { max-width:23ch; font-size:12px; line-height:1.25; }
.government-list strong { max-width:18ch; font-size:clamp(21px,2.35vw,36px); font-weight:550; letter-spacing:-.045em; line-height:1.02; }
@media (max-width:900px) { .government-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .government-page { padding:30px 22px; } .government-list { grid-template-columns:1fr; } .government-list li { min-height:155px; } }

.inner-layout:has(.secretary-page) { display:block; }
.inner-layout:has(.secretary-page) > .inner-content { border-right:0; padding:0; }
.inner-layout:has(.secretary-page) > .related { display:none; }
.secretary-page { display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid var(--line); }
.secretary-card { min-height:clamp(360px,43vw,580px); display:flex; flex-direction:column; align-items:flex-start; padding:clamp(28px,4vw,62px); }
.secretary-card + .secretary-card { border-left:1px solid var(--line); }
.secretary-card > p { margin:0 0 clamp(30px,5vw,80px); font-size:11px; letter-spacing:.06em; text-transform:uppercase; }
.secretary-card h2 { font-size:clamp(34px,4.2vw,65px); max-width:10ch; }
.secretary-card address { margin:clamp(28px,4vw,52px) 0 0; font-style:normal; font-size:clamp(18px,2vw,28px); line-height:1.25; letter-spacing:-.03em; }
.secretary-details { display:grid; gap:10px; margin-top:auto; padding-top:36px; }
.secretary-details a { font-size:15px; text-underline-offset:5px; overflow-wrap:anywhere; }
.secretary-contact small { margin-top:23px; color:var(--quiet); max-width:31ch; font-size:12px; }
.secretary-announcements { background:var(--paper); }
.secretary-empty { display:grid; gap:13px; margin:auto 0; max-width:32ch; }
.secretary-empty strong { font-size:clamp(19px,2vw,29px); line-height:1.08; letter-spacing:-.035em; }
.secretary-empty span { font-size:15px; line-height:1.45; }
.secretary-announcements > a { display:inline-flex; gap:20px; align-items:center; padding:12px 0; border-bottom:1px solid currentColor; text-decoration:none; font-size:14px; }
@media (max-width:700px) { .secretary-page { grid-template-columns:1fr; } .secretary-card { min-height:370px; padding:32px 22px; } .secretary-card + .secretary-card { border-left:0; border-top:1px solid var(--line); } }

.inner-layout:has(.spiritual-director-page) { display:block; }
.inner-layout:has(.spiritual-director-page) > .inner-content { border-right:0; padding:0; }
.inner-layout:has(.spiritual-director-page) > .related { display:none; }
.spiritual-director-page { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(280px,.9fr); gap:clamp(22px,2.75vw,44px); align-items:center; padding:clamp(34px,5vw,76px); }
.spiritual-director-page header { display:block; margin:0; }
.spiritual-director-page h2 { max-width:14ch; font-size:clamp(34px,4.5vw,72px); }
.spiritual-director-page header p { margin:0; max-width:25ch; font-size:clamp(17px,1.8vw,25px); line-height:1.3; letter-spacing:-.025em; }
.spiritual-director-image { margin:0; }
.spiritual-director-image img { display:block; width:100%; height:auto; max-height:520px; object-fit:contain; object-position:50% 50%; }
.spiritual-director-image figcaption { padding:11px 0 0; font-size:11px; color:var(--quiet); }
.spiritual-director-quotes { grid-column:1/-1; display:grid; grid-template-columns:1fr 1.35fr; gap:1px; margin-top:clamp(8px,2vw,24px); background:var(--line); border:1px solid var(--line); }
.spiritual-director-quotes blockquote { min-height:clamp(230px,25vw,370px); margin:0; display:flex; align-items:flex-end; padding:clamp(25px,3.5vw,54px); background:var(--bg); font-size:clamp(21px,2.25vw,34px); line-height:1.15; letter-spacing:-.035em; }
.spiritual-director-quotes blockquote:last-child { background:var(--paper); }
@media (max-width:700px) { .spiritual-director-page { grid-template-columns:1fr; padding:30px 22px; } .spiritual-director-image { width:min(100%,430px); } .spiritual-director-quotes { grid-column:auto; grid-template-columns:1fr; } .spiritual-director-quotes blockquote { min-height:0; } }


/* Cortejo: lectura espacial del orden procesional */
.inner-layout:has(.cortejo-page) { display:block; }
.inner-layout:has(.cortejo-page) > .inner-content { border-right:0; padding:0; }
.inner-layout:has(.cortejo-page) > .related { display:none; }
.cortejo-page { padding:clamp(34px,5vw,78px) clamp(20px,5vw,76px) clamp(48px,7vw,104px); }
.cortejo-intro { font-size:clamp(20px,2.1vw,30px); line-height:1.2; letter-spacing:-.03em; max-width:32ch; margin:0 0 clamp(42px,6vw,82px); }
.cortejo-opening { margin-bottom:clamp(42px,6vw,82px); }
.cortejo-opening .cortejo-intro { margin-bottom:clamp(28px,4vw,52px); }
.cortejo-notice { display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.2fr) auto; align-items:end; gap:clamp(24px,4vw,62px); padding:clamp(24px,3.6vw,48px) 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.cortejo-notice h2 { font-size:clamp(24px,3vw,46px); letter-spacing:-.055em; line-height:1; margin:0 0 16px; }
.cortejo-notice p { margin:0; max-width:28ch; font-size:15px; line-height:1.35; }
.cortejo-notice ol { margin:0; padding:0; list-style:none; counter-reset:cortejo-notice; display:grid; gap:13px; }
.cortejo-notice li { counter-increment:cortejo-notice; display:grid; grid-template-columns:26px minmax(0,1fr); gap:10px; font-size:14px; line-height:1.35; }
.cortejo-notice li::before { content:counter(cortejo-notice, decimal-leading-zero); font-size:10px; letter-spacing:.08em; padding-top:3px; }
.cortejo-cta { align-self:end; white-space:nowrap; display:inline-flex; align-items:center; gap:22px; padding:14px 0; border-bottom:1px solid currentColor; text-decoration:none; font-size:14px; }
.cortejo-track { list-style:none; margin:0; padding:0; border-top:1px solid var(--line); }
.cortejo-row { position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(180px,1.16fr) minmax(0,1fr); min-height:clamp(84px,9vw,128px); border-bottom:1px solid var(--line); }
.cortejo-sequence { position:absolute; left:0; top:14px; font-size:10px; font-variant-numeric:tabular-nums; letter-spacing:.09em; opacity:.72; }
.cortejo-position { min-width:0; display:flex; align-items:center; justify-content:center; padding:clamp(18px,2.5vw,32px); border-right:1px solid var(--line); text-align:center; }
.cortejo-position--0 { justify-content:flex-start; text-align:left; padding-left:clamp(34px,5vw,76px); }
.cortejo-position--2 { justify-content:flex-end; text-align:right; border-right:0; padding-right:clamp(34px,5vw,76px); }
.cortejo-position span { font-size:clamp(14px,1.5vw,20px); line-height:1.15; letter-spacing:-.025em; }
.cortejo-position--1 span { font-size:clamp(18px,2.25vw,34px); font-weight:550; letter-spacing:-.045em; }
.cortejo-row--single { min-height:72px; }
.cortejo-row--single .cortejo-position--1 span { font-size:clamp(14px,1.55vw,20px); font-weight:500; letter-spacing:-.02em; }
.cortejo-row--tramo, .cortejo-row--tramo-with-sides { min-height:clamp(118px,13vw,178px); }
.cortejo-row--tramo .cortejo-position--1, .cortejo-row--tramo-with-sides .cortejo-position--1 { background:var(--ink); color:var(--bg); }
.cortejo-row--tramo-with-sides .cortejo-position { background:var(--paper); }
.cortejo-row--tramo-with-sides .cortejo-position--1 { background:var(--ink); color:var(--bg); }
.cortejo-row--tramo .cortejo-position--1 span, .cortejo-row--tramo-with-sides .cortejo-position--1 span { font-size:clamp(22px,3vw,46px); }
.cortejo-row--presidencia { min-height:clamp(112px,12vw,168px); }
.cortejo-row--presidencia .cortejo-position--1 { background:var(--paper); }
.cortejo-row--presidencia .cortejo-position--1 span { font-size:clamp(25px,3.35vw,52px); }
.cortejo-row--liturgia { min-height:clamp(74px,8vw,108px); }
.cortejo-row--liturgia .cortejo-position span, .cortejo-row--librea .cortejo-position span { font-size:clamp(13px,1.35vw,18px); }
.cortejo-row--librea { min-height:clamp(88px,9vw,120px); }
.cortejo-row--paso { min-height:clamp(180px,20vw,280px); }
.cortejo-row--paso .cortejo-position--1 { background:var(--contrast); color:var(--on-contrast); }
.cortejo-row--paso .cortejo-position--1 span { font-size:clamp(29px,4.25vw,70px); max-width:12ch; }
.cortejo-row--musica { min-height:clamp(100px,11vw,148px); }
.cortejo-row--musica .cortejo-position--1 { background:var(--paper); }
.cortejo-row--musica .cortejo-position--1 span { font-size:clamp(17px,2vw,28px); max-width:20ch; }
@media (max-width:700px) {
  .cortejo-page { padding:30px 0 48px; }
  .cortejo-opening { margin-bottom:38px; }
  .cortejo-intro { padding:0 22px; margin-bottom:30px; }
  .cortejo-notice { grid-template-columns:1fr; gap:25px; padding:28px 22px; }
  .cortejo-notice p { max-width:36ch; }
  .cortejo-cta { justify-self:start; }
  .cortejo-row { grid-template-columns:1fr minmax(130px,1.18fr) 1fr; min-height:88px; }
  .cortejo-position { padding:16px 10px; }
  .cortejo-position--0 { padding-left:28px; }
  .cortejo-position--2 { padding-right:28px; }
  .cortejo-position span { font-size:13px; }
  .cortejo-position--1 span { font-size:20px; }
  .cortejo-row--tramo, .cortejo-row--tramo-with-sides { min-height:116px; }
  .cortejo-row--tramo .cortejo-position--1 span, .cortejo-row--tramo-with-sides .cortejo-position--1 span { font-size:24px; }
  .cortejo-row--paso { min-height:184px; }
}
.inner-content:has(.route-page) { padding:0; border:0; }
.inner-content:has(.route-page) > .lead { display:none; }
.route-page {
  margin:0 auto; max-width:1480px; padding:42px 32px 76px;
  display:grid; grid-template-columns:220px minmax(0,1fr);
  gap:0 clamp(38px,5vw,82px); align-items:start;
}
.route-index { grid-column:1; grid-row:1; top:110px; }
.route-article { min-width:0; grid-column:2; }
.route-lead { max-width:760px; padding-bottom:54px; }
.route-lead h2 { max-width:11ch; margin:0 0 22px; font-size:clamp(42px,5.7vw,84px); line-height:.98; letter-spacing:-.06em; font-weight:500; }
.route-lead > p:not(.history-kicker) { max-width:56ch; margin:0 0 24px; font-size:clamp(18px,2vw,25px); line-height:1.35; letter-spacing:-.025em; }
.route-map-link { display:inline-flex; align-items:center; gap:10px; padding:11px 0; color:var(--ink); border-bottom:1px solid currentColor; text-decoration:none; font-size:13px; }
.route-map-link span { font-size:18px; transition:transform 180ms var(--ease); }
.route-map-link:hover span { transform:translate(3px,-3px); }
.route-board { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(240px,.8fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); scroll-margin-top:28px; }
.route-map-panel { min-width:0; padding:28px 28px 34px 0; border-right:1px solid var(--line); }
.route-map-head { display:flex; justify-content:space-between; gap:20px; margin-bottom:26px; font:10px 'Courier New',monospace; letter-spacing:.12em; text-transform:uppercase; }
.route-map-head strong { font-weight:400; color:var(--quiet); }
.route-track { position:relative; list-style:none; margin:0; padding:0 0 0 2px; }
.route-track::before { content:""; position:absolute; left:18px; top:18px; bottom:18px; width:1px; background:var(--line); }
.route-node { position:relative; margin:0; padding:0; }
.route-node button { position:relative; z-index:1; display:grid; grid-template-columns:38px minmax(0,1fr); align-items:center; width:100%; padding:12px 14px 12px 0; border:0; background:transparent; color:var(--ink); text-align:left; cursor:pointer; font:inherit; transition:background-color 220ms ease, color 220ms ease, padding 220ms var(--ease); }
.route-node button span { display:grid; place-items:center; width:34px; height:34px; border:1px solid var(--line); border-radius:50%; background:var(--bg); font:10px 'Courier New',monospace; transition:background-color 220ms ease, color 220ms ease, border-color 220ms ease; }
.route-node button b { padding-left:12px; font-size:16px; line-height:1.2; font-weight:500; }
.route-node button em { grid-column:2; padding-left:12px; margin-top:4px; color:var(--quiet); font:9px 'Courier New',monospace; letter-spacing:.1em; text-transform:uppercase; font-style:normal; }
.route-node small { display:block; margin:-5px 0 10px 50px; color:var(--quiet); font-size:11px; }
.route-node button:hover { padding-left:8px; }
.route-node.is-active button { color:var(--bg); background:var(--ink); padding-left:8px; }
.route-node.is-active button span { background:var(--bg); color:var(--ink); border-color:var(--bg); }
.route-node.is-active button b { font-weight:600; }
.route-node.is-official button { border-left:3px solid var(--ink); padding-left:9px; background:color-mix(in srgb, var(--ink) 8%, transparent); }
.route-node.is-official button b { font-weight:700; }
.route-node.is-official button em { color:var(--ink); font-weight:600; }
.route-node.is-official.is-active button { border-left-color:var(--bg); background:var(--ink); }
.route-node.is-official.is-active button em { color:var(--bg); }
.route-detail-panel { display:flex; flex-direction:column; justify-content:flex-end; min-height:520px; padding:34px; background:var(--ink); color:var(--bg); }
.route-detail-kicker { margin:0 0 18px; color:var(--bg); font:10px 'Courier New',monospace; letter-spacing:.12em; text-transform:uppercase; opacity:.82; }
.route-detail-panel h3 { max-width:9ch; margin:0 0 14px; color:var(--bg); font-size:clamp(30px,3.3vw,52px); line-height:.98; letter-spacing:-.055em; font-weight:500; }
.route-detail-panel p:not(.route-detail-kicker):not(.route-detail-count) { max-width:30ch; margin:0; color:var(--bg); font-size:15px; line-height:1.45; opacity:.86; }
.route-detail-count { margin:32px 0 0; color:var(--bg); font:11px 'Courier New',monospace; letter-spacing:.12em; }
.route-notes { max-width:760px; padding-top:48px; scroll-margin-top:28px; }
.route-notes > p:last-child { max-width:62ch; margin:0; color:var(--quiet); font-size:14px; line-height:1.6; }
@media (max-width:900px) {
  .route-page { grid-template-columns:180px minmax(0,1fr); gap:0 30px; padding-left:24px; padding-right:24px; }
  .route-board { grid-template-columns:1fr; }
  .route-map-panel { padding-right:0; border-right:0; border-bottom:1px solid var(--line); }
  .route-detail-panel { min-height:300px; }
}
@media (max-width:700px) {
  .route-page { display:block; padding:28px 22px 52px; }
  .route-index { position:static; margin-bottom:38px; }
  .route-lead { padding-bottom:38px; }
  .route-lead h2 { font-size:clamp(42px,13vw,68px); }
  .route-map-panel { padding:24px 0 28px; }
  .route-node button b { font-size:15px; }
  .route-detail-panel { min-height:260px; padding:28px 24px; }
}

/* Noticias: tarjetas editoriales y lectura individual con archivos adjuntos. */
.news-shell { margin:0; }
.news-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.news-card { min-height:330px; padding:30px 32px 28px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); display:flex; flex-direction:column; }
.news-card:nth-child(2n) { border-right:0; }
.news-card-featured { grid-column:1 / -1; min-height:390px; background:var(--ink); color:var(--bg); border-right:0; }
.news-card-meta { display:flex; justify-content:space-between; gap:20px; color:var(--quiet); font:10px 'Courier New',monospace; letter-spacing:.1em; text-transform:uppercase; }
.news-card-featured .news-card-meta { color:var(--bg); opacity:.78; }
.news-card h2 { max-width:14ch; margin:52px 0 20px; font-size:clamp(30px,4.2vw,62px); line-height:.98; letter-spacing:-.06em; font-weight:500; }
.news-card p { max-width:54ch; margin:0; color:var(--quiet); font-size:16px; line-height:1.5; }
.news-card-featured p { color:var(--bg); opacity:.84; }
.news-card-footer { margin-top:auto; padding-top:36px; }
.news-card-footer a { display:inline-flex; align-items:center; gap:30px; padding:9px 0; border-bottom:1px solid currentColor; font-size:13px; text-decoration:none; }
.news-card-footer a span { font-size:18px; transition:transform 180ms var(--ease); }
.news-card-footer a:hover span { transform:translate(3px,-3px); }
.news-empty { margin:0; padding:70px 32px 100px; border-bottom:1px solid var(--line); }
.news-empty h2 { max-width:12ch; margin:0 0 20px; font-size:clamp(42px,6vw,84px); line-height:.98; }
.news-empty p:last-child { color:var(--quiet); font-size:18px; }
.news-article-shell { display:grid; grid-template-columns:220px minmax(0,1fr); gap:0 clamp(38px,5vw,82px); max-width:1480px; margin:0 auto; padding:48px 32px 84px; }
.news-article-aside { position:sticky; top:110px; align-self:start; display:flex; flex-direction:column; gap:24px; }
.news-article-aside time { color:var(--quiet); font:11px 'Courier New',monospace; letter-spacing:.08em; text-transform:uppercase; }
.news-back { width:max-content; padding-bottom:9px; border-bottom:1px solid currentColor; font-size:13px; text-decoration:none; }
.news-article { min-width:0; }
.news-article header { max-width:840px; padding-bottom:56px; border-bottom:1px solid var(--line); }
.news-article header h2 { max-width:12ch; margin:0 0 24px; font-size:clamp(44px,6.2vw,94px); line-height:.96; letter-spacing:-.065em; font-weight:500; }
.news-article header time { color:var(--quiet); font:11px 'Courier New',monospace; letter-spacing:.08em; text-transform:uppercase; }
.news-article-body { max-width:760px; padding-top:42px; }
.news-article-body > p { max-width:62ch; margin:0 0 24px; font-size:18px; line-height:1.65; }
.news-figure { margin:42px 0; }
.news-figure img { display:block; width:100%; max-height:600px; object-fit:contain; object-position:center; background:var(--paper); }
.news-figure figcaption { margin-top:10px; color:var(--quiet); font-size:11px; }
.news-documents { margin-top:48px; border-top:1px solid var(--line); }
.news-document { display:flex; justify-content:space-between; gap:20px; padding:16px 0; border-bottom:1px solid var(--line); text-decoration:none; font-size:14px; }
.news-document:hover { color:var(--ink); background:var(--paper); padding-left:8px; padding-right:8px; }
@media (max-width:700px) {
  .news-shell { margin:0; }
  .news-list { display:block; }
  .news-card,.news-card-featured { min-height:300px; padding:26px 22px; border-right:0; }
  .news-card h2 { margin-top:42px; font-size:42px; }
  .news-card p { font-size:15px; }
  .news-empty { margin:0; padding:54px 22px 70px; }
  .news-article-shell { display:block; padding:28px 22px 56px; }
  .news-article-aside { position:static; margin-bottom:44px; gap:18px; }
  .news-article header { padding-bottom:38px; }
  .news-article header h2 { font-size:clamp(44px,13vw,68px); }
  .news-article-body { padding-top:32px; }
  .news-article-body > p { font-size:17px; }
}
@media (max-width:850px) and (min-width:701px) {
  .news-list { grid-template-columns:1fr; }
  .news-card,.news-card-featured { grid-column:auto; border-right:0; }
}

/* El archivo se presenta como una cuadrícula de noticias, igual que un mural editorial. */
.news-list { grid-template-columns:repeat(3,minmax(0,1fr)); }
.news-card { min-height:360px; aspect-ratio:1 / 1; padding:28px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--bg); color:var(--ink); }
.news-card:nth-child(2n) { border-right:1px solid var(--line); }
.news-card:nth-child(3n) { border-right:0; }
.news-card h2 { max-width:13ch; margin:38px 0 16px; font-size:clamp(25px,2.8vw,43px); line-height:1; letter-spacing:-.055em; font-weight:500; }
.news-card p { max-width:36ch; margin:0; color:var(--quiet); font-size:14px; line-height:1.45; }
.news-card-footer { padding-top:24px; }
.news-card-featured { grid-column:auto; min-height:360px; background:var(--bg); color:var(--ink); border-right:1px solid var(--line); }
.news-card-featured .news-card-meta { color:var(--quiet); }
.news-card-featured p { color:var(--quiet); opacity:1; }
.news-pagination { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px 28px; border-bottom:1px solid var(--line); }
.news-pagination > a { padding:8px 0; border-bottom:1px solid currentColor; font-size:12px; text-decoration:none; }
.news-page-numbers { display:flex; align-items:center; gap:8px; }
.news-page-numbers a,.news-page-numbers span { display:grid; place-items:center; width:34px; height:34px; border:1px solid var(--line); font:10px 'Courier New',monospace; text-decoration:none; }
.news-page-numbers span { background:var(--ink); color:var(--bg); border-color:var(--ink); }
@media (max-width:1000px) and (min-width:701px) {
  .news-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .news-card:nth-child(3n) { border-right:1px solid var(--line); }
  .news-card:nth-child(2n) { border-right:0; }
}
@media (max-width:700px) {
  .news-list { display:grid; grid-template-columns:1fr; }
  .news-card,.news-card-featured { min-height:300px; aspect-ratio:auto; border-right:0; }
  .news-card:nth-child(2n),.news-card:nth-child(3n) { border-right:0; }
  .news-card h2 { font-size:42px; }
  .news-pagination { align-items:flex-start; flex-wrap:wrap; padding:18px 22px; }
  .news-page-numbers { order:3; width:100%; }
}

/* Marca de agua del escudo en cada tarjeta del mosaico de noticias. */
.news-card { position:relative; overflow:hidden; isolation:isolate; }
.news-card::before { content:""; position:absolute; z-index:0; inset:0; background:url('assets/escudo-blanco.png') center / 68% auto no-repeat; opacity:.10; filter:brightness(0) saturate(100%) invert(14%) sepia(46%) saturate(2960%) hue-rotate(346deg) brightness(83%) contrast(113%); pointer-events:none; }
.news-card > * { position:relative; z-index:1; }
.dark .news-card::before { opacity:.095; filter:none; }

/* Portada: el primer encuadre se mantiene completo en pantallas grandes, pequeñas y móviles. */
main:has(.photo-grid) .photo-grid { height:clamp(290px,calc(100vh - 370px),580px); }
main:has(.photo-grid) .photo-grid .slideshow,
main:has(.photo-grid) .photo-grid .photo-side { height:100%; }
main:has(.photo-grid) .identity-grid { min-height:clamp(190px,27vh,310px); }
main:has(.photo-grid) .wordmark h1 { font-size:clamp(70px,10vw,170px); }
@media (max-height:820px) and (min-width:701px) {
  main:has(.photo-grid) .photo-grid { height:clamp(350px,calc(100vh - 270px),520px); }
  main:has(.photo-grid) .identity-grid { min-height:220px; }
}
@media (max-width:700px) {
  main:has(.photo-grid) .photo-grid { height:clamp(280px,44vh,390px); }
  main:has(.photo-grid) .identity-grid { min-height:190px; }
  main:has(.photo-grid) .wordmark h1 { font-size:clamp(58px,19vw,100px); }
}
/* Encuadre inicial fijo: la línea bajo la identidad queda en el borde inferior de la ventana. */
.topbar { height:auto; min-height:72px; }
main:has(.photo-grid) .photo-grid { height:var(--home-photo-height,clamp(290px,42vh,520px)); min-height:0; }
main:has(.photo-grid) .identity-grid { height:var(--home-identity-height,clamp(190px,24vh,310px)); min-height:0; }

/* Cultos: calendario interactivo con una ficha editorial para cada fecha señalada. */
.cultos-shell { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr); min-height:570px; border-bottom:1px solid var(--line); }
.cultos-calendar-panel { padding:42px 42px 48px 32px; border-right:1px solid var(--line); }
.cultos-calendar-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:34px; }
.cultos-calendar-head strong { font-size:clamp(24px,3vw,42px); font-weight:500; letter-spacing:-.055em; text-transform:capitalize; }
.cultos-calendar-head button { width:42px; height:42px; border:1px solid var(--line); background:transparent; display:grid; place-items:center; font-size:18px; }
.cultos-weekdays,.cultos-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.cultos-weekdays { margin-bottom:8px; color:var(--quiet); font:10px 'Courier New',monospace; text-align:center; }
.cultos-grid { gap:8px; }
.cultos-day { min-height:54px; display:grid; place-items:center; border:1px solid transparent; color:var(--quiet); font-size:15px; }
.cultos-day.is-empty { visibility:hidden; }
.cultos-day.is-event { border-color:var(--ink); background:#fffdf8; color:#6a0c06; cursor:pointer; font-weight:600; transition:transform 180ms var(--ease), box-shadow 180ms ease; }
.cultos-day.is-event:hover { transform:translateY(-3px); box-shadow:0 8px 18px rgb(0 0 0 / .12); }
.cultos-day.is-selected { outline:2px solid var(--ink); outline-offset:3px; }
.cultos-legend { display:flex; align-items:center; gap:10px; margin:30px 0 0; color:var(--quiet); font-size:11px; }
.cultos-legend p { display:flex; align-items:center; gap:10px; margin:0; }
.cultos-legend span { width:12px; height:12px; display:inline-block; border:1px solid var(--ink); }
.cultos-legend .legend-culto { background:#fffdf8; }
.cultos-legend .legend-hoy { background:#d9b65d; }
.cultos-day.is-today { background:#d9b65d; color:#6a0c06; border-color:#6a0c06; font-weight:700; }
.cultos-day.is-event.is-today { background:#d9b65d; color:#6a0c06; }
.cultos-detail { display:flex; flex-direction:column; justify-content:flex-end; min-height:570px; padding:42px; background:var(--ink); color:var(--bg); }
.cultos-detail .history-kicker { color:var(--bg); opacity:.8; }
.cultos-detail h2 { max-width:11ch; margin:0 0 24px; color:var(--bg); font-size:clamp(34px,4.4vw,68px); line-height:.96; letter-spacing:-.06em; font-weight:500; }
.cultos-detail p:not(.history-kicker):not(.cultos-detail-summary):not(.cultos-place) { max-width:48ch; margin:0; color:var(--bg); opacity:.88; font-size:16px; line-height:1.6; }
.cultos-detail-summary { max-width:34ch; margin:0 0 18px; color:var(--bg); font-size:20px; line-height:1.3; letter-spacing:-.025em; }
.cultos-place { margin:32px 0 0; color:var(--bg); opacity:.75; font:10px 'Courier New',monospace; letter-spacing:.1em; text-transform:uppercase; }
.is-empty-detail h2 { max-width:9ch; }
.is-empty-detail > p:last-child { color:var(--bg); opacity:.82; font-size:15px; line-height:1.5; }
@media (max-width:800px) {
  .cultos-shell { display:block; }
  .cultos-calendar-panel { padding:30px 22px 34px; border-right:0; border-bottom:1px solid var(--line); }
  .cultos-detail { min-height:360px; padding:30px 22px 38px; }
  .cultos-day { min-height:46px; }
}

/* Ajustes de lectura y orientación para pantallas táctiles. */
@media (min-width:701px) and (max-width:1050px) {
  .topbar { grid-template-columns:1.35fr 1.65fr 1.2fr .8fr .8fr; }
  .topbar .local-time { display:flex; gap:10px; padding-inline:12px; font-size:10px; }
}
@media (max-width:700px) {
  .topbar { grid-template-columns:1.4fr 1.6fr .8fr .9fr; }
  .topbar .local-time {
    display:flex;
    grid-column:1 / -1;
    grid-row:2;
    justify-content:space-between;
    min-height:34px;
    padding:8px 12px;
    border-top:1px solid var(--line);
    border-right:0;
    font-size:9px;
    letter-spacing:.045em;
  }
}

/* El paso actual del formulario orienta sin interrumpir la lectura. */
.brother-form > fieldset { transition:background-color 180ms ease, box-shadow 180ms ease; }
.brother-form > fieldset.is-current { background:color-mix(in srgb,var(--paper) 58%,transparent); box-shadow:none; }
.brother-index a[aria-current="step"] { color:var(--ink); font-weight:700; }
@media (max-width:700px) {
  .brother-form > fieldset.is-current { margin-inline:-10px; padding-inline:10px; }
}

/* Interactive home panels inspired by the reference site's service grid. */
.home-panels {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  min-height:300px;
  border-bottom:1px solid var(--line);
  transition:grid-template-rows 520ms var(--ease);
}
.home-panel {
  position:relative;
  min-width:0;
  min-height:300px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:22px;
  padding:28px 32px 30px;
  color:var(--ink);
  text-decoration:none;
  border-right:1px solid var(--line);
  overflow:hidden;
  transition:background-color 360ms ease,color 360ms ease,padding 520ms var(--ease);
}
.home-panel:last-child { border-right:0; }
.home-panel-index { font:11px 'Courier New',monospace; letter-spacing:.08em; }
.home-panel-copy { margin-top:auto; }
.home-panel h3 { margin:0 0 14px; max-width:8ch; font-size:clamp(32px,4.2vw,68px); line-height:.92; letter-spacing:-.065em; font-weight:520; }
.home-panel p { max-width:22ch; margin:0; color:var(--quiet); font-size:13px; line-height:1.4; transition:color 360ms ease; }
@media (hover:hover) and (pointer:fine) {
}
@media (max-width:700px) {
  .home-panels { grid-template-columns:1fr; min-height:0; }
  .home-panel,.home-panel:last-child { min-height:190px; padding:24px 22px 26px; border-right:0; border-bottom:1px solid var(--line); }
  .home-panel:last-child { border-bottom:0; }
  .home-panel h3 { font-size:44px; }
}

/* The reference treatment stacks the service panels vertically. */
.home-panels {
  grid-template-columns:1fr;
  grid-template-rows:1fr 1fr 1fr;
  height:clamp(540px,65vh,760px);
  min-height:0;
  transition:grid-template-rows 760ms cubic-bezier(.22,1,.36,1);
  will-change:grid-template-rows;
}
.home-panel,.home-panel:last-child {
  min-height:0;
  border-right:0;
  border-bottom:1px solid var(--line);
}
.home-panel:last-child { border-bottom:0; }
@media (hover:hover) and (pointer:fine) {
  .home-panels:has(.home-panel:nth-child(1):hover),.home-panels:has(.home-panel:nth-child(1):focus-within) { grid-template-columns:1fr !important; grid-template-rows:1.7fr .65fr .65fr; }
  .home-panels:has(.home-panel:nth-child(2):hover),.home-panels:has(.home-panel:nth-child(2):focus-within) { grid-template-columns:1fr !important; grid-template-rows:.65fr 1.7fr .65fr; }
  .home-panels:has(.home-panel:nth-child(3):hover),.home-panels:has(.home-panel:nth-child(3):focus-within) { grid-template-columns:1fr !important; grid-template-rows:.65fr .65fr 1.7fr; }
}
@media (max-width:700px) {
  .home-panels { height:auto; grid-template-rows:none; }
  .home-panel,.home-panel:last-child { min-height:190px; }
}

/* Editorial spacing inside each vertical panel. */
@media (min-width:701px) {
  .home-panel {
    display:grid;
    grid-template-columns:minmax(42px,.12fr) minmax(0,1.6fr) minmax(150px,.65fr);
    align-items:center;
    gap:clamp(20px,3vw,56px);
    padding:34px clamp(34px,5vw,86px) 34px clamp(26px,8vw,135px);
  }
  .home-panel-index { align-self:start; }
  .home-panel-copy {
    grid-column:2/-1;
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(150px,.65fr);
    align-items:center;
    gap:clamp(20px,3vw,56px);
    margin:0;
  }
  .home-panel h3 { max-width:none; margin:0; }
  .home-panel p { max-width:24ch; margin:0; }
}
@media (max-width:700px) {
  .home-panel { display:flex; gap:22px; padding:24px 22px 26px; }
  .home-panel-copy { display:block; margin-top:auto; }
}

/* Panel imagery: each section carries its own visual, revealed as its row grows. */
@media (min-width:701px) {
  .home-panel {
    grid-template-columns:minmax(42px,.12fr) minmax(0,1.4fr) minmax(150px,.65fr) minmax(180px,.72fr);
  }
  .home-panel h3 { grid-column:2; align-self:center; }
  .home-panel p { grid-column:3; align-self:center; }
  .home-panel-media {
    grid-column:4;
    align-self:stretch;
    min-height:0;
    overflow:hidden;
    margin:-34px -5vw -34px 0;
    border-left:1px solid var(--line);
    background:var(--paper);
  }
  .home-panel-media img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; filter:saturate(.82); transition:transform 700ms var(--ease); }
  .home-panel:hover .home-panel-media img,.home-panel:focus-visible .home-panel-media img { transform:scale(1.045); }
}
@media (max-width:700px) {
  .home-panel {
    display:grid;
    grid-template-columns:36px minmax(0,1fr);
    grid-template-rows:auto auto auto;
    gap:16px;
    padding:24px 22px 26px;
  }
  .home-panel-index { grid-column:1; grid-row:1; }
  .home-panel h3 { grid-column:2; grid-row:1; align-self:center; }
  .home-panel p { grid-column:2; grid-row:2; }
  .home-panel-media { grid-column:1/-1; grid-row:3; height:150px; overflow:hidden; border-top:1px solid var(--line); }
  .home-panel-media img { display:block; width:100%; height:100%; object-fit:cover; }
}

/* Section label sits beside the expanded vertical grid, with generous air above it. */
.cofradia-panels-section {
  display:grid;
  grid-template-columns:minmax(250px,.55fr) minmax(0,1.45fr);
  border-bottom:1px solid var(--line);
}
.cofradia-panels-section .section-title-panels {
  min-height:clamp(540px,65vh,760px);
  padding:46px clamp(28px,4vw,70px) 58px clamp(28px,5vw,84px);
  border-bottom:0;
  border-right:1px solid var(--line);
  align-items:flex-start;
  justify-content:flex-end;
  text-align:left;
}
.cofradia-panels-section .section-title-panels h2 { max-width:8ch; }
.cofradia-panels-section .section-title-panels span { align-self:flex-start; }
.cofradia-panels-section .home-panels { border-bottom:0; }
@media (min-width:701px) and (max-width:1100px) {
  .cofradia-panels-section { grid-template-columns:minmax(280px,.6fr) minmax(0,1.4fr); }
  .home-panel {
    grid-template-columns:42px minmax(0,1fr);
    grid-template-rows:auto auto;
    padding:28px 34px 28px 40px;
  }
  .home-panel h3 { grid-column:2; grid-row:1; align-self:end; max-width:none; padding-right:36%; font-size:clamp(27px,3.8vw,42px); white-space:nowrap; }
  .home-panel p { grid-column:2; grid-row:2; align-self:start; max-width:58%; }
  .home-panel-media { position:absolute; top:0; right:0; bottom:0; width:35%; height:auto; margin:0; }
}
@media (min-width:1101px) {
  .home-panel h3 { white-space:nowrap; }
}
@media (min-width:701px) {
  .home-panel-title { display:block; transform:translateX(calc(-1 * clamp(14px,2vw,32px))); }
}
@media (max-width:700px) {
  .cofradia-panels-section { display:block; }
  .cofradia-panels-section .section-title-panels {
    min-height:180px;
    padding:52px 20px 44px;
    border-right:0;
    border-bottom:1px solid var(--line);
    align-items:center;
    justify-content:center;
    text-align:center;
  }
  .cofradia-panels-section .section-title-panels h2 { max-width:none; }
  .cofradia-panels-section .section-title-panels span { align-self:auto; }
  .cofradia-panels-section .home-panels { border-bottom:0; }
}

/* Full-height dividers keep title, description and image visually integrated. */
@media (min-width:1101px) {
  .home-panel h3,
  .home-panel p {
    align-self:stretch;
    display:flex;
    align-items:center;
    margin-top:-34px;
    margin-bottom:-34px;
    padding-top:34px;
    padding-bottom:34px;
    border-right:1px solid var(--line);
  }
  .home-panel h3 { padding-right:clamp(24px,2.8vw,52px); }
  .home-panel p { max-width:none; width:100%; padding-right:clamp(24px,2.8vw,52px); }
  .home-panel { column-gap:0; }
  .home-panel h3 { padding-left:clamp(22px,2.4vw,44px); }
  .home-panel p { padding-left:clamp(22px,2.4vw,44px); }
  .home-panel-media { margin:-34px calc(-1 * clamp(34px,5vw,86px)) -34px 0; width:auto; }
}

/* Reference-style header: the section name spans above the three service rows. */
.cofradia-panels-section {
  display:block;
  border-bottom:1px solid var(--line);
  position:relative;
}
.cofradia-panels-section::before {
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:1px;
  background:var(--line);
  pointer-events:none;
  z-index:4;
}
.cofradia-panels-section::before { left:clamp(30px,6vw,100px); }
.cofradia-panels-section .section-title-panels {
  position:relative;
  min-height:clamp(260px,34vh,390px);
  padding:clamp(54px,8vw,118px) clamp(28px,8vw,136px) clamp(42px,5vw,76px);
  border:0;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  text-align:left;
  gap:18px;
}
.cofradia-panels-section .section-title-panels::after {
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  right:clamp(30px,10vw,170px);
  width:1px;
  background:var(--line);
  pointer-events:none;
  z-index:1;
}
.cofradia-panels-section .section-title-panels h2 { max-width:none; font-size:clamp(56px,7vw,108px); }
.cofradia-panels-section .section-title-panels span { align-self:flex-start; font-size:12px; }
.cofradia-panels-section .home-panels { border-bottom:0; }
.cofradia-panels-section .section-title-panels { padding-bottom:clamp(20px,2.2vw,34px); }

/* Reference-style header for titulares, keeping the grid below unchanged. */
.section-title-titulares {
  position:relative;
  min-height:clamp(220px,30vh,340px);
  padding:clamp(52px,7vw,104px) clamp(28px,8vw,136px) clamp(24px,3vw,42px);
  align-items:flex-end;
  text-align:left;
  gap:24px;
}
.section-title-titulares::before,
.section-title-titulares::after {
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:1px;
  background:var(--line);
  pointer-events:none;
  z-index:1;
}
.section-title-titulares::before { left:clamp(30px,6vw,100px); }
.section-title-titulares::after { right:clamp(30px,10vw,170px); }
.section-title-titulares h2 {
  position:relative;
  z-index:2;
  max-width:none;
  font-size:clamp(50px,6.5vw,100px);
}
@media (max-width:700px) {
  .section-title-titulares {
    min-height:190px;
    padding:50px 22px 30px;
    align-items:flex-end;
    gap:14px;
  }
  .section-title-titulares::before,
  .section-title-titulares::after { display:none; }
  .section-title-titulares h2 { font-size:48px; }
}
@media (max-width:700px) {
  .cofradia-panels-section::before { display:none; }
  .cofradia-panels-section .section-title-panels::after { display:none; }
  .cofradia-panels-section .section-title-panels {
    min-height:220px;
    padding:54px 22px 44px;
    align-items:flex-start;
    justify-content:flex-end;
    text-align:left;
  }
  .cofradia-panels-section .section-title-panels h2 { font-size:52px; }
  .cofradia-panels-section .section-title-panels span { align-self:flex-start; }
}

.section-title-panels {
  min-height:220px;
  padding:68px 32px 58px;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:20px;
  text-align:center;
}
.section-title-panels h2 { max-width:none; }
.section-title-panels span { font-size:13px; color:var(--quiet); }
@media (max-width:700px) {
  .section-title-panels { min-height:180px; padding:52px 20px 44px; gap:16px; }
  .section-title-panels h2 { font-size:42px; }
}

/* Santísimo Cristo Yacente: relato continuo, imagen y oración final. */
.inner-layout:has(.yacente-story) { display:block; }
.inner-layout:has(.yacente-story) > .related,
.inner-content:has(.yacente-story) > .lead { display:none; }
.inner-content:has(.yacente-story) { border-right:0; }
.yacente-story { margin:-40px -32px; padding:52px 32px 72px; overflow:hidden; }
.yacente-lead { max-width:980px; margin:0 auto; }
.yacente-lead h2 {
  max-width:11ch;
  margin:0 0 30px;
  font-size:clamp(46px,7vw,96px);
  line-height:.93;
  letter-spacing:-.04em;
  text-wrap:balance;
}
.yacente-lead > p {
  max-width:67ch;
  margin:0 0 48px;
  font-size:clamp(19px,2vw,27px);
  line-height:1.42;
  letter-spacing:-.02em;
}
.yacente-facts {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin:0 0 64px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.yacente-facts div { padding:18px 18px 20px 0; }
.yacente-facts div + div { padding-left:18px; border-left:1px solid var(--line); }
.yacente-facts dt { margin:0 0 8px; font-size:11px; letter-spacing:.09em; text-transform:uppercase; }
.yacente-facts dd { margin:0; font-size:clamp(16px,1.6vw,22px); letter-spacing:-.025em; }
.yacente-figure { margin:0; }
.yacente-figure img { display:block; width:100%; object-fit:cover; filter:saturate(.84) contrast(1.03); }
.yacente-figure figcaption { max-width:75ch; margin-top:10px; color:var(--quiet); font-size:11px; line-height:1.45; }
.yacente-figure-wide { max-width:1180px; margin:0 auto 72px; }
.yacente-figure-wide img { aspect-ratio:3/2; object-position:center 44%; }
.yacente-copy { max-width:980px; margin:0 auto; }
.yacente-copy > p {
  max-width:70ch;
  margin:0 0 24px;
  font-size:17px;
  line-height:1.72;
}
.yacente-copy > p:nth-of-type(n+3) { margin-left:auto; }
.yacente-copy strong { font-weight:600; }
.yacente-figure-detail { width:min(62%,560px); margin:58px 0 62px auto; }
.yacente-figure-detail img { aspect-ratio:4/5; object-position:center 25%; }
.yacente-poem {
  width:min(980px,100%);
  margin:84px auto 0;
  padding:clamp(36px,6vw,74px);
  background:var(--contrast);
  color:var(--on-contrast);
}
.yacente-poem h3 { max-width:10ch; margin:0 0 42px; font-size:clamp(40px,6vw,78px); line-height:.95; letter-spacing:-.04em; font-weight:500; }
.yacente-poem blockquote { margin:0; }
.yacente-poem blockquote p { margin:0 0 7px; font-size:clamp(16px,2vw,23px); line-height:1.35; }
.yacente-poem blockquote strong { display:inline-block; width:1.25em; color:inherit; font-size:1.12em; font-weight:700; }
.yacente-poem cite { display:block; margin-top:34px; font-size:12px; line-height:1.5; font-style:normal; opacity:.82; }
.yacente-closing { max-width:26ch; margin:50px 0 0 auto; padding-top:24px; border-top:1px solid currentColor; font-size:clamp(19px,2.4vw,30px); line-height:1.25; letter-spacing:-.025em; }
.san-juan-story .yacente-closing { max-width:52ch; margin:50px 0 0; }
.yacente-source { max-width:980px; margin:16px auto 0; color:var(--quiet); font-size:11px; line-height:1.5; }
.soledad-story .yacente-lead h2 { max-width:12ch; }
.soledad-figure-wide img { object-position:center 34%; }
.soledad-continuity {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  max-width:840px;
  margin:62px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.soledad-continuity div { padding:26px 28px 30px 0; }
.soledad-continuity div + div { padding-left:28px; border-left:1px solid var(--line); }
.soledad-continuity span { display:block; margin-bottom:15px; font-size:clamp(34px,4vw,58px); line-height:1; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.soledad-continuity p { max-width:33ch; margin:0; font-size:14px; line-height:1.55; }
.soledad-figure-detail img { object-position:center 17%; }
.soledad-closing {
  width:min(980px,100%);
  margin:88px auto 0;
  padding:clamp(38px,6vw,74px);
  background:var(--contrast);
  color:var(--on-contrast);
}
.soledad-closing h3 { max-width:12ch; margin:0 0 44px; font-size:clamp(42px,6vw,80px); line-height:.94; letter-spacing:-.04em; font-weight:500; text-wrap:balance; }
.soledad-closing p { max-width:48ch; margin:0 0 0 auto; padding-top:24px; border-top:1px solid currentColor; font-size:clamp(18px,2.2vw,28px); line-height:1.35; letter-spacing:-.025em; }
@media (max-width:700px) {
  .yacente-story { margin:-30px -22px; padding:34px 22px 48px; }
  .yacente-lead h2 { margin-bottom:24px; font-size:48px; }
  .yacente-lead > p { margin-bottom:36px; font-size:18px; }
  .yacente-facts { grid-template-columns:1fr 1fr; margin-bottom:42px; }
  .yacente-facts div { padding:15px 12px 16px 0; }
  .yacente-facts div + div { padding-left:12px; }
  .yacente-facts div:nth-child(3) { padding-left:0; border-left:0; border-top:1px solid var(--line); }
  .yacente-facts div:nth-child(4) { border-top:1px solid var(--line); }
  .yacente-figure-wide { margin-bottom:46px; }
  .yacente-figure-wide img { aspect-ratio:4/3; }
  .yacente-copy > p { font-size:16px; line-height:1.68; }
  .yacente-figure-detail { width:88%; margin:42px 0 46px auto; }
  .yacente-poem { margin-top:58px; padding:34px 24px 38px; }
  .yacente-poem h3 { margin-bottom:30px; font-size:46px; }
  .yacente-poem blockquote p { font-size:15px; }
  .yacente-closing { margin-top:38px; font-size:20px; }
  .soledad-continuity { grid-template-columns:1fr; margin:44px 0; }
  .soledad-continuity div { padding:22px 0 24px; }
  .soledad-continuity div + div { padding-left:0; border-top:1px solid var(--line); border-left:0; }
  .soledad-closing { margin-top:60px; padding:36px 24px 40px; }
  .soledad-closing h3 { margin-bottom:32px; font-size:44px; }
  .soledad-closing p { font-size:19px; }
}


/* Vocalía de Caridad */
.charity-page .charity-quotes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:34px 0 42px; }
.charity-page .charity-quotes blockquote { margin:0; padding:26px 28px; border:1px solid var(--line); background:color-mix(in srgb,var(--bg) 86%,var(--ink) 14%); font-size:clamp(16px,1.35vw,21px); line-height:1.45; }
.charity-page .charity-quotes cite { display:block; margin-top:18px; color:var(--quiet); font:11px 'Courier New',monospace; letter-spacing:.12em; text-transform:uppercase; font-style:normal; }
.charity-page .charity-section { padding:28px 0; border-top:1px solid var(--line); }
.charity-page .charity-section h3 { margin:0 0 18px; }
.charity-page .charity-section ol { margin:0; padding-left:1.4em; display:grid; gap:8px; }
.charity-page .charity-bizum { display:flex; align-items:center; gap:24px; flex-wrap:wrap; margin-top:22px; }
.charity-page .charity-bizum span { color:var(--quiet); font:11px 'Courier New',monospace; letter-spacing:.1em; text-transform:uppercase; }
.charity-page .charity-bizum strong { display:inline-flex; align-items:center; min-height:48px; padding:0 22px; border:1px solid var(--line); font-size:clamp(24px,2.2vw,34px); letter-spacing:.12em; }
@media (max-width:700px) {
  .charity-page .charity-quotes { grid-template-columns:1fr; gap:12px; }
  .charity-page .charity-quotes blockquote { padding:20px; font-size:16px; }
  .charity-page .charity-bizum { gap:12px; }
}

/* Escudo en los encabezados de todas las páginas interiores. */
.inner-heading-content { display:flex; align-items:center; justify-content:space-between; gap:38px; }
.inner-heading-content h1 { flex:1; min-width:0; }
.inner-heading-crest { flex:0 0 auto; width:clamp(120px,13vw,220px); height:clamp(120px,13vw,220px); object-fit:contain; opacity:.92; filter:brightness(0) saturate(100%) invert(14%) sepia(46%) saturate(2960%) hue-rotate(346deg) brightness(83%) contrast(113%); }
.dark .inner-heading-crest { filter:none; }
@media (max-width:700px) {
  .inner-heading-content { align-items:flex-end; gap:16px; }
  .inner-heading-crest { width:92px; height:92px; }
}

/* El escudo acompaña al título sin ampliar la altura original del encabezado. */
.inner-heading-content { align-items:center; }
.inner-heading-crest { width:clamp(82px,9vw,140px); height:clamp(82px,9vw,140px); }
@media (max-width:700px) {
  .inner-heading-crest { width:68px; height:68px; }
}

/* Escudo de fondo en las cuatro casillas de Nuestros titulares. */
.titular-links a { position:relative; isolation:isolate; overflow:hidden; }
.titular-links a::before { content:""; position:absolute; z-index:-1; inset:3% 8%; background:url("assets/escudo-blanco.png") center / contain no-repeat; opacity:.18; filter:brightness(0) saturate(100%); pointer-events:none; }
.dark .titular-links a::before { filter:none; opacity:.2; }


/* El escudo se reserva para las tarjetas de la página Titulares, no para el inicio. */
.titular-links a::before { display:none; }
.titulares-tiles .tile { position:relative; isolation:isolate; overflow:hidden; }
.titulares-tiles .tile::before { content:""; position:absolute; z-index:0; inset:4% 8%; background:url("assets/escudo-blanco.png") center / contain no-repeat; opacity:.18; filter:brightness(0) saturate(100%); pointer-events:none; }
.dark .titulares-tiles .tile::before { filter:none; opacity:.2; }
.titulares-tiles .tile > * { position:relative; z-index:1; }

/* Escudo de fondo en las tarjetas de la sección Cofradía. */
.cofradia-tiles .tile { position:relative; isolation:isolate; overflow:hidden; }
.cofradia-tiles .tile::before { content:""; position:absolute; z-index:0; inset:4% 8%; background:url("assets/escudo-blanco.png") center / contain no-repeat; opacity:.18; filter:brightness(0) saturate(100%); pointer-events:none; }
.dark .cofradia-tiles .tile::before { filter:none; opacity:.2; }
.cofradia-tiles .tile > * { position:relative; z-index:1; }

/* Escudo de fondo en las tarjetas de Viernes Santo. */
.viernes-tiles .tile { position:relative; isolation:isolate; overflow:hidden; }
.viernes-tiles .tile::before { content:""; position:absolute; z-index:0; inset:4% 8%; background:url("assets/escudo-blanco.png") center / contain no-repeat; opacity:.18; filter:brightness(0) saturate(100%); pointer-events:none; }
.dark .viernes-tiles .tile::before { filter:none; opacity:.2; }
.viernes-tiles .tile > * { position:relative; z-index:1; }

/* Normas de salida: dos columnas editoriales y legibles. */
.protocol-page .history-lead { max-width:840px; }
.protocol-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; border-top:1px solid var(--line); }
.protocol-card { min-width:0; padding:30px 34px 34px; border-right:1px solid var(--line); }
.protocol-card:last-child { border-right:0; }
.protocol-number { margin:0 0 22px; color:var(--quiet); font:11px 'Courier New',monospace; letter-spacing:.12em; }
.protocol-card h3 { margin:0 0 28px; font-size:clamp(24px,2.4vw,38px); line-height:1.08; letter-spacing:-.04em; }
.protocol-card ol { margin:0; padding-left:1.55em; display:grid; gap:14px; }
.protocol-card li { padding-left:7px; font-size:15px; line-height:1.5; }
@media (max-width:700px) {
  .protocol-columns { grid-template-columns:1fr; }
  .protocol-card { padding:26px 0 30px; border-right:0; border-bottom:1px solid var(--line); }
  .protocol-card:last-child { border-bottom:0; }
  .protocol-card h3 { font-size:30px; }
}

/* Normas y protocolo ocupa toda la ventana, sin columna lateral relacionada. */
.inner-layout:has(.protocol-page) { display:block; }
.inner-layout:has(.protocol-page) .inner-content { border-right:0; }
.inner-layout:has(.protocol-page) .related { display:none; }

/* El Grupo Joven utiliza su propio escudo en la tarjeta de Junta de Gobierno. */
.government-tiles .tile-grupo-joven::before {
  background-image:url("assets/escudo-grupo-joven.png");
  background-position:center;
  background-size:contain;
  background-repeat:no-repeat;
}

/* Centrado óptico del escudo en la casilla de identidad del inicio. */
.identity-grid .crest-cell { display:grid; place-items:center; align-content:center; }
.identity-grid .crest-cell img { object-position:center; transform:translateY(-10px); }
@media (max-width:700px) {
  .identity-grid .crest-cell img { transform:translateY(-6px); }
}
.wordpress-section{max-width:76ch}.wordpress-section>*:first-child{margin-top:0}.wordpress-section img{display:block;max-width:100%;height:auto;margin:1.75rem 0}.wordpress-section h2,.wordpress-section h3{margin:1.5em 0 .6em}.wordpress-section h2{font-size:clamp(34px,5vw,66px)}.wordpress-section h3{font-size:clamp(24px,3vw,38px);letter-spacing:-.035em}.wordpress-section .wp-block-image figcaption{color:var(--quiet);font-size:12px}.cultos-detail-body p:first-child{margin-top:0}.cultos-detail-body p:last-child{margin-bottom:0}

/* Portada: acceso directo a Hazte hermano y últimas noticias. */
.identity-grid { grid-template-columns:minmax(0,6.4fr) minmax(260px,3fr) minmax(210px,2.6fr); }
.identity-grid .crest-cell { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:14px 20px 12px; text-decoration:none; }
.identity-grid .crest-cell img { width:min(100%,230px); height:min(72%,190px); max-width:230px; object-position:center; transform:none; transition:transform 260ms var(--ease),opacity 180ms ease; }
.identity-grid .crest-cell span { font-size:13px; line-height:1.1; font-weight:550; letter-spacing:-.02em; border-bottom:1px solid currentColor; padding-bottom:4px; }
.home-body { display:block; }
.home-body > .home-latest-news { padding:0; border:0; }
.home-latest-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:32px; padding:38px 32px 30px; border-bottom:1px solid var(--line); }
.home-latest-heading .history-kicker { margin:0 0 12px; }
.home-latest-heading h2 { margin:0; font-size:clamp(42px,5vw,72px); }
.home-latest-heading .text-link { margin-bottom:2px; }
.home-latest-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.home-latest-card { min-width:0; min-height:310px; padding:34px 32px 30px; display:flex; flex-direction:column; align-items:flex-start; border-right:1px solid var(--line); }
.home-latest-card:last-child { border-right:0; }
.home-latest-meta { width:100%; margin:0 0 38px; display:flex; justify-content:space-between; gap:20px; font:10px 'Courier New',monospace; letter-spacing:.08em; text-transform:uppercase; color:var(--quiet); }
.home-latest-card h3 { max-width:22ch; margin:0 0 18px; font-size:clamp(28px,3.2vw,50px); line-height:1.02; letter-spacing:-.055em; font-weight:550; }
.home-latest-card h3 a { text-decoration:none; }
.home-latest-summary { max-width:62ch; margin:0 0 30px; color:var(--quiet); font-size:14px; }
.home-latest-card .text-link { margin-top:auto; }
@media (hover:hover) and (pointer:fine) { .identity-grid .crest-cell:hover img { transform:scale(1.035); } .home-latest-card h3 a:hover { text-decoration:underline; } }

/* Portada móvil: el carrusel conserva sus dos filas sin invadir la identidad.
   Los tres accesos principales se mantienen completos, pero con un ritmo más compacto. */
@media (max-width:700px) {
  main:has(.photo-grid) .photo-grid { height:auto; min-height:0; grid-template-rows:minmax(250px,1fr) 112px; }
  main:has(.photo-grid) .photo-grid .slideshow,
  main:has(.photo-grid) .photo-grid .photo-side { height:auto; min-height:0; }
  main:has(.photo-grid) .identity-grid {
    height:auto;
    min-height:0;
    grid-template-columns:minmax(0,1fr) 108px;
    grid-template-rows:auto minmax(186px,auto);
  }
  main:has(.photo-grid) .identity-grid .wordmark { padding:16px 20px 18px; }
  main:has(.photo-grid) .identity-grid .identity-description { padding:20px 20px 22px; }
  main:has(.photo-grid) .identity-grid .crest-cell { padding:12px 8px 14px; }
  main:has(.photo-grid) .identity-grid .crest-cell img { width:min(100%,112px); height:124px; max-width:112px; }
  .home-panel,.home-panel:last-child { min-height:150px; gap:12px; padding:18px 20px 20px; }
  .home-panel-media { height:clamp(220px,70vw,310px); }
  .home-panel h3 { font-size:40px; }
}
@media (min-width:701px) and (max-width:900px) {
  main:has(.photo-grid) .identity-grid { height:auto; min-height:250px; grid-template-columns:minmax(0,1.6fr) minmax(190px,.95fr) 132px; }
  main:has(.photo-grid) .identity-grid .wordmark { padding:22px 26px; }
  main:has(.photo-grid) .identity-grid .identity-description { padding:20px 18px; }
  main:has(.photo-grid) .identity-grid .crest-cell { gap:8px; padding:14px 8px 12px; }
  main:has(.photo-grid) .identity-grid .crest-cell img { width:min(100%,112px); height:124px; max-width:112px; }
  main:has(.photo-grid) .identity-grid .crest-cell span { font-size:12px; text-align:center; }
}

/* La expansión es un gesto de ratón: en tableta y móvil los tres accesos son estables. */
@media (max-width:1100px) {
  .home-panels,
  .home-panels:has(.home-panel:nth-child(1):hover),
  .home-panels:has(.home-panel:nth-child(1):focus-within),
  .home-panels:has(.home-panel:nth-child(2):hover),
  .home-panels:has(.home-panel:nth-child(2):focus-within),
  .home-panels:has(.home-panel:nth-child(3):hover),
  .home-panels:has(.home-panel:nth-child(3):focus-within) {
    height:auto;
    grid-template-rows:none !important;
    transition:none;
    will-change:auto;
  }
}
@media (max-width:700px) { .identity-grid .crest-cell { gap:5px; padding:8px 6px 9px; } .identity-grid .crest-cell img { width:min(100%,135px); height:min(68%,105px); max-width:135px; } .identity-grid .crest-cell span { font-size:10px; } .home-latest-heading { padding:30px 22px 24px; gap:18px; align-items:center; } .home-latest-heading h2 { font-size:40px; } .home-latest-heading .text-link { font-size:11px; gap:12px; } .home-latest-grid { grid-template-columns:1fr; } .home-latest-card { min-height:280px; padding:28px 22px 26px; border-right:0; border-bottom:1px solid var(--line); } .home-latest-card:last-child { border-bottom:0; } .home-latest-meta { margin-bottom:28px; } .home-latest-card h3 { font-size:34px; } }

