/* ===================================
   ESTILOS GENERALES
   =================================== */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ===================================
   NAVEGACIÓN
   =================================== */

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    padding: 80px 0;
    background: #14b3db;
    background: linear-gradient(66deg, rgba(20, 179, 219, 1) 0%, rgba(7, 41, 115, 1) 100%);
    color: white;
}

.hero-section h1 {
    color: white;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.95);
}

.hero-section .btn-outline-primary {
    color: white;
    border-color: white;
}

.hero-section .btn-outline-primary:hover {
    background-color: white;
    color: #667eea;
}

.hero-section img {
    transition: transform 0.3s ease;
}

.hero-section img:hover {
    transform: scale(1.05);
}

/* ===================================
   CATEGORÍAS
   =================================== */

.categoria-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.categoria-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.categoria-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.categoria-card:hover .categoria-icon {
    transform: scale(1.2);
}

/* ===================================
   ACTIVIDADES
   =================================== */

.actividad-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.actividad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.actividad-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.actividad-card:hover img {
    transform: scale(1.1);
}

.actividad-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.actividad-info {
    font-size: 0.9rem;
    color: #6c757d;
}

.actividad-info i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* ===================================
   TABLA DE HORARIOS
   =================================== */

#tablaHorarios {
    border-radius: 10px;
    overflow: hidden;
}

#tablaHorarios thead {
    font-weight: 600;
}

#tablaHorarios tbody tr {
    transition: background-color 0.2s ease;
}

#tablaHorarios tbody tr:hover {
    background-color: rgba(148, 185, 238, 0.05);
}

#tablaHorarios td {
    vertical-align: middle;
}

.horario-disponible {
    background-color: #1dbbe2;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

/* ===================================
   FORMULARIO
   =================================== */

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.card {
    border: none;
    border-radius: 15px;
}

form label {
    font-weight: 600;
    color: #495057;
}

/* ===================================
   ANIMACIONES
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* ===================================
   SECCIONES
   =================================== */

section {
    scroll-margin-top: 70px;
}

section h2 {
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #764ba2);
    border-radius: 2px;
}

/* ===================================
   BOTONES
   =================================== */

.btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #020024;
    background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(0, 212, 255, 1) 100%);
    border: none;
}

.btn-primary:hover {
    background: #833AB4;
    background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
}

/* ===================================
   FOOTER
   =================================== */

footer {
    margin-top: 50px;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section img {
        margin-top: 30px;
    }
    
    section h2 {
        font-size: 1.75rem;
    }
}

/* ===================================
   UTILIDADES
   =================================== */

.shadow-sm-hover:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 992px) {
    .nav-link {
        padding: 0.5rem 1rem !important;
    }
}

@media (hover: hover) {
    .actividad-card:hover img {
        transform: scale(1.1);
    }

    .categoria-card:hover {
        transform: translateY(-10px);
    }
}
