/* --- Estilos Exclusivos para el Catálogo de Cursos --- */

.carousel-section {
    margin-bottom: 8rem;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 3000px;
    overflow: visible;
    margin-top: 2rem;
}

.carousel-stack {
    position: relative;
    width: 100%;
    max-width: 900px; 
    height: 100%;
    transform-style: preserve-3d;
}

.carousel-nav {
    position: absolute;
    width: 100%;
    max-width: 1150px; 
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1100;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.carousel-nav.is-active {
    opacity: 1;
    visibility: visible;
}

.carousel-nav button {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    pointer-events: auto;
}

.carousel-nav button:hover {
    background: #f97316;
    border-color: #f97316;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.4);
}

.category-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 25px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.category-title:hover {
    letter-spacing: 8px;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, transparent, #f97316, transparent);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-title:hover::after {
    width: 200px;
}

@media (max-width: 768px) {
    .carousel-section { margin-bottom: 5rem; }
    .carousel-wrapper { height: 480px; perspective: 1500px; }
    .carousel-stack { max-width: 350px; }
    .category-title { font-size: 1.6rem !important; letter-spacing: 2px !important; margin-bottom: 2rem !important; }
    .carousel-nav { top: 50%; left: 50%; width: 100%; max-width: 520px; padding: 0 20px; justify-content: space-between; transform: translate(-50%, -50%); pointer-events: none; display: flex !important; }
    .carousel-nav button { width: 55px; height: 55px; font-size: 1.4rem; }
}