/* === ESTILO GENERAL === */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(180deg, #f0f6ff, #ffffff);
    color: #333;
}

/* === SECCIÓN HERO === */
.hero {
    background: linear-gradient(135deg, #0074E4, #00a8e8);
    color: white;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.15), transparent 70%);
    animation: spin 10s infinite linear;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero h1 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.hero p {
    font-size: 1.1rem;
    color: #eaf4ff;
    max-width: 700px;
    margin: auto;
}

/* === CONTENEDOR PRINCIPAL === */
.container-activities {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

/* === TÍTULO DE SECCIÓN === */
.section-title {
    text-align: center;
    color: #0074E4;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
}
.section-title::after {
    content: "";
    display: block;
    width: 12%;
    height: 3px;
    background: #0074E4;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* === GALERÍA === */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* === TARJETAS === */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    /* Transición suave para la entrada con Scroll Y para el efecto Hover */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, opacity 0.4s ease;
    will-change: transform, box-shadow;
}

/* Cuando el JavaScript le añade la clase, toma su posición base */
.card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* NUEVA ANIMACIÓN LIGERA AL PASAR EL RATÓN (HOVER) */
.card.visible:hover {
    /* Eleva sutilmente la tarjeta solo 4px */
    transform: translateY(-4px);
    /* Sombra muy suave y expandida, nada pesada */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.card-link {
    display: block;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
}

.card img, .card video {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.card-link:hover img {
    transform: scale(1.08);
    opacity: 0.85;
}

.card-content {
    padding: 20px;
    text-align: center;
}

.card h3 {
    color: #0074E4;
    font-size: 1.2rem;
    margin: 0;
}
.card p {
    color: #444;
    margin-top: 10px;
    line-height: 1.6;
}

/* === MENSAJE VACÍO === */
.empty {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-top: 80px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
}