:root {
    --site-primary: #061b35;
    --site-primary-dark: #020b18;
    --site-primary-light: #0b315d;
    --site-gold: #f6ad19;
    --site-gold-light: #ffc44d;
    --site-light: #ffffff;
    --site-text: #15243a;
    --site-muted: #64748b;
    --site-bg: #f7f8fa;
    --site-border: #e2e8f0;
    --site-container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--site-text);
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.site-container {
    width: min(calc(100% - 40px), var(--site-container));
    margin-inline: auto;
}

/* =====================================================
   HEADER
===================================================== */

.site-header {
    min-height: 84px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
    color: #ffffff;
    background:
        linear-gradient(
            90deg,
            var(--site-primary-dark),
            var(--site-primary)
        );
    box-shadow: 0 8px 30px rgba(0, 0, 0, .16);
}

.header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.site-brand {
    min-width: 245px;
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}

.site-brand img {
    width: 66px;
    height: 66px;
    object-fit: contain;
}

.site-brand-placeholder {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--site-primary);
    background: var(--site-gold);
    font-size: 25px;
    font-weight: 900;
}

.site-brand-text {
    display: block;
    max-width: 235px;
}

.site-brand-text strong,
.site-brand-text small {
    display: block;
}

.site-brand-text strong {
    font-size: 27px;
    letter-spacing: .5px;
    line-height: 1;
}

.site-brand-text small {
    margin-top: 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 5px;
}

.site-navigation > a {
    min-height: 84px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    position: relative;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color .2s ease;
}

.site-navigation > a:not(.header-live-button)::after {
    content: "";
    height: 2px;
    position: absolute;
    right: 13px;
    bottom: 19px;
    left: 13px;
    background: var(--site-gold);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.site-navigation > a:hover,
.site-navigation > a.active {
    color: var(--site-gold);
}

.site-navigation > a:hover::after,
.site-navigation > a.active::after {
    transform: scaleX(1);
}

.site-navigation .header-live-button {
    min-height: 43px;
    margin-left: 10px;
    padding: 10px 17px;
    gap: 8px;
    border-radius: 8px;
    color: var(--site-primary);
    background: var(--site-gold);
}

.site-navigation .header-live-button:hover {
    color: var(--site-primary);
    background: var(--site-gold-light);
}

.mobile-menu-button {
    width: 46px;
    height: 46px;
    display: none;
    place-items: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255,255,255,.08);
    font-size: 21px;
}

/* =====================================================
   HERO SLIDER SOLO IMAGEN 1920x700
===================================================== */

.hero-slider.image-only-slider {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1920 / 700;
    position: relative;
    overflow: hidden;
    background: var(--site-primary-dark);
}

.hero-slider.image-only-slider .hero-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slider.image-only-slider .hero-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: none;
    transition: opacity .8s ease, visibility .8s ease;
}

.hero-slider.image-only-slider .hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.hero-slider.image-only-slider .hero-slide-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    object-position: center;
}

.hero-slider.image-only-slider .hero-arrow {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    z-index: 20;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    cursor: pointer;
    color: #ffffff;
    background: rgba(2, 11, 24, .62);
    transform: translateY(-50%);
    transition: background .2s ease, color .2s ease;
}

.hero-slider.image-only-slider .hero-arrow:hover {
    color: var(--site-primary);
    background: var(--site-gold);
}

.hero-slider.image-only-slider .hero-arrow-prev {
    left: 22px;
}

.hero-slider.image-only-slider .hero-arrow-next {
    right: 22px;
}

.hero-slider.image-only-slider .hero-dots {
    display: flex;
    gap: 8px;
    position: absolute;
    bottom: 18px;
    left: 50%;
    z-index: 20;
    transform: translateX(-50%);
}

.hero-slider.image-only-slider .hero-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255,255,255,.55);
    transition: .2s ease;
}

.hero-slider.image-only-slider .hero-dots button.active {
    width: 30px;
    border-radius: 30px;
    border-color: var(--site-gold);
    background: var(--site-gold);
}

/* =====================================================
   HORARIOS Y BIENVENIDA
===================================================== */

.welcome-services {
    padding: 55px 0;
    background:
        radial-gradient(
            circle at 95% 10%,
            rgba(246,173,25,.08),
            transparent 26%
        ),
        #ffffff;
}

.welcome-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.home-section-heading span {
    display: block;
    margin-bottom: 7px;
    color: #aa7100;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.home-section-heading h2 {
    margin: 0 0 22px;
    color: var(--site-primary);
    font-size: 28px;
    text-transform: uppercase;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.schedule-card {
    min-height: 190px;
    padding: 23px 13px;
    text-align: center;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15,35,58,.06);
}

.schedule-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--site-gold);
    background: var(--site-primary);
    font-size: 20px;
}

.schedule-card span,
.schedule-card strong,
.schedule-card small {
    display: block;
}

.schedule-card span {
    margin-bottom: 7px;
    color: var(--site-primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.schedule-card strong {
    margin-bottom: 8px;
    color: var(--site-primary);
    font-size: 23px;
}

.schedule-card small {
    color: var(--site-muted);
    font-size: 10px;
    line-height: 1.4;
}

.schedule-calendar-button {
    min-height: 44px;
    margin: 18px auto 0;
    padding: 10px 19px;
    display: table;
    border-radius: 7px;
    color: #ffffff;
    background: var(--site-primary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.schedule-calendar-button i {
    margin-right: 7px;
}

.welcome-message {
    padding: 20px 0;
}

.welcome-script {
    display: block;
    margin-bottom: 4px;
    color: var(--site-gold);
    font-family: Georgia, serif;
    font-size: 28px;
    font-style: italic;
}

.welcome-message h2 {
    margin: 0 0 20px;
    color: var(--site-primary);
    font-size: clamp(31px, 4vw, 45px);
    line-height: 1.08;
    text-transform: uppercase;
}

.welcome-message h2 strong {
    color: var(--site-gold);
}

.welcome-message p {
    max-width: 630px;
    margin: 0 0 23px;
    color: #475569;
    font-size: 15px;
    line-height: 1.85;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--site-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.text-link:hover {
    color: #a66c00;
}

/* =====================================================
   ACCESOS DESTACADOS
===================================================== */

.home-feature-strip {
    padding: 36px 0;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 30% 0,
            rgba(246,173,25,.12),
            transparent 30%
        ),
        var(--site-primary);
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.home-feature-card {
    min-height: 105px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 13px;
    background: rgba(255,255,255,.05);
    text-decoration: none;
    transition: .2s ease;
}

.home-feature-card:hover {
    border-color: rgba(246,173,25,.6);
    background: rgba(255,255,255,.09);
    transform: translateY(-3px);
}

.home-feature-card > i {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--site-primary);
    background: var(--site-gold);
    font-size: 18px;
}

.home-feature-card strong,
.home-feature-card span {
    display: block;
}

.home-feature-card strong {
    margin-bottom: 5px;
    font-size: 14px;
}

.home-feature-card span {
    color: #bdc9d8;
    font-size: 10px;
    line-height: 1.4;
}

/* =====================================================
   CALLOUT FOOTER
===================================================== */

.footer-callout {
    padding: 25px 0;
    color: #ffffff;
    background:
        linear-gradient(
            90deg,
            #08264a,
            var(--site-primary)
        );
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-callout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.footer-callout-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-callout-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border: 1px solid var(--site-gold);
    border-radius: 50%;
    color: var(--site-gold);
    font-size: 21px;
}

.footer-callout-item > div:nth-child(2) {
    flex: 1;
}

.footer-callout-item strong,
.footer-callout-item span {
    display: block;
}

.footer-callout-item strong {
    margin-bottom: 5px;
    font-size: 15px;
    text-transform: uppercase;
}

.footer-callout-item span {
    color: #c4d0df;
    font-size: 11px;
}

.footer-callout-item > a {
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--site-primary);
    background: var(--site-gold);
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    color: #ffffff;
    background: var(--site-primary-dark);
}

.footer-grid {
    padding-top: 45px;
    padding-bottom: 38px;
    display: grid;
    grid-template-columns: 1.3fr .7fr 1fr;
    gap: 55px;
}

.footer-brand-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.footer-brand-heading img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.footer-brand-heading span,
.footer-brand-heading strong {
    display: block;
}

.footer-brand-heading span {
    margin-bottom: 4px;
    color: #b9c5d4;
    font-size: 10px;
    text-transform: uppercase;
}

.footer-brand-heading strong {
    font-size: 22px;
}

.footer-brand p {
    max-width: 400px;
    margin: 17px 0;
    color: #b2c0d1;
    font-size: 11px;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 9px;
}

.footer-socials a {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    text-decoration: none;
    transition: .2s ease;
}

.footer-socials a:hover {
    border-color: var(--site-gold);
    color: var(--site-primary);
    background: var(--site-gold);
}

.footer-column h3 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
}

.footer-column > a {
    margin-bottom: 10px;
    display: block;
    color: #c0ccda;
    text-decoration: none;
    font-size: 11px;
}

.footer-column > a:hover {
    color: var(--site-gold);
}

.footer-contact p {
    margin: 0 0 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #c0ccda;
    font-size: 11px;
    line-height: 1.55;
}

.footer-contact p i {
    width: 18px;
    color: var(--site-gold);
    font-size: 14px;
    text-align: center;
}

.footer-contact p a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom {
    padding: 17px 0;
    color: #8596aa;
    border-top: 1px solid rgba(255,255,255,.09);
    font-size: 10px;
    text-align: center;
}

.floating-whatsapp {
    width: 61px;
    height: 61px;
    display: grid;
    place-items: center;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    border: 4px solid rgba(255,255,255,.82);
    border-radius: 50%;
    color: #ffffff;
    background: #25d366;
    text-decoration: none;
    font-size: 31px;
    box-shadow: 0 12px 28px rgba(0,0,0,.25);
    transition: .2s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-4px) scale(1.03);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1120px) {
    .mobile-menu-button {
        display: grid;
    }

    .site-navigation {
        padding: 20px;
        display: none;
        position: absolute;
        top: 84px;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--site-primary-dark);
        box-shadow: 0 20px 35px rgba(0,0,0,.25);
    }

    .site-navigation.open {
        display: flex;
    }

    .site-navigation > a {
        min-height: 46px;
        padding: 10px 14px;
        border-radius: 7px;
    }

    .site-navigation > a:not(.header-live-button)::after {
        display: none;
    }

    .site-navigation > a.active {
        background: rgba(255,255,255,.07);
    }

    .site-navigation .header-live-button {
        margin: 8px 0 0;
    }
}

@media (max-width: 850px) {
    .welcome-services-grid {
        grid-template-columns: 1fr;
    }

    .home-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .site-container {
        width: min(calc(100% - 28px), var(--site-container));
    }

    .site-header,
    .header-inner {
        min-height: 75px;
    }

    .site-brand {
        min-width: 0;
    }

    .site-brand img {
        width: 52px;
        height: 52px;
    }

    .site-brand-text strong {
        font-size: 21px;
    }

    .site-brand-text small {
        max-width: 190px;
        font-size: 8px;
    }

    .site-navigation {
        top: 75px;
    }

    .hero-slider.image-only-slider .hero-arrow {
        display: none;
    }

    .hero-slider.image-only-slider .hero-dots {
        bottom: 7px;
        gap: 6px;
    }

    .hero-slider.image-only-slider .hero-dots button {
        width: 7px;
        height: 7px;
    }

    .hero-slider.image-only-slider .hero-dots button.active {
        width: 20px;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .schedule-card {
        min-height: 170px;
    }

    .home-feature-grid,
    .footer-callout-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-callout-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .footer-callout-item > a {
        margin-left: 66px;
    }
}

@media (max-width: 420px) {
    .site-brand-text small {
        display: none;
    }

    .footer-callout-item > a {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }

    .floating-whatsapp {
        width: 55px;
        height: 55px;
        right: 16px;
        bottom: 16px;
        font-size: 27px;
    }
}
/* =====================================================
   BIENVENIDA Y FOTO PASTORAL INTEGRADA
===================================================== */

.welcome-pastor-panel {
    min-height: 310px;
    padding-left: 38px;
    display: grid;
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
    align-items: stretch;
    overflow: hidden;
    position: relative;

    /* Importante: sin caja de fondo */
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.welcome-pastor-copy {
    padding: 42px 0 30px;
    position: relative;
    z-index: 2;
    background: transparent !important;
}

.welcome-pastor-copy h2 {
    margin: 0 0 18px;
    color: var(--site-primary);
    font-size: clamp(23px, 2.2vw, 31px);
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.welcome-pastor-copy h2 strong {
    display: inline;
    color: var(--site-gold);
}

.welcome-pastor-copy p {
    max-width: 430px;
    margin: 0 0 20px;
    color: #475569;
    font-size: 12px;
    line-height: 1.8;
}

.welcome-pastor-position {
    display: block;
    margin-bottom: 4px;
    color: var(--site-gold);
    font-family: Georgia, serif;
    font-size: 23px;
    font-style: italic;
}

.welcome-pastor-name {
    display: block;
    color: var(--site-primary);
    font-size: 20px;
}

/* FOTO SIN CAJA, SOMBRA NI DEGRADADO */

.welcome-pastor-image {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: visible;
    position: relative;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.welcome-pastor-image::before,
.welcome-pastor-image::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

.welcome-pastor-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 330px;
    display: block;
    object-fit: contain;
    object-position: right bottom;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    transform: translateY(1px);
}

/* Toda la sección usa el mismo fondo */

.welcome-services,
.welcome-services-grid,
.service-schedule {
    background: #ffffff !important;
}

/* TABLETA */

@media (max-width: 950px) {

    .welcome-pastor-panel {
        padding-left: 25px;
        grid-template-columns: minmax(0, 56%) minmax(0, 44%);
    }

    .welcome-pastor-copy h2 {
        font-size: 25px;
    }
}

/* CELULAR */

@media (max-width: 650px) {

    .welcome-pastor-panel {
        padding-left: 0;
        grid-template-columns: 1fr;
    }

    .welcome-pastor-copy {
        padding: 32px 22px 15px;
        text-align: center;
    }

    .welcome-pastor-copy h2 {
        white-space: normal;
        font-size: 27px;
    }

    .welcome-pastor-copy p {
        margin-inline: auto;
    }

    .welcome-pastor-image {
        min-height: 260px;
        justify-content: center;
    }

    .welcome-pastor-image img {
        max-height: 290px;
        object-position: center bottom;
    }
}
/* Mantener BIENVENIDOS A MINFAV en una sola línea */

.welcome-pastor-panel {
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
}

.welcome-pastor-copy h2 {
    white-space: nowrap;
    font-size: clamp(23px, 2.2vw, 31px);
    letter-spacing: -0.5px;
}

.welcome-pastor-copy h2 strong {
    display: inline;
}

/* En celulares sí permitimos dos líneas para evitar desbordamiento */

@media (max-width: 650px) {

    .welcome-pastor-copy h2 {
        white-space: normal;
        font-size: 28px;
    }
}
/* Quitar fondo gris detrás de la foto pastoral */

.welcome-pastor-panel {
    background: #ffffff !important;
}

.welcome-pastor-image {
    background: transparent !important;
}

.welcome-pastor-image::before {
    display: none !important;
}
.welcome-pastor-image img {
    filter: none;
}
/* =====================================================
   BIENVENIDA PASTORAL COMO LA MAQUETA
===================================================== */

.welcome-pastor-panel {
    min-height: 310px;
    padding-left: 38px;
    display: grid;
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
    align-items: stretch;
    overflow: hidden;
    background: #ffffff !important;
}

.welcome-pastor-copy {
    padding: 42px 0 30px;
    position: relative;
    z-index: 2;
}

.welcome-pastor-copy h2 {
    margin: 0 0 18px;
    color: var(--site-primary);
    font-size: clamp(23px, 2.2vw, 31px);
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.welcome-pastor-copy h2 strong {
    display: inline;
    color: var(--site-gold);
}

.welcome-pastor-copy p {
    max-width: 430px;
    margin: 0 0 20px;
    color: #475569;
    font-size: 12px;
    line-height: 1.8;
}

.welcome-pastor-position {
    display: block;
    margin-bottom: 4px;
    color: var(--site-gold);
    font-family: Georgia, serif;
    font-size: 23px;
    font-style: italic;
}

.welcome-pastor-name {
    display: block;
    color: var(--site-primary);
    font-size: 20px;
}

/* Fotografía sin cuadro ni sombra gris */

.welcome-pastor-image {
    min-height: 310px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
    background: transparent !important;
}

.welcome-pastor-image::before,
.welcome-pastor-image::after {
    display: none !important;
    content: none !important;
}

.welcome-pastor-image img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    display: block;
    object-fit: contain;
    object-position: right bottom;
    background: transparent;
    filter: none;
}

/* Tabletas */

@media (max-width: 950px) {

    .welcome-pastor-panel {
        padding-left: 25px;
        grid-template-columns: minmax(0, 56%) minmax(0, 44%);
    }

    .welcome-pastor-copy h2 {
        font-size: 25px;
    }
}

/* Celulares */

@media (max-width: 650px) {

    .welcome-pastor-panel {
        padding-left: 0;
        grid-template-columns: 1fr;
    }

    .welcome-pastor-copy {
        padding: 32px 22px 12px;
        text-align: center;
    }

    .welcome-pastor-copy h2 {
        white-space: normal;
        font-size: 27px;
    }

    .welcome-pastor-copy p {
        margin-inline: auto;
    }

    .welcome-pastor-image {
        min-height: 260px;
        justify-content: center;
    }

    .welcome-pastor-image img {
        max-height: 290px;
        object-position: center bottom;
    }
}
/* =====================================================
   NUESTROS MINISTERIOS
===================================================== */

.home-ministries {
    padding: 28px 0 38px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.home-ministries-heading {
    margin-bottom: 22px;
    text-align: center;
}

.home-ministries-heading h2 {
    margin: 0;
    color: var(--site-primary);
    font-size: 25px;
    text-transform: uppercase;
}

.home-ministries-heading h2 strong {
    color: var(--site-gold);
}

.home-ministries-heading > span {
    width: 38px;
    height: 3px;
    margin: 8px auto 0;
    display: block;
    border-radius: 5px;
    background: var(--site-gold);
}

.home-ministries-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.home-ministry-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 7px;
    background: var(--site-primary);
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(4, 24, 47, .11);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.home-ministry-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(4, 24, 47, .20);
}

.home-ministry-image {
    height: 145px;
    overflow: hidden;
    background: #dbe3ec;
}

.home-ministry-image {
    height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #e8edf3;
}

.home-ministry-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain !important;
    object-position: center center;
    transition: transform .4s ease;
}

.home-ministry-card:hover .home-ministry-image img {
    transform: scale(1.02);
}

.home-ministry-content {
    min-height: 145px;
    padding: 44px 13px 18px;
    position: relative;
    color: #ffffff;
    text-align: center;
    background:
        linear-gradient(
            180deg,
            #0a2b51,
            var(--site-primary)
        );
}

.home-ministry-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    position: absolute;
    top: -28px;
    left: 50%;
    border: 4px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    font-size: 21px;
    transform: translateX(-50%);
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

.home-ministry-content h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
}

.home-ministry-content p {
    margin: 0;
    color: #d7e1ec;
    font-size: 10px;
    line-height: 1.55;
}

.ministries-empty {
    padding: 35px;
    color: var(--site-muted);
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    text-align: center;
}

/* TABLETAS */

@media (max-width: 1100px) {

    .home-ministries-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-ministry-image {
        height: 180px;
    }
}

/* CELULARES */

@media (max-width: 650px) {

    .home-ministries {
        padding: 32px 0;
    }

    .home-ministries-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .home-ministry-image {
        height: 135px;
    }

    .home-ministry-content {
        min-height: 140px;
        padding-inline: 9px;
    }

    .home-ministry-content h3 {
        font-size: 12px;
    }
}

@media (max-width: 400px) {

    .home-ministries-grid {
        grid-template-columns: 1fr;
    }

    .home-ministry-image {
        height: 210px;
    }
}
/* Ajuste de altura de las tarjetas de ministerios */

.home-ministry-content {
    min-height: 125px;
    padding: 42px 12px 15px;
}

.home-ministry-image {
    height: 145px;
}

.home-ministry-content h3 {
    margin-bottom: 7px;
}

.home-ministry-content p {
    line-height: 1.4;
}
/* =====================================================
   MOSTRAR COMPLETA LA FOTO DE LOS PASTORES
===================================================== */

.welcome-pastor-panel {
    overflow: visible !important;
}

.welcome-pastor-image {
    height: 310px;
    min-height: 310px;
    overflow: visible !important;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.welcome-pastor-image img {
    width: auto !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: right bottom !important;
    transform: none !important;
}
/* =====================================================
   EVENTOS, PREDICACIONES Y GALERÍA
===================================================== */

.home-content-columns {
    padding: 32px 0 38px;
    background: #ffffff;
}

.home-content-columns-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #e5e7eb;
}

.home-column-block {
    min-width: 0;
    padding: 25px 20px 0;
    border-right: 1px solid #e5e7eb;
}

.home-column-block:first-child {
    padding-left: 0;
}

.home-column-block:last-child {
    padding-right: 0;
    border-right: 0;
}

.home-column-block > h2 {
    margin: 0 0 18px;
    color: var(--site-primary);
    font-size: 20px;
    text-transform: uppercase;
}

.home-events-list {
    display: grid;
    gap: 10px;
}

.home-event-item {
    min-height: 82px;
    display: grid;
    grid-template-columns: 53px minmax(0, 1fr) 82px;
    align-items: center;
    gap: 10px;
}

.home-event-date {
    width: 53px;
    height: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #ffffff;
    background: var(--site-primary);
}

.home-event-date strong {
    color: var(--site-gold);
    font-size: 21px;
}

.home-event-date span {
    margin-top: 2px;
    font-size: 9px;
    font-weight: 800;
}

.home-event-info {
    min-width: 0;
}

.home-event-info h3 {
    margin: 0 0 5px;
    overflow: hidden;
    color: #a56c00;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-event-info p,
.home-event-info small {
    display: block;
    margin: 0 0 3px;
    color: #475569;
    font-size: 9px;
}

.home-event-image {
    width: 82px;
    height: 65px;
    overflow: hidden;
    border-radius: 4px;
    background: #e2e8f0;
}

.home-event-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-column-empty {
    min-height: 235px;
    padding: 25px;
    display: grid;
    place-items: center;
    color: var(--site-muted);
    border: 1px dashed #cbd5e1;
    border-radius: 7px;
    font-size: 11px;
    text-align: center;
}

.home-column-button {
    min-height: 43px;
    margin-top: 15px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 5px;
    color: #ffffff;
    background: var(--site-primary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.home-column-button:hover {
    background: #0a315e;
}

@media (max-width: 900px) {

    .home-content-columns-grid {
        grid-template-columns: 1fr;
    }

    .home-column-block,
    .home-column-block:first-child,
    .home-column-block:last-child {
        padding: 28px 0;
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .home-column-block:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 450px) {

    .home-event-item {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .home-event-image {
        display: none;
    }
}
/* =====================================================
   ÚLTIMAS PREDICACIONES EN LA PORTADA
===================================================== */

.home-sermons-list {
    display: grid;
    gap: 10px;
}

.home-sermon-item {
    min-height: 82px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
}

.home-sermon-thumbnail {
    width: 112px;
    height: 72px;
    display: block;
    overflow: hidden;
    position: relative;
    border-radius: 5px;
    background: var(--site-primary);
    text-decoration: none;
}

.home-sermon-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-sermon-play {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(2, 11, 24, .72);
    font-size: 10px;
    transform: translate(-50%, -50%);
}

.home-sermon-duration {
    padding: 3px 5px;
    position: absolute;
    right: 4px;
    bottom: 4px;
    border-radius: 3px;
    color: #ffffff;
    background: rgba(2, 11, 24, .82);
    font-size: 8px;
    font-weight: 800;
}

.home-sermon-info {
    min-width: 0;
}

.home-sermon-info h3 {
    margin: 0 0 4px;
    overflow: hidden;
    color: var(--site-primary);
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-sermon-info strong {
    margin-bottom: 3px;
    display: block;
    color: #334155;
    font-size: 9px;
}

.home-sermon-info > small {
    display: block;
    color: var(--site-muted);
    font-size: 8px;
}

.home-sermon-links {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--site-muted);
    font-size: 8px;
}

.home-sermon-links a {
    color: var(--site-primary);
    text-decoration: none;
    font-weight: 800;
}

.home-sermon-links a:hover {
    color: var(--site-gold);
}

@media (max-width: 450px) {

    .home-sermon-item {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .home-sermon-thumbnail {
        width: 100px;
        height: 68px;
    }
}
/* =====================================================
   GALERÍA RECIENTE EN LA PÁGINA PRINCIPAL
===================================================== */

.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.home-gallery-item {
    width: 100%;
    height: 105px;
    min-width: 0;
    display: block;
    overflow: hidden;
    position: relative;
    border-radius: 6px;
    background: #e2e8f0;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(6, 27, 53, .08);
}

.home-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition:
        transform .35s ease,
        filter .35s ease;
}

.home-gallery-item > span {
    display: grid;
    place-items: center;
    position: absolute;
    inset: 0;
    color: #ffffff;
    background: rgba(2, 11, 24, .55);
    font-size: 19px;
    opacity: 0;
    transition: opacity .25s ease;
}

.home-gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(.85);
}

.home-gallery-item:hover > span {
    opacity: 1;
}

/* Cuando todavía no hay fotografías */

.home-column-block .home-column-empty {
    width: 100%;
}

/* =====================================================
   PÁGINA PÚBLICA DE GALERÍA
   Estas clases pueden utilizarse en galeria.php
===================================================== */

.public-gallery {
    padding: 55px 0 65px;
    background: #ffffff;
}

.public-gallery-heading {
    margin-bottom: 30px;
    text-align: center;
}

.public-gallery-heading span {
    display: block;
    margin-bottom: 7px;
    color: #a66d00;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.public-gallery-heading h1,
.public-gallery-heading h2 {
    margin: 0;
    color: var(--site-primary);
    font-size: clamp(28px, 4vw, 42px);
    text-transform: uppercase;
}

.public-gallery-heading strong {
    color: var(--site-gold);
}

.public-gallery-heading::after {
    content: "";
    width: 46px;
    height: 3px;
    margin: 12px auto 0;
    display: block;
    border-radius: 20px;
    background: var(--site-gold);
}

/* Filtros de categorías */

.public-gallery-filters {
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

.public-gallery-filter {
    min-height: 39px;
    padding: 9px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe3ec;
    border-radius: 7px;
    color: var(--site-primary);
    background: #ffffff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    transition: .2s ease;
}

.public-gallery-filter:hover,
.public-gallery-filter.active {
    border-color: var(--site-primary);
    color: #ffffff;
    background: var(--site-primary);
}

/* Cuadrícula de álbumes */

.public-gallery-albums {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.public-gallery-album {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: inherit;
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(6, 27, 53, .08);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.public-gallery-album:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(6, 27, 53, .14);
}

.public-gallery-album-cover {
    height: 230px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}

.public-gallery-album-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .4s ease;
}

.public-gallery-album:hover .public-gallery-album-cover img {
    transform: scale(1.06);
}

.public-gallery-album-count {
    padding: 7px 10px;
    position: absolute;
    right: 11px;
    bottom: 11px;
    border-radius: 20px;
    color: #ffffff;
    background: rgba(2, 11, 24, .78);
    font-size: 9px;
    font-weight: 900;
}

.public-gallery-album-body {
    padding: 18px;
}

.public-gallery-album-body span {
    display: block;
    margin-bottom: 6px;
    color: #a66d00;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.public-gallery-album-body h3 {
    margin: 0 0 8px;
    color: var(--site-primary);
    font-size: 18px;
}

.public-gallery-album-body p {
    margin: 0;
    color: var(--site-muted);
    font-size: 11px;
    line-height: 1.6;
}

/* Encabezado de un álbum */

.public-album-header {
    padding: 48px 0 30px;
    background:
        linear-gradient(
            135deg,
            rgba(6, 27, 53, .97),
            rgba(11, 49, 93, .94)
        );
    color: #ffffff;
}

.public-album-header a {
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--site-gold);
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.public-album-header h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 5vw, 48px);
}

.public-album-header p {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.7;
}

/* Fotografías dentro del álbum */

.public-album-photos {
    padding: 42px 0 65px;
    background: #ffffff;
}

.public-album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.public-album-photo {
    height: 240px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    background: #e2e8f0;
    cursor: pointer;
}

.public-album-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.public-album-photo::after {
    content: "\f00e";
    display: grid;
    place-items: center;
    position: absolute;
    inset: 0;
    color: #ffffff;
    background: rgba(2, 11, 24, .52);
    font-family: "Font Awesome 6 Free";
    font-size: 24px;
    font-weight: 900;
    opacity: 0;
    transition: opacity .25s ease;
}

.public-album-photo:hover img {
    transform: scale(1.07);
}

.public-album-photo:hover::after {
    opacity: 1;
}

/* Galería vacía */

.public-gallery-empty {
    padding: 50px 25px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: var(--site-muted);
    text-align: center;
}

.public-gallery-empty i {
    margin-bottom: 12px;
    display: block;
    color: var(--site-gold);
    font-size: 38px;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1050px) {

    .home-gallery-item {
        height: 125px;
    }

    .public-gallery-albums,
    .public-album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-gallery-album-cover {
        height: 250px;
    }
}

@media (max-width: 650px) {

    .home-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-gallery-item {
        height: 130px;
    }

    .public-gallery {
        padding: 38px 0 50px;
    }

    .public-gallery-albums,
    .public-album-grid {
        grid-template-columns: 1fr;
    }

    .public-gallery-album-cover {
        height: 235px;
    }

    .public-album-photo {
        height: 240px;
    }
}

@media (max-width: 400px) {

    .home-gallery-grid {
        grid-template-columns: 1fr;
    }

    .home-gallery-item {
        height: 210px;
    }

    .public-gallery-album-cover,
    .public-album-photo {
        height: 215px;
    }
}
/* =====================================================
   ALINEAR LAS TRES COLUMNAS CONSERVANDO 9 FOTOS
===================================================== */

@media (min-width: 901px) {

    .home-content-columns-grid {
        align-items: stretch;
    }

    .home-column-block {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    /* Misma altura para el contenido de las 3 columnas */

    .home-events-list,
    .home-sermons-list,
    .home-gallery-grid {
        min-height: 266px;
    }

    /* Galería: 9 fotos en 3 columnas y 3 filas */

    .home-gallery-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(3, 83px);
        gap: 8px;
        align-content: start;
    }

    .home-gallery-item {
        width: 100%;
        height: 83px !important;
    }

    /* Botones en la misma línea inferior */

    .home-column-button {
        margin-top: auto;
    }
}
/* =====================================================
   FRANJA SUPERIOR DEL FOOTER
===================================================== */

.footer-callout {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #0a315d 0%,
            #062445 45%,
            #041b35 100%
        );
}

.footer-callout::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 255, 255, .28),
            transparent 32%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(246, 173, 25, .22),
            transparent 30%
        );
}

.footer-callout-grid {
    min-height: 125px;
    display: grid;
    grid-template-columns:
        minmax(0, .95fr)
        minmax(0, .9fr)
        minmax(0, 1.25fr);
    position: relative;
    z-index: 2;
}

.footer-callout-item {
    min-width: 0;
    padding: 26px 28px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    border-right: 1px solid rgba(255, 255, 255, .16);
}

.footer-callout-item:last-child {
    border-right: 0;
}

.footer-callout-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid var(--site-gold);
    border-radius: 50%;
    color: #ffffff;
    font-size: 25px;
}

.footer-callout-copy {
    min-width: 0;
}

.footer-callout-copy strong,
.footer-callout-copy span {
    display: block;
}

.footer-callout-copy strong {
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.25;
    text-transform: uppercase;
}

.footer-callout-copy span {
    color: #d5deea;
    font-size: 10px;
    line-height: 1.5;
}

.footer-callout-button {
    min-height: 39px;
    margin-top: 14px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    grid-column: 2;
    border-radius: 5px;
    color: #08213e;
    background: var(--site-gold);
    text-decoration: none;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    transition:
        transform .2s ease,
        background .2s ease;
}

.footer-callout-button:hover {
    color: #08213e;
    background: #ffc545;
    transform: translateY(-2px);
}

/* BOLETÍN */

.footer-newsletter-item {
    grid-template-columns: 58px minmax(0, 1fr);
}

.footer-newsletter-content {
    min-width: 0;
}

.footer-newsletter-form {
    margin-top: 13px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.footer-newsletter-form input {
    width: 100%;
    min-width: 0;
    height: 39px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 5px;
    outline: none;
    color: #0b1e35;
    background: #ffffff;
    font-size: 10px;
}

.footer-newsletter-form input:focus {
    border-color: var(--site-gold);
    box-shadow: 0 0 0 3px rgba(246, 173, 25, .18);
}

.footer-newsletter-form button {
    min-height: 39px;
    padding: 0 16px;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    color: #08213e;
    background: var(--site-gold);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.footer-newsletter-form button:hover {
    background: #ffc545;
}

/* Ocultar visualmente, mantener accesible */

.sr-only {
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    position: absolute;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =====================================================
   FOOTER PRINCIPAL
===================================================== */

.site-footer {
    color: #ffffff;
    background: #03172d;
}

.footer-grid {
    padding-top: 36px;
    padding-bottom: 30px;
    display: grid;
    grid-template-columns:
        minmax(280px, 1.05fr)
        minmax(280px, 1.05fr)
        minmax(260px, .9fr);
    gap: 38px;
}

.footer-brand,
.footer-column {
    min-width: 0;
}

.footer-brand-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.footer-brand-heading img {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    display: block;
    object-fit: contain;
}

.footer-brand-heading span,
.footer-brand-heading strong {
    display: block;
}

.footer-brand-heading span {
    margin-bottom: 3px;
    color: #d5deea;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.footer-brand-heading strong {
    max-width: 240px;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.15;
    text-transform: uppercase;
}

.footer-brand > p {
    max-width: 310px;
    margin: 14px 0 17px;
    color: #c5cfdb;
    font-size: 10px;
    line-height: 1.65;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer-socials a {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    transition: .2s ease;
}

.footer-socials a:hover {
    border-color: var(--site-gold);
    color: #08213e;
    background: var(--site-gold);
    transform: translateY(-2px);
}

.footer-column {
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, .18);
}

.footer-column h3 {
    margin: 0 0 17px;
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 25px;
}

.footer-links-grid a {
    display: block;
    color: #d5deea;
    text-decoration: none;
    font-size: 10px;
    line-height: 1.5;
    transition: .2s ease;
}

.footer-links-grid a:hover {
    color: var(--site-gold);
    transform: translateX(3px);
}

.footer-contact p {
    margin: 0 0 13px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 7px;
    color: #d5deea;
    font-size: 10px;
    line-height: 1.5;
}

.footer-contact p i {
    padding-top: 2px;
    color: #ffffff;
    font-size: 15px;
    text-align: center;
}

.footer-contact a {
    color: #d5deea;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--site-gold);
}

/* PARTE INFERIOR */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .13);
    color: #aeb9c7;
    background: #021225;
    font-size: 9px;
    text-align: center;
}

.footer-bottom .site-container {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* =====================================================
   RESPONSIVE DEL FOOTER
===================================================== */

@media (max-width: 1050px) {

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

    .footer-callout-item:nth-child(2) {
        border-right: 0;
    }

    .footer-newsletter-item {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(255, 255, 255, .16);
    }

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

    .footer-contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {

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

    .footer-callout-item,
    .footer-newsletter-item {
        grid-column: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .16);
    }

    .footer-callout-item:last-child {
        border-bottom: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-column,
    .footer-contact {
        grid-column: auto;
        padding-top: 25px;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .18);
        border-left: 0;
    }
}

@media (max-width: 480px) {

    .footer-callout-item,
    .footer-newsletter-item {
        padding: 25px 0;
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .footer-callout-icon {
        width: 52px;
        height: 52px;
        font-size: 21px;
    }

    .footer-newsletter-form {
        grid-template-columns: 1fr;
    }

    .footer-newsletter-form button {
        width: 100%;
    }

    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* =====================================================
   AUMENTAR TEXTOS DEL FOOTER
===================================================== */

/* FRANJA DE ORACIÓN, DONACIÓN Y BOLETÍN */

.footer-callout-copy strong {
    font-size: 17px !important;
    line-height: 1.25;
}

.footer-callout-copy span {
    font-size: 12px !important;
    line-height: 1.55;
}

.footer-callout-button {
    padding: 11px 18px;
    font-size: 11px !important;
}

.footer-newsletter-form input {
    height: 42px;
    font-size: 12px !important;
}

.footer-newsletter-form button {
    min-height: 42px;
    padding: 0 18px;
    font-size: 11px !important;
}

/* MARCA Y DESCRIPCIÓN */

.footer-brand-heading span {
    font-size: 11px !important;
}

.footer-brand-heading strong {
    max-width: 280px;
    font-size: 20px !important;
    line-height: 1.2;
}

.footer-brand > p {
    max-width: 350px;
    font-size: 12px !important;
    line-height: 1.7;
}

/* TÍTULOS DE COLUMNAS */

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 16px !important;
}

/* ENLACES RÁPIDOS */

.footer-links-grid {
    gap: 9px 30px;
}

.footer-links-grid a {
    font-size: 12px !important;
    line-height: 1.6;
}

/* CONTACTO */

.footer-contact p {
    margin-bottom: 15px;
    grid-template-columns: 25px minmax(0, 1fr);
    font-size: 12px !important;
    line-height: 1.6;
}

.footer-contact p i {
    font-size: 17px !important;
}

/* COPYRIGHT */

.footer-bottom {
    font-size: 11px !important;
}

.footer-bottom .site-container {
    padding-top: 17px;
    padding-bottom: 17px;
}

/* REDES SOCIALES */

.footer-socials a {
    width: 35px;
    height: 35px;
    font-size: 14px;
}

/* UN POCO MÁS DE ESPACIO EN EL FOOTER */

.footer-grid {
    padding-top: 42px;
    padding-bottom: 38px;
}
/* =====================================================
   PÁGINA PÚBLICA: SOBRE NOSOTROS
===================================================== */

.about-page {
    background: #f7f8fa;
}

.about-page > .site-container {
    padding-top: 44px;
    padding-bottom: 54px;
}

.about-page-intro {
    max-width: 900px;
    margin: 0 auto 32px;
    text-align: center;
}

.about-page-intro > span {
    display: block;
    margin-bottom: 8px;
    color: #b47800;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.about-page-intro p {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
}

.about-section-title {
    margin-bottom: 25px;
    text-align: center;
}

.about-section-title-left {
    text-align: left;
}

.about-section-title > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    color: #a86d00;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-section-title h1,
.about-section-title h2 {
    margin: 0;
    color: var(--site-primary);
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.12;
    text-transform: uppercase;
}

.about-section-title strong {
    color: var(--site-gold);
}

.about-section-title-light > span,
.about-section-title-light h2 {
    color: #ffffff;
}

.about-section-title-light strong {
    color: var(--site-gold);
}

.about-history-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .7fr);
    gap: 22px;
    align-items: stretch;
}

.about-history-card {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.35fr);
    overflow: hidden;
    border: 1px solid #e1e6ed;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(6, 27, 53, .08);
}

.about-history-visual {
    min-height: 100%;
    overflow: hidden;
    background: #e9edf2;
}

.about-history-visual img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    display: block;
    object-fit: cover;
}

.about-history-placeholder {
    min-height: 560px;
    display: grid;
    place-items: center;
    color: var(--site-gold);
    background: linear-gradient(145deg, #092a50, #03172d);
    font-size: 88px;
}

.about-history-copy {
    padding: 34px;
}

.about-rich-text {
    color: #475569;
    font-size: 13px;
    line-height: 1.85;
}

.about-stats-grid {
    margin-top: 27px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    border-radius: 13px;
    background: var(--site-primary);
}

.about-stat-item {
    min-width: 0;
    padding: 18px 10px;
    border-right: 1px solid rgba(255,255,255,.14);
    color: #ffffff;
    text-align: center;
}

.about-stat-item:last-child {
    border-right: 0;
}

.about-stat-item i {
    margin-bottom: 8px;
    display: block;
    color: var(--site-gold);
    font-size: 24px;
}

.about-stat-item strong {
    display: block;
    margin-bottom: 3px;
    color: #ffffff;
    font-size: 18px;
}

.about-stat-item span {
    display: block;
    color: #d8e2ee;
    font-size: 9px;
    line-height: 1.35;
}

.about-purpose-column {
    display: grid;
    gap: 18px;
}

.about-purpose-card {
    min-height: 0;
    padding: 28px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    border-radius: 17px;
    color: #ffffff;
    background: linear-gradient(145deg, #0b3564, #031a34);
    box-shadow: 0 14px 30px rgba(5, 28, 56, .16);
}

.about-purpose-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 2px solid var(--site-gold);
    border-radius: 50%;
    color: var(--site-gold);
    font-size: 29px;
}

.about-purpose-card h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 22px;
    text-transform: uppercase;
}

.about-purpose-card p {
    margin: 0;
    color: #e0e8f2;
    font-size: 13px;
    line-height: 1.7;
}

.about-values-section {
    margin-top: 34px;
    padding: 32px;
    border: 1px solid #e1e6ed;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(6, 27, 53, .06);
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.about-value-card {
    min-width: 0;
    padding: 20px 16px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
    border: 1px solid #e3e7ec;
    border-radius: 13px;
    background: #ffffff;
}

.about-value-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #a86d00;
    background: #fff2ce;
    font-size: 23px;
}

.about-value-card h3 {
    margin: 2px 0 6px;
    color: var(--site-primary);
    font-size: 14px;
    text-transform: uppercase;
}

.about-value-card p {
    margin: 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.55;
}

.about-empty-state {
    padding: 35px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    text-align: center;
}

.about-pastors-section {
    margin-top: 34px;
    padding: 36px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #082d58, #02152b);
    box-shadow: 0 16px 40px rgba(5, 28, 56, .17);
}

.about-pastors-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 20px;
}

.about-pastor-featured {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(0, 1.1fr);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 17px;
    background: rgba(255,255,255,.06);
}

.about-pastor-featured-image {
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    color: var(--site-gold);
    background: rgba(255,255,255,.04);
    font-size: 80px;
}

.about-pastor-featured-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: block;
    object-fit: contain;
    object-position: center bottom;
}

.about-pastor-featured-copy {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-pastor-featured-copy > span,
.about-pastor-small-card span {
    display: block;
    margin-bottom: 6px;
    color: var(--site-gold);
    font-family: Georgia, serif;
    font-size: 20px;
    font-style: italic;
}

.about-pastor-featured-copy h3,
.about-pastor-small-card h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 25px;
}

.about-pastor-featured-copy p,
.about-pastor-small-card p {
    margin: 0;
    color: #d8e2ee;
    font-size: 12px;
    line-height: 1.75;
}

.about-pastor-socials {
    margin-top: 20px;
    display: flex;
    gap: 9px;
}

.about-pastor-socials a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
}

.about-pastor-socials a:hover {
    color: var(--site-primary);
    background: var(--site-gold);
}

.about-pastor-list {
    display: grid;
    gap: 15px;
}

.about-pastor-small-card {
    min-width: 0;
    padding: 14px;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 17px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 15px;
    background: rgba(255,255,255,.06);
}

.about-pastor-small-image {
    width: 120px;
    height: 145px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    border-radius: 11px;
    color: var(--site-gold);
    background: rgba(255,255,255,.05);
    font-size: 45px;
}

.about-pastor-small-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center bottom;
}

.about-pastor-small-card span {
    font-size: 15px;
}

.about-pastor-small-card h3 {
    margin-bottom: 7px;
    font-size: 18px;
}

.about-pastor-small-card p {
    font-size: 10px;
}

.about-legacy-layout {
    margin-top: 34px;
    display: grid;
    grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr);
    gap: 22px;
}

.about-projection-card {
    min-height: 340px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    border-radius: 18px;
    color: #ffffff;
    background: radial-gradient(circle at 80% 70%, rgba(246, 173, 25, .22), transparent 35%), linear-gradient(145deg, #0a3565, #03172d);
}

.about-projection-copy {
    position: relative;
    z-index: 2;
}

.about-projection-copy span {
    color: var(--site-gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-projection-copy h2 {
    margin: 8px 0 15px;
    color: #ffffff;
    font-size: 27px;
    text-transform: uppercase;
}

.about-projection-copy p {
    margin: 0;
    color: #d8e2ee;
    font-size: 12px;
    line-height: 1.75;
}

.about-projection-icon {
    align-self: flex-end;
    color: rgba(246, 173, 25, .55);
    font-size: 115px;
}

.about-legacy-block {
    padding: 28px;
    border: 1px solid #e1e6ed;
    border-radius: 18px;
    background: #ffffff;
}

.about-legacy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.about-legacy-card {
    min-width: 0;
    padding: 24px 18px;
    border: 1px solid #e1e6ed;
    border-radius: 14px;
    text-align: center;
    background: #ffffff;
}

.about-legacy-card > div {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #9a6500;
    background: #fff0c7;
    font-size: 25px;
}

.about-legacy-card h3 {
    margin: 0 0 9px;
    color: var(--site-primary);
    font-size: 14px;
}

.about-legacy-card p {
    margin: 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.55;
}

.about-verse-section {
    padding: 28px 0;
    color: #ffffff;
    background: var(--site-primary);
    text-align: center;
}

.about-verse-section i {
    margin-right: 8px;
    color: var(--site-gold);
    font-size: 19px;
}

.about-verse-section blockquote {
    margin: 0;
    display: inline;
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 20px;
    font-style: italic;
}

.about-verse-section span {
    margin-left: 10px;
    color: var(--site-gold);
    font-size: 12px;
    font-weight: 900;
}

@media (max-width: 1150px) {
    .about-history-layout,
    .about-legacy-layout {
        grid-template-columns: 1fr;
    }

    .about-purpose-column {
        grid-template-columns: 1fr 1fr;
    }

    .about-values-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .about-history-card,
    .about-pastors-layout,
    .about-pastor-featured {
        grid-template-columns: 1fr;
    }

    .about-history-visual img,
    .about-history-placeholder {
        min-height: 350px;
    }

    .about-pastor-featured-image,
    .about-pastor-featured-image img {
        min-height: 360px;
    }

    .about-pastor-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .about-page > .site-container {
        padding-top: 30px;
        padding-bottom: 38px;
    }

    .about-purpose-column,
    .about-values-grid,
    .about-pastor-list,
    .about-legacy-grid {
        grid-template-columns: 1fr;
    }

    .about-purpose-card {
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 22px;
    }

    .about-purpose-icon {
        width: 58px;
        height: 58px;
        font-size: 23px;
    }

    .about-values-section,
    .about-pastors-section,
    .about-legacy-block {
        padding: 22px;
    }

    .about-pastor-small-card {
        grid-template-columns: 95px minmax(0, 1fr);
    }

    .about-pastor-small-image {
        width: 95px;
        height: 120px;
    }

    .about-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-verse-section blockquote {
        display: block;
        margin-top: 7px;
        font-size: 17px;
    }

    .about-verse-section span {
        display: block;
        margin: 8px 0 0;
    }
}

@media (max-width: 450px) {
    .about-history-copy {
        padding: 24px 20px;
    }

    .about-pastor-featured-copy {
        padding: 25px 21px;
    }

    .about-projection-card {
        padding: 27px 23px;
    }
}
/* =====================================================
   SOBRE NOSOTROS — AJUSTE FIEL A LA MAQUETA
===================================================== */

.about-public-page {
    padding-top: 28px;
    background: #f7f8fa;
}

.about-public-intro {
    max-width: 900px;
    margin: 0 auto 28px;
    text-align: center;
}

.about-public-intro span {
    display: block;
    margin-bottom: 7px;
    color: #ad7200;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.about-public-intro p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.75;
}

/* HISTORIA */

.about-history-section {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr);
    gap: 22px;
}

.about-history-main {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    border: 1px solid #dde4ec;
    border-radius: 16px;
    background: #ffffff;
}

.about-history-timeline {
    display: grid;
    gap: 14px;
    position: relative;
}

.about-history-timeline::before {
    content: "";
    width: 2px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 35px;
    background: #d8b45c;
}

.about-history-milestone {
    position: relative;
    z-index: 2;
}

.about-history-milestone-label {
    min-height: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 7px;
    left: 0;
    width: 72px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--site-primary);
    text-align: center;
}

.about-history-milestone-label i {
    margin-bottom: 3px;
    color: var(--site-gold);
    font-size: 15px;
}

.about-history-milestone-label strong {
    font-size: 11px;
    line-height: 1.15;
}

.about-history-milestone-image {
    height: 95px;
    margin-left: 58px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--site-gold);
    background: #e7ebf0;
    font-size: 28px;
}

.about-history-milestone-image img,
.about-history-single-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.about-history-single-image {
    min-height: 330px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--site-gold);
    background: var(--site-primary);
    font-size: 55px;
}

.about-history-content h1 {
    margin: 0 0 14px;
    color: var(--site-primary);
    font-size: 24px;
    text-transform: uppercase;
}

.about-history-content h1 i {
    margin-right: 8px;
    color: var(--site-gold);
}

.about-history-text {
    color: #334155;
    font-size: 13px;
    line-height: 1.72;
}

.about-statistics-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    border-radius: 12px;
    background: var(--site-primary);
}

.about-statistic-card {
    padding: 16px 9px;
    border-right: 1px solid rgba(255,255,255,.16);
    color: #ffffff;
    text-align: center;
}

.about-statistic-card:last-child {
    border-right: 0;
}

.about-statistic-card i {
    margin-bottom: 7px;
    display: block;
    color: var(--site-gold);
    font-size: 22px;
}

.about-statistic-card strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 18px;
}

.about-statistic-card span {
    display: block;
    color: #e2e8f0;
    font-size: 9px;
    line-height: 1.3;
}

/* MISIÓN Y VISIÓN */

.about-mission-vision {
    display: grid;
    gap: 18px;
}

.about-purpose-public-card {
    padding: 27px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    border-radius: 16px;
    color: #ffffff;
    background:
        linear-gradient(145deg, #0b3564, #031a34);
    box-shadow: 0 14px 28px rgba(6,27,53,.14);
}

.about-purpose-public-card > div {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 2px solid var(--site-gold);
    border-radius: 50%;
    color: var(--site-gold);
    font-size: 28px;
}

.about-purpose-public-card h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 22px;
    text-transform: uppercase;
}

.about-purpose-public-card p {
    margin: 0;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.65;
}

/* VALORES */

.about-values-public-section {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #dde4ec;
    border-radius: 16px;
    background: #ffffff;
}

.about-public-heading {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}

.about-public-heading > span {
    height: 1px;
    background: #d8b45c;
}

.about-public-heading h2 {
    margin: 0;
    color: var(--site-primary);
    font-size: 24px;
    text-transform: uppercase;
}

.about-public-heading strong {
    color: #a86d00;
}

.about-values-public-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 13px;
}

.about-value-public-card {
    min-width: 0;
    padding: 17px 14px;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

.about-value-public-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    color: #b77900;
    font-size: 28px;
}

.about-value-public-card h3 {
    margin: 0 0 6px;
    color: var(--site-primary);
    font-size: 13px;
    text-transform: uppercase;
}

.about-value-public-card p {
    margin: 0;
    color: #475569;
    font-size: 9px;
    line-height: 1.5;
}

/* PASTORES */

.about-pastors-public-section {
    margin-top: 24px;
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 14px;
    border-radius: 18px;
    background:
        linear-gradient(145deg, #082e59, #03172d);
}

.about-pastors-intro-card {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(230px, .8fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.about-pastors-group-image {
    min-height: 355px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: var(--site-gold);
    font-size: 75px;
}

.about-pastors-group-image img {
    width: 100%;
    height: 100%;
    min-height: 355px;
    display: block;
    object-fit: contain;
    object-position: center bottom;
}

.about-pastors-intro-copy span {
    color: var(--site-gold);
    font-family: Georgia, serif;
    font-size: 20px;
    font-style: italic;
}

.about-pastors-intro-copy h2 {
    margin: 7px 0 14px;
    color: #ffffff;
    font-size: 26px;
    text-transform: uppercase;
}

.about-pastors-intro-copy p {
    margin: 0;
    color: #dbe5ef;
    font-size: 11px;
    line-height: 1.7;
}

.about-pastor-public-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.about-pastor-public-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    background: rgba(255,255,255,.06);
}

.about-pastor-public-photo {
    height: 155px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--site-gold);
    background: rgba(255,255,255,.05);
    font-size: 42px;
}

.about-pastor-public-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center bottom;
}

.about-pastor-public-info {
    padding-top: 11px;
}

.about-pastor-public-info > span {
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.about-pastor-public-info h3 {
    margin: 5px 0 10px;
    color: #ffffff;
    font-size: 17px;
}

.about-pastor-public-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-pastor-public-info li {
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 6px;
    color: #dbe5ef;
    font-size: 9px;
    line-height: 1.4;
}

.about-pastor-public-info li i {
    color: var(--site-gold);
}

.about-pastor-public-info p {
    margin: 0;
    color: #dbe5ef;
    font-size: 10px;
    line-height: 1.6;
}

/* PROYECCIÓN Y LEGADO */

.about-projection-legacy {
    margin-top: 24px;
    margin-bottom: 26px;
    display: grid;
    grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr);
    gap: 18px;
}

.about-projection-public-card {
    position: relative;
    min-height: 330px;
    padding: 28px;
    overflow: hidden;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(145deg, #0a3565, #03172d);
}

/* capa oscura para que el texto se lea bien */
.about-projection-public-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(3, 23, 45, 0.88) 0%,
        rgba(3, 23, 45, 0.76) 30%,
        rgba(3, 23, 45, 0.35) 60%,
        rgba(3, 23, 45, 0.18) 100%
    );
    z-index: 1;
}

/* texto encima */
.about-projection-public-copy {
    position: relative;
    z-index: 3;
    max-width: 58%;
}

.about-projection-public-copy h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 24px;
    text-transform: uppercase;
    line-height: 1.1;
}

.about-projection-public-copy p {
    margin: 0;
    color: #ffffff;
    font-size: 11px;
    line-height: 1.7;
}

/* la imagen cubre toda la tarjeta */
.about-projection-public-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.about-projection-public-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

/* por si no hay imagen y sale el icono */
.about-projection-public-visual i {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(246, 173, 25, .68);
    font-size: 105px;
}

/* banderas encima, abajo */
.about-countries-list {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 22px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.about-country-item {
    width: 40px;
    height: 28px;
    overflow: hidden;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(0,0,0,.25);
}

.about-country-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.about-country-item i {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #d99b17;
    font-size: 15px;
}
.about-legacy-public-block {
    padding: 22px;
    border: 1px solid #dde4ec;
    border-radius: 16px;
    background: #ffffff;
}

.about-legacy-public-block h2 {
    color: var(--site-primary);
}

.about-legacy-public-intro {
    margin: 0 0 17px;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

.about-legacy-public-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.about-legacy-public-card {
    min-width: 0;
    padding: 17px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: inherit;
    background: #ffffff;
    text-decoration: none;
    text-align: center;
}

.about-legacy-public-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #a86d00;
    background: #fff2d2;
    font-size: 29px;
}

.about-legacy-public-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.about-legacy-public-card h3 {
    margin: 0 0 8px;
    color: var(--site-primary);
    font-size: 12px;
}

.about-legacy-public-card p {
    margin: 0;
    color: #475569;
    font-size: 9px;
    line-height: 1.5;
}

/* VERSÍCULO */

.about-verse-public-section {
    padding: 17px 0;
    color: #ffffff;
    background: var(--site-primary);
    text-align: center;
}

.about-verse-public-section i {
    margin-right: 8px;
    color: var(--site-gold);
}

.about-verse-public-section blockquote {
    margin: 0;
    display: inline;
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 17px;
    font-style: italic;
}

.about-verse-public-section span {
    margin-left: 8px;
    color: var(--site-gold);
    font-size: 11px;
    font-weight: 800;
}

/* VACÍO */

.about-empty-public {
    padding: 30px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    text-align: center;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .about-history-section,
    .about-projection-legacy,
    .about-pastors-public-section {
        grid-template-columns: 1fr;
    }

    .about-mission-vision {
        grid-template-columns: 1fr 1fr;
    }

    .about-values-public-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .about-history-main,
    .about-pastors-intro-card {
        grid-template-columns: 1fr;
    }

    .about-history-timeline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .about-history-timeline::before {
        display: none;
    }

    .about-history-milestone-label {
        position: static;
        width: 70px;
        margin: 0 auto -15px;
    }

    .about-history-milestone-image {
        height: 130px;
        margin-left: 0;
    }

    .about-statistics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .about-mission-vision,
    .about-values-public-grid,
    .about-pastor-public-grid,
    .about-legacy-public-grid {
        grid-template-columns: 1fr;
    }

    .about-history-timeline {
        grid-template-columns: 1fr;
    }

    .about-purpose-public-card {
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 21px;
    }

    .about-purpose-public-card > div {
        width: 58px;
        height: 58px;
        font-size: 22px;
    }

    .about-statistics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-pastors-group-image,
    .about-pastors-group-image img {
        min-height: 280px;
    }

    .about-verse-public-section blockquote {
        display: block;
        margin-top: 6px;
    }

    .about-verse-public-section span {
        display: block;
        margin: 7px 0 0;
    }
}
@media (max-width: 991px) {
    .about-projection-public-copy {
        max-width: 100%;
    }

    .about-projection-public-card::after {
        background: linear-gradient(
            180deg,
            rgba(3, 23, 45, 0.88) 0%,
            rgba(3, 23, 45, 0.55) 55%,
            rgba(3, 23, 45, 0.35) 100%
        );
    }
}
/* FORZAR TÍTULO DE PROYECCIÓN EN UNA SOLA LÍNEA */

.about-projection-public-card .about-projection-public-copy {
    position: relative;
    z-index: 3;
    width: 100% !important;
    max-width: none !important;
}

.about-projection-public-card .about-projection-public-copy h2 {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 23px;
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap !important;
}

.about-projection-public-card .about-projection-public-copy p {
    width: 58%;
    max-width: 290px;
    margin: 0;
    color: #ffffff;
    font-size: 11px;
    line-height: 1.7;
}
/* =====================================================
   PREDICACIONES PÚBLICAS
===================================================== */

.sermons-page {
    padding: 28px 0 34px;
    background: #f7f8fa;
}

/* FILTROS */

.sermons-tabs {
    margin-bottom: 17px;
    padding: 7px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #d8e0e9;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(6, 27, 53, .06);
}

.sermons-tabs > a {
    min-height: 48px;
    padding: 10px 17px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    position: relative;
    border-radius: 10px;
    color: #10213b;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.sermons-tabs > a:hover,
.sermons-tabs > a.active {
    color: #ffffff;
    background: #061b35;
}

.sermons-tabs > a.active::after {
    content: "";
    width: 38px;
    height: 2px;
    position: absolute;
    bottom: 5px;
    left: 50%;
    background: #f6ad19;
    transform: translateX(-50%);
}

.sermons-search {
    min-width: 210px;
    margin-left: auto;
    display: flex;
    overflow: hidden;
    border: 1px solid #d8e0e9;
    border-radius: 9px;
}

.sermons-search input {
    width: 100%;
    min-height: 42px;
    padding: 0 13px;
    border: 0;
    outline: 0;
    font-size: 11px;
}

.sermons-search button {
    width: 44px;
    min-height: 42px;
    border: 0;
    color: #ffffff;
    background: #061b35;
    cursor: pointer;
}

.sermons-months,
.sermons-series-filter {
    margin-bottom: 17px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sermons-months strong {
    margin-right: 4px;
    color: #64748b;
    font-size: 10px;
}

.sermons-months a,
.sermons-series-filter a {
    padding: 7px 11px;
    border: 1px solid #d8e0e9;
    border-radius: 999px;
    color: #334155;
    background: #ffffff;
    text-decoration: none;
    font-size: 9px;
    font-weight: 900;
}

.sermons-series-filter a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.sermons-series-filter small {
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: #061b35;
    font-size: 7px;
}

.sermons-months a:hover,
.sermons-months a.active,
.sermons-series-filter a:hover,
.sermons-series-filter a.active {
    color: #061b35;
    border-color: #f6ad19;
    background: #fff2ce;
}

/* ESTRUCTURA */

.sermons-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 20px;
    align-items: start;
}

.sermons-list-panel {
    min-width: 0;
    padding: 14px;
    border: 1px solid #d8e0e9;
    border-radius: 14px;
    background: #ffffff;
}

.sermons-list {
    display: grid;
}

/* PREDICACIÓN */

.sermon-card {
    padding: 14px 0;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.sermon-card:first-child {
    padding-top: 0;
}

.sermon-card:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.sermon-cover {
    height: 132px;
    padding: 0;
    overflow: hidden;
    position: relative;
    border: 0;
    border-radius: 10px;
    background: #061b35;
    cursor: pointer;
}

.sermon-cover:disabled {
    cursor: default;
}

.sermon-cover > img,
.sermon-cover-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

.sermon-cover > img {
    object-fit: cover;
    transition: transform .25s ease;
}

.sermon-cover:hover > img {
    transform: scale(1.04);
}

.sermon-cover-placeholder {
    display: grid;
    place-items: center;
    color: #f6ad19;
    background:
        linear-gradient(145deg, #0a3565, #03172d);
    font-size: 46px;
}

.sermon-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(1, 12, 26, .48),
            transparent 62%
        );
}

.sermon-play {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(255,255,255,.94);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(4, 22, 43, .48);
    transform: translate(-50%, -50%);
}

.sermon-play i {
    margin-left: 3px;
}

.sermon-cover > small {
    padding: 4px 7px;
    position: absolute;
    z-index: 2;
    right: 7px;
    bottom: 7px;
    border-radius: 5px;
    color: #ffffff;
    background: rgba(0,0,0,.82);
    font-size: 9px;
    font-weight: 900;
}

.sermon-card-content {
    min-width: 0;
}

.sermon-card-content h2 {
    margin: 1px 0 7px;
    color: #061b35;
    font-size: 17px;
    line-height: 1.25;
    text-transform: uppercase;
}

.sermon-meta {
    margin-bottom: 9px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: 9px;
}

.sermon-meta strong {
    color: #10213b;
}

.sermon-card-content > p {
    margin: 0 0 12px;
    color: #475569;
    font-size: 10px;
    line-height: 1.55;
}

.sermon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.sermon-actions a,
.sermon-actions button {
    min-height: 34px;
    padding: 7px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #d8e0e9;
    border-radius: 7px;
    color: #10213b;
    background: #ffffff;
    text-decoration: none;
    font-family: inherit;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.sermon-actions a:hover,
.sermon-actions button:hover {
    color: #ffffff;
    border-color: #061b35;
    background: #061b35;
}

.sermon-actions button:disabled {
    opacity: .42;
    cursor: not-allowed;
}

/* SIDEBAR */

.sermons-sidebar {
    display: grid;
    gap: 15px;
}

.sermons-side-card,
.sermons-youtube {
    padding: 18px;
    border: 1px solid #cfd8e3;
    border-radius: 13px;
    background: #ffffff;
}

.sermons-side-card > h2,
.sermons-youtube > h2 {
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #061b35;
    font-size: 15px;
    text-transform: uppercase;
}

.sermons-categories {
    display: grid;
}

.sermons-categories a {
    min-height: 31px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #24364f;
    text-decoration: none;
    font-size: 10px;
}

.sermons-categories a:hover,
.sermons-categories a.active {
    color: #a86d00;
}

.sermons-categories small {
    min-width: 24px;
    height: 21px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: #061b35;
    font-size: 7px;
    font-weight: 900;
}

.sermons-categories p {
    margin: 0;
    color: #64748b;
    font-size: 10px;
}

/* SERIE DESTACADA */

.sermons-featured-series {
    min-height: 225px;
    padding: 17px;
    overflow: hidden;
    border-radius: 13px;
    color: #ffffff;
    background:
        linear-gradient(145deg, #0a3565, #03172d);
    text-align: center;
}

.sermons-featured-series > span {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
}

.sermons-featured-series > img {
    width: 100%;
    height: 112px;
    margin-bottom: 10px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.sermons-featured-series > i {
    margin: 12px 0;
    color: #f6ad19;
    font-size: 55px;
}

.sermons-featured-series h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
    text-transform: uppercase;
}

.sermons-featured-series p {
    margin: 0 0 12px;
    color: #dbe5ef;
    font-size: 9px;
    line-height: 1.5;
}

.sermons-featured-series a {
    min-height: 36px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 7px;
    color: #061b35;
    background: #f6ad19;
    text-decoration: none;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

/* RECURSOS */

.sermons-resources {
    display: grid;
}

.sermons-resources h2 {
    margin-bottom: 9px;
}

.sermons-resources a {
    min-height: 31px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #24364f;
    text-decoration: none;
    font-size: 9px;
}

.sermons-resources a i {
    width: 17px;
    color: #061b35;
    text-align: center;
}

/* YOUTUBE */

.sermons-youtube p {
    margin: 0 0 14px;
    color: #475569;
    font-size: 9px;
    line-height: 1.5;
}

.sermons-youtube a {
    min-height: 41px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 7px;
    color: #ffffff;
    background: #e4231f;
    text-decoration: none;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.sermons-youtube a i {
    font-size: 17px;
}

/* ORACIÓN */

.sermons-prayer {
    margin-top: 18px;
    padding: 18px 25px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border-radius: 14px;
    color: #ffffff;
    background:
        linear-gradient(
            90deg,
            rgba(3, 25, 51, .99),
            rgba(5, 47, 88, .95)
        );
}

.sermons-prayer > div {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 2px solid #f6ad19;
    border-radius: 50%;
    color: #f6ad19;
    font-size: 27px;
}

.sermons-prayer h2 {
    margin: 0 0 4px;
    color: #f6ad19;
    font-size: 18px;
    text-transform: uppercase;
}

.sermons-prayer p {
    margin: 0;
    color: #e2e8f0;
    font-size: 10px;
}

.sermons-prayer > a {
    min-height: 39px;
    padding: 9px 18px;
    display: inline-flex;
    align-items: center;
    border-radius: 7px;
    color: #061b35;
    background: #f6ad19;
    text-decoration: none;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

/* PAGINACIÓN */

.sermons-pagination {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.sermons-pagination a {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 1px solid #d8e0e9;
    border-radius: 7px;
    color: #10213b;
    background: #ffffff;
    text-decoration: none;
    font-size: 9px;
    font-weight: 900;
}

.sermons-pagination a.active,
.sermons-pagination a:hover {
    color: #061b35;
    border-color: #f6ad19;
    background: #f6ad19;
}

/* VACÍO */

.sermons-empty {
    padding: 65px 25px;
    text-align: center;
}

.sermons-empty > i {
    margin-bottom: 14px;
    color: #f6ad19;
    font-size: 50px;
}

.sermons-empty h2 {
    margin: 0 0 8px;
    color: #061b35;
}

.sermons-empty p {
    margin: 0 0 17px;
    color: #64748b;
}

.sermons-empty a {
    padding: 10px 16px;
    display: inline-flex;
    border-radius: 7px;
    color: #ffffff;
    background: #061b35;
    text-decoration: none;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

/* MODAL */

body.sermon-modal-open {
    overflow: hidden;
}

.sermon-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    padding: 25px;
    align-items: center;
    justify-content: center;
}

.sermon-modal.open {
    display: flex;
}

.sermon-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(1, 11, 24, .88);
    backdrop-filter: blur(5px);
}

.sermon-modal-dialog {
    width: min(950px, 100%);
    padding: 17px;
    position: relative;
    z-index: 2;
    border-radius: 14px;
    background: #061b35;
    box-shadow: 0 28px 80px rgba(0,0,0,.38);
}

.sermon-modal-dialog h2 {
    margin: 0 48px 13px 2px;
    color: #ffffff;
    font-size: 16px;
}

.sermon-modal-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 10px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255,255,255,.12);
    cursor: pointer;
}

.sermon-modal-player {
    min-height: 140px;
    overflow: hidden;
    border-radius: 10px;
    background: #000000;
}

.sermon-modal-player iframe,
.sermon-modal-player video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: 0;
}

.sermon-audio-player {
    min-height: 180px;
    padding: 30px;
    display: grid;
    place-items: center;
    gap: 18px;
    color: #f6ad19;
    background:
        linear-gradient(145deg, #0a3565, #03172d);
}

.sermon-audio-player > i {
    font-size: 55px;
}

.sermon-audio-player audio {
    width: min(620px, 100%);
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .sermons-tabs {
        flex-wrap: wrap;
    }

    .sermons-search {
        width: 100%;
        margin-left: 0;
    }

    .sermons-layout {
        grid-template-columns: 1fr;
    }

    .sermons-sidebar {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .sermons-tabs > a {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
    }

    .sermon-card {
        grid-template-columns: 1fr;
    }

    .sermon-cover {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .sermons-sidebar {
        grid-template-columns: 1fr;
    }

    .sermons-prayer {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .sermons-prayer > div {
        width: 54px;
        height: 54px;
        font-size: 22px;
    }

    .sermons-prayer > a {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sermons-page {
        padding-top: 18px;
    }

    .sermons-tabs > a {
        flex-basis: 100%;
    }

    .sermons-list-panel {
        padding: 11px;
    }

    .sermon-actions a,
    .sermon-actions button {
        flex: 1 1 calc(50% - 7px);
    }

    .sermon-modal {
        padding: 10px;
    }
}
/* =====================================================
   GALERÍA PÚBLICA
===================================================== */

.gallery-public-page {
    padding: 0 0 36px;
    background: #f7f8fa;
}

/* FILTROS */

.gallery-public-filters {
    margin-top: -28px;
    margin-bottom: 22px;
    padding: 15px 18px;
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 8px;
    position: relative;
    z-index: 5;
    border: 1px solid #dbe2ea;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(6, 27, 53, .12);
}

.gallery-public-filters button {
    min-width: 0;
    min-height: 76px;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 11px;
    color: #10213b;
    background: transparent;
    font-family: inherit;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: .2s ease;
}

.gallery-public-filters button i {
    font-size: 25px;
}

.gallery-public-filters button:hover,
.gallery-public-filters button.active {
    color: #ffffff;
    background: #061b35;
}

.gallery-public-filters button.active {
    box-shadow: 0 9px 20px rgba(6, 27, 53, .18);
}

.gallery-public-filters button.active::after {
    content: "";
    width: 40px;
    height: 2px;
    margin-top: 2px;
    background: #f6ad19;
}

/* CUADRÍCULA */

.gallery-public-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.gallery-public-card[hidden] {
    display: none !important;
}

.gallery-public-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 11px;
    background: #061b35;
    box-shadow: 0 10px 25px rgba(6, 27, 53, .12);
}

.gallery-public-card > button {
    width: 100%;
    padding: 0;
    display: block;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.gallery-public-card-image {
    height: 205px;
    display: block;
    overflow: hidden;
    position: relative;
    background: #061b35;
}

.gallery-public-card-image > img,
.gallery-public-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

.gallery-public-card-image > img {
    object-fit: cover;
    transition: transform .3s ease;
}

.gallery-public-placeholder {
    display: grid;
    place-items: center;
    color: #f6ad19;
    background:
        linear-gradient(145deg, #0a3565, #03172d);
    font-size: 48px;
}

.gallery-public-card-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(2, 16, 34, .88) 0%,
            rgba(2, 16, 34, .12) 62%,
            transparent 100%
        );
}

.gallery-public-card-open {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(255,255,255,.92);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(6, 27, 53, .56);
    opacity: 0;
    transform:
        translate(-50%, -42%)
        scale(.9);
    transition: .25s ease;
}

.gallery-public-card:hover
.gallery-public-card-image > img {
    transform: scale(1.05);
}

.gallery-public-card:hover
.gallery-public-card-open {
    opacity: 1;
    transform:
        translate(-50%, -50%)
        scale(1);
}

.gallery-public-card-body {
    min-height: 74px;
    padding: 13px 15px;
    display: block;
    color: #ffffff;
}

.gallery-public-card-title {
    margin-bottom: 8px;
    display: block;
    overflow: hidden;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-public-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #d9e4ef;
    font-size: 9px;
}

.gallery-public-card-meta small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-size: 9px;
}

/* CARGAR MÁS */

.gallery-public-load-wrap {
    padding-top: 14px;
    text-align: center;
}

.gallery-public-load {
    min-width: 330px;
    min-height: 44px;
    padding: 10px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: #061b35;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.gallery-public-load:hover {
    background: #0a3565;
}

/* INSTAGRAM */

.gallery-instagram-block {
    margin-top: 16px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    border-radius: 14px;
    color: #ffffff;
    background:
        linear-gradient(
            110deg,
            #06264a,
            #041b36
        );
}

.gallery-instagram-copy {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.gallery-instagram-copy > i {
    color: #ff7a33;
    font-size: 52px;
}

.gallery-instagram-copy h2 {
    margin: 0 0 7px;
    color: #f6ad19;
    font-size: 17px;
    text-transform: uppercase;
}

.gallery-instagram-copy p {
    margin: 0 0 12px;
    color: #dbe6f1;
    font-size: 10px;
    line-height: 1.5;
}

.gallery-instagram-copy a {
    min-height: 36px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 7px;
    color: #061b35;
    background: #f6ad19;
    text-decoration: none;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.gallery-instagram-images {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
}

.gallery-instagram-images img {
    width: 100%;
    height: 96px;
    display: block;
    object-fit: cover;
    border-radius: 6px;
}

/* VACÍO */

.gallery-public-empty {
    padding: 90px 25px;
    text-align: center;
}

.gallery-public-empty > i {
    margin-bottom: 15px;
    color: #f6ad19;
    font-size: 58px;
}

.gallery-public-empty h2 {
    margin: 0 0 9px;
    color: #061b35;
}

.gallery-public-empty p {
    max-width: 560px;
    margin: 0 auto;
    color: #64748b;
    line-height: 1.6;
}

/* LIGHTBOX */

body.gallery-lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    padding: 24px;
    align-items: center;
    justify-content: center;
}

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

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 9, 20, .92);
    backdrop-filter: blur(5px);
}

.gallery-lightbox-dialog {
    width: min(1080px, 100%);
    overflow: hidden;
    position: relative;
    z-index: 2;
    border-radius: 15px;
    background: #061b35;
    box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.gallery-lightbox-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    position: absolute;
    z-index: 4;
    top: 12px;
    right: 12px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0,0,0,.48);
    cursor: pointer;
}

.gallery-lightbox-stage {
    min-height: 280px;
    max-height: 72vh;
    display: grid;
    place-items: center;
    position: relative;
    background: #000000;
}

.gallery-lightbox-stage > img {
    width: 100%;
    max-height: 72vh;
    display: block;
    object-fit: contain;
}

.gallery-lightbox-nav {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    position: absolute;
    z-index: 3;
    top: 50%;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(6, 27, 53, .72);
    cursor: pointer;
    transform: translateY(-50%);
}

.gallery-lightbox-prev {
    left: 14px;
}

.gallery-lightbox-next {
    right: 14px;
}

.gallery-lightbox-info {
    padding: 16px 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    color: #ffffff;
}

.gallery-lightbox-info span {
    display: block;
    margin-bottom: 5px;
    color: #f6ad19;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.gallery-lightbox-info h2 {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
}

.gallery-lightbox-info p {
    margin: 6px 0 0;
    color: #cbd8e5;
    font-size: 10px;
    line-height: 1.5;
}

.gallery-lightbox-info > small {
    flex: 0 0 auto;
    color: #dbe6f1;
    font-size: 10px;
    font-weight: 800;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .gallery-public-filters {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .gallery-instagram-block {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .gallery-public-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-instagram-images {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .gallery-public-page {
        padding-top: 18px;
    }

    .gallery-public-filters {
        margin-top: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-public-grid {
        grid-template-columns: 1fr;
    }

    .gallery-public-card-image {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .gallery-public-load {
        width: 100%;
        min-width: 0;
    }

    .gallery-instagram-block {
        padding: 17px;
    }

    .gallery-instagram-copy {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .gallery-instagram-copy > i {
        font-size: 41px;
    }

    .gallery-instagram-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-lightbox {
        padding: 8px;
    }

    .gallery-lightbox-info {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-lightbox-nav {
        width: 40px;
        height: 40px;
    }
}
/* =====================================================
   CONTACTO PÚBLICO
===================================================== */

.contact-public-page {
    padding: 25px 0 36px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(14, 64, 112, .32), transparent 34%),
        linear-gradient(180deg, #041a32, #031426);
}

.contact-public-alert {
    margin-bottom: 18px;
    padding: 14px 17px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.contact-public-alert.success {
    color: #d9ffe8;
    border: 1px solid rgba(34, 197, 94, .42);
    background: rgba(22, 101, 52, .32);
}

.contact-public-alert.error {
    color: #ffe2e2;
    border: 1px solid rgba(239, 68, 68, .42);
    background: rgba(127, 29, 29, .33);
}

.contact-info-grid {
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.contact-info-card {
    min-height: 255px;
    padding: 21px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(186, 209, 233, .38);
    border-radius: 14px;
    text-align: center;
    background: linear-gradient(145deg, rgba(11, 42, 75, .84), rgba(3, 24, 47, .92));
    box-shadow: 0 16px 35px rgba(0, 0, 0, .18);
}

.contact-info-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 13px;
    display: grid;
    place-items: center;
    border: 2px solid #f6ad19;
    border-radius: 50%;
    font-size: 27px;
}

.contact-info-icon.location { color: #f6ad19; }

.contact-info-icon.whatsapp {
    color: #ffffff;
    border-color: #32c85d;
    background: #27ad50;
}

.contact-info-icon.email {
    color: #ffffff;
    border-color: #3d8ff0;
    background: #276ccc;
}

.contact-info-card h2 {
    margin: 0 0 13px;
    color: #ffffff;
    font-size: 17px;
    text-transform: uppercase;
}

.contact-info-card p {
    margin: 0 0 14px;
    color: #d8e3ef;
    font-size: 11px;
    line-height: 1.65;
}

.contact-info-card strong {
    margin-bottom: 13px;
    display: block;
    color: #45d46a;
    font-size: 20px;
}

.contact-info-card > a {
    min-height: 38px;
    margin-top: auto;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 7px;
    color: #ffffff;
    text-decoration: none;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-info-card > a:hover {
    border-color: #f6ad19;
    background: rgba(246, 173, 25, .14);
}

.contact-info-card > a.contact-action-whatsapp {
    border-color: #35c95d;
    background: #26a94a;
}

.contact-info-card > a.contact-action-email {
    border-color: #397fe2;
    background: #296cc9;
}

.contact-social-card {
    align-items: stretch;
    text-align: left;
}

.contact-social-card h2 { text-align: center; }

.contact-social-links {
    margin-top: auto;
    display: grid;
    gap: 9px;
}

.contact-social-links a {
    min-height: 31px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
}

.contact-social-links a i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    font-size: 14px;
}

.contact-social-links a:hover { color: #f6ad19; }

.contact-section-heading {
    min-height: 48px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid rgba(186, 209, 233, .24);
}

.contact-section-heading > i {
    color: #f6ad19;
    font-size: 20px;
}

.contact-section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    text-transform: uppercase;
}

.contact-section-heading p {
    margin: 4px 0 0;
    color: #cbd8e6;
    font-size: 10px;
    line-height: 1.45;
}

.contact-main-grid {
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(330px, .92fr);
    gap: 16px;
}

.contact-map-card,
.contact-prayer-card,
.contact-schedule-card,
.contact-pastors-card {
    overflow: hidden;
    border: 1px solid rgba(186, 209, 233, .38);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(11, 42, 75, .84), rgba(3, 24, 47, .94));
    box-shadow: 0 16px 35px rgba(0, 0, 0, .18);
}

.contact-map-frame { height: 385px; }

.contact-map-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.contact-map-empty {
    height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #cbd8e6;
    text-align: center;
}

.contact-map-empty > i {
    color: #f6ad19;
    font-size: 48px;
}

.contact-map-empty h3,
.contact-map-empty p { margin: 0; }

.contact-prayer-form {
    padding: 14px 16px 16px;
    display: grid;
    gap: 8px;
}

.contact-prayer-form label {
    color: #dce7f1;
    font-size: 9px;
    font-weight: 800;
}

.contact-prayer-form input,
.contact-prayer-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(186, 209, 233, .44);
    border-radius: 7px;
    outline: 0;
    color: #ffffff;
    background: rgba(3, 21, 42, .78);
    font-family: inherit;
    font-size: 11px;
}

.contact-prayer-form textarea {
    min-height: 102px;
    resize: vertical;
}

.contact-prayer-form input:focus,
.contact-prayer-form textarea:focus {
    border-color: #f6ad19;
    box-shadow: 0 0 0 3px rgba(246, 173, 25, .12);
}

.contact-prayer-form button {
    min-height: 43px;
    margin-top: 5px;
    padding: 10px 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 7px;
    color: #061b35;
    background: #f6ad19;
    font-family: inherit;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.contact-prayer-form button:hover { background: #ffc64d; }

.contact-privacy-option {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    color: #b9c9d9 !important;
    font-weight: 500 !important;
    line-height: 1.45;
}

.contact-privacy-option input {
    width: 16px;
    min-height: 16px;
    margin-top: 1px;
}

.contact-hidden-field {
    position: absolute;
    left: -9999px;
}

.contact-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.contact-schedule-grid {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.contact-schedule-item {
    min-height: 160px;
    padding: 15px 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(186, 209, 233, .35);
    border-radius: 9px;
    text-align: center;
    background: rgba(3, 21, 42, .62);
}

.contact-schedule-item > i {
    margin-bottom: 4px;
    color: #f6ad19;
    font-size: 30px;
}

.contact-schedule-item strong {
    color: #ffffff;
    font-size: 12px;
    text-transform: uppercase;
}

.contact-schedule-item span {
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.contact-schedule-item small {
    color: #cbd8e6;
    font-size: 8px;
}

.schedule-color-2 > i { color: #4c9cff; }
.schedule-color-3 > i { color: #bd65e7; }

.contact-calendar-button {
    width: calc(100% - 28px);
    min-height: 40px;
    margin: 0 14px 14px;
    padding: 9px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(186, 209, 233, .46);
    border-radius: 7px;
    color: #ffffff;
    text-decoration: none;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-calendar-button:hover {
    color: #061b35;
    border-color: #f6ad19;
    background: #f6ad19;
}

.contact-schedule-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #cbd8e6;
}

.contact-schedule-empty i {
    color: #f6ad19;
    font-size: 38px;
}

.contact-pastors-card {
    min-height: 345px;
    display: grid;
    grid-template-columns: 58% 42%;
    grid-template-rows: 1fr auto;
    position: relative;
    background: linear-gradient(120deg, rgba(240, 240, 240, .98), rgba(28, 31, 36, .96));
}

.contact-pastors-card > img {
    width: 100%;
    height: 100%;
    min-height: 285px;
    grid-row: 1 / 3;
    display: block;
    object-fit: contain;
    object-position: bottom center;
}

.contact-pastors-quote {
    padding: 25px 20px 15px;
    align-self: center;
    text-align: center;
}

.contact-pastors-quote > i {
    margin-bottom: 8px;
    color: #f6ad19;
    font-size: 28px;
}

.contact-pastors-quote blockquote {
    margin: 0;
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 15px;
    line-height: 1.45;
}

.contact-pastors-quote span {
    margin-top: 10px;
    display: block;
    color: #f6ad19;
    font-size: 10px;
}

.contact-pastors-card footer {
    padding: 9px 13px;
    grid-column: 2;
    color: #ffffff;
    border-top: 1px solid rgba(255,255,255,.14);
    text-align: center;
}

.contact-pastors-card footer small,
.contact-pastors-card footer strong { display: block; }

.contact-pastors-card footer small {
    margin-bottom: 4px;
    color: #dbe4ec;
    font-size: 9px;
}

.contact-pastors-card footer strong {
    color: #f6ad19;
    font-family: Georgia, serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 1050px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-main-grid,
    .contact-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .contact-public-page { padding-top: 18px; }
    .contact-info-grid { grid-template-columns: 1fr; }
    .contact-info-card { min-height: 0; }
    .contact-map-frame { height: 320px; }
    .contact-schedule-grid { grid-template-columns: 1fr; }
    .contact-schedule-item { min-height: 135px; }

    .contact-pastors-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .contact-pastors-card > img {
        min-height: 260px;
        grid-row: auto;
    }

    .contact-pastors-card footer { grid-column: 1; }
}

@media (max-width: 430px) {
    .contact-map-frame { height: 275px; }
    .contact-section-heading { padding-inline: 13px; }
    .contact-prayer-form { padding-inline: 13px; }
}
