/* ==========================================================================
   1. Reset y Estilos Base
   ========================================================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
    color: #333;
}

/* ==========================================================================
   2. Header
   ========================================================================== */
/* Header Styles */
.actividades-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48') no-repeat center center;
    background-size: cover;
    height: 60vh; /* Aumentado para dar más espacio */
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    z-index: 2;
}

.actividades-header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInDown 1s ease-out;
}

.actividades-header p {
    font-size: 1.5rem;
    max-width: 600px;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.header-image {
    max-width: 200px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    margin-top: 2rem;
    animation: fadeIn 1.5s ease-out;
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .actividades-header h1 {
        font-size: 2.5rem;
    }

    .actividades-header p {
        font-size: 1.2rem;
    }

    .header-image {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .actividades-header h1 {
        font-size: 2rem;
    }

    .actividades-header p {
        font-size: 1rem;
    }

    .header-image {
        max-width: 120px;
    }
}

.actividades-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.actividades-header p {
    font-size: 1.2rem;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ==========================================================================
   3. Contenedor Principal
   ========================================================================== */
.actividades-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ==========================================================================
   4. Filtros
   ========================================================================== */
.filtros-section {
    margin-bottom: 40px;
}

.filtros-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filtro-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: #e9ecef;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro-btn:hover,
.filtro-btn.active {
    background: #007bff;
    color: white;
}

/* ==========================================================================
   5. Grid de Actividades
   ========================================================================== */
.actividades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* ==========================================================================
   6. Tarjetas de Actividades
   ========================================================================== */
.actividad-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.actividad-card:hover {
    transform: translateY(-10px);
}

/* Imagen de la actividad */
.actividad-imagen {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.actividad-card:hover .actividad-imagen {
    transform: scale(1.1);
}

/* Efecto overlay */
.actividad-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Información de la actividad */
.actividad-info {
    padding: 20px;
}

.actividad-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.actividad-descripcion {
    color: #666;
    margin-bottom: 15px;
}

/* Detalles de la actividad */
.actividad-detalles {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.actividad-detalles span {
    color: #495057;
    font-size: 0.9rem;
}

.actividad-detalles i {
    color: #007bff;
    margin-right: 5px;
}

/* Botón de horario */
.btn-horario {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-horario:hover {
    background: #0056b3;
}

/* ==========================================================================
   7. Sección de Horarios
   ========================================================================== */
.horarios-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.horarios-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.horario-tabla {
    overflow-x: auto;
}

/* Tabla de horarios */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

/* ==========================================================================
   8. Media Queries
   ========================================================================== */
@media (max-width: 768px) {
    .actividades-header h1 {
        font-size: 2.5rem;
    }

    .filtro-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .actividades-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .actividades-header h1 {
        font-size: 2rem;
    }

    .actividad-detalles {
        flex-direction: column;
        gap: 10px;
    }
}