/* Configuración de Accesibilidad y Fuentes */
body {
    font-size: 18px; /* Fuente base recomendada para adultos mayores */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

/* Efecto Hover Suave */
.transition-all {
    transition: all 0.3s ease;
}

/* Ajustes para el Banner del Día 14 */
.banner-glow {
    animation: pulse-gold 2s infinite;
}

.carousel-slide {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 1s ease;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

#carousel-caption {
    max-width: 36rem;
}

#carousel-caption-title {
    letter-spacing: -0.03em;
}

.carousel-control {
    background: rgba(15, 23, 42, 0.72);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    transition: background 0.2s ease;
}

.carousel-control:hover {
    background: rgba(15, 23, 42, 0.9);
}

#carousel-dots button {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.65);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

#carousel-dots button.active {
    background: white;
    transform: scale(1.2);
}

/* Estilos Galería Avanzada */
.filter-btn.active {
    background-color: #1e3a8a; /* blue-900 */
    color: white;
    border-color: #1e3a8a;
}

.gallery-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

#lightbox.active {
    display: flex;
}

/* Estilos Grupos Pastorales */
.grupo-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.grupo-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.25rem);
    border-color: #1e3a8a;
}

.modal-full {
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Animación de entrada */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-full.active {
    opacity: 1;
    visibility: visible;
    /* display: flex; */ /* Removed as visibility handles display */
}

.modal-container {
    background-color: white;
    width: 70vw;
    height: 90vh;
    border-radius: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-full.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header-custom {
    background-color: white;
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-body-custom {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

/* Estilos para el Carrusel de Calendario */
.event-card {
    min-width: 300px;
    flex: 0 0 calc(33.333% - 1rem);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.event-card:hover {
    transform: translateY(-10px);
}

/* Efecto de Reflejo/Espejo */
.event-card::after {
    content: "";
    position: absolute;
    top: 105%;
    left: 10%;
    width: 80%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(30, 58, 138, 0.1), transparent);
    filter: blur(4px);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.event-card:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .event-card {
        flex: 0 0 85%;
    }
}

@keyframes pulse-gold {
    0% { background-color: #fef3c7; }
    50% { background-color: #fde68a; }
    100% { background-color: #fef3c7; }
}

/* Media Query para pantallas pequeñas */
@media (max-width: 640px) {
    body {
        font-size: 16px; /* Ajuste ligero en móviles */
    }
}
