/* === ESTILO GENERAL Y FIX FOOTER === */
html, body { 
    height: 100%; 
    margin: 0; 
}

body { 
    display: flex; 
    flex-direction: column;
    font-family: 'Segoe UI', Arial, sans-serif; 
    background: linear-gradient(180deg, #f0f6ff, #ffffff); 
    color: #333; 
}
.main-wrapper {
    flex: 1 0 auto;
}

/* === SECCIÓN HERO CON ANIMACIÓN SPIN === */
.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; 
    position: relative; 
}
.hero p { 
    font-size: 1.1rem; 
    color: #eaf4ff; 
    max-width: 700px; 
    margin: auto; 
    position: relative; 
}

/* === CONTENEDOR Y TARJETAS === */
.container-activities { 
    max-width: 1100px; 
    margin: 60px auto; 
    padding: 0 20px; 
}
.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: 16%;
    height: 3px;
    background: #0074E4;
    margin: 10px auto 0;
    border-radius: 2px;
}

.gallery { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}

.card {
    background: white; 
    border-radius: 16px; 
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease; 
    opacity: 0; 
    transform: translateY(40px);
}

.card.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

.card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 12px 28px rgba(0,0,0,0.15); 
}

.card-link {
    display: block; 
    overflow: hidden; 
    background-color: #000; 
}

.card img, .card video { 
    width: 100%; 
    height: 260px; 
    object-fit: cover; 
    display: block; 
    transition: 0.4s ease; 
}

.card-link:hover img { 
    transform: scale(1.08); 
    opacity: 0.85; 
}

.card-content {
    padding: 20px; 
    text-align: center; 
}
.card h3 { 
    color: #004085; 
    font-size: 1.2rem; 
    margin: 0; font-weight: bold; 
}

.card p { 
    color: #555;
    margin-top: 10px; 
    line-height: 1.6; 
    font-size: 0.95rem; 
}

.empty-msg {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    grid-column: 1 / -1;
}