* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* PORTADA CON IMAGEN DE FONDO */
.cover {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('img/culto_divino.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    width: 100%;
    padding: 60px 20px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.animated-title {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.number {
    font-size: 8rem;
    font-weight: bold;
    color: #f8c300;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
    line-height: 0.9;
}

.anniversary {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.church-name {
    font-size: 2.2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border-top: 2px solid #f8c300;
    padding-top: 15px;
    display: inline-block;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* CONTENIDO PRINCIPAL */
.main-content {
    padding: 40px 20px;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: #f8c300;
    margin: 15px auto;
    border-radius: 2px;
}

/* CONTENEDOR DE ACTIVIDADES */
.activities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* TARJETAS DE ACTIVIDAD */
.activity-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.activity-image {
    height: 200px;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-card:hover .activity-image img {
    transform: scale(1.05);
}

.activity-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.activity-date {
    background: #f8c300;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
}

.activity-title {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.activity-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.activity-details {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.activity-responsible,
.activity-time {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.activity-responsible strong,
.activity-time strong {
    color: #333;
}

/* ENLACES DE ACTIVIDADES */
.activity-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.activity-link:hover {
    transform: translateY(-5px);
}

.activity-link:hover .activity-card {
    transform: none; /* Elimina la transformación del card individual */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}




/* SECCIÓN DEL MAPA */
.map-section {
    margin: 60px 0;
}

.map-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 30px;
    background-color: #333;
    color: white;
    width: 100%;
    border-radius: 10px;
    margin-top: 40px;
}

.footer p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .number {
        font-size: 5rem;
    }
    
    .anniversary {
        font-size: 2rem;
    }
    
    .church-name {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .activities-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .activity-content {
        padding: 20px;
    }
    
    .activity-title {
        font-size: 1.2rem;
    }
    
    .map-container {
        padding: 10px;
    }
    
    .footer p {
        font-size: 1rem;
    }
}