/*===================
 Mejoras IBFMO (octubre 2026)
 Redes sociales, botón flotante de WhatsApp y sección de horarios/mensaje en contacto
====================*/

/* BOTÓN FLOTANTE DE WHATSAPP */

.whatsapp-float{
    position:fixed;
    right:20px;
    bottom:20px;
    width:auto;
    height:auto;
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 18px 8px 8px;
    background:#1fa855;
    border-radius:50px;
    box-shadow:0 8px 25px rgba(0,0,0,.25);
    z-index:9999;
    transition:.3s;
}

.whatsapp-float:hover{
    transform:translateY(-3px);
}

.whatsapp-float img{
    width:40px;
    height:40px;
}

.whatsapp-float-label{
    color:#fff;
    font-weight:600;
    font-size:15px;
    white-space:nowrap;
}

/* espacio para que el botón no tape el pie de página */
.footer-bottom{
    padding-bottom:80px;
}

@media (max-width:576px){
    .whatsapp-float{
        right:12px;
        bottom:12px;
        padding:6px 14px 6px 6px;
    }

    .whatsapp-float img{
        width:34px;
        height:34px;
    }

    .whatsapp-float-label{
        font-size:14px;
    }
}

/* CONTACTO: TARJETAS, HORARIOS Y MENSAJE */

.ibf-card{
    background:#fff;
    padding:30px;
    border-radius:20px;
    box-shadow:0 10px 40px rgba(0,0,0,.08);
    margin-bottom:30px;
}

.ibf-card h3{
    font-size:22px;
    font-weight:700;
    color:#1e3a5f;
    margin-bottom:20px;
}

.ibf-card h3 i{
    margin-right:8px;
}

.ibf-schedule{
    margin:0 0 25px;
    padding:0;
    list-style:none;
}

.ibf-schedule li{
    display:grid;
    grid-template-columns:90px 1fr;
    padding:14px 0;
    border-bottom:1px solid #edf0f5;
}

.ibf-schedule li:last-child{
    border-bottom:none;
}

.ibf-schedule span{
    color:#555;
    font-weight:600;
}

.ibf-schedule strong{
    color:#1e3a5f;
    font-size:18px;
}

.ibf-schedule small{
    grid-column:2;
    color:#777;
    font-size:14px;
}

.ibf-help{
    color:#666;
    font-size:14px;
    margin-bottom:18px;
}

.ibf-form label{
    display:block;
    font-weight:600;
    color:#1e3a5f;
    margin:0 0 6px;
}

.ibf-form label span{
    font-weight:400;
    color:#888;
}

.ibf-form select,
.ibf-form input,
.ibf-form textarea{
    display:block;
    width:100%;
    padding:12px 14px;
    margin-bottom:16px;
    border:1px solid #d6dce5;
    border-radius:12px;
    font-size:16px;
    color:#222;
    background:#fff;
}

.ibf-form select:focus,
.ibf-form input:focus,
.ibf-form textarea:focus{
    outline:none;
    border-color:#1e3a5f;
    box-shadow:0 0 0 3px rgba(30,58,95,.15);
}

.ibf-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:13px 26px;
    border-radius:50px;
    font-weight:600;
    font-size:16px;
    border:2px solid transparent;
    cursor:pointer;
    transition:.3s;
}

.ibf-btn-wa{
    width:100%;
    background:#1fa855;
    color:#fff;
}

.ibf-btn-wa:hover{
    background:#178a45;
}

.ibf-btn-outline{
    border-color:#1e3a5f;
    color:#1e3a5f !important;
}

.ibf-btn-outline:hover{
    background:#1e3a5f;
    color:#fff !important;
}

@media (max-width:576px){
    .ibf-card{
        padding:22px;
    }

    .ibf-btn-outline{
        width:100%;
    }
}

/*===================
 Encabezado y menú para celular
====================*/

.modern-header .logo img{
    height:64px;
    max-height:none;
    width:auto;
}

.nav-menu ul li a.active{
    color:#0f4c81;
    font-weight:700;
}

/* menú viejo de la plantilla (reemplazado por .ibf-nav-panel) */
.mobile-menu{
    display:none !important;
}

.modern-header .mobile-toggle{
    display:none;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    border:none;
    border-radius:12px;
    background:#eef3fa;
    color:#1e3a5f;
    font-size:20px;
    cursor:pointer;
}

@media (max-width:991px){
    .modern-header .top-bar,
    .modern-header .nav-menu,
    .modern-header .header-cta{
        display:none;
    }

    .modern-header .mobile-toggle{
        display:flex;
    }

    .modern-header .main-bar .auto-container{
        padding:10px 15px;
    }

    .modern-header .logo img{
        height:52px;
    }
}

.ibf-nav-panel{
    position:fixed;
    inset:0;
    z-index:100000;
    visibility:hidden;
    transition:visibility 0s .3s;
}

.ibf-nav-panel.open{
    visibility:visible;
    transition:none;
}

.ibf-nav-backdrop{
    position:absolute;
    inset:0;
    background:rgba(15,23,42,.6);
    opacity:0;
    transition:opacity .3s;
}

.ibf-nav-panel.open .ibf-nav-backdrop{
    opacity:1;
}

.ibf-nav-box{
    position:absolute;
    top:0;
    right:0;
    width:min(320px,85%);
    height:100%;
    overflow-y:auto;
    background:#fff;
    padding:20px 24px 30px;
    transform:translateX(100%);
    transition:transform .3s ease;
}

.ibf-nav-panel.open .ibf-nav-box{
    transform:none;
}

.ibf-nav-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:20px;
}

.ibf-nav-top img{
    height:52px;
}

.ibf-nav-close{
    width:42px;
    height:42px;
    border:none;
    border-radius:12px;
    background:#eef3fa;
    color:#1e3a5f;
    font-size:18px;
    cursor:pointer;
}

.ibf-nav-links a{
    display:block;
    padding:14px 4px;
    border-bottom:1px solid #edf0f5;
    font-size:18px;
    font-weight:600;
    color:#1e3a5f;
}

.ibf-nav-links a.active{
    color:#0f4c81;
    padding-left:12px;
    border-left:4px solid #ffd166;
}

.ibf-nav-contact{
    margin-top:25px;
    font-size:15px;
    line-height:1.6;
}

.ibf-nav-contact > a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 0;
    color:#1e3a5f;
    font-weight:600;
}

.ibf-nav-contact p{
    display:flex;
    gap:10px;
    margin:8px 0 0;
    color:#555;
    font-size:15px;
    line-height:1.6;
}

.ibf-nav-contact i{
    width:18px;
    margin-top:4px;
    color:#0f4c81;
}

.ibf-nav-social{
    display:flex;
    gap:10px;
    margin-top:18px;
}

.ibf-nav-social a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:10px 16px;
    border-radius:50px;
    background:#1e3a5f;
    color:#fff;
    font-size:15px;
    font-weight:600;
    line-height:1;
}

.ibf-nav-social a.fb{
    background:#1877f2;
}

.ibf-nav-social a.ig{
    background:linear-gradient(45deg,#f09433,#dc2743 50%,#bc1888);
}

.ibf-nav-social a i{
    width:auto;
    margin:0;
    color:#fff;
}

/*===================
 Portada: texto legible y botones visibles
====================*/

.hero-section .hero-overlay{
    z-index:1;
    background:linear-gradient(180deg, rgba(10,25,47,.55) 0%, rgba(10,25,47,.8) 100%);
}

.hero-section .auto-container{
    position:relative;
    z-index:2;
    width:100%;
}

.hero-section .hero-content h1{
    color:#fff;
    text-shadow:0 4px 20px rgba(0,0,0,.35);
}

.hero-section .hero-content p{
    color:rgba(255,255,255,.95);
    text-shadow:0 2px 12px rgba(0,0,0,.4);
}

.hero-section .hero-badge{
    color:#fff;
    background:rgba(255,255,255,.18);
}

.hero-buttons .theme-btn.theme-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:15px 36px;
    border:none;
    border-radius:50px;
    font-size:17px;
    font-weight:700;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
}

.hero-buttons .theme-btn:before{
    display:none;
}

.hero-buttons .theme-btn.btn-one{
    background:#ffd166;
    color:#1e3a5f !important;
}

.hero-buttons .theme-btn.btn-two{
    background:#fff;
    color:#1e3a5f !important;
}

.hero-buttons .theme-btn.btn-one:hover{
    background:#ffc233;
}

.hero-buttons .theme-btn.btn-two:hover{
    background:#eef3fa;
}

@media (max-width:576px){
    .hero-section{
        min-height:0;
        padding:60px 0 110px;
    }

    .hero-section .hero-content h1{
        font-size:36px;
        margin-bottom:18px;
    }

    .hero-section .hero-content p{
        font-size:16px;
        line-height:1.7;
        margin-bottom:28px;
    }

    .hero-section .hero-badge{
        padding:8px 18px;
        margin-bottom:18px;
        font-size:15px;
    }

    .hero-buttons{
        gap:12px;
    }

    .hero-buttons .theme-btn{
        width:100%;
    }
}

/*===================
 Botones del resto del sitio con los colores de la iglesia
 (la plantilla los dejaba transparentes con borde naranja)
====================*/

.theme-btn.btn-one,
.theme-btn.btn-two{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:13px 30px;
    border:2px solid #1e3a5f;
    border-radius:50px;
    font-weight:700;
    transition:.3s;
}

.theme-btn.btn-one:before,
.theme-btn.btn-two:before{
    display:none;
}

.theme-btn.btn-one{
    background:#1e3a5f;
    color:#fff !important;
}

.theme-btn.btn-one:hover{
    background:#0f4c81;
    border-color:#0f4c81;
}

.theme-btn.btn-two{
    background:#fff;
    color:#1e3a5f !important;
}

.theme-btn.btn-two:hover{
    background:#eef3fa;
}

@media (max-width:576px){
    .welcome-section .theme-btn,
    .pastor-actions .theme-btn{
        width:100%;
        margin:0 0 12px;
    }
}

/*===================
 Horarios de servicio sobre la foto de la portada
====================*/

.ibf-service-row > div{
    margin-bottom:20px;
}

.ibf-service-card{
    display:flex;
    align-items:center;
    gap:18px;
    height:100%;
    padding:28px 26px;
    border-radius:20px;
    background:#fff;
    box-shadow:0 15px 50px rgba(0,0,0,.08);
    transition:.3s;
}

.ibf-service-card:hover{
    transform:translateY(-6px);
}

.ibf-service-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    width:60px;
    height:60px;
    border-radius:16px;
    background:#1e3a5f;
    color:#ffd166;
    font-size:24px;
}

.ibf-service-day{
    display:block;
    color:#64748b;
    font-size:14px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.6px;
    line-height:1.3;
}

.ibf-service-time{
    display:block;
    color:#1e3a5f;
    font-size:30px;
    font-weight:800;
    line-height:1.2;
}

.ibf-service-name{
    display:block;
    color:#555;
    font-size:16px;
    line-height:1.4;
}

@media (max-width:991px){
    .stats-section{
        margin-top:-60px;
    }

    .ibf-service-card{
        flex-direction:column;
        gap:12px;
        padding:22px 14px;
        text-align:center;
    }

    .ibf-service-time{
        font-size:24px;
    }

    .ibf-service-name{
        font-size:14px;
    }
}

/* en celular, una tarjeta por renglón con el ícono a la izquierda */
@media (max-width:767px){
    .ibf-service-row > div{
        margin-bottom:12px;
    }

    .ibf-service-card{
        flex-direction:row;
        gap:16px;
        padding:16px 18px;
        text-align:left;
    }

    .ibf-service-icon{
        width:50px;
        height:50px;
        font-size:20px;
    }

    .ibf-service-time{
        font-size:22px;
    }
}

/* las tarjetas de horarios y el mensaje pastoral comparten el mismo fondo;
   la parte de arriba queda transparente porque se encima en la foto */
.stats-section{
    background:linear-gradient(to bottom, transparent 70px, #f8fafc 70px);
}

.stats-section + .pastor-section{
    padding-top:60px;
}

@media (max-width:991px){
    .stats-section{
        background:linear-gradient(to bottom, transparent 60px, #f8fafc 60px);
    }

    .stats-section + .pastor-section{
        padding-top:40px;
    }
}

/*===================
 Mensaje pastoral en celular
====================*/

@media (max-width:991px){
    .pastor-section{
        padding:70px 0;
    }

    .pastor-content{
        padding-left:0;
        margin-top:35px;
    }

    .pastor-content h2{
        font-size:30px;
    }

    .pastor-content .highlight-text{
        font-size:18px;
    }
}

@media (max-width:576px){
    .pastor-content h2{
        font-size:26px;
    }
}

/*===================
 Encabezado de páginas interiores
====================*/

.page-banner{
    position:relative;
    padding:90px 0 80px;
    text-align:center;
    color:#fff;
    background:
        linear-gradient(rgba(10,25,47,.8), rgba(10,25,47,.8)),
        url("../images/banner/IMG_1112.webp") center / cover no-repeat;
}

.page-banner .top-text{
    display:inline-block;
    padding:6px 16px;
    border-radius:50px;
    background:rgba(255,255,255,.15);
    color:#ffd166;
    font-size:14px;
    font-weight:600;
}

.page-banner h1{
    margin:12px 0 14px;
    color:#fff;
    font-size:48px;
    font-weight:800;
    line-height:1.15;
}

.page-banner p{
    max-width:680px;
    margin:0 auto;
    color:rgba(255,255,255,.9);
    font-size:18px;
    line-height:1.7;
    opacity:1;
}

@media (max-width:576px){
    .page-banner{
        padding:55px 0 45px;
    }

    .page-banner h1{
        font-size:32px;
    }

    .page-banner p{
        font-size:16px;
    }
}

/*===================
 Ministerios en celular
====================*/

@media (max-width:991px){
    .ministry-section{
        padding:40px 30px;
    }

    .ministry-content h2{
        font-size:32px;
    }
}

@media (max-width:576px){
    .ministry-section{
        padding:28px 18px;
        border-radius:16px;
    }

    .ministry-content h2{
        font-size:26px;
        line-height:1.25;
        margin-bottom:16px;
    }
}

/*===================
 Carrusel de fotos "Te esperamos"
 - la sombra iba en cada foto y el contenedor del carrusel (esquinas
   cuadradas) la cortaba: se veía un recuadro oscuro abajo
 - sin flechas dentro de la foto
 - puntos centrados en lugar de cuadros
====================*/

.welcome-gallery .owl-stage-outer{
    border-radius:30px;
    box-shadow:0 20px 50px rgba(15,23,42,.18);
    isolation:isolate;
    transform:translateZ(0);
}

.welcome-gallery .gallery-slide{
    box-shadow:none;
    border-radius:30px;
}

.welcome-gallery .history-carousel .owl-nav{
    display:none;
}

.welcome-gallery .history-carousel .owl-dots{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:4px;
    margin-top:22px;
}

.welcome-gallery .history-carousel .owl-dot{
    display:flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    padding:0;
    border:none;
    background:none;
    cursor:pointer;
}

.welcome-gallery .history-carousel .owl-dot span{
    display:block;
    width:12px;
    height:12px;
    margin:0;
    border-radius:50px;
    background:#b4c1d3;
    transition:width .3s, background .3s;
}

.welcome-gallery .history-carousel .owl-dot:hover span{
    background:#8fa3bd;
}

.welcome-gallery .history-carousel .owl-dot.active span{
    width:32px;
    background:#1e3a5f;
}

.welcome-gallery .history-carousel .owl-dot:focus-visible{
    outline:2px solid #1e3a5f;
    outline-offset:2px;
    border-radius:50px;
}

@media (max-width:991px){
    .welcome-gallery{
        margin-bottom:40px;
    }

    .welcome-gallery .gallery-slide img{
        height:480px;
    }
}

@media (max-width:576px){
    .welcome-gallery .owl-stage-outer,
    .welcome-gallery .gallery-slide{
        border-radius:22px;
    }

    .welcome-gallery .gallery-slide img{
        height:380px;
    }

    .welcome-gallery .slide-overlay{
        padding:24px;
    }

    .welcome-gallery .slide-overlay h4{
        font-size:24px;
    }
}

/*===================
 Carrusel de testimonios
 - la sombra de cada tarjeta era más grande que su margen y el carrusel
   la cortaba en recuadro; ahora cabe dentro del margen
 - sin las flechas "‹›" sueltas
 - puntos centrados, igual que el carrusel de fotos
====================*/

.testimonial-section-modern .owl-stage-outer{
    padding-bottom:20px;
}

/* todas las tarjetas a la misma altura (la del testimonio más largo) */
.testimonial-section-modern .owl-stage{
    display:flex;
}

.testimonial-section-modern .owl-item{
    display:flex;
}

.testimonial-section-modern .owl-item .testimonial-card{
    width:100%;
}

.testimonial-section-modern .testimonial-card{
    margin:10px 20px 20px;
    box-shadow:0 14px 30px -12px rgba(15,23,42,.16);
}

.testimonial-section-modern .owl-nav{
    display:none !important;
}

.testimonial-section-modern .owl-dots{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:4px;
    margin-top:10px;
}

.testimonial-section-modern .owl-dots .owl-dot{
    display:flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    padding:0;
    border:none;
    background:none;
    cursor:pointer;
}

.testimonial-section-modern .owl-dots .owl-dot span{
    display:block;
    width:12px;
    height:12px;
    margin:0;
    border-radius:50px;
    background:#b4c1d3;
    transition:width .3s, background .3s;
}

.testimonial-section-modern .owl-dots .owl-dot:hover span{
    background:#8fa3bd;
}

.testimonial-section-modern .owl-dots .owl-dot.active span{
    width:32px;
    background:#1e3a5f;
}

.testimonial-section-modern .owl-dots .owl-dot:focus-visible{
    outline:2px solid #1e3a5f;
    outline-offset:2px;
    border-radius:50px;
}

@media (max-width:576px){
    .testimonial-section-modern{
        padding:70px 0;
    }

    .testimonial-section-modern .testimonial-card{
        margin:10px 6px 20px;
        padding:28px 22px;
    }

    .testimonial-section-modern .section-header h2{
        font-size:30px;
    }
}

/*===================
 Carrusel "Nuestra trayectoria" (Nosotros)
 mismo arreglo que el carrusel de la portada: esquinas limpias,
 sin flechas dentro de la foto y puntos centrados
====================*/

.history-image .owl-stage-outer{
    border-radius:20px;
    isolation:isolate;
    transform:translateZ(0);
}

.history-image .history-carousel figure{
    margin:0;
}

.history-image .history-carousel img{
    display:block;
    border-radius:0;
}

.history-image .history-carousel .owl-nav{
    display:none;
}

.history-image .history-carousel .owl-dots{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:4px;
    margin-top:18px;
}

.history-image .history-carousel .owl-dot{
    display:flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    padding:0;
    border:none;
    background:none;
    cursor:pointer;
}

.history-image .history-carousel .owl-dot span{
    display:block;
    width:12px;
    height:12px;
    margin:0;
    border-radius:50px;
    background:#b4c1d3;
    transition:width .3s, background .3s;
}

.history-image .history-carousel .owl-dot:hover span{
    background:#8fa3bd;
}

.history-image .history-carousel .owl-dot.active span{
    width:32px;
    background:#1e3a5f;
}

.history-image .history-carousel .owl-dot:focus-visible{
    outline:2px solid #1e3a5f;
    outline-offset:2px;
    border-radius:50px;
}

@media (max-width:991px){
    .history-image{
        margin-bottom:30px;
    }
}

@media (max-width:576px){
    .history-card{
        padding:20px;
    }

    .history-image .history-carousel img{
        height:300px;
    }
}

/*===================
 Barra superior: teléfono | correo | ubicación  ·  Síguenos en + Contacto
====================*/

.modern-header .top-bar{
    padding:0;
    font-size:14px;
}

.modern-header .top-bar .auto-container{
    min-height:46px;
    gap:20px;
}

.ibf-topbar-info{
    display:flex;
    align-items:center;
    margin:0;
    padding:0;
    list-style:none;
}

.ibf-topbar-info li{
    display:flex;
    align-items:center;
    gap:8px;
    padding:12px 20px;
    border-left:1px solid rgba(255,255,255,.22);
    color:#fff;
    white-space:nowrap;
}

.ibf-topbar-info li:first-child{
    padding-left:0;
    border-left:none;
}

.ibf-topbar-right{
    display:flex;
    align-items:center;
    gap:18px;
}

.ibf-topbar-social{
    display:flex;
    align-items:center;
    gap:4px;
    color:#fff;
    white-space:nowrap;
}

.ibf-topbar-social span{
    margin-right:6px;
}

.ibf-topbar-social a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    border-radius:50%;
    color:#fff;
    font-size:16px;
    transition:.3s;
}

.ibf-topbar-social a:hover{
    background:rgba(255,255,255,.15);
    color:#ffd166;
}

.ibf-topbar-right .whatsapp-btn{
    display:inline-flex;
    align-items:center;
    gap:6px;
    white-space:nowrap;
}

/*===================
 Contacto: datos y horarios en una tarjeta, formulario a un lado
====================*/

.ibf-contact{
    padding:80px 0 60px;
}

.ibf-contact-col{
    display:flex;
    flex-direction:column;
    margin-bottom:30px;
}

.ibf-contact-col > .ibf-card{
    flex:1;
    margin-bottom:0;
}

.ibf-card-sub{
    padding-top:24px;
    border-top:1px solid #edf0f5;
}

.ibf-info-list{
    margin:0 0 26px;
    padding:0;
    list-style:none;
}

.ibf-info-list li{
    display:flex;
    align-items:center;
    gap:14px;
    padding:10px 0;
}

.ibf-info-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    width:46px;
    height:46px;
    border-radius:14px;
    background:#eef3fa;
    color:#1e3a5f;
    font-size:18px;
}

.ibf-info-list div{
    min-width:0;
}

.ibf-info-list small{
    display:block;
    color:#777;
    font-size:13px;
    line-height:1.4;
}

.ibf-info-list a,
.ibf-info-list p{
    margin:0;
    color:#1e3a5f;
    font-size:16px;
    font-weight:600;
    line-height:1.5;
    overflow-wrap:anywhere;
}

.ibf-info-list a:hover{
    color:#0f4c81;
    text-decoration:underline;
}

@media (max-width:991px){
    .ibf-contact{
        padding:50px 0 40px;
    }
}

@media (max-width:576px){
    .ibf-card h3{
        font-size:20px;
    }

    .ibf-info-list li{
        gap:12px;
    }

    .ibf-info-icon{
        width:40px;
        height:40px;
        font-size:16px;
    }

    .ibf-info-list a,
    .ibf-info-list p{
        font-size:14px;
    }
}

.ibf-link-llegar{
    display:inline-flex !important;
    align-items:center;
    gap:6px;
    margin-top:8px;
    padding:6px 14px;
    border:1.5px solid #1e3a5f;
    border-radius:50px;
    font-size:14px !important;
    font-weight:600;
    color:#1e3a5f !important;
    text-decoration:none !important;
    transition:.3s;
}

.ibf-link-llegar:hover{
    background:#1e3a5f;
    color:#fff !important;
}

/* el formulario llena la altura de la tarjeta de al lado */
.ibf-contact-col > .ibf-card{
    display:flex;
    flex-direction:column;
}

.ibf-contact-col .ibf-form{
    display:flex;
    flex:1;
    flex-direction:column;
}

.ibf-contact-col .ibf-form textarea{
    flex:1;
    min-height:140px;
    resize:vertical;
}

.ibf-contact-card .ibf-schedule{
    margin-bottom:0;
}

/*===================
 Pie de página más limpio
====================*/

.modern-footer .footer-top{
    padding:70px 0 40px;
}

.modern-footer h4{
    font-size:20px;
    font-weight:700;
    letter-spacing:.2px;
}

.modern-footer .footer-about h3{
    font-size:20px;
    font-weight:700;
    line-height:1.35;
}

.modern-footer .footer-about p{
    font-size:15px;
    line-height:1.8;
}

.modern-footer .footer-links a,
.modern-footer .footer-schedule li{
    font-size:15px;
}

.ibf-footer-contact{
    margin:0;
    padding:0;
    list-style:none;
}

.ibf-footer-contact li{
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin-bottom:14px;
    font-size:15px;
    line-height:1.6;
    color:rgba(255,255,255,.85);
}

.ibf-footer-contact i{
    flex-shrink:0;
    width:16px;
    margin-top:5px;
    color:#ffd166;
    text-align:center;
}

.ibf-footer-contact span,
.ibf-footer-contact a{
    min-width:0;
    overflow-wrap:anywhere;
}

.modern-footer .ibf-footer-contact a:hover{
    padding-left:0;
    text-decoration:underline;
}

@media (max-width:991px){
    .modern-footer .footer-top .row > div{
        margin-bottom:30px;
    }
}

/* en celular, Enlaces y Horarios lado a lado */
@media (max-width:767px){
    .modern-footer .footer-top .row > .col-md-6{
        flex:0 0 50%;
        max-width:50%;
    }
}

.modern-footer .footer-bottom p{
    margin:0;
    font-size:14px;
    line-height:1.6;
}

/*===================
 "Te esperamos": lo que puede esperar quien visita por primera vez
====================*/

.ibf-welcome-sub{
    display:flex;
    align-items:center;
    gap:10px;
    margin:28px 0 18px;
    color:#1e3a5f;
    font-size:19px;
    font-weight:700;
    line-height:1.35;
}

.ibf-welcome-sub i{
    color:#d4a017;
}

.ibf-expect-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:14px;
    margin-bottom:30px;
}

.ibf-expect-item{
    display:flex;
    align-items:flex-start;
    gap:14px;
    padding:18px;
    border-radius:16px;
    background:#f7f9fc;
}

.ibf-expect-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    width:44px;
    height:44px;
    border-radius:12px;
    background:#1e3a5f;
    color:#ffd166;
    font-size:18px;
}

.ibf-expect-item h4{
    margin:0 0 4px;
    color:#1e3a5f;
    font-size:16px;
    font-weight:700;
    line-height:1.3;
}

.welcome-content .ibf-expect-item p{
    margin:0;
    color:#555;
    font-size:14px;
    line-height:1.55;
}

@media (max-width:576px){
    .ibf-expect-grid{
        grid-template-columns:1fr;
        gap:10px;
    }

    .ibf-expect-item{
        padding:14px 16px;
    }

    .ibf-welcome-sub{
        font-size:17px;
    }
}

/*===================
 Nosotros: colores del sitio (azul marino y dorado) en lugar del azul
 brillante y el verde de la plantilla
====================*/

.sec-title .top-text{
    color:#b8860b;
}

.sec-title .top-text:before{
    width:50px;
    height:3px;
    border-radius:3px;
    background:#d4a017;
    background-image:none;
}

.foundation-icon{
    background:#1e3a5f;
    color:#ffd166;
}

.foundation-content span{
    color:#b8860b;
}

.foundation-content h3,
.tabs-content h3,
.pastoral-content h3,
.project-card h3{
    color:#1e3a5f;
}

.year-tabs .tab-btn{
    background:#eef3fa;
    color:#1e3a5f;
    user-select:none;
}

.year-tabs .tab-btn:hover{
    background:#dde6f2;
}

.year-tabs .tab-btn.active-btn{
    background:#1e3a5f;
    color:#fff;
    box-shadow:0 10px 25px rgba(30,58,95,.25);
}

.year-tabs .tab-btn:focus-visible{
    outline:2px solid #1e3a5f;
    outline-offset:2px;
}

.tabs-content{
    background:#f7f9fc;
}

.experience-box{
    background:#1e3a5f;
    box-shadow:0 10px 30px rgba(30,58,95,.35);
}

.experience-box span{
    color:#ffd166;
}

.value-item i{
    color:#1e3a5f;
}

.project-card{
    border-top-color:#d4a017;
}

.project-card .icon-box{
    background:#eef3fa;
}

.project-card .icon-box i{
    color:#1e3a5f;
}

/*===================
 Nosotros en tableta y celular
====================*/

@media (max-width:991px){
    .identity-section,
    .history-section-premium,
    .pastoral-section,
    .projects-section{
        padding:60px 0;
    }

    .identity-section .sec-title,
    .pastoral-section .sec-title{
        margin-bottom:36px;
    }

    .history-content{
        padding-left:0;
    }

    .pastoral-content{
        padding-left:0;
        margin-top:24px;
    }

    .pastoral-content h3{
        font-size:26px;
        line-height:1.3;
    }

    /* el recuadro "20+" ya no tapa la foto: va debajo de ella */
    .pastoral-image .experience-box{
        position:static;
        display:flex;
        align-items:center;
        justify-content:center;
        gap:12px;
        min-width:0;
        margin-top:14px;
        padding:14px 20px;
        text-align:left;
    }

    .pastoral-image .experience-box span{
        font-size:32px;
    }

    .pastoral-image .experience-box p{
        margin:0;
    }
}

@media (max-width:767px){
    /* Misión, Visión, Comisión y Fe: ícono arriba y texto a todo lo ancho */
    .foundation-card{
        flex-direction:column;
        gap:14px;
        height:auto;
        padding:24px 22px;
        margin-bottom:16px;
    }

    .foundation-icon{
        width:56px;
        height:56px;
        min-width:56px;
        font-size:24px;
    }

    .foundation-content h3{
        margin:6px 0 10px;
        font-size:21px;
    }

    .foundation-content p{
        line-height:1.7;
    }
}

@media (max-width:576px){
    .sec-title h2{
        font-size:28px;
        line-height:1.25;
    }

    .sec-title .top-text{
        font-size:24px;
        line-height:32px;
    }

    .pastoral-content h3{
        font-size:22px;
    }

    .pastoral-content p{
        font-size:16px;
        line-height:1.75;
    }

    .tabs-content{
        padding:24px 20px;
        min-height:0;
    }

    .tabs-content h3{
        font-size:21px;
    }

    .year-tabs{
        gap:8px;
    }

    .year-tabs .tab-btn{
        padding:10px 18px;
    }

    .project-card{
        padding:30px 22px;
    }

    .project-card .icon-box{
        width:70px;
        height:70px;
        margin-bottom:18px;
    }

    .project-card .icon-box i{
        font-size:28px;
    }

    .project-card h3{
        font-size:21px;
    }

    .projects-section .row > div{
        margin-bottom:16px;
    }
}

/*===================
 Salvación: colores del sitio en lugar del verde de la plantilla
====================*/

.premium-tabs .tab-btn.active{
    background:#1e3a5f;
    color:#fff;
}

.step-header span{
    flex-shrink:0;
    background:#1e3a5f;
    color:#ffd166;
}

.step-header h3{
    color:#1e3a5f;
}

.toggle-step{
    color:#1e3a5f;
    text-decoration:underline;
    text-underline-offset:3px;
}

.highlight,
.step-card.highlight{
    border-left-color:#d4a017;
}

.event-premium .prayer-section{
    background:linear-gradient(135deg, #1e3a5f, #0f2744);
}

/* el título se leía gris oscuro sobre el fondo oscuro */
.event-premium .prayer-header h3{
    color:#fff;
}

.prayer-toggle{
    background:#ffd166;
    color:#1e3a5f;
}

.amen{
    color:#ffd166;
}

/* el texto de la oración también se leía gris oscuro sobre el fondo oscuro */
.event-premium .prayer-card p{
    color:#e8eef6;
    font-size:17px;
    line-height:1.75;
}

.event-premium .prayer-card p.amen{
    color:#ffd166;
}

.prayer-footer p{
    color:#cbd5e1;
}

.ibf-prayer-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin-top:6px;
    padding:13px 22px;
    border-radius:50px;
    background:#1fa855;
    color:#fff !important;
    font-size:15px;
    font-weight:700;
    line-height:1.3;
    transition:.3s;
}

.ibf-prayer-btn:hover{
    background:#178a45;
}

.q-icon{
    flex-shrink:0;
    background:#eef3fa;
    color:#1e3a5f;
}

.faq-question{
    color:#1e3a5f;
}

/* que las respuestas largas no se corten */
.faq-card.active .faq-answer{
    max-height:800px;
}

.dev-card h3{
    color:#1e3a5f;
}

.dev-card.highlight{
    border-left-color:#d4a017;
    background:#fdf8ec;
}

.dev-card p{
    margin-bottom:12px;
}

.dev-card p:last-child{
    margin-bottom:0;
}

.ibf-cita{
    margin:14px 0 16px;
    padding:16px 20px;
    border-left:4px solid #d4a017;
    border-radius:0 12px 12px 0;
    background:#f7f9fc;
    color:#1e3a5f;
    font-size:16px;
    font-style:italic;
    line-height:1.7;
}

.dev-card.highlight .ibf-cita{
    background:#fff;
}

.ibf-cita cite{
    display:block;
    margin-top:6px;
    color:#64748b;
    font-size:14px;
    font-style:normal;
    font-weight:700;
}

.ibf-step-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:14px;
    padding:11px 20px;
    border-radius:50px;
    background:#1fa855;
    color:#fff !important;
    font-size:15px;
    font-weight:700;
    transition:.3s;
}

.ibf-step-btn:hover{
    background:#178a45;
}

.ibf-schedule-compact{
    margin:14px 0 4px;
    padding:0;
}

.ibf-schedule-compact li{
    padding:10px 0;
}

/*===================
 Salvación en celular
====================*/

@media (max-width:576px){
    .event-premium{
        padding:40px 0 60px;
    }

    /* las 3 pestañas en una sola barra */
    .premium-tabs{
        flex-wrap:nowrap;
        gap:6px;
        margin-bottom:24px;
    }

    .premium-tabs .tab-btn{
        flex:1;
        padding:10px 6px;
        font-size:13px;
        line-height:1.25;
        white-space:normal;
    }

    .step-card{
        padding:18px;
    }

    .step-header h3{
        margin:0;
        font-size:19px;
        font-weight:700;
        line-height:1.3;
    }

    .prayer-section{
        padding:26px 20px;
    }

    .ibf-prayer-btn,
    .ibf-step-btn{
        justify-content:center;
        width:100%;
        text-align:center;
    }

    .dev-title h2{
        font-size:24px;
    }

    .dev-title.small h2{
        font-size:20px;
    }

    .ibf-cita{
        padding:14px 16px;
        font-size:15px;
    }
}
