/* Estilos modernos para la sección Nuestras Clases */

/* Ajustes generales de la sección */
#our-classes {
    padding: 80px 0;
    background-color: rgba(35,45,57,0.03);
}

/* Contenedor de tabs mejorado */
#tabs {
    margin-top: 50px;
}

/* Lista de tabs modernizada */
#tabs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#tabs ul li {
    margin-bottom: 20px;
    opacity: 0;
    animation: slideInLeft 0.6s ease-out forwards;
}

#tabs ul li:nth-child(1) { animation-delay: 0.1s; }
#tabs ul li:nth-child(2) { animation-delay: 0.2s; }
#tabs ul li:nth-child(3) { animation-delay: 0.3s; }
#tabs ul li:nth-child(4) { animation-delay: 0.4s; }
#tabs ul li:nth-child(5) { animation-delay: 0.5s; }
#tabs ul li:nth-child(6) { animation-delay: 0.6s; }

/* Botones de clases modernos */
#tabs ul li a {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

#tabs ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(237, 86, 59, 0.1), transparent);
    transition: left 0.5s ease;
}

#tabs ul li a:hover::before {
    left: 100%;
}

#tabs ul li a:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(237, 86, 59, 0.2);
    border-color: #ed563b;
    color: #ed563b;
}

#tabs ul li a.ui-tabs-active,
#tabs ul li a:focus {
    background: linear-gradient(135deg, #ed563b 0%, #f09433 100%);
    color: white;
    box-shadow: 0 5px 25px rgba(237, 86, 59, 0.4);
    transform: translateX(10px);
}

/* Iconos de clases */
#tabs ul li a img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

#tabs ul li a:hover img,
#tabs ul li a.ui-tabs-active img {
    filter: grayscale(0%) brightness(1.1);
    transform: rotate(5deg) scale(1.1);
}

/* Contenido de tabs mejorado */
.tabs-content {
    margin-left: 30px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.7s forwards;
}

.tabs-content article {
    display: none;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.tabs-content article.ui-tabs-active {
    display: block;
    animation: slideInRight 0.6s ease-out;
}

/* Imagen de la clase con overlay */
.tabs-content article img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
    position: relative;
}

.tabs-content article::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
}

.tabs-content article:hover img {
    transform: scale(1.05);
}

/* Contenido del artículo */
.tabs-content article h4 {
    position: absolute;
    top: 330px;
    left: 30px;
    color: white;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 1;
}

.tabs-content article p {
    padding: 30px;
    padding-top: 50px;
    line-height: 1.8;
    color: #666;
    font-size: 15px;
}

/* Badge de popularidad */
.class-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ed563b;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

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

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

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

/* Responsive */
@media (max-width: 991px) {
    #tabs {
        margin-top: 30px;
    }
    
    #tabs ul {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        margin-bottom: 30px;
    }
    
    #tabs ul li {
        margin-right: 15px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    #tabs ul li a {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    #tabs ul li a img {
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }
    
    .tabs-content {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .tabs-content article img {
        height: 250px;
    }
    
    .tabs-content article h4 {
        top: 200px;
        left: 20px;
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    #tabs ul li a {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    #tabs ul li a img {
        width: 25px;
        height: 25px;
    }
    
    .tabs-content article h4 {
        font-size: 20px;
    }
    
    .tabs-content article p {
        padding: 20px;
        font-size: 14px;
    }
}

/* Efectos adicionales para hover en dispositivos táctiles */
@media (hover: hover) {
    #tabs ul li a:hover {
        background: linear-gradient(135deg, rgba(237, 86, 59, 0.05) 0%, rgba(240, 148, 51, 0.05) 100%);
    }
}

/* Indicador de tab activo */
#tabs ul li a.ui-tabs-active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: white;
    border-radius: 2px;
}

/* Mejora para el scroll horizontal en móvil */
#tabs ul::-webkit-scrollbar {
    height: 5px;
}

#tabs ul::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#tabs ul::-webkit-scrollbar-thumb {
    background: #ed563b;
    border-radius: 10px;
}

#tabs ul::-webkit-scrollbar-thumb:hover {
    background: #d44a2f;
}