/* ==========================================================================
   VISTA MINISTERIAL PREMIUM (ESTILOS GLOBALES DE LA SECCIÓN)
   ========================================================================== */
.ministerio-section {
    padding: 60px 20px;
}
.apoyo-section-bg {
    padding: 60px 20px;
    background-color: #f8fafc; /* Fondo grisáceo premium muy sutil */
}
.ministerio-header {
    text-align: center;
    margin-bottom: 45px;
}
.ministerio-header .section-title {
    font-size: 2.5rem;
    font-weight: 800;
     color: var(--primary); /* <--- Cambiado a tu Vino Tinto Institucional */
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.ministerio-header .title-underline {
    width: 65px;
    height: 4px;
    /* Degradado idéntico de Vino Tinto a Dorado */
    background: linear-gradient(90deg, #600208 0%, #a26b1f 65%, #D4AF37 100%);
    margin: 0 auto;
    border-radius: 50px;
}
/* ==========================================================================
   GRID & TARJETAS DE PASTORES (Evita que queden gigantes si son solo 2)
   ========================================================================== */
.pastores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px)); /* Límite max de ancho de 340px */
    justify-content: center; /* Centra las tarjetas si hay pocas */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pastor-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.pastor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(96, 2, 8, 0.08);
    border-color: rgba(96, 2, 8, 0.12);
}

.pastor-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 3.6; /* Proporción premium de retrato */
    overflow: hidden;
    background-color: #f1f5f9;
}

.pastor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pastor-card:hover .pastor-img {
    transform: scale(1.03);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 70%, rgba(96, 2, 8, 0.2) 100%);
}

.pastor-info {
    padding: 24px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pastor-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 5px 0;
}

.pastor-rol {
    font-size: 0.95rem;
    color: #600208; /* Su rol resalta en Vino Tinto */
    font-weight: 600;
    margin-bottom: 20px;
}

/* Botón de Perfil Moderno */
.btn-ver-perfil-premium {
    width: 100%;
    padding: 11px 20px;
    background: transparent;
    border: 2px solid #600208;
    color: #600208;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.pastor-card:hover .btn-ver-perfil-premium {
    background: #600208;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(96, 2, 8, 0.2);
}

/* ==========================================================================
   GRID & TARJETAS DE APOYO MINISTERIAL
   ========================================================================== */
.apoyo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    justify-content: center;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.apoyo-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
}

.apoyo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.apoyo-avatar-container {
    width: 85px;
    height: 85px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.apoyo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apoyo-meta h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.apoyo-rol {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 14px;
}

.btn-ver-link {
    background: transparent;
    border: none;
    color: #600208;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}
.btn-ver-link:hover {
    color: #D4AF37;
}

/* ==========================================================================
   MODALES PREMIUM (CON EFECTO GLASSMORPHISM EN EL FONDO)
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(8px); /* Desenfoque fino de fondo moderno */
}

.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 16px;
    padding: 35px;
    position: relative;
    z-index: 2;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content.modal-sm { 
    max-width: 420px; 
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: #475569;
    cursor: pointer;
    user-select: none;
}
.modal-close-btn:hover { color: #0f172a; }

.modal-main-info {
    text-align: center;
    margin-bottom: 20px;
}

.modal-main-info .modal-img-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.modal-main-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.modal-rol-badge {
    display: inline-block;
    background: rgba(96, 2, 8, 0.07);
    color: #600208;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}
.modal-rol-badge.golden {
    background: rgba(212, 175, 55, 0.1);
    color: #a27b18;
}

.modal-family-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.modal-family-photo {
    width: 100%;
    height: auto;
    display: block;
}

.modal-bio-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bio-card-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px 20px;
    border-left: 4px solid #D4AF37; /* Detalle dorado lateral */
}

.bio-card-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.bio-card-item p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.modal-detalles-box p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .modal-content { padding: 25px 15px; }
    .ministerio-header .section-title { font-size: 1.8rem; }
}