/* Estilos Generales */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFCC29;
    color: #050A35;
}

/* Contenedor principal */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Estilo para el contenedor de las Vicarías */
.vicarias-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

/* Estilo para cada tarjeta de Vicaría */
.vicaria-card {
    background-color: #0367b0;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    flex: 1 1 calc(20% - 20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(3, 103, 176, 0.10);
}

.vicaria-card:hover {
    background-color: #068531;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(6, 133, 49, 0.15);
}

.vicaria-title {
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 10px;
    color: #fff !important;
    letter-spacing: 0.5px;
}

.parroco-name {
    font-size: 1rem;
    color: #fff !important;
    font-weight: normal;
}

.ver-parroquias {
    display: inline-block;
    background-color: #FFCC29;
    color: #050A35;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    font-weight: bold;
    margin-top: 8px;
}

.ver-parroquias:hover {
    background-color: #0367b0;
    color: #fff;
}

@media (min-width: 1024px) {
    .vicarias-container {
        flex-wrap: nowrap;
    }
    .vicaria-card {
        flex: 1 1 18%;
    }
}

@media (max-width: 800px) {
    .vicarias-container {
        flex-direction: column;
        gap: 16px;
    }
    .vicaria-card {
        flex: 1 1 100%;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .vicaria-card {
        flex: 1 1 30%;
    }
}

/* --- Buscador y limpiar filtros --- */
.search-bar-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}
.search-bar-left {
    justify-content: flex-start !important;
}
.custom-search-container {
    width: 50%;
    min-width: 220px;
    max-width: 500px;
    display: flex;
    align-items: center;
    background: #f4f4f4;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(3,103,176,0.07);
    padding: 4px 8px;
    margin-left: 30px;
    margin-right: auto;
}
.custom-search-input {
    flex: 1;
    padding: 8px 14px;
    font-size: 15px;
    border: none;
    border-radius: 20px 0 0 20px;
    outline: none;
    background: transparent;
    color: #000;
}
.custom-clear-filters-button {
    background: #0367b0;
    border-radius: 20px;
    margin-left: 6px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #fff;
    border: none;
    padding: 7px 18px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: bold;
}
.custom-clear-filters-button:hover {
    background: #068531;
    color: #FFCC29;
}
@media (max-width: 800px) {
    .custom-search-container {
        width: 90%;
        min-width: 0;
    }
}

/* Contenedor de Parroquias en dos columnas */
.parroquias-container {
    margin-top: 36px;
    min-height: 120px;
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(3,103,176,0.04);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 900px) {
    .parroquias-container {
        grid-template-columns: 1fr;
    }
}

.parroquia-titulo {
    font-size: 20px;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
    color: #050A35;
    margin-bottom: 10px;
    text-align: center;
}

.parroquia-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(44,62,80,0.25);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
}

.parroquia-image {
    width: 80%;
    max-width: 80%;
    height: 250px;
    max-height: 250px;
    object-fit: cover;
    border-radius: 16px;
    border: 4px solid #0367b0;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 6px 24px rgba(44,62,80,0.30);
}

.parroquia-details {
    width: 100%;
    font-size: 17px;
    font-family: 'Times New Roman', Times, serif;
    color: #000;
    text-align: left;
}

.no-results {
    text-align: center;
    color: #e74c3c;
    font-weight: bold;
    padding: 30px 0;
    font-size: 1.2rem;
}

/* Animaciones de transición */
.fade-out {
    opacity: 0;
    transition: opacity 0.3s;
}
.fade-in {
    opacity: 1;
    transition: opacity 0.5s;
}

/* Indicador de carga */
.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}
.loading-spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #0367b0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}