/*
 * Estilos de cdebetelmadrid.com — «Speranța» (maqueta E), «Nocturn» (maqueta C) y «Piatră».
 *
 * Organización:
 *   1. Estilos (temas): solo variables. Para un estilo nuevo, copiar el bloque
 *      [data-theme="speranta"] con otro nombre y cambiar los valores; después
 *      añadir la opción en SiteSettings.Theme (core/models.py). Lo poco que
 *      no se puede decir con variables va al final de esta sección (1b).
 *   2. Base: tipografía, enlaces, imágenes.
 *   3. Piezas comunes: contenedor, botones, cabecera, pie, paginación...
 *   4. Portada.
 *   5. Páginas interiores: secciones, artículos, predicaciones, biblioteca, iglesias.
 *
 * El resto del fichero usa SOLO variables (var(--...)), nunca colores sueltos.
 */

/* 1. Estilos ------------------------------------------------------------- */

[data-theme="speranta"] {
  --ink: #1C1238;          /* texto y fondos oscuros */
  --paper: #FFFFFF;        /* fondo */
  --muted: #5A5170;        /* texto secundario (contraste AA sobre blanco) */
  --line: #E6E1F0;         /* bordes suaves */
  --footer-text: #D9D2EC;

  --coral: #FF5A36;
  --sun: #FFC23C;
  --teal: #12A39A;
  --violet: #5B2DB8;
  --violet-light: #8B5CF6;

  /* versiones oscuras, para texto o fondos con texto blanco */
  --coral-deep: #C2381B;
  --teal-deep: #0B6B65;
  --violet-deep: #4A23A0;
  --navy: #1E2A78;
  --mint: #7DE3DA;

  /* versiones suaves, para fondos de tarjetas con texto oscuro */
  --sun-soft: #FFF4D6;
  --teal-soft: #E3F6F4;
  --violet-soft: #EFE8FB;
  --coral-soft: #FFE9E3;

  /* papeles: en un estilo claro casi todos son los colores de arriba, pero un
     estilo oscuro necesita cambiarlos por separado */
  --on-color: #FFFFFF;           /* texto sobre fondos de color u oscuros */
  --on-bright: var(--ink);       /* texto sobre fondos vivos claros (sun, coral) */
  --night: var(--ink);           /* el fondo más oscuro: pie, vídeos */
  --button: var(--ink);          /* botón principal («Vino duminică», «Trimite») */
  --button-text: var(--paper);
  --teal-text: var(--teal-deep); /* texto verde sobre fondo suave */
  --error: var(--coral-deep);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --display-tracking: -0.03em;   /* espacio entre letras de los títulos */

  --radius-xl: 32px;
  --radius-l: 26px;
  --radius-m: 18px;
  --radius-button: 999px;        /* 999px = botones en forma de píldora */
  --wrap: 1240px;
}

/* «Nocturn» (maqueta C, «Sobria oscura»): fondo oscuro, dorado, títulos con serif */
[data-theme="nocturn"] {
  color-scheme: dark; /* controles del navegador oscuros (reproductor de audio, listas) */

  --ink: #EDEAE4;
  --paper: #12161C;
  --muted: #A7AFBA;
  --line: #2E3641;
  --footer-text: #A7AFBA;

  --coral: #D98C7A;
  --sun: #E2A84B;          /* el dorado: el color propio de este estilo */
  --teal: #7FB7A4;
  --violet: #232A34;       /* bloques destacados: pizarra, no violeta */
  --violet-light: #9DB2E0; /* azul claro: borde del foco */

  --coral-deep: #6E3A2E;
  --teal-deep: #2C4A42;
  --violet-deep: #E2A84B;  /* enlaces */
  --navy: #22304A;
  --mint: #7FB7A4;

  --sun-soft: #262319;
  --teal-soft: #1B2527;
  --violet-soft: #1D232C;
  --coral-soft: #271E1C;

  --on-color: #EDEAE4;
  --on-bright: #12161C;
  --night: #0C0F13;
  --button: #E2A84B;
  --button-text: #12161C;
  --teal-text: #7FB7A4;
  --error: #E8907C;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --display-tracking: 0;

  --radius-xl: 4px;
  --radius-l: 4px;
  --radius-m: 2px;
  --radius-button: 2px;
  --wrap: 1240px;
}

/* «Piatră» (inspirada en la plantilla «Stonebridge», en su versión oscura): fondo
   casi negro verdoso, verde bosque, títulos con serif sin negrita, mucho aire */
[data-theme="piatra"] {
  color-scheme: dark; /* controles del navegador oscuros (reproductor de audio, listas) */

  /* Colores sacados de la plantilla original (sus oklch/lab pasados a hex) */
  --ink: #F1F2F3;
  --paper: #151917;
  --muted: #ABB2B8;
  --line: #525657;
  --footer-text: #ABB2B8;

  --coral: #D98C7A;
  --sun: #E3C27A;          /* dorado claro: detalles sobre el verde */
  --teal: #7FB7A4;
  --violet: #2F5A4A;       /* el verde: bloques destacados y botones */
  --violet-light: #8FB0A2; /* borde del foco */

  --coral-deep: #6E3A2E;
  --teal-deep: #2C4A42;
  --violet-deep: #8FB0A2;  /* enlaces y «cejas»: el verde de la plantilla, aclarado para que se lea */
  --navy: #22304A;
  --mint: #A9D3C1;

  --sun-soft: #262319;
  --teal-soft: #1B2527;
  --violet-soft: #1E2320;  /* el segundo papel: bandas, tarjetas y pie */
  --coral-soft: #271E1C;

  --on-color: #FFFFFF;
  --on-bright: #151917;
  --night: #0E1110;        /* lo más oscuro: vídeos, selector de estilo */
  --button: #2F5A4A;
  --button-text: #FFFFFF;
  --teal-text: #8FB0A2;
  --error: #E8907C;
  --gold-text: #D1A55C;    /* «hoy» y marcas: el dorado de la plantilla, más claro */
  --gold-line: #BA8836;

  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --display-tracking: -0.015em;

  --radius-xl: 14px;
  --radius-l: 10px;
  --radius-m: 8px;
  --radius-button: 12px;
  --wrap: 1200px;
}

/* «Prag» (inspirado en la plantilla «Threshold»): cartel. Papel crema, tinta casi
   negra y un solo color, rojo; títulos estrechos en mayúsculas; menú en una barra
   lateral oscura; sin esquinas redondeadas ni sombras */
[data-theme="prag"] {
  --ink: #191712;
  --paper: #E5DFD3;        /* el papel de la plantilla */
  --muted: #5E594E;
  --line: #B9B1A0;
  --footer-text: #5E594E;

  --spot: #A82B22;         /* el único color: rojo sangre */
  --coral: #A82B22;
  --sun: #D9B37A;
  --teal: #3D6647;
  --violet: #A82B22;       /* bloques destacados y botones: el rojo */
  --violet-light: #A82B22; /* borde del foco */

  --coral-deep: #A82B22;
  --teal-deep: #3D6647;
  --violet-deep: #A82B22;  /* enlaces y «cejas» */
  --navy: #191712;
  --mint: #E5DFD3;

  --sun-soft: #F1EDE4;     /* papeles más claro y más oscuro, para tarjetas y bandas */
  --teal-soft: #DFD8CA;
  --violet-soft: #F1EDE4;
  --coral-soft: #DFD8CA;

  --on-color: #F1EDE4;     /* texto sobre la barra oscura y el rojo */
  --on-bright: #191712;
  --night: #191712;        /* lo más oscuro: vídeos, selector de estilo */
  --rail-bg: #191712;      /* la barra lateral: negra en claro, crema en oscuro */
  --rail-fg: #F1EDE4;
  --rail-accent: #E46A5F;  /* «Următorul serviciu», rayas y página actual */
  --button: #A82B22;
  --button-text: #FFFFFF;
  --teal-text: #3D6647;
  --error: #A82B22;

  --font-display: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;
  --display-tracking: 0;

  --radius-xl: 0;
  --radius-l: 0;
  --radius-m: 0;
  --radius-button: 0;
  --wrap: 1120px;
}

/* «Lumină» (inspirado en la plantilla «Advent»): gris muy oscuro, tarjetas negras,
   un solo color (ámbar), títulos con serif fina; letras espaciadas en el menú */
[data-theme="lumina"] {
  color-scheme: dark;

  --ink: #FFFFFF;          /* títulos y texto fuerte; el texto corriente es gris (1b) */
  --paper: #262626;
  --muted: #A6A6A6;        /* más claro que el de la plantilla (#8C8C8C), que apenas se leía */
  --line: #3A3A3A;
  --footer-text: #B3B3B3;
  --body-text: #B3B3B3;    /* el gris del texto de la plantilla */

  --amber: #FFC107;        /* el único color */
  --coral: #FFC107;
  --sun: #FFC107;
  --teal: #FFC107;
  --violet: #FFC107;
  --violet-light: #FFC107;

  --coral-deep: #FFC107;
  --teal-deep: #FFC107;
  --violet-deep: #FFC107;  /* enlaces y «cejas» */
  --navy: #000000;
  --mint: #FFC107;

  --sun-soft: #333333;     /* tarjetas: más claras que la página (#262626); negras apenas se distinguían */
  --teal-soft: #333333;
  --violet-soft: #333333;
  --coral-soft: #333333;

  --on-color: #FFFFFF;
  --on-bright: #111111;    /* texto sobre el ámbar: oscuro, para que se lea */
  --night: #1C1C1C;
  --button: #FFC107;
  --button-text: #111111;
  --teal-text: #FFC107;
  --error: #FF8A65;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
  --display-tracking: 0;

  --radius-xl: 0;
  --radius-l: 0;
  --radius-m: 0;
  --radius-button: 0;
  --wrap: 1140px;
}

/* «Prag» en modo oscuro (si el sistema del visitante lo pide), como la plantilla:
   fondo carbón, texto crema, el rojo más vivo y la barra lateral invertida (clara) */
@media (prefers-color-scheme: dark) {
  [data-theme="prag"] {
    color-scheme: dark;
    --ink: #EDE8DC;
    --paper: #17181A;
    --muted: #9A958A;
    --line: #34363A;
    --footer-text: #9A958A;
    --spot: #F0655A;
    --coral: #F0655A; --coral-deep: #F0655A;
    --violet: #F0655A; --violet-deep: #F0655A; --violet-light: #F0655A;
    --teal: #8FC3A0; --teal-deep: #8FC3A0; --teal-text: #8FC3A0;
    --sun-soft: #1F2023; --violet-soft: #1F2023;
    --teal-soft: #101113; --coral-soft: #101113;
    --navy: #EDE8DC; --mint: #17181A;
    --on-color: #EDE8DC;
    --on-bright: #17181A;
    --night: #101113;
    --button: #F0655A;
    --button-text: #17181A;
    --error: #F0655A;
    --rail-bg: #EDE8DC;
    --rail-fg: #191712;
    --rail-accent: #E0574B;
  }
}

/* 1b. Lo que no son variables */

/* DM Serif Display tiene un solo peso: que el navegador no invente la negrita */
[data-theme="nocturn"] { font-synthesis-weight: none; }
[data-theme="nocturn"] .site-header { border-bottom: 1px solid var(--line); }
[data-theme="nocturn"] .site-nav ul { font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; }
/* «Piatră»: los títulos con serif, en peso normal (los demás estilos los quieren gruesos) */
[data-theme="piatra"] :is(h1, h2, h3, .logo-name, .info-card strong, .featured-title, .featured-small-title,
  .sermon-card-title, .card-title, .video-title, .book-cover, .hero-text) { font-weight: 400; }
[data-theme="piatra"] .btn { font-weight: 500; }
[data-theme="piatra"] .site-header { border-bottom: 1px solid var(--line); }
/* Pie como en la plantilla: el segundo papel, no el negro más oscuro */
[data-theme="piatra"] .site-footer { background: var(--violet-soft); border-top: 1px solid var(--line); }
[data-theme="piatra"] .site-footer :is(.logo-name, .footer-col strong) { color: var(--ink); }
[data-theme="piatra"] .site-footer a:hover { color: var(--violet-deep); }
[data-theme="piatra"] .site-nav ul { font-weight: 400; }
[data-theme="piatra"] .sermon-row { background: transparent; border-bottom: 1px solid var(--line); border-radius: 0; padding-left: 0; padding-right: 0; }

/* «Prag»: títulos y botones como en un cartel: letra estrecha, mayúsculas, gruesa */
[data-theme="prag"] :is(h1, h2, h3, .logo-name, .info-card strong, .featured-title, .featured-small-title,
  .sermon-card-title, .card-title, .video-title, .book-cover, .hero-text, .btn, .site-nav ul) {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: 0.95;
}
[data-theme="prag"] .btn { letter-spacing: 0.02em; }
[data-theme="prag"] :is(.eyebrow, .p-eyebrow) { color: var(--spot); }
[data-theme="prag"] .sermon-row { background: transparent; border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; }
[data-theme="prag"] .card { border: 1px solid var(--line); }
[data-theme="prag"] .link-list { border-top: 3px solid var(--ink); }

/* La barra lateral oscura: la cabecera se convierte en una columna fija a la izquierda
   (solo en pantallas anchas; en el móvil queda arriba, como una franja oscura) */
[data-theme="prag"] .site-header { background: var(--rail-bg); color: var(--rail-fg); }
[data-theme="prag"] .site-header .logo-name { color: var(--rail-fg); }
[data-theme="prag"] .site-header .nav-toggle { border-color: var(--rail-fg); color: var(--rail-fg); }
[data-theme="prag"] .site-nav a[aria-current] { color: var(--rail-accent); text-decoration: none; }
.rail-info { display: none; }
@media (min-width: 901px) {
  [data-theme="prag"] body { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
  [data-theme="prag"] .site-header {
    grid-column: 1; grid-row: 1 / span 2;
    position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
  }
  [data-theme="prag"] :is(main, .site-footer) { grid-column: 2; min-width: 0; }
  [data-theme="prag"] .site-header .wrap {
    height: 100%; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 32px 24px;
  }
  [data-theme="prag"] .rail-info { display: block; padding: 18px 0; margin: 18px 0 26px; border-top: 3px solid var(--rail-accent); border-bottom: 3px solid var(--rail-accent); }
  [data-theme="prag"] .rail-info small { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
  [data-theme="prag"] .rail-info .rail-label { margin-top: 14px; color: var(--rail-accent); opacity: 1; font-weight: 600; }
  [data-theme="prag"] .rail-info strong { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
  [data-theme="prag"] .site-nav { flex: 1; display: flex; flex-direction: column; }
  [data-theme="prag"] .site-nav ul { flex: 1; flex-direction: column; align-items: stretch; gap: 2px; font-size: 1.15rem; letter-spacing: 0.03em; }
  [data-theme="prag"] .site-nav li a:not(.btn) { display: block; padding: 8px 0; opacity: 0.85; }
  [data-theme="prag"] .site-nav li a:not(.btn):hover { opacity: 1; text-decoration: none; color: var(--rail-accent); }
  [data-theme="prag"] .site-nav li:last-child { margin-top: auto; padding-top: 24px; }  /* «Vino duminică», abajo */
  [data-theme="prag"] .site-nav .btn { width: 100%; }
  [data-theme="prag"] .site-footer { margin: 88px 48px 0; }
  [data-theme="prag"] .theme-switcher { left: calc(300px + 16px); max-width: calc(100vw - 300px - 32px); } /* que no tape «Vino duminică» de la barra */
  [data-theme="prag"] .site-footer .wrap { padding-left: 0; padding-right: 0; }
}
/* El pie, sobre el papel y no en negro como en los otros estilos */
[data-theme="prag"] .site-footer { background: transparent; color: var(--muted); border-top: 3px solid var(--ink); }
[data-theme="prag"] .site-footer :is(.logo-name, .footer-col strong) { color: var(--ink); }
[data-theme="prag"] .site-footer a:hover { color: var(--spot); }

/* «Lumină»: texto corriente gris y títulos blancos con serif fina; menú, logo y
   botones en mayúsculas muy espaciadas; el pie, del mismo gris que la página */
[data-theme="lumina"] body { color: var(--body-text); font-size: 0.9375rem; line-height: 1.7; }
[data-theme="lumina"] :is(h1, h2, h3, .info-card strong, .featured-title, .featured-small-title,
  .sermon-card-title, .card-title, .video-title, .book-cover, .hero-text, strong) { color: var(--ink); font-weight: 400; }
[data-theme="lumina"] .logo-name { font-family: var(--font-body); font-weight: 400; font-size: 1.25rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
[data-theme="lumina"] .site-nav ul { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 400; color: var(--ink); }
[data-theme="lumina"] .site-nav a[aria-current] { text-decoration: none; color: var(--amber); }
[data-theme="lumina"] .btn { font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; }
[data-theme="lumina"] .btn-outline { border-color: var(--ink); color: var(--ink); }
[data-theme="lumina"] :is(.eyebrow, .p-eyebrow) { color: var(--amber); }
[data-theme="lumina"] .nav-toggle { border-color: var(--ink); color: var(--ink); }
[data-theme="lumina"] .site-footer { background: var(--paper); border-top: 1px solid var(--line); }
[data-theme="lumina"] .site-footer :is(.footer-col strong, .logo-name) { font-family: var(--font-display); letter-spacing: 0; text-transform: none; color: var(--ink); }
[data-theme="lumina"] .site-footer a { color: var(--amber); }
[data-theme="lumina"] .sermon-row { background: #333333; border: 1px solid #474747; }
/* En la portada, el menú va encima de la foto, transparente (como en la plantilla) */
[data-theme="lumina"] .template-homepage .site-header { position: absolute; z-index: 5; inset: 0 0 auto; background: transparent; }

/* 2. Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: var(--display-tracking);
  line-height: 1.05;
  margin: 0;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; } /* que ninguna clase (.btn...) muestre lo oculto */

:focus-visible { outline: 3px solid var(--violet-light); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

/* 3. Piezas comunes ---------------------------------------------------------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: var(--radius-button);
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
}
.btn:hover { opacity: 0.88; }
.btn-dark { background: var(--button); color: var(--button-text); }
.btn-light { background: var(--on-color); color: var(--night); }
.btn-outline { border-color: currentColor; }

/* Logo: las hojas + nombre */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-symbol { height: 40px; width: auto; display: block; align-self: flex-start; } /* sin estirarse en el pie */
.logo-name { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; }

/* Cabecera */
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px;
}
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px;
  font-weight: 500;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-nav .btn { text-decoration: none; }
.nav-toggle {
  display: none; min-height: 44px; padding: 8px 18px; border-radius: var(--radius-button);
  border: 2px solid var(--ink); background: transparent; color: var(--ink); font-weight: 700;
}

@media (max-width: 900px) {
  /* Solo con JavaScript (clase «js» en <html>) se pliega el menú tras el botón. */
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a:not(.btn) { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; width: 100%; }
}

/* Pie */
.site-footer { background: var(--night); color: var(--footer-text); margin-top: 88px; }
.site-footer .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
  padding-top: 56px; padding-bottom: 56px; font-size: 0.9375rem;
}
.site-footer .logo-name { color: var(--on-color); font-size: 1.625rem; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col strong { color: var(--on-color); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-color); text-decoration: underline; }

/* Selector de estilo para visitantes (Setări site → «Selector de stil»), abajo a la izquierda */
.theme-switcher {
  position: fixed; z-index: 20;
  left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px 4px 4px 16px;
  max-width: calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); /* en el móvil no caben todos: pasan a otra línea */
  background: var(--night); color: var(--on-color); border: 1px solid var(--line); border-radius: 27px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28); font-size: 0.9375rem; font-weight: 700;
}
.theme-switcher span { margin-right: 6px; opacity: 0.75; }
.theme-switcher a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; }
.theme-switcher a:hover { text-decoration: underline; }
.theme-switcher a[aria-current] { background: var(--on-color); color: var(--night); }
body:has(.theme-switcher) .site-footer { padding-bottom: 72px; } /* que no tape el final del pie */
@media (max-width: 700px) { body:has(.theme-switcher) .site-footer { padding-bottom: 128px; } } /* aquí ocupa dos líneas */

/* Paginación */
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }
.pagination a { min-height: 44px; padding: 10px 20px; border-radius: var(--radius-button); background: var(--violet-soft); font-weight: 700; text-decoration: none; }
.pagination span { color: var(--muted); }

/* Vídeos incrustados (YouTube/Vimeo): siempre 16:9 y a todo el ancho */
.embed { aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: var(--night); }
.embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed video { width: 100%; height: 100%; display: block; object-fit: contain; background: var(--night); }
/* Portada del vídeo antes de cargarlo (includes/video.html) */
.video-facade {
  width: 100%; height: 100%; padding: 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--violet); color: var(--on-color); text-decoration: none; text-align: center;
}
.video-facade:hover .video-play, .video-facade:focus-visible .video-play { transform: scale(1.08); }
.video-play {
  width: 84px; height: 84px; border-radius: 999px; background: var(--on-color); color: var(--violet);
  display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease;
}
.video-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.5rem); line-height: 1.2; max-width: 36ch; }
.video-note { font-size: 0.9375rem; opacity: 0.85; }
.video-missing { background: var(--sun-soft); border-radius: var(--radius-m); padding: 20px 24px; margin: 0; }
.video-missing a { color: var(--violet-deep); font-weight: 700; }

/* 4. Portada --------------------------------------------------------------- */

.hero {
  position: relative; display: flex; min-height: 600px;
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--slide-bg, var(--violet)); color: var(--on-color);
  transition: background 0.8s ease;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-tint {
  position: absolute; inset: 0; background: var(--slide-bg, var(--violet));
  opacity: 0.4; mix-blend-mode: multiply; transition: background 1.2s ease;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14, 8, 32, 0.72) 0%, rgba(14, 8, 32, 0.35) 60%, rgba(14, 8, 32, 0.1) 100%);
}
.hero-body {
  position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  gap: 40px; padding: 64px 56px 48px;
}
.hero-verse { display: flex; flex-direction: column; gap: 22px; max-width: 780px; }
.hero-ref {
  align-self: flex-start; background: rgba(255, 255, 255, 0.18);
  padding: 7px 14px; border-radius: 999px;
}
.hero-text {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.25rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: calc(var(--display-tracking) - 0.005em);
}
.hero-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn-outline { color: var(--on-color); }
.hero-controls { display: flex; align-items: center; gap: 10px; }
.hero-arrow {
  width: 48px; height: 48px; border-radius: 999px; border: 2px solid var(--on-color);
  background: transparent; color: var(--on-color); display: flex; align-items: center; justify-content: center;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0;
  background: var(--on-color); opacity: 0.5; transition: width 0.4s ease, opacity 0.4s ease;
}
.hero-dot[aria-current="true"] { width: 32px; opacity: 1; }

/* Foto clicable (HomeSlide.link_page): el enlace cubre la foto; el texto de encima
   deja pasar los clics, salvo los botones y enlaces, que siguen funcionando. */
.hero-photo-link { position: absolute; inset: 0; }
.hero-body, .n-hero-body { pointer-events: none; }
.hero-body :is(a, button), .n-hero-body :is(a, button) { pointer-events: auto; }

/* Colores de diapositiva (HomeSlide.tint) */
.tint-violet { --slide-bg: var(--violet); }
.tint-coral { --slide-bg: var(--coral-deep); }
.tint-teal { --slide-bg: var(--teal-deep); }
.tint-navy { --slide-bg: var(--navy); }

@media (max-width: 700px) {
  .hero { min-height: 520px; border-radius: var(--radius-l); }
  .hero-body { padding: 36px 24px 28px; }
}

/* Tarjetas de información (día, dirección, idioma) */
.info-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-top: 24px;
}
.info-card { border-radius: var(--radius-l); padding: 26px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.info-card strong { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.2; }
a.info-card:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.info-card-church span:last-child { margin-top: 4px; }
.info-card:nth-child(3n+1) { background: var(--sun); color: var(--on-bright); }
.info-card:nth-child(3n+2) { background: var(--teal-soft); }
.info-card:nth-child(3n+2) .eyebrow { color: var(--teal-text); }
.info-card:nth-child(3n) { background: var(--violet-soft); }
.info-card:nth-child(3n) .eyebrow { color: var(--violet-deep); }

/* Bloques de la portada */
.home-section { padding-top: 88px; display: flex; flex-direction: column; gap: 28px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
.section-head a { font-weight: 700; color: var(--violet-deep); text-decoration: none; }
.section-head a:hover { text-decoration: underline; }

/* Tarjetas de predicaciones de colores (portada) */
.sermon-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.sermon-card {
  --card-bg: var(--sun); --card-fg: var(--on-bright);
  background: var(--card-bg); color: var(--card-fg);
  border-radius: var(--radius-l); padding: 26px; min-height: 240px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px; text-decoration: none;
}
.sermon-card:nth-child(4n+2) { --card-bg: var(--teal-deep); --card-fg: var(--on-color); }
.sermon-card:nth-child(4n+3) { --card-bg: var(--coral); --card-fg: var(--on-bright); }
.sermon-card:nth-child(4n) { --card-bg: var(--violet); --card-fg: var(--on-color); }
.sermon-card:hover { opacity: 0.92; }
@media (max-width: 700px) { .sermon-card { min-height: 0; } }
.play-icon {
  width: 52px; height: 52px; border-radius: 999px; flex: none;
  background: var(--card-fg, var(--ink)); color: var(--card-bg, var(--paper));
  display: flex; align-items: center; justify-content: center;
}
.sermon-card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1.15; }
.sermon-card-meta { font-size: 0.9375rem; opacity: 0.85; }

/* Destacados: artículo grande + dos noticias */
.featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; padding-top: 88px; }
.featured-main {
  background: var(--violet); color: var(--on-color); border-radius: var(--radius-l); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none;
}
.featured-main img { width: 100%; height: 240px; object-fit: cover; }
.featured-main .eyebrow { color: var(--sun); }
.featured-body { padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.featured-title { font-family: var(--font-display); font-weight: 800; font-size: 1.875rem; line-height: 1.1; }
.featured-side { display: flex; flex-direction: column; gap: 18px; }
.featured-small {
  flex: 1; border-radius: var(--radius-l); padding: 28px; color: var(--on-color); text-decoration: none;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 180px;
}
.featured-small:nth-child(1) { background: var(--coral-deep); }
.featured-small:nth-child(2) { background: var(--night); }
.featured-small:nth-child(2) .eyebrow { color: var(--mint); }
.featured-small-title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.featured-main:hover, .featured-small:hover { opacity: 0.94; }

/* 4b. Portada del estilo «Nocturn» (home/home_page_nocturn.html) ---------------- */
/* Versículo sobre la foto con velo oscuro, listas con líneas finas (a partir de la maqueta C). */

.n-hero {
  position: relative; display: flex; min-height: 640px; margin-top: 8px;
  border-radius: var(--radius-xl); overflow: hidden; background: var(--violet); color: var(--on-color);
}
.n-hero .hero-slide img { width: 100%; height: 100%; object-fit: cover; }
/* Velo oscuro solo abajo, donde va el texto: arriba la foto se ve limpia */
.n-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(12, 15, 19, 0.88) 0%, rgba(12, 15, 19, 0.55) 40%, rgba(12, 15, 19, 0) 80%);
}
.n-hero-body {
  position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 24px; padding: 56px;
}
.n-hero-church { color: var(--sun); letter-spacing: 0.2em; }
.n-verse { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.n-hero-text {
  margin: 0; max-width: 22ch;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.25rem, 5.6vw, 4.5rem); line-height: 1.04; text-wrap: balance;
}
.n-hero-text::before { content: "„"; }
.n-hero-text::after { content: "”"; }
.n-hero-ref { opacity: 0.85; font-size: 1.0625rem; }
.n-hero-ref cite { font-style: normal; font-weight: 700; }
.n-hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 8px; }
.n-link { font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.n-link:hover { color: var(--sun); }
.n-hero-controls { margin-left: auto; }
@media (max-width: 700px) {
  .n-hero { min-height: 560px; }
  .n-hero-body { padding: 32px 22px 26px; }
  .n-hero-controls { margin-left: 0; }
}

/* Cuándo y dónde */
.n-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 40px;
  padding-top: 40px;
}
.n-facts > * { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 16px; }
.n-facts .eyebrow { color: var(--sun); }
.n-facts strong { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.n-facts a { text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.n-facts span:not(.eyebrow) { color: var(--muted); }
.n-facts a:hover strong { text-decoration: underline; text-underline-offset: 4px; }

/* Columnas: predicaciones y lecturas (en la banda), noticias y biografías (debajo) */
.n-band { background: var(--violet-soft); margin-top: 80px; }
.n-columns {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px 64px;
  padding-top: 80px; padding-bottom: 80px;
}
.n-lower { padding-bottom: 0; }
.n-column { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.n-column h2 { font-size: 2.5rem; font-weight: 400; }
.n-list { list-style: none; margin: 0; padding: 0; }
.n-list a {
  display: flex; align-items: baseline; gap: 20px; padding: 16px 0;
  border-top: 1px solid var(--line); text-decoration: none;
}
.n-list a:hover .n-title { text-decoration: underline; text-underline-offset: 4px; }
.n-num { min-width: 34px; font-family: var(--font-display); font-size: 1.375rem; color: var(--sun); font-variant-numeric: tabular-nums; }
.n-title { display: block; font-size: 1.1875rem; font-weight: 500; line-height: 1.3; }
.n-meta { display: block; font-size: 0.875rem; color: var(--muted); }
.n-more { align-self: flex-start; font-weight: 700; color: var(--violet-deep); text-decoration: none; }
.n-more:hover { text-decoration: underline; }
.n-feature {
  display: flex; flex-direction: column; gap: 10px; padding: 28px;
  background: var(--violet); border-radius: var(--radius-l); text-decoration: none;
}
.n-feature .eyebrow { color: var(--sun); }
.n-feature-title { font-family: var(--font-display); font-size: 2rem; line-height: 1.15; }
.n-feature-text { color: var(--muted); }
.n-feature:hover :is(.n-feature-title, .n-title) { text-decoration: underline; text-underline-offset: 4px; }
.n-feature-outline { background: transparent; border: 1px solid var(--line); padding: 22px 28px; }
.n-chip { background: transparent; border: 1px solid var(--line); padding: 8px 16px; }

/* 4c. Portada del estilo «Piatră» (home/home_page_piatra.html) ----------------- */
/* Foto fija a todo el ancho, secciones con «ceja» y línea, tarjetas con borde fino. */

.p-hero { position: relative; display: flex; align-items: center; min-height: 600px; background: var(--night); color: var(--on-color); overflow: hidden; }
.p-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 45%; }
.p-hero-credit {
  position: absolute; right: 12px; bottom: 8px; z-index: 1; margin: 0;
  font-size: 0.75rem; color: rgba(255, 255, 255, 0.7);
}
.p-hero-credit a { color: inherit; }
.p-hero-shade {
  position: absolute; inset: 0;
  /* El velo de la plantilla: verde casi negro, más oscuro abajo */
  background: linear-gradient(180deg, rgba(9, 20, 15, 0.55) 0%, rgba(9, 20, 15, 0.32) 42%, rgba(3, 12, 7, 0.88) 100%);
}
.p-hero-body { position: relative; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-top: 72px; padding-bottom: 72px; }
.p-hero-body .eyebrow { font-weight: 500; letter-spacing: 0.14em; opacity: 0.85; }
.p-verse { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.p-hero-text {
  margin: 0; max-width: 18ch; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.04; letter-spacing: var(--display-tracking); text-wrap: balance;
}
blockquote.p-hero-text::before { content: "„"; }
blockquote.p-hero-text::after { content: "”"; }
.p-hero-ref { font-size: 1.125rem; opacity: 0.9; }
.p-hero-ref cite { font-style: normal; font-weight: 600; }
.p-next {
  margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.26); border-radius: 999px; background: rgba(9, 20, 15, 0.45);
}
.p-next-dot { width: 10px; height: 10px; margin: 0 4px; border-radius: 999px; background: var(--gold-line); box-shadow: 0 0 0 5px rgba(186, 136, 54, 0.3); }
.p-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.p-hero-actions .btn-outline { color: var(--on-color); border-color: rgba(255, 255, 255, 0.6); border-width: 1px; }
@media (max-width: 700px) {
  .p-hero { min-height: 540px; }
  .p-hero-body { padding-top: 48px; padding-bottom: 48px; }
}

/* Secciones: «ceja» con línea, título grande a la izquierda y texto a la derecha */
.p-section { padding-top: 88px; padding-bottom: 8px; display: flex; flex-direction: column; gap: 28px; }
.p-band { background: var(--violet-soft); margin-top: 88px; }
.p-band > .p-section { padding-bottom: 88px; }
.p-band + .p-section, .p-band + .p-band { margin-top: 0; }
.p-eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
  color: var(--violet-deep); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.p-eyebrow::before { content: ""; width: 28px; border-top: 1px solid currentColor; }
.p-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; }
.p-head h2, .p-faq-intro h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.1; }
.p-head p { margin: 0; color: var(--muted); }
.p-head p a { color: var(--violet-deep); font-weight: 600; white-space: nowrap; }
@media (max-width: 800px) { .p-head { grid-template-columns: minmax(0, 1fr); } }

/* Tarjetas con borde fino; la del culto, destacada */
.p-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.p-card {
  display: flex; flex-direction: column; gap: 10px; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--paper); text-decoration: none;
}
.p-card strong { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.p-card > span:not(.p-tag) { color: var(--muted); }
a.p-card:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.p-card-main { border-color: var(--violet); box-shadow: 0 18px 40px -24px rgba(47, 90, 74, 0.55); }
.p-card-main .p-tag { background: var(--violet); border-color: var(--violet); color: var(--on-color); font-weight: 600; }
.p-tag {
  align-self: flex-start; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.8125rem; color: var(--muted);
}
.p-card .p-card-more { margin-top: auto; color: var(--violet-deep); font-weight: 600; }

/* Prima vizită: preguntas desplegables */
.p-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px 64px; align-items: start; }
.p-faq-intro { display: flex; flex-direction: column; gap: 16px; }
.p-faq-intro p { margin: 0; color: var(--muted); }
.p-faq-list details { border-bottom: 1px solid var(--line); }
.p-faq-list details:first-child { border-top: 1px solid var(--line); }
.p-faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none; font-size: 1.125rem; font-weight: 600;
}
.p-faq-list summary::-webkit-details-marker { display: none; }
.p-faq-list summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s ease;
}
.p-faq-list details[open] summary::after { transform: rotate(-135deg) translateX(-3px); }
.p-faq-list summary:hover { color: var(--violet-deep); }
.p-faq-list .prose { padding-bottom: 22px; color: var(--muted); font-size: 1.0625rem; }
@media (max-width: 800px) { .p-faq { grid-template-columns: minmax(0, 1fr); } }

/* Predicaciones en lista: serie y fecha a la izquierda, título en medio, «Ascultă» a la derecha */
.p-sermons { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.p-sermons li {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 8px 32px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.p-sermon-side { display: flex; flex-direction: column; gap: 2px; font-size: 0.875rem; color: var(--muted); }
.p-sermon-series { color: var(--violet-deep); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.p-sermon-main { display: flex; flex-direction: column; gap: 2px; }
.p-sermon-title { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.25; text-decoration: none; }
.p-sermon-title:hover { text-decoration: underline; text-underline-offset: 4px; }
.p-listen { padding: 6px 14px; border: 1px solid var(--muted); border-radius: var(--radius-m); color: var(--muted); font-size: 0.9375rem; text-decoration: none; }
.p-listen:hover { color: var(--violet-deep); border-color: var(--violet-deep); }
@media (max-width: 700px) {
  .p-sermons li { grid-template-columns: minmax(0, 1fr); }
  .p-listen { display: none; } /* en el móvil, el título ya es el enlace */
}

/* De citit */
.p-reading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 900px) { .p-reading { grid-template-columns: minmax(0, 1fr); } }
.p-feature { padding: 0 0 28px; overflow: hidden; }
.p-feature img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; margin-bottom: 8px; }
.p-feature > :not(img) { margin-left: 28px; margin-right: 28px; }
.p-feature strong { font-size: 1.875rem; }

/* 4d. Portada del estilo «Prag» (home/home_page_prag.html) -------------------- */
/* Un cartel: el versículo enorme en mayúsculas, la foto inclinada como una lámina
   pegada, y debajo listas separadas por rayas gruesas. Sin tarjetas ni esquinas. */

.g-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 48px; align-items: start;
  max-width: 1180px; padding: 56px 48px 24px;
}
.g-eyebrow { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--spot); }
.g-hero .g-eyebrow { margin-bottom: 18px; }
.g-verse { margin: 0; }
.g-verse blockquote, .g-hero h1 {
  margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5.6rem); line-height: 0.92; text-wrap: balance;
}
.g-verse blockquote::before { content: "„"; }
.g-verse blockquote::after { content: "”"; }
.g-verse figcaption { margin-top: 18px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--spot); }
.g-verse cite { font-style: normal; }
.g-lead { max-width: 46ch; margin: 22px 0 0; font-size: 1.1875rem; line-height: 1.55; }
.g-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.g-plate { margin-top: 36px; }
.g-plate img { display: block; width: 100%; height: auto; border: 3px solid var(--ink); transform: rotate(1.6deg); }

.g-section { max-width: 820px; padding: 72px 48px 0; }
.g-section-right { margin-left: auto; margin-right: max(0px, calc(100% - 1180px)); }
.g-title {
  margin-top: 10px; padding: 12px 0 14px; border-top: 5px solid var(--ink);
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); line-height: 0.95;
}

/* Cuándo y dónde: la hora, el qué en rojo, el día al margen */
.g-when { list-style: none; margin: 0; padding: 0; border-top: 5px solid var(--ink); }
.g-when li { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.g-when-time { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; text-transform: uppercase; }
.g-when strong { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.05; text-transform: uppercase; color: var(--spot); }
.g-when li > span:nth-child(2) > :not(strong) { display: block; margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }
.g-when-day { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* «Prima vizită»: pasos numerados, la cifra hueca en rojo en el margen */
.g-ladder { list-style: none; margin: 0 0 28px; padding: 0; }
.g-ladder li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 24px; padding: 24px 0; border-top: 3px solid var(--ink); }
.g-ladder li > * { grid-column: 2; }
.g-ladder-n {
  grid-column: 1 !important; grid-row: span 2;
  font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 0.8;
  color: transparent; -webkit-text-stroke: 2px var(--spot);
}
.g-ladder strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.g-ladder-text { margin-top: 8px; color: var(--muted); }

/* Predicaciones y lecturas: la fecha (o sección) estampada en el margen */
.g-listing { list-style: none; margin: 0; padding: 0; border-top: 5px solid var(--ink); }
.g-listing li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.g-listing-when { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--spot); }
.g-listing-title { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.05; text-transform: uppercase; text-decoration: none; }
.g-listing-title:hover { color: var(--spot); }
.g-listing-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 0.9375rem; }
.g-listing-action { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.g-more { display: inline-block; margin-top: 18px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; color: var(--spot); text-decoration: none; }

@media (max-width: 900px) {
  .g-hero { grid-template-columns: minmax(0, 1fr); padding: 36px 20px 8px; gap: 8px; }
  .g-plate { max-width: 440px; }
  .g-section, .g-section-right { padding: 56px 20px 0; margin: 0; }
  .g-when li, .g-listing li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .g-ladder li { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .g-ladder li > *, .g-ladder-n { grid-column: 1 !important; grid-row: auto; }
}

/* 4e. Portada del estilo «Lumină» (home/home_page_lumina.html) ---------------- */
/* Diapositivas a toda pantalla con el menú encima, cuenta atrás en cajas ámbar,
   el programa sobre blanco con una foto, tarjetas negras y miniaturas. Sin esquinas. */

.l-hero { position: relative; display: grid; place-items: center; min-height: clamp(400px, 60vh, 560px); /* más baja que la plantilla (700 px): que se vea lo de debajo */ overflow: hidden; color: #FFFFFF; text-align: center; background: #000000; }
.l-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.l-slide.is-active { opacity: 1; }
.l-slide img { width: 100%; height: 100%; object-fit: cover; }
.l-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.38); }
.l-hero .hero-photo-link { position: absolute; inset: 0; z-index: 1; }
.l-hero-body { position: relative; z-index: 2; max-width: 820px; padding: 104px 24px 72px; }
.l-hero-text { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem); line-height: 1.2; color: #FFFFFF; text-wrap: balance; }
.l-hero-text::before { content: "„"; }
.l-hero-text::after { content: "”"; }
.l-hero-ref { margin: 18px 0 0; font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; }
.l-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.l-hero-actions .btn-outline { border-color: #FFFFFF; color: #FFFFFF; }
.l-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.l-dots .hero-dot { width: 10px; height: 10px; padding: 0; border: 1px solid #FFFFFF; border-radius: 50%; background: transparent; cursor: pointer; }
.l-dots .hero-dot[aria-current="true"] { width: 10px; background: #FFFFFF; }
.l-arrow { border: 0; background: transparent; color: #FFFFFF; font-size: 1.6rem; line-height: 1; padding: 0 10px; cursor: pointer; opacity: 0.8; }

.l-badge { display: inline-block; padding: 4px 10px; background: var(--amber); color: var(--on-bright); font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; }
.l-meta { margin: 6px 0 0; font-size: 0.9375rem; color: var(--body-text); } /* sin mayúsculas espaciadas: es texto para leer (la dirección) */
.l-meta span { color: var(--ink); }

/* El próximo culto y la cuenta atrás */
.l-next { background: var(--paper); }
.l-next-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.l-next h2 { margin-top: 12px; font-size: 1.5rem; }
.l-countdown { display: flex; gap: 2px; }
.l-countdown[hidden] { display: none; }
.l-countdown span { display: grid; place-items: center; align-content: center; width: 88px; height: 88px; background: var(--amber); color: rgba(17, 17, 17, 0.65); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; }
.l-countdown b { display: block; font-family: var(--font-body); font-weight: 300; font-size: 1.75rem; line-height: 1.1; color: #111111; }

/* El programa: blanco, con la foto a la derecha */
.l-worship { display: grid; grid-template-columns: 1fr 1fr; background: #FFFFFF; color: #555555; }
.l-worship-text { padding: 88px 64px 88px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); align-self: center; }
[data-theme="lumina"] .l-worship h2 { color: #000000; font-size: 1.75rem; margin-bottom: 18px; } /* le gana a los títulos blancos */
.l-worship ul { list-style: none; margin: 0; padding: 0; }
.l-worship li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid #E5E5E5; text-decoration: none; color: inherit; }
.l-worship li a::after { content: "›"; font-size: 1.5rem; color: #000000; }
.l-worship strong { display: block; color: #8A6100 !important; font-weight: 400; font-size: 1.0625rem; } /* ámbar oscuro: el #FFC107 sobre blanco no se lee */
.l-worship li span span { display: block; margin-top: 2px; font-size: 0.875rem; color: #666666; }
.l-worship-photo img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }

/* Predicaciones y lecturas */
.l-section { padding-top: 88px; }
.l-title { margin: 14px 0 32px; font-size: 2rem; }
.l-sermons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.l-sermon { background: #333333; border: 1px solid #474747; padding: 20px 20px 16px; }
.l-sermon h3 { font-size: 1.125rem; }
.l-sermon h3 a { text-decoration: none; }
.l-sermon h3 a:hover { color: var(--amber); }
.l-sermon audio { width: 100%; height: 36px; margin-top: 14px; }
.l-more { display: inline-block; margin-top: 28px; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); text-decoration: none; }
.l-reading { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.l-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; text-decoration: none; color: inherit; }
.l-item img { width: 96px; height: 96px; object-fit: cover; display: block; }
.l-item strong { display: block; font-family: var(--font-display); font-size: 1.125rem; line-height: 1.35; color: var(--amber) !important; }
.l-summary { display: block; margin-top: 8px; font-size: 0.875rem; line-height: 1.6; }
.l-item:hover strong { text-decoration: underline; }

@media (max-width: 900px) {
  .l-hero { min-height: clamp(360px, 52vh, 460px); }
  .l-hero-body { padding: 120px 20px 64px; }
  .l-next-inner { grid-template-columns: minmax(0, 1fr); }
  .l-countdown span { width: auto; flex: 1; height: 76px; }
  .l-worship { grid-template-columns: minmax(0, 1fr); }
  .l-worship-text { padding: 56px 20px; }
  .l-worship-photo img { min-height: 260px; }
  [data-theme="lumina"] .template-homepage .site-nav.is-open { background: rgba(38, 38, 38, 0.97); padding: 8px 16px; }
}

/* 5. Páginas interiores ---------------------------------------------------- */

.page-head { padding-top: 40px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
.page-head .lead { font-size: 1.25rem; color: var(--muted); max-width: 60ch; margin: 0; }
.page-head .meta { color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.back-link { align-self: flex-start; font-weight: 700; color: var(--violet-deep); text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* Texto largo (artículos, notas, presentación) */
.prose { max-width: 72ch; font-size: 1.125rem; line-height: 1.7; }
/* Espacio entre párrafos, títulos y listas, también dentro del contenedor que pone Wagtail */
.prose :is(p, ul, ol, h2, h3, figure) { margin: 0; }
.prose :is(p, ul, ol, h2, h3, figure) + :is(p, ul, ol, h2, h3, figure) { margin-top: 1em; }
.prose h2 { font-size: 1.875rem; }
.prose h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.prose :is(p, ul, ol, h2, h3, figure) + :is(h2, h3) { margin-top: 1.6em; } /* más aire antes de un título */
.prose a { color: var(--violet-deep); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose img { border-radius: var(--radius-m); margin: 1.5em 0; }
.prose .richtext-image.left { float: left; max-width: 45%; margin: 0.4em 1.5em 1em 0; }
.prose .richtext-image.right { float: right; max-width: 45%; margin: 0.4em 0 1em 1.5em; }

.article-video { max-width: 960px; margin-bottom: 40px; }

/* Ficha con retrato (biografías): la foto fija a la izquierda mientras se lee */
.article-portrait { display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 56px; align-items: start; }
.article-portrait > * { grid-column: 2; }
/* La foto empieza a la altura del título (fila 2), no del enlace «← Sección» (fila 1), y baja
   lo que hay entre la caja del h1 y lo alto de sus mayúsculas (≈ 0,19 × su tamaño, medido en los tres estilos) */
.article-portrait > .portrait {
  grid-column: 1; grid-row: 2 / span 3; position: sticky; top: 32px;
  margin: calc(16px + 0.19 * clamp(2.25rem, 6vw, 4rem)) 0 40px;
}
.article-portrait > .back-link { justify-self: start; margin-top: 40px; }
.article-portrait > .page-head { padding-top: 16px; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xl); }
.portrait-zoom { display: block; cursor: zoom-in; }
.portrait-natural img { aspect-ratio: auto; object-fit: initial; } /* mapas, carteles, noticias: enteras */
.portrait figcaption { padding: 10px 4px 0; color: var(--muted); font-size: 0.875rem; }
@media (max-width: 860px) {
  .article-portrait { display: block; }
  .article-portrait > .back-link { display: inline-block; margin-top: 32px; }
  .article-portrait > .portrait { position: static; width: min(220px, 60%); margin: 20px 0 0; }
  .article-portrait > .portrait-natural { width: min(360px, 100%); }
}

/* Bloques de StreamField (páginas simples) */
.stream { display: flex; flex-direction: column; gap: 32px; }
.stream figure { margin: 0; }
.stream figure img { border-radius: var(--radius-l); width: auto; max-width: 100%; } /* sin estirar fotos pequeñas */
.stream figcaption { padding: 10px 4px 0; color: var(--muted); font-size: 0.9375rem; }

/* Página simple con recuadro al lado (StandardPage.show_visit_card) */
.standard.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.visit-card {
  position: sticky; top: 24px;
  background: var(--violet); color: var(--on-color); border-radius: var(--radius-l); padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.visit-card h2 { font-size: 1.75rem; }
.visit-card p { margin: 2px 0 0; font-size: 1.125rem; }
.visit-card a:not(.btn) { color: var(--sun); font-weight: 700; }
.visit-card .eyebrow { color: var(--sun); }
.visit-card .btn { align-self: flex-start; }
@media (max-width: 900px) {
  .standard.with-aside { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .visit-card { position: static; order: -1; } /* en el móvil, antes del texto: es lo que se busca */
}

/* Galería de fotos (bloque «Galerie foto») */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); }
.gallery a:hover img { opacity: 0.92; }
.gallery figcaption { padding: 8px 4px 0; color: var(--muted); font-size: 0.9375rem; }

.card-more { font-weight: 700; color: var(--violet-deep); margin-top: 4px; }

.link-list { background: var(--violet-soft); border-radius: var(--radius-l); padding: 28px; }
.link-list h2 { font-size: 1.5rem; margin-bottom: 16px; }
.link-list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.link-list a, .link-list .link-dead { display: block; background: var(--paper); border-radius: var(--radius-m); padding: 16px 18px; font-weight: 700; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.link-list p { margin: 4px 0 0; font-weight: 400; color: var(--muted); font-size: 0.9375rem; }
.external-mark { color: var(--muted); font-weight: 400; }
.link-list .link-dead { color: var(--muted); }
.link-missing { display: block; margin-top: 2px; font-size: 0.875rem; }
.link-old-url { display: block; margin-top: 2px; font-weight: 400; font-size: 0.8125rem; word-break: break-all; }

/* Rejilla de tarjetas (artículos, biografías, noticias, iglesias, libros) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; align-items: stretch; } /* misma altura por fila */
.card {
  display: flex; flex-direction: column; border-radius: var(--radius-l); overflow: hidden;
  background: var(--violet-soft); text-decoration: none;
}
.card:nth-child(4n+2) { background: var(--teal-soft); }
.card:nth-child(4n+3) { background: var(--sun-soft); }
.card:nth-child(4n) { background: var(--coral-soft); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-grid-portraits .card img { aspect-ratio: 1 / 1; }
.card-placeholder { display: grid; place-items: center; aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.card-grid-portraits .card-placeholder { aspect-ratio: 1 / 1; }
.card .card-placeholder img { width: 30%; height: auto; aspect-ratio: auto; object-fit: contain; opacity: 0.75; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; }
.card-meta { color: var(--muted); font-size: 0.9375rem; }
.card-text { margin: 0; color: var(--ink); }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 4px; }

/* Lista de predicaciones */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 28px; }
.filter label { font-weight: 700; }
.filter select {
  min-height: 48px; padding: 10px 16px; border-radius: var(--radius-button); border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); font: inherit; max-width: 100%;
}
.sermon-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sermon-row {
  --card-bg: var(--violet-soft); --card-fg: var(--ink);
  display: flex; align-items: center; gap: 18px; padding: 16px 20px;
  border-radius: var(--radius-m); background: var(--card-bg); text-decoration: none;
}
.sermon-row .play-icon { width: 44px; height: 44px; background: var(--violet); color: var(--on-color); }
.sermon-row:hover .sermon-row-title { text-decoration: underline; }
/* Vídeo que ya no está en YouTube: cruz y etiqueta, para que el editor lo sustituya */
.sermon-row.is-missing .play-icon { background: var(--muted); }
.sermon-row.is-missing .sermon-row-title { color: var(--muted); }
.missing-tag { font-weight: 700; color: #B42318; }
.sermon-row-title { font-weight: 700; font-size: 1.125rem; line-height: 1.25; }
.sermon-row-meta { color: var(--muted); font-size: 0.9375rem; }

/* Página de una predicación */
.player { background: var(--violet); color: var(--on-color); border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.player audio { width: 100%; }
.player a { color: var(--on-color); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--sun-soft); border-radius: 999px; padding: 6px 14px; font-weight: 500; font-size: 0.9375rem; text-decoration: none; }
a.chip:hover { text-decoration: underline; }

/* Biblioteca */
.book-cover {
  aspect-ratio: 3 / 4; display: flex; align-items: flex-end; padding: 20px;
  background: var(--violet); color: var(--on-color);
  font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.1;
}
/* Color de cada portada (LibraryItemPage.cover_tint), igual en el listado y en la ficha */
.book-cover.tint-teal { background: var(--teal-deep); }
.book-cover.tint-coral { background: var(--coral-deep); }
.book-cover.tint-navy { background: var(--navy); }

/* Ficha de un libro: portada a la izquierda, datos y botones a la derecha */
.book-detail { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 48px; align-items: start; }
.book-detail .book-cover, .book-detail img { border-radius: var(--radius-l); width: 100%; font-size: 1.75rem; padding: 28px; }
.book-detail img { padding: 0; }
.book-info { display: flex; flex-direction: column; gap: 20px; }
.book-info h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.book-info .lead { font-size: 1.25rem; color: var(--muted); margin: 0; }
.book-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.book-actions .btn-outline { color: var(--ink); }
.book-actions small { font-weight: 500; opacity: 0.8; }
@media (max-width: 700px) {
  .book-detail { grid-template-columns: 1fr; gap: 28px; }
  .book-detail .book-cover, .book-detail img { max-width: 240px; }
  .book-detail .book-cover { font-size: 1.375rem; padding: 22px; }
}
.card .book-img { aspect-ratio: 3 / 4; }
.book-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.subsection { margin-top: 56px; display: flex; flex-direction: column; gap: 22px; }
.subsection > h2 { font-size: 2rem; }

/* Página de contacto */
.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); gap: 48px; align-items: start; }
.contact > * { min-width: 0; } /* que las columnas puedan encoger en el móvil */
.contact-form { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 700; }
.form-field input, .form-field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: var(--radius-m); padding: 12px 16px; min-height: 48px;
  width: 100%; /* sin esto, el textarea impone su ancho y se sale de la pantalla en el móvil */
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--violet); outline: none; }
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--error); }
.form-help { color: var(--muted); font-size: 0.9375rem; }
.form-error { color: var(--error); font-weight: 700; font-size: 0.9375rem; }
.contact-form .btn { align-self: flex-start; }
.contact-thanks { background: var(--teal-soft); border-radius: var(--radius-l); padding: 28px; font-size: 1.125rem; }
.contact-info { background: var(--violet-soft); border-radius: var(--radius-l); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.contact-info p { margin: 4px 0 0; font-size: 1.125rem; }
.contact-info a { color: var(--violet-deep); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* campo trampa */
@media (max-width: 800px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* Iglesias: listado */
.church-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.church-card {
  display: flex; flex-direction: column; border-radius: var(--radius-l); overflow: hidden;
  background: var(--violet-soft); text-decoration: none;
}
.church-card:hover .card-title { text-decoration: underline; text-underline-offset: 4px; }
.church-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
/* Iglesia sin foto: las hojas del logo, enteras, en la esquina de la franja */
.church-band { position: relative; overflow: hidden; background: var(--violet); }
.church-band-logo { position: absolute; right: 6%; bottom: 6%; width: 36%; height: auto; max-width: none; }
.church-band.tint-teal { background: var(--teal-deep); }
.church-band.tint-coral { background: var(--coral-deep); }
.church-band.tint-navy { background: var(--navy); }
.church-card .card-title { font-size: 1.6rem; }

/* Iglesias: ficha (recuadro de datos al lado del texto) */
.church-facts {
  position: sticky; top: 24px;
  background: var(--violet-soft); border-radius: var(--radius-l); padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
}
.church-facts-img { border-radius: var(--radius-m); width: 100%; }
.church-facts p { margin: 2px 0 0; }
.church-facts a { color: var(--violet-deep); font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 900px) { .church-facts { position: static; order: -1; } }

/* Para quien prefiere menos movimiento: sin transiciones */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
