/* pages/about/about.css - VERSIÓN LIMPIA Y ORDENADA */

:root {
    --primary-red: #B61943;
    --dark-bg: #141414;
    --text-gray: #ccc;
}

/* --- CONTENEDOR PRINCIPAL DEL MODAL (FONDO) --- */
#about-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#about-modal.show {
    display: flex;
    opacity: 1;
}

/* --- CAJA DE CONTENIDO (LA VENTANA) --- */
.ab-modal-content {
    background: var(--dark-bg);
    width: 90%;
    max-width: 900px;
    height: 85vh;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    animation: slideUp 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(80px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- BOTÓN DE CERRAR (LA 'X' FLOTANTE) --- */
.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 101; /* Debe estar por encima de todo */
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-red);
    transform: rotate(90deg);
}

/* --- SECCIÓN DE CABECERA (HERO) --- */
.ab-hero {
    height: 300px;
    background: url('../../assets/img/slider/1.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.ab-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), var(--dark-bg));
}

.ab-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 80%;
}

.ab-content h1 {
    font-size: 2.5rem;
    color: white;
    margin: 0 0 15px 0;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight {
    color: var(--primary-red);
}

.ab-verse {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 15px;
    font-size: 1rem;
    border-left: 3px solid var(--primary-red);
    padding-left: 15px;
    display: inline-block;
}

/* --- CONTENEDOR DEL TEXTO --- */
.ab-container {
    padding: 40px;
    color: var(--text-gray);
}

/* --- TIPOGRAFÍA Y TEXTOS --- */
.ab-text h2 {
    color: white;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.ab-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-red);
}

.ab-text p {
    line-height: 1.9;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

strong {
    color: white;
    font-weight: 600;
}

em {
    color: var(--primary-red);
    font-style: normal;
    font-weight: 600;
}

/* --- GRID DE IDENTIDAD (LOGO Y TEXTO) --- */
.ab-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    margin-bottom: 60px;
    align-items: start;
}

.ab-image-box {
    text-align: center;
}

.ab-image-box img {
    width: auto;
    max-height: 300px; /* Control de altura para que no sea gigante */
    max-width: 100%;
    border-radius: 15px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

/* --- TARJETA DE LOS PASTORES --- */
.ab-pastors {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    gap: 30px;
    align-items: center;
    border-top: 3px solid var(--primary-red);
    margin-bottom: 50px;
}

.ab-pastors img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(182, 25, 67, 0.3);
    padding: 5px;
}

.ab-info h3 {
    margin: 0;
    color: white;
    font-size: 1.4rem;
}

.ab-role {
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.ab-pastors p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* --- RESPONSIVE (MÓVILES) --- */
@media (max-width: 768px) {
    .ab-hero {
        height: 290px;
    }

    .ab-content h1 {
        font-size: 1.8rem;
    }

    .close-modal {
        top: 15px;
        right: 15px;
        font-size: 2rem;
    }

    .ab-container {
        padding: 25px;
    }

    .ab-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ab-image-box img {
        max-height: 200px;
    }

    .ab-pastors {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
}