/* Estilo general para centrar el contenido y dar un fondo suave */
body {
    background-color: #f8f9fa;
}
.container {
    padding-top: 20px;
    padding-bottom: 20px;
}
main.container {
    padding-top: 0px;
    padding-bottom: 0px;
}
.card-header {
    background-color: #0d6efd;
    color: white;
    font-weight: bold;
}
/* --- FOOTER DEL SISTEMA --- */
.main-footer {
    /* Posiciona el footer al final de la página (sticky footer) */
    position: sticky;
    width: 100%;
    padding: 8px 0;
    margin-top: 200px; /* Espacio entre el contenido principal y el footer */
    background-color: #f8f9fa; /* Color de fondo claro (similar a Bootstrap) */
    border-top: 1px solid #e9ecef; /* Línea de separación superior */
    text-align: center;
    font-size: 0.9em;
    color: #6c757d;
    text-align: center;
}

.main-footer .container {
    /* Asegura que el contenido esté centrado si usas un contenedor */
    max-width: 1200px; 
    margin: 0 auto;
}

.main-footer .footer-text {
    margin: 0;
}

/* Estilo para el nombre de usuario */
.main-footer .footer-user {
    font-weight: bold;
    color: #343a40; /* Color oscuro para destacarlo */
}

/* Separador (opcional) */
.main-footer .footer-separator {
    margin: 0 8px;
}
/* Estilo para el nuevo enlace (footer-user-link) */
.main-footer .footer-user-link {
    font-weight: bold;
    color: #343a40; /* Mantiene el color oscuro */
    text-decoration: none; /* 🌟 ELIMINA EL SUBRAYADO 🌟 */
    
    /* Efecto hover sutil (opcional) */
    transition: color 0.3s;
}

/* Define el color cuando el usuario pasa el ratón por encima */
.main-footer .footer-user-link:hover {
    color: #007bff; /* Color azul para indicar que es clickable */
    text-decoration: underline; /* Añade subrayado al hacer hover */
}

nav.navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
nav > div.container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Estilos personalizados para el Popover */
.popover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: none;
    padding: 10px;
}

.logo_portal {
    width: 32px;
    height: auto;
    filter: invert(1); /* Convierte el logo a blanco para mejor contraste en la navbar oscura */
}
.btn-sugerencias {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Estilos Portal Misioneros */
/* PORTAL MISIONEROS */
body {
    background-color: #f4f7fa !important;
}

/* Estilos personalizados para igualar el diseño de la imagen */
.directory-header {
    margin-bottom: 2rem;
}
.search-filter-bar {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-tabs-custom .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}
.nav-tabs-custom .nav-link.active {
    color: #0d6efd;
    border-bottom: 3px solid #0d6efd;
    background: transparent;
}
.misionero-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.misionero-card:hover {
    transform: translateY(-5px);
}
.card-img-container {
    position: relative;
    height: 240px;
    background: #f0f2f5;
}
.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.badge-country {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.mision-name {
    color: #0d6efd;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}
.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
}
.btn-ver-perfil {
    background-color: #0d6efd;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px;
    margin-top: 15px;
}
.accordion-button:not(.collapsed) {
    background-color: transparent;
    color: inherit;
    box-shadow: none;
}
/* Estilo para el Badge de la Bandera */
.badge-flag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.5rem; /* Tamaño del emoji */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Estilo para las Tabs Personalizadas */
.nav-tabs-custom {
    border-bottom: 2px solid #e2e8f0;
}
.nav-tabs-custom .nav-link {
    border: none;
    color: #64748b;
    font-weight: 600;
    padding: 1rem 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}
.nav-tabs-custom .nav-link.active {
    color: #2563eb;
    background: transparent;
}
.nav-tabs-custom .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2563eb;
}
.nav-tabs-custom .nav-link:hover:not(.active) {
    color: #334155;
    background: #f8fafc;
}

/* Contenedor del Mapa */
/* Contenedor del Mapa */
#map-view {
    height: 88vh;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    z-index: 1; /* Evita que el mapa tape los menús desplegables */
}

/* Estilos del Popup del Mapa */
.custom-popup .leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}
.popup-card {
    width: 200px;
}
.popup-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}
.popup-content {
    padding: 10px;
    text-align: center;
}

/* Animación para ocultar/mostrar filtros */
#search-section {
    transition: all 0.3s ease;
    overflow: hidden;
}
.filters-hidden {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0 !important;
    pointer-events: none;
}

/* DETALLE DE MISIONERO */
.profile-header {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: 2rem;
}
.profile-cover {
    height: 100px;
    background: linear-gradient(135deg, #0d6efd 0%, #003d99 100%);
    position: relative;
}
.profile-main {
    padding: 0 2rem 2rem 2rem;
    position: relative;
}
.profile-photo-container {
    width: 350px;
    height: 350px;
    margin-top: -90px;
    border: 6px solid white;
    border-radius: 25px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.profile-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.info-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}
.social-link {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    transition: all 0.2s;
    margin-right: 10px;
    text-decoration: none;
}
.social-fb { background: #e7f0ff; color: #1877f2; }
.social-ig { background: #fff0f0; color: #e4405f; }
.social-mail { background: #f0f0f0; color: #333; }

.social-link:hover { transform: translateY(-3px); filter: brightness(0.9); }

/* Estilo de Cita para el Testimonio */
.testimony-quote {
    position: relative;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 20px;
    border-left: 4px solid #2563eb;
    margin-top: 2rem;
}
.testimony-quote::before {
    content: '"';
    position: absolute;
    top: 0px;
    left: 0px;
    font-size: 5rem;
    color: #e2e8f0;
    font-family: serif;
    line-height: 0.9;
}
.testimony-text {
    font-size: 1.1rem;
    color: #334155;
    line-height: 1.5;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.info-label {
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.info-value {
    color: #1e293b;
    font-weight: 600;
    font-size: 1.1rem;
}

#map-view-detail {
    height: 50vh;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    z-index: 1; 
}