/* === RESET Y ESTRUCTURA BASE === */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #fdfdfd;
}


main {
    flex: 1;
    margin: 0;
    padding-top: 70px; /* Ajusta este valor según la altura de tu menú */
}

/* === SECCIÓN HERO === */
.hero {
    background: linear-gradient(135deg, #0074E4, #00a8e8);
    color: white;
    text-align: center;
    padding: 60px 20px; /* Espaciado interno del texto */
    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);
    /* Esto asegura que el color empiece desde arriba del main */
    margin-top: -70px; 
    padding-top: 110px; /* padding-top original + altura del menú */
}

.hero h1 {
    margin: 0;
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.1rem;
    color: #eaf4ff;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* === CONTENEDOR DE CONTENIDO === */
.container-activities {
    max-width: 1100px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 40vh;
}

.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: 23%;
    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;
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.card.visible { opacity: 1; transform: translateY(0); }

.card img, .card video {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-content { 
    padding: 20px; 
    text-align: center;
    flex-grow: 1;
}

.card h3 { 
    color:  #0074E4; 
    font-size: 1.2rem; 
    margin: 0 0 10px 0; 
    font-weight: 700;
}

.card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.empty-msg {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    grid-column: 1 / -1;
}

/* Animación de fondo */
.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1), transparent 70%);
    animation: spin 15s infinite linear;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }