/* Estilos para la sección IBJ - Iglesia Bíblica de Jesucristo */

:root {
    --ibj-primary: #8B5A2B;      /* Café oscuro */
    --ibj-secondary: #F5F5DC;    /* Beige claro */
    --ibj-accent: #C19A6B;       /* Ocre/arena */
    --ibj-text: #3E2723;         /* Café muy oscuro para texto */
    --ibj-gradient: linear-gradient(135deg, var(--ibj-primary), #A0522D);
    --ibj-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    --ibj-transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Sección principal */
.ibj-section {
    padding: 70px 0;
    position: relative;
    background-color: #f9f9f9;
    overflow: hidden;
    background-image: url('../img/recursos/pngtree-vintage-book-cover-s-aged-fabric-texture-image_13871737.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.ibj-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.97), rgba(245, 245, 245, 0.95));
    z-index: 0;
}

.ibj-section .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

/* Tagline */
.ibj-tagline-container {
    text-align: center;
    margin: 15px auto;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.ibj-tagline {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--ibj-primary);
    line-height: 1.8;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    color: #6D4C41;  /* Café medio para mejor legibilidad */
}

.ibj-tagline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--ibj-accent);
}

/* Contenido principal */
.ibj-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Banner */
.ibj-banner-wrapper {
    width: 100%;
    max-width: 1000px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.ibj-banner {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--ibj-transition);
}

/* Logo */
.ibj-logo-wrapper {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 10px solid white;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin-top: -100px;
    position: relative;
    z-index: 2;
    transition: var(--ibj-transition);
    margin-left: auto;
    margin-right: auto;
}

.ibj-logo-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ibj-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media screen and (max-width: 768px) {
    .ibj-logo {
        object-fit: cover;
    }
}

/* Visión */
.ibj-vision-container {
    width: 100%;
    max-width: 800px;
    margin-top: 10px;
}

.ibj-vision-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: var(--ibj-transition);
}

.ibj-vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.ibj-vision-header {
    text-align: center;
    margin-bottom: 25px;
}

.ibj-vision-header h3 {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ibj-primary);
    margin-bottom: 15px;
}

.ibj-vision-divider {
    width: 80px;
    height: 3px;
    background: var(--ibj-accent);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.ibj-vision-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.ibj-vision-text {
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #5D4037;  /* Café medio para el texto principal */
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Botones CTA */
.ibj-cta-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
    width: 100%;
    max-width: 600px;
}

.ibj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--ibj-transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    flex: 1;
    text-align: center;
}

.ibj-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
    transition: var(--ibj-transition);
}

.ibj-btn-primary {
    background: var(--ibj-gradient);
    color: white;
}

.ibj-btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 58, 107, 0.3);
}

.ibj-btn-primary:hover i {
    transform: translateY(-3px);
}

.ibj-btn-secondary {
    background-color: white;
    color: var(--ibj-primary);
    border: 2px solid var(--ibj-primary);
}

.ibj-btn-secondary:hover {
    background-color: var(--ibj-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 58, 107, 0.3);
}

.ibj-btn-secondary:hover i {
    transform: translateX(3px);
}

/* Responsive */
@media screen and (max-width: 992px) {
    .ibj-section {
        padding: 80px 0;
    }
    
    .ibj-tagline {
        font-size: 1.2rem;
    }
    
    .ibj-logo-wrapper {
        width: 250px;
        height: 250px;
        margin-top: -80px;
    }
    
    .ibj-vision-card {
        padding: 30px;
    }
    
    .ibj-vision-header h3 {
        font-size: 1.8rem;
    }
    
    .ibj-vision-text {
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .ibj-section {
        padding: 60px 0;
    }
    
    .ibj-logo-wrapper {
        width: 250px; /* Aumentado para dispositivos móviles */
        height: 250px; /* Aumentado para dispositivos móviles */
        margin-top: -50px;
        border-radius: 0; /* Eliminar el círculo en móviles */
    }
    
    .ibj-logo {
        border-radius: 0; /* Asegurar que la imagen no tenga bordes redondeados */
    }
    
    .ibj-cta-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .ibj-btn {
        width: 100%;
        padding: 14px 28px;
    }
}

@media screen and (max-width: 576px) {
    .ibj-section {
        padding: 50px 0;
    }
    
    .ibj-tagline {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .ibj-logo-wrapper {
        width: 280px; /* Aún más grande para móviles pequeños */
        height: 280px; /* Aún más grande para móviles pequeños */
        margin-top: -40px;
        border-width: 0; /* Sin borde */
        border-radius: 0; /* Sin bordes redondeados */
        padding: 0; /* Sin padding */
    }
    
    .ibj-logo {
        border-radius: 0; /* Asegurar que la imagen no tenga bordes redondeados */
        padding: 0; /* Sin padding */
    }
    
    .ibj-vision-card {
        padding: 25px 20px;
    }
    
    .ibj-vision-header h3 {
        font-size: 1.5rem;
    }
    
    .ibj-vision-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .ibj-btn {
        font-size: 1rem;
        padding: 12px 24px;
    }
}
