/* ======================================================
   ACTIVIDADES YANAY – CSS PREMIUM
   Solo diseño de la sección ACTIVIDADES
   No incluye header / slider / menú
   ====================================================== */

/* ------------------------------
   SECCIÓN PRINCIPAL
------------------------------ */
.actividades-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 40px;
    min-height: 100vh;
    position: relative;
    z-index: 0;
}

/* ------------------------------
   TÍTULO PRINCIPAL
------------------------------ */
.titulo-actividades {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1F3922;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 20px;
}

.titulo-actividades::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4A6C3D;
    border-radius: 2px;
}

/* ------------------------------
   GRID DE ACTIVIDADES
------------------------------ */
.actividades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ------------------------------
   CARD DE ACTIVIDAD
------------------------------ */
.actividad-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;

    animation: fadeInUp 0.6s ease-out both;
}

/* Animación ordenada */
.actividad-card:nth-child(1) { animation-delay: 0.1s; }
.actividad-card:nth-child(2) { animation-delay: 0.2s; }
.actividad-card:nth-child(3) { animation-delay: 0.3s; }
.actividad-card:nth-child(4) { animation-delay: 0.4s; }
.actividad-card:nth-child(5) { animation-delay: 0.5s; }
.actividad-card:nth-child(6) { animation-delay: 0.6s; }
.actividad-card:nth-child(7) { animation-delay: 0.7s; }
.actividad-card:nth-child(8) { animation-delay: 0.8s; }

/* Hover */
.actividad-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Borde animado */
.actividad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4A6C3D 0%, #6B8E5F 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.actividad-card:hover::before {
    transform: scaleX(1);
}

/* ------------------------------
   IMAGEN
------------------------------ */
.actividad-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

/* Zoom suave */
.actividad-card:hover .actividad-img img {
    transform: scale(1.08);
}

/* Overlay */
.actividad-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.actividad-card:hover .actividad-img::after {
    opacity: 1;
}

/* ------------------------------
   INFORMACIÓN
------------------------------ */
.actividad-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.actividad-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1F3922;
    text-align: center;
    transition: color 0.3s ease;
}

.actividad-card:hover .actividad-info h3 {
    color: #4A6C3D;
}

.actividad-info p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    flex-grow: 1;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 1024px) {
    .actividades-section {
        padding: 70px 30px;
    }
    .titulo-actividades {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .actividades-section {
        padding: 60px 25px;
    }
    .titulo-actividades {
        font-size: 2.2rem;
    }
    .actividad-img {
        height: 210px;
    }
}

@media (max-width: 480px) {
    .actividades-section {
        padding: 50px 20px;
    }
    .titulo-actividades {
        font-size: 1.9rem;
    }
    .actividad-img {
        height: 200px;
    }
}

@media (max-width: 360px) {
    .actividades-section {
        padding: 40px 15px;
    }
    .titulo-actividades {
        font-size: 1.7rem;
    }
}

/* ------------------------------
   ANIMACIÓN
------------------------------ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* FIX para eliminar espacio extra debajo del slider en la página ACTIVIDADES */
.actividades-wrapper .slider {
    margin-bottom: 40px !important;
}
/* ==========================================
   FONDO TOTAL BLANCO EN LA PÁGINA ACTIVIDADES
========================================== */
.actividades-wrapper {
    background: #ffffff !important;
}

/* Quitar el gradiente gris de la sección actividades */
.actividades-section {
    background: #ffffff !important;
}

/* Ajustar separación del slider */
.actividades-wrapper .slider {
    margin-bottom: 20px !important;
}
