/* ============================================================
   HERMANDAD · Web pública
   Colores corporativos: azul marino + blanco/crema + dorado
   ============================================================ */

:root {
    --gold:       #b8972b;
    --gold-light: #d4af50;
    --gold-pale:  #f5edcc;

    --navy:       #1a3560;
    --navy-dk:    #0f2040;

    --cream:      #f7f9fc;
    --cream-dk:   #eaf0f8;

    --ink:        #0d1b2e;
    --ink-soft:   #2c3e5a;
    --muted:      #6b7d96;
    --border:     #c5d3e8;
    --white:      #ffffff;

    --shadow-md: 0 4px 20px rgba(15, 32, 64, .13);

    --font-display: 'Cinzel', serif;
    --font-body:    'Crimson Pro', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body.web-body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--ink);
    background: var(--cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Cabecera ───────────────────────────────────────────────── */
.web-header {
    background: var(--navy-dk);
    border-bottom: 3px solid var(--gold);
    box-shadow: var(--shadow-md);
    overflow: visible;
    position: relative;
    z-index: 101;
}

.web-header-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2.5rem;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    overflow: visible;
}

.web-brand {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    min-width: 0;
    text-decoration: none;
}

.web-escudo {
    width: 180px;
    height: 180px;
    margin: 0 0 -70px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

.web-escudo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.5));
}

.web-brand-text {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 0;
}

.web-title--completo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.4;
    color: var(--gold-light);
    display: block;
    white-space: normal;
}

/* ── Barra de navegación ────────────────────────────────────── */
/* ── Barra de navegación Señorial ──────────────────────────── */
.web-navbar {
    background: linear-gradient(90deg, var(--navy-dk, #0f2040) 0%, #162c50 50%, var(--navy-dk, #0f2040) 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
    border-top: 1px solid var(--gold, #b8972b);
    border-bottom: 2px solid var(--gold, #b8972b);
}

.web-nav {
    max-width: 100%;
    margin: 0 auto;
    padding: .75rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.web-nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.web-nav a,
.web-dropdown-toggle {
    font-family: var(--font-display, 'Cinzel', serif);
    color: var(--gold-light, #d4af50);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    position: relative;
    padding: .35rem 0;
    transition: all .2s ease;
}

.web-nav a::after,
.web-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--gold-light, #d4af50), transparent);
    transition: all .25s ease;
    transform: translateX(-50%);
}

.web-nav a:hover,
.web-nav a.active,
.web-dropdown-toggle:hover,
.web-dropdown.active .web-dropdown-toggle {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(212,175,80,.6);
}

.web-nav a:hover::after,
.web-nav a.active::after,
.web-dropdown-toggle:hover::after,
.web-dropdown.active .web-dropdown-toggle::after {
    width: 100%;
}

.web-nav a.web-acceso {
    background: linear-gradient(180deg, rgba(26,53,96,.8) 0%, rgba(15,32,64,.95) 100%);
    border: 1px solid var(--gold, #b8972b);
    border-radius: 3px;
    padding: .45rem 1.25rem;
    flex-shrink: 0;
    color: var(--gold-light, #d4af50);
    box-shadow: 0 2px 8px rgba(0,0,0,.35), inset 0 1px 0 rgba(212,175,80,.25);
    letter-spacing: .1em;
}

.web-nav a.web-acceso::after {
    display: none;
}

.web-nav a.web-acceso:hover {
    background: linear-gradient(180deg, var(--gold-light, #d4af50) 0%, var(--gold, #b8972b) 100%);
    color: var(--navy-dk, #0f2040);
    box-shadow: 0 4px 15px rgba(212,175,80,.4);
    text-shadow: none;
    transform: translateY(-1px);
}

.web-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.web-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gold-light, #d4af50);
    border-radius: 1px;
}

/* ── Desplegable "Hermandad" Señorial ───────────────────────── */
.web-dropdown {
    position: relative;
}

.web-dropdown-toggle {
    background: none;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.web-dropdown-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: .5rem;
    min-width: 220px;
    background: linear-gradient(180deg, var(--navy-dk, #0f2040) 0%, #09152b 100%);
    border: 1px solid var(--gold, #b8972b);
    border-radius: 3px;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    padding: .6rem 0;
    z-index: 110;
}

/* Puente invisible para mantener el hover al mover el ratón entre el botón y el menú */
.web-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

.web-dropdown.open .web-dropdown-menu {
    display: flex;
}

.web-dropdown-menu a {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: .88rem;
    color: rgba(245,237,204,.9);
    padding: .65rem 1.4rem;
    white-space: nowrap;
    letter-spacing: .08em;
    border-bottom: 1px solid rgba(212,175,80,.12);
}

.web-dropdown-menu a:last-child {
    border-bottom: none;
}

.web-dropdown-menu a::after {
    display: none;
}

.web-dropdown-menu a:hover,
.web-dropdown-menu a.active {
    background: rgba(184,151,43,.18);
    color: var(--gold-light, #d4af50);
    padding-left: 1.65rem;
}

@media (min-width: 769px) {
    .web-dropdown-menu {
        display: flex;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-50%) translateY(6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

    .web-dropdown:hover .web-dropdown-menu,
    .web-dropdown:focus-within .web-dropdown-menu,
    .web-dropdown.open .web-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
}

/* ── Contenido principal ────────────────────────────────────── */
.web-main {
    flex: 1;
    max-width: 100%;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    width: 100%;
}

.hero {
    text-align: center;
    padding: 3.5rem 1rem 2.5rem;
    position: relative;
    max-width: 850px;
    margin: 0 auto 2.5rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy-dk, #0f2040);
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: .04em;
    margin-bottom: .6rem;
    line-height: 1.2;
}

.hero::after {
    content: '⚜';
    display: block;
    margin: .75rem auto 0;
    color: var(--gold, #b8972b);
    font-size: 1.15rem;
    line-height: 1;
}

.hero p {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--gold, #b8972b);
    font-size: 1.25rem;
    letter-spacing: .03em;
    max-width: 650px;
    margin: 0 auto;
}

/* ── Hero de portada ────────────────────────────────────────── */
.hero-inicio {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dk) 100%);
    text-align: center;
    padding: 4.5rem 2rem;
}

.hero-inicio-inner {
    max-width: 700px;
    margin: 0 auto;
}

.hero-inicio h1 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gold-light);
    font-size: 2.6rem;
    margin-bottom: .75rem;
}

.hero-inicio p {
    color: var(--cream-dk);
    font-size: 1.15rem;
    margin-bottom: 1.75rem;
}

.hero-btn {
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .95rem;
    padding: .75rem 2rem;
    border-radius: 4px;
    transition: background-color .15s ease, color .15s ease;
}

.hero-btn:hover {
    background: var(--gold);
    color: var(--navy-dk);
}

/* ── Secciones de la portada ───────────────────────────────────── */
.seccion-inicio {
    margin-bottom: 3rem;
}

.seccion-inicio h2 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.seccion-inicio-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.seccion-inicio-header h2 {
    margin-bottom: 0;
}

.ver-todas {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
}

.ver-todas:hover {
    color: var(--navy);
}

.tarjetas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.tarjeta {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 1.25rem 1.5rem;
}

.tarjeta-fecha {
    display: inline-block;
    color: var(--gold);
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .5rem;
}

.tarjeta h3 {
    font-family: var(--font-display);
    color: var(--navy);
    font-size: 1.15rem;
    line-height: 1.4;
}

.tarjeta-lugar {
    color: var(--muted);
    font-size: .9rem;
    margin-top: .4rem;
}

.aviso-vacio {
    color: var(--muted);
    font-style: italic;
}

/* ── Listado de noticias Señorial ──────────────────────────── */
.noticias-lista {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 860px;
    margin: 0 auto;
}

.noticia-tarjeta {
    background: #ffffff;
    border: 1px solid var(--border, #c5d3e8);
    border-top: 4px solid var(--gold, #b8972b);
    border-radius: 4px;
    box-shadow: 0 4px 22px rgba(15,32,64,.07);
    padding: 2.25rem 2.5rem;
    position: relative;
}

.noticia-tarjeta::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(184,151,43,.15);
    pointer-events: none;
    border-radius: 2px;
}

.noticia-tarjeta h2 {
    font-family: var(--font-display);
    color: var(--navy-dk, #0f2040);
    font-size: 1.6rem;
    margin: .4rem 0 1.25rem;
    letter-spacing: .02em;
    line-height: 1.35;
}

.noticia-contenido {
    color: var(--ink);
    line-height: 1.85;
    font-size: 1.05rem;
}

.noticia-contenido p {
    margin-bottom: 1.15rem;
}

.noticia-contenido p:last-child {
    margin-bottom: 0;
}

.noticia-contenido ul,
.noticia-contenido ol {
    margin: 0 0 1.25rem 1.75rem;
}

.noticia-contenido a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--gold);
}

.noticia-contenido a:hover {
    color: var(--gold);
}

.noticia-contenido img {
    max-width: 100%;
    border-radius: 3px;
    border: 1px solid rgba(184,151,43,.3);
    box-shadow: 0 4px 15px rgba(15,32,64,.1);
}

.noticia-contenido::after {
    content: "";
    display: table;
    clear: both;
}

/* ── Paginador Señorial ─────────────────────────────────────── */
.paginador {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.paginador a,
.paginador span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 .75rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    text-decoration: none;
    color: var(--navy-dk, #0f2040);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .92rem;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15,32,64,.05);
    transition: all .2s ease;
}

.paginador a:hover {
    border-color: var(--gold, #b8972b);
    color: var(--gold-light, #d4af50);
    background: var(--navy-dk, #0f2040);
}

.paginador .activo {
    background: linear-gradient(180deg, var(--gold-light, #d4af50) 0%, var(--gold, #b8972b) 100%);
    border-color: var(--gold);
    color: var(--navy-dk, #0f2040);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(212,175,80,.35);
}

.paginador .deshabilitado {
    opacity: .35;
    cursor: default;
    box-shadow: none;
}

.paginador .puntos {
    border: none;
    background: none;
    box-shadow: none;
    color: var(--muted);
}

/* ── Titulares Señorial ───────────────────────────────────────── */
.titular-seccion {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
    background: #ffffff;
    border: 1px solid var(--border, #c5d3e8);
    border-radius: 4px;
    padding: 2.25rem;
    box-shadow: 0 4px 20px rgba(15,32,64,.07);
    position: relative;
}

.titular-seccion::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(184,151,43,.22);
    pointer-events: none;
    border-radius: 2px;
}

.titular-seccion--inversa {
    flex-direction: row-reverse;
}

.titular-imagen {
    flex: 0 0 38%;
    position: relative;
}

.titular-imagen img {
    width: 100%;
    border-radius: 3px;
    border: 1px solid rgba(184,151,43,.4);
    box-shadow: 0 8px 25px rgba(15,32,64,.18);
    display: block;
}

.titular-texto {
    flex: 1;
}

.titular-texto h2 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy-dk, #0f2040);
    font-size: 1.85rem;
    margin-bottom: .4rem;
    letter-spacing: .03em;
}

.titular-texto h2::after {
    content: '';
    display: block;
    width: 45px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold, #b8972b), transparent);
    margin: .6rem 0 1rem;
}

.titular-texto p {
    color: var(--ink, #0d1b2e);
    line-height: 1.8;
    font-size: 1.05rem;
}

.titular-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: -1.5rem auto 3.5rem;
    max-width: 95%;
}

.titular-galeria-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(184,151,43,.3);
    box-shadow: 0 4px 12px rgba(15,32,64,.1);
    transition: transform .25s ease, border-color .25s ease;
}

.titular-galeria-item img:hover {
    transform: scale(1.04);
    border-color: var(--gold, #b8972b);
}

.titulares-secundarios {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(184,151,43,.3);
}

.titulares-secundarios h2 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy-dk, #0f2040);
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: .04em;
}

.titulares-secundarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.titular-secundario {
    background: #ffffff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold, #b8972b);
    border-radius: 4px;
    box-shadow: 0 4px 18px rgba(15,32,64,.06);
    padding: 1.6rem 1.5rem;
    position: relative;
}

.titular-secundario::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(184,151,43,.15);
    pointer-events: none;
    border-radius: 2px;
}

.titular-secundario h3 {
    font-family: var(--font-display);
    color: var(--navy, #1a3560);
    font-size: 1.2rem;
    margin-bottom: .6rem;
    font-weight: 700;
}

.titular-secundario p {
    color: var(--ink-soft);
    font-size: .98rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .titular-seccion,
    .titular-seccion--inversa {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1.25rem;
    }

    .titular-imagen {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* ── Historia Señorial ───────────────────────────────────────── */
.historia-seccion {
    max-width: 840px;
    margin: 0 auto 2.5rem;
    background: #ffffff;
    border: 1px solid var(--border, #c5d3e8);
    border-radius: 4px;
    padding: 2.25rem 2.5rem;
    box-shadow: 0 4px 20px rgba(15,32,64,.06);
    position: relative;
}

.historia-seccion::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(184,151,43,.18);
    pointer-events: none;
    border-radius: 2px;
}

.historia-seccion h2 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy-dk, #0f2040);
    font-size: 1.55rem;
    margin-bottom: .6rem;
    letter-spacing: .03em;
}

.historia-seccion h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold, #b8972b), transparent);
    margin: .5rem 0 .9rem;
}

.historia-seccion p {
    color: var(--ink);
    line-height: 1.85;
    font-size: 1.05rem;
}

/* ── Pergamino Saluda Señorial del Hermano Mayor ─────────────── */
.saluda-main-wrapper {
    background: radial-gradient(ellipse at 50% 25%, #0f2040 0%, #070d18 100%);
    padding-bottom: 3.5rem;
    position: relative;
}

.hero--pergamino h1 {
    color: var(--gold-light, #d4af50);
}

.hero--pergamino p {
    color: var(--cream, #f7f2e7);
}

.pergamino-contenedor {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

/* Efecto de hoja de pergamino envejecida */
.pergamino-hoja {
    position: relative;
    background: 
        radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 88% 85%, rgba(120, 80, 20, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, #fefcf6 0%, #f7eed7 48%, #ebd9b5 82%, #ceb485 100%);
    border: 2px solid #8e6c25;
    border-radius: 4px;
    padding: 4.5rem 4rem 4.5rem;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.2),
        0 20px 45px rgba(0, 0, 0, 0.5),
        0 35px 80px rgba(4, 9, 18, 0.6),
        inset 0 0 85px rgba(138, 92, 28, 0.35),
        inset 0 0 25px rgba(85, 52, 10, 0.45);
    color: #2b1c0e;
    overflow: hidden;
}

/* Doble marco decorativo con filigrana dorada */
.pergamino-hoja::before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 2px solid rgba(138, 92, 28, 0.5);
    outline: 1px dashed rgba(184, 151, 43, 0.6);
    outline-offset: -5px;
    pointer-events: none;
    border-radius: 2px;
}

/* Esquinas heráldicas doradas */
.pergamino-esquina {
    position: absolute;
    font-size: 1.45rem;
    color: #8e6c25;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
    z-index: 2;
}
.esquina--tl { top: 22px; left: 24px; }
.esquina--tr { top: 22px; right: 24px; }
.esquina--bl { bottom: 22px; left: 24px; }
.esquina--br { bottom: 22px; right: 24px; }

/* Marca de agua central con el escudo oficial */
.pergamino-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 440px;
    max-width: 80%;
    opacity: 0.055;
    pointer-events: none;
    user-select: none;
    filter: sepia(1) saturate(1.8) contrast(1.1);
    mix-blend-mode: multiply;
    z-index: 0;
}

/* Cabecera del Pergamino */
.pergamino-cabecera {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
}

.pergamino-escudo-caja {
    margin-bottom: 0.75rem;
}

.pergamino-escudo {
    width: 86px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(92, 58, 12, 0.35));
    transition: transform 0.3s ease;
}

.pergamino-lema-latino {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #6e1515; /* Carmesí */
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.pergamino-titulo-corporativo {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #523b1e;
    letter-spacing: 0.07em;
    max-width: 620px;
    margin: 0 auto 0.75rem;
    line-height: 1.45;
}

.pergamino-filigrana {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0.75rem auto 1rem;
    max-width: 480px;
}

.filigrana-linea {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #b8972b, transparent);
}

.filigrana-simbolo {
    color: #b8972b;
    font-size: 1.15rem;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.6);
}

.pergamino-titulo-carta {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0e1e38; /* Azul noche */
    letter-spacing: 0.04em;
    margin: 0.5rem 0 0;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
}

/* Cuerpo de texto con tipografía de época */
.pergamino-cuerpo {
    position: relative;
    z-index: 1;
    font-family: 'IM Fell English', 'Crimson Pro', Georgia, serif;
    font-size: 1.22rem;
    line-height: 1.95;
    color: #26190e;
    text-align: justify;
    hyphens: auto;
}

.pergamino-parrafo {
    margin-bottom: 1.4rem;
    text-indent: 1.8rem;
}

/* Letra Capitular Iluminada en el primer párrafo */
.pergamino-parrafo:first-of-type {
    text-indent: 0;
}

.pergamino-parrafo:first-of-type::first-letter {
    font-family: 'Cinzel Decorative', 'MedievalSharp', serif;
    font-size: 4.2rem;
    font-weight: 700;
    float: left;
    line-height: 0.82;
    margin-right: 0.85rem;
    margin-top: 0.2rem;
    margin-bottom: -0.2rem;
    color: #6e1515;
    text-shadow: 1px 1px 0 #d4af50, 2px 2px 2px rgba(92, 58, 12, 0.35);
    background: radial-gradient(circle, rgba(212, 175, 80, 0.22) 0%, transparent 70%);
    padding: 2px 4px;
}

/* Pie del Pergamino: Data y Firmas */
.pergamino-pie {
    position: relative;
    z-index: 1;
    margin-top: 3.2rem;
    padding-top: 2rem;
    border-top: 1px dashed rgba(184, 151, 43, 0.55);
}

.pergamino-data {
    font-family: 'IM Fell English', Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
    color: #5c4323;
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.pergamino-firmas-bloque {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

/* Firma institucional solemne acorde a la estética */
.pergamino-firma-institucional {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 290px;
}

.firma-cruz-cristo {
    font-size: 1.25rem;
    color: #8e6c25;
    margin-bottom: 0.2rem;
    line-height: 1;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
}

.firma-cargo {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: #6e1515; /* Carmesí sacramental */
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
}

.firma-espacio-rubrica {
    width: 220px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0.4rem 0;
}

.firma-linea-rubrica {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(142, 108, 37, 0.65), transparent);
}

.firma-nombre {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1.18rem;
    font-weight: 700;
    color: #0e1e38; /* Azul noche cofrade */
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
}

.firma-corporacion {
    font-family: 'IM Fell English', 'Crimson Pro', Georgia, serif;
    font-style: italic;
    font-size: 0.96rem;
    color: #5a4224;
    letter-spacing: 0.02em;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .pergamino-hoja {
        padding: 3rem 2rem 3rem;
    }
    .pergamino-cuerpo {
        font-size: 1.12rem;
        line-height: 1.85;
    }
    .pergamino-titulo-carta {
        font-size: 1.35rem;
    }
    .pergamino-firmas-bloque {
        justify-content: center;
    }
    .pergamino-firma-institucional {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pergamino-hoja {
        padding: 2.5rem 1.25rem 2.5rem;
    }
    .pergamino-parrafo:first-of-type::first-letter {
        font-size: 3.2rem;
        margin-right: 0.5rem;
    }
    .firma-nombre {
        font-size: 1.05rem;
    }
}

/* ── Junta de Gobierno Señorial ──────────────────────────────── */
.junta-contenedor {
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border, #c5d3e8);
    border-top: 4px solid var(--gold, #b8972b);
    border-radius: 4px;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 22px rgba(15,32,64,.08);
    position: relative;
}

.junta-contenedor::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(184,151,43,.18);
    pointer-events: none;
    border-radius: 2px;
}

.junta-grid {
    display: grid;
    gap: 0;
    margin-bottom: 0;
}

.junta-cargo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem .5rem;
    border-bottom: 1px dashed rgba(197,211,232,.8);
    transition: background-color .15s ease;
}

.junta-cargo:hover {
    background: rgba(247,249,252,.7);
}

.junta-cargo:last-child  { border-bottom: none; }

.junta-cargo dt {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy, #1a3560);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .82rem;
}

.junta-cargo dd {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--ink);
    font-size: 1.05rem;
}

.junta-vocales h2 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 1rem;
}

.junta-vocales-lista {
    list-style: none;
    color: var(--ink-soft);
}

.junta-vocales-lista li {
    padding: .45rem 0;
    border-bottom: 1px solid var(--border);
}

.junta-vocales-lista li:last-child { border-bottom: none; }

/* ── Sede Canónica Señorial ─────────────────────────────────── */
.sede-texto {
    max-width: 850px;
    margin: 0 auto 2.5rem;
    background: #ffffff;
    border: 1px solid var(--border, #c5d3e8);
    border-radius: 4px;
    padding: 2.25rem 2.5rem;
    box-shadow: 0 4px 20px rgba(15,32,64,.06);
    position: relative;
}

.sede-texto::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(184,151,43,.18);
    pointer-events: none;
    border-radius: 2px;
}

.sede-texto p {
    color: var(--ink);
    line-height: 1.85;
    font-size: 1.05rem;
    margin: 0;
}

.sede-foto {
    max-width: 1000px;
    margin: 0 auto 2.5rem;
    border: 1px solid rgba(184,151,43,.4);
    border-radius: 4px;
    padding: 6px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(15,32,64,.12);
}

.sede-foto img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

@media (max-width: 768px) {
    .sede-foto img { height: 230px; }
}

.sede-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.sede-datos {
    background: #ffffff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold, #b8972b);
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 4px 18px rgba(15,32,64,.06);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sede-datos::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(184,151,43,.15);
    pointer-events: none;
    border-radius: 2px;
}

.sede-datos h2 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy-dk, #0f2040);
    font-size: 1.45rem;
    margin-bottom: .6rem;
}

.sede-datos p {
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: .6rem;
    font-size: 1rem;
}

.sede-mapa {
    border: 1px solid rgba(184,151,43,.4);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15,32,64,.1);
    background: #ffffff;
}

.sede-mapa iframe {
    width: 100%;
    height: 100%;
    min-height: 260px;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .sede-info {
        grid-template-columns: 1fr;
    }
}

/* ── Galería Señorial ────────────────────────────────────────── */
.galeria-albumes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.galeria-album-card {
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15,32,64,.1);
    text-decoration: none;
    border: 1px solid var(--border, #c5d3e8);
    border-top: 3px solid var(--gold, #b8972b);
    background: #ffffff;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.galeria-album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(15,32,64,.18);
    border-color: var(--gold, #b8972b);
}

.galeria-album-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .35s ease;
}

.galeria-album-card:hover img {
    transform: scale(1.04);
}

.galeria-album-info {
    padding: 1.15rem 1.25rem;
    background: #ffffff;
    color: var(--ink);
    text-align: center;
    border-top: 1px solid rgba(184,151,43,.2);
}

.galeria-album-info h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-dk, #0f2040);
    margin-bottom: .3rem;
}

.galeria-album-info span {
    font-family: var(--font-body);
    font-size: .95rem;
    font-style: italic;
    color: var(--gold, #b8972b);
    font-weight: 600;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.25rem;
}

.galeria-foto {
    display: block;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(184,151,43,.3);
    box-shadow: 0 4px 15px rgba(15,32,64,.08);
    background: #ffffff;
    padding: 4px;
    transition: transform .25s ease, border-color .25s ease;
}

.galeria-foto img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 2px;
    transition: transform .35s ease;
}

.galeria-foto:hover {
    transform: translateY(-2px);
    border-color: var(--gold, #b8972b);
}

.galeria-foto:hover img {
    transform: scale(1.03);
}

.galeria-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(5, 12, 28, .95);
    cursor: zoom-out;
    backdrop-filter: blur(6px);
}

.galeria-lightbox.open {
    display: flex;
}

.galeria-lightbox img {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 3px;
    border: 1px solid rgba(212,175,80,.4);
    box-shadow: 0 15px 50px rgba(0,0,0,.7);
}

.galeria-lightbox-prev,
.galeria-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(212,175,80,.4);
    border-radius: 4px;
    background: rgba(15, 32, 64, .75);
    color: var(--gold-light, #d4af50);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    z-index: 201;
    backdrop-filter: blur(4px);
}

.galeria-lightbox-prev:hover,
.galeria-lightbox-next:hover {
    background: var(--navy-dk, #0f2040);
    border-color: var(--gold-light, #d4af50);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.galeria-lightbox-prev {
    left: 1.5rem;
}

.galeria-lightbox-next {
    right: 1.5rem;
}

.galeria-lightbox.galeria-lightbox--unica .galeria-lightbox-prev,
.galeria-lightbox.galeria-lightbox--unica .galeria-lightbox-next {
    display: none;
}

/* ── Contacto Señorial ──────────────────────────────────────── */
.contacto-grid {
    max-width: 680px;
    margin: 0 auto;
}

.contacto-form {
    background: #ffffff;
    border: 1px solid var(--border, #c5d3e8);
    border-top: 4px solid var(--gold, #b8972b);
    border-radius: 4px;
    padding: 2.5rem 3rem;
    box-shadow: 0 6px 25px rgba(15,32,64,.08);
    position: relative;
}

.contacto-form::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(184,151,43,.18);
    pointer-events: none;
    border-radius: 2px;
}

.form-contacto {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.form-campo {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.form-campo label {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--navy-dk, #0f2040);
}

.form-campo input,
.form-campo textarea {
    font-family: var(--font-body, 'Crimson Pro', Georgia, serif);
    font-size: 1.05rem;
    padding: .75rem 1rem;
    border: 1px solid var(--border, #c5d3e8);
    border-radius: 3px;
    background: #fbfcfe;
    color: var(--ink, #0d1b2e);
    box-shadow: inset 0 1px 3px rgba(0,0,0,.03);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.form-campo input {
    resize: none;
}

.form-campo textarea {
    resize: vertical;
    line-height: 1.6;
}

.form-campo input:focus,
.form-campo textarea:focus {
    outline: none;
    border-color: var(--gold, #b8972b);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(184,151,43,.15);
}

.form-campo--honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-btn {
    align-self: center;
    background: linear-gradient(180deg, var(--gold-light, #d4af50) 0%, var(--gold, #b8972b) 100%);
    color: var(--navy-dk, #0f2040);
    border: 1px solid #9e7f1f;
    font-family: var(--font-display, 'Cinzel', serif);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .95rem;
    padding: .85rem 2.6rem;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(184,151,43,.35);
    transition: all .2s ease;
    margin-top: .5rem;
}

.form-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(184,151,43,.45);
}

.form-aviso {
    border-radius: 3px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-body, 'Crimson Pro', Georgia, serif);
    font-size: 1.05rem;
    line-height: 1.6;
}

.form-aviso--ok {
    background: #fdfbf5;
    border: 1px solid var(--gold, #b8972b);
    border-left: 4px solid var(--gold, #b8972b);
    color: var(--navy-dk, #0f2040);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(184,151,43,.12);
}

.form-aviso--error {
    background: #fef7f7;
    border: 1px solid #d98c8c;
    border-left: 4px solid #b83a3a;
    color: #721c24;
    box-shadow: 0 2px 10px rgba(184,58,58,.08);
}

.form-aviso--error ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: .35rem 0 0;
}

.form-campo--checkbox {
    margin-top: .5rem;
    margin-bottom: .75rem;
}

.form-campo--checkbox label {
    font-weight: 400;
    color: var(--ink);
    line-height: 1.5;
}

/* ── Páginas Legales (Aviso Legal, Privacidad, Cookies) ──────── */
.legal-seccion {
    max-width: 880px;
    margin: 0 auto 3rem;
    background: #ffffff;
    border: 1px solid var(--border, #c5d3e8);
    border-radius: 4px;
    padding: 2.5rem 3rem;
    box-shadow: 0 4px 20px rgba(15,32,64,.06);
    position: relative;
}

.legal-seccion::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(184,151,43,.18);
    pointer-events: none;
    border-radius: 2px;
}

.legal-seccion h2 {
    font-family: var(--font-display, 'Cinzel', serif);
    font-weight: 700;
    color: var(--navy-dk, #0f2040);
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: .6rem;
    letter-spacing: .02em;
}

.legal-seccion h2:first-of-type {
    margin-top: 0;
}

.legal-seccion h2::after {
    content: '';
    display: block;
    width: 45px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold, #b8972b), transparent);
    margin: .5rem 0 .9rem;
}

.legal-seccion h3 {
    font-family: var(--font-display, 'Cinzel', serif);
    font-weight: 600;
    color: var(--navy, #1a3560);
    font-size: 1.1rem;
    margin-top: 1.4rem;
    margin-bottom: .4rem;
}

.legal-seccion p {
    color: var(--ink, #1f2d3d);
    line-height: 1.8;
    font-size: 1.02rem;
    margin-bottom: 1rem;
}

.legal-seccion ul {
    margin: 0 0 1.25rem 1.5rem;
    color: var(--ink, #1f2d3d);
    line-height: 1.75;
}

.legal-seccion li {
    margin-bottom: .5rem;
}

.legal-seccion blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    background: #fbf9f4;
    border-left: 3px solid var(--gold, #b8972b);
    border-radius: 3px;
    font-family: var(--font-body, 'Crimson Pro', Georgia, serif);
    font-style: italic;
    color: var(--navy-dk, #0f2040);
}

.legal-seccion a {
    color: var(--navy, #1a3560);
    font-weight: 600;
    text-decoration: underline;
}

.legal-seccion a:hover {
    color: var(--gold, #b8972b);
}

.legal-tabla {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .92rem;
}

.legal-tabla th,
.legal-tabla td {
    padding: 10px 12px;
    border: 1px solid var(--border, #c5d3e8);
    text-align: left;
    vertical-align: top;
}

.legal-tabla th {
    background: var(--navy-dk, #0f2040);
    color: var(--gold-light, #d4af50);
    font-family: var(--font-display, 'Cinzel', serif);
    font-weight: 600;
    letter-spacing: .03em;
}

.legal-tabla tr:nth-child(even) td {
    background: #f8fafc;
}

.legal-tabla code {
    background: #eef2f7;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: .88rem;
    color: var(--navy-dk, #0f2040);
}

@media (max-width: 600px) {
    .contacto-form {
        padding: 1.75rem 1.25rem;
    }
    .legal-seccion {
        padding: 1.5rem 1.25rem;
    }
    .legal-tabla {
        display: block;
        overflow-x: auto;
    }
}

/* ── Pie Señorial ────────────────────────────────────────────── */
.web-footer {
    background: linear-gradient(180deg, #09152b 0%, var(--navy-dk, #0f2040) 100%);
    color: var(--cream-dk, #eaf0f8);
    position: relative;
    border-top: 3px solid var(--gold, #b8972b);
    padding: 0 1.5rem 1.75rem;
    box-shadow: 0 -10px 30px rgba(0,0,0,.25);
}

.web-footer-remate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 1.25rem 0 1.5rem;
}

.footer-remate-linea {
    flex: 1;
    max-width: 250px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,80,.6), transparent);
}

.footer-remate-emblema {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--gold-light, #d4af50);
}

.footer-remate-cruz {
    font-size: .95rem;
    opacity: .75;
}

.footer-remate-floron {
    font-size: 1.25rem;
    line-height: 1;
}

.web-footer-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem 2.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2.5rem;
    border-bottom: 1px solid rgba(212,175,80,.2);
}

.footer-col-header {
    margin-bottom: 1.15rem;
}

.footer-col-header h3 {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold-light, #d4af50);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 .4rem;
}

.footer-header-line {
    display: block;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold, #b8972b), transparent);
}

.web-footer-col p {
    font-size: .92rem;
    line-height: 1.65;
    color: rgba(234, 240, 248, .85);
    margin-bottom: .85rem;
}

.footer-lugar-titulo {
    color: var(--gold-pale, #f5edcc);
    font-weight: 600;
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: .92rem;
    letter-spacing: .03em;
}

.footer-dir {
    font-size: .88rem;
    color: rgba(234, 240, 248, .7);
}

.footer-contacto-enlaces {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-top: .75rem;
    font-size: .92rem;
}

.footer-contacto-enlaces a {
    color: var(--gold-light, #d4af50);
    text-decoration: none;
    transition: color .2s ease;
}

.footer-contacto-enlaces a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-sub-info {
    font-size: .88rem;
    color: rgba(234, 240, 248, .75);
    font-style: italic;
    margin-bottom: 1rem;
}

.web-footer-redes {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.web-red-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(26,53,96,.55);
    border: 1.5px solid var(--gold, #b8972b);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,.35), inset 0 1px 0 rgba(212,175,80,.25);
    transition: all .25s ease;
}

.web-red-icono .icono-red {
    width: 18px;
    height: 18px;
    fill: var(--gold-light, #d4af50);
    transition: fill .2s ease, transform .2s ease;
}

.web-red-icono:hover {
    background: linear-gradient(180deg, var(--gold-light, #d4af50) 0%, var(--gold, #b8972b) 100%);
    border-color: var(--gold-light, #d4af50);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(212,175,80,.35);
}

.web-red-icono:hover .icono-red {
    fill: var(--navy-dk, #0f2040);
    transform: scale(1.1);
}

.footer-horario-box {
    background: rgba(10,24,52,.6);
    border: 1px solid rgba(212,175,80,.25);
    border-left: 3px solid var(--gold, #b8972b);
    border-radius: 3px;
    padding: .85rem 1rem;
}

.footer-horario-badge {
    display: block;
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-light, #d4af50);
    font-weight: 600;
    margin-bottom: .45rem;
}

.footer-horario-box p {
    margin: 0;
    font-size: .9rem;
    color: #fff;
}

.footer-mapa-wrapper {
    border: 1px solid rgba(212,175,80,.35);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,.3);
}

.footer-mapa-wrapper iframe {
    width: 100%;
    height: 160px;
    border: 0;
    display: block;
}

.footer-mapa-enlace {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .6rem;
    font-size: .84rem;
    color: var(--gold-light, #d4af50);
    text-decoration: none;
    transition: color .2s ease;
}

.footer-mapa-enlace:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Cierre devocional inferior */
.web-footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
}

.footer-devocion-linea {
    font-family: var(--font-body, 'Crimson Pro', Georgia, serif);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--gold-light, #d4af50);
    letter-spacing: .12em;
    margin-bottom: .4rem;
}

.web-footer-copy {
    font-size: .82rem;
    color: rgba(234, 240, 248, .55);
    font-family: var(--font-body, 'Crimson Pro', Georgia, serif);
    margin: 0;
}

.web-footer-legal-links {
    margin-top: .6rem;
    font-size: .82rem;
    color: rgba(234, 240, 248, .5);
    font-family: var(--font-body, 'Crimson Pro', Georgia, serif);
}

.web-footer-legal-links a {
    color: var(--gold-light, #d4af50);
    text-decoration: none;
    transition: color .2s ease;
}

.web-footer-legal-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ── Responsive: tablet / móvil grande (≤768px) ────────────────── */
@media (max-width: 768px) {
    /* Header */
    .web-header-inner {
        flex-direction: column;
        height: auto;
        padding: 1rem 1.25rem;
        gap: .5rem;
    }

    .web-brand {
        flex-direction: column;
        gap: .5rem;
    }

    .web-escudo {
        width: 90px;
        height: 90px;
        margin: 0;
    }

    .web-brand-text {
        align-items: center;
    }

    .web-title--completo {
        font-size: .9rem;
        line-height: 1.3;
        text-align: center;
    }

    /* Barra de navegación */
    .web-nav {
        padding: .65rem 1.25rem;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .web-nav-toggle {
        display: flex;
    }

    .web-nav-links {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        order: 3;
    }

    .web-nav-links.open {
        display: flex;
    }

    .web-nav-links a {
        width: 100%;
        padding: .65rem 0;
        border-bottom: 1px solid rgba(212,175,80,.15);
    }

    .web-dropdown {
        width: 100%;
    }

    .web-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: .65rem 0;
        border-bottom: 1px solid rgba(212,175,80,.15);
        font-size: .95rem;
    }

    .web-dropdown-menu {
        display: none;
        position: static;
        transform: none;
        min-width: 0;
        margin: 0;
        padding: 0;
        background: rgba(15, 32, 64, .5);
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
    }

    .web-dropdown-menu::before {
        display: none;
    }

    .web-dropdown.open .web-dropdown-menu {
        display: flex;
    }

    .web-dropdown-menu a {
        width: 100%;
        padding: .65rem 0 .65rem 1.25rem;
        border-bottom: 1px solid rgba(212,175,80,.1);
    }

    /* Contenido principal */
    .web-main {
        padding: 2rem 1.25rem;
    }

    .hero {
        padding: 2.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero-inicio {
        padding: 3rem 1.25rem;
    }

    .hero-inicio h1 {
        font-size: 2rem;
    }

    /* Pie de página */
    .web-footer-inner {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        padding: 0 1.25rem 2rem;
        gap: 1.5rem;
    }

    .web-footer {
        padding: 2.5rem 1rem 1.5rem;
    }
}

/* ── Responsive: móvil pequeño (≤480px) ────────────────────────── */
@media (max-width: 480px) {
    .web-header-inner {
        gap: .4rem;
    }

    .web-escudo {
        width: 70px;
        height: 70px;
        margin: 0;
    }

    .web-title--completo {
        font-size: .75rem;
    }

    .web-nav a {
        font-size: .9rem;
    }

    .hero h1,
    .hero-inicio h1 {
        font-size: 1.6rem;
    }

    .seccion-inicio h2,
    .titulares-secundarios h2 {
        font-size: 1.3rem;
    }

    .web-footer-inner {
        grid-template-columns: 1fr;
    }
}
