/* ==========================================================================
   COURSES CAROUSEL - FRONTEND STYLES - CORREGIDO
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800;900&display=swap');

/* Wrapper principal */
.courses-carousel-wrapper {
    width: 100%;
    margin: 0px auto;
}

/* Container del carrusel */
.courses-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Carrusel */
.courses-carousel {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}

/* Slides - CORREGIDO PARA NO VER FONDO */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
}

.carousel-slide.prev {
    opacity: 0;
    transform: translateX(0);
    z-index: 1;
}

/* Contenido del slide */
.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Fondo del slide - SIN COLOR ENCIMA */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
}

/* Overlay del contenido */
.slide-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.slide-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    padding: 60px 60px 0 60px;
    gap: 40px;
}

/* Contenido izquierdo */
.content-left {
    flex: 1;
    max-width: 600px;
    color: white;
    animation: slideInLeft 0.8s ease-out;
    padding-bottom: 60px;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Badge del curso */
.course-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Título del curso */
.course-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin: 0 0 24px 0;
}

/* Descripción */
.course-description {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin: 0 0 32px 0;
}

/* Meta información */
.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 36px;
}

.meta-item {
    display: flex;
    align-items: center;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
}

.meta-icon {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Botón del curso */
.course-button {
    background: #ffffff33;
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.course-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    color: #ffffff;
    text-decoration: none;
}

.course-button:active {
    transform: translateY(-1px);
}

.course-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.course-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.course-button:hover svg {
    transform: translateX(4px);
}

/* Contenido derecho (instructor) */
.content-right {
    position: relative;
    flex-shrink: 0;
    width: 450px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.instructor-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.instructor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* Flechas de navegación */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    opacity: 0.8;
}

.carousel-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* Estado vacío */
.courses-carousel-empty {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 40px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.empty-icon {
    margin-bottom: 24px;
    opacity: 0.6;
}

.empty-icon svg {
    width: 64px;
    height: 64px;
}

.courses-carousel-empty h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.courses-carousel-empty p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .courses-carousel {
        height: 500px;
    }
    
    .slide-inner {
        padding: 50px 50px 0 50px;
    }
    
    .course-title {
        font-size: 2.6rem;
    }
    
    .content-right {
        width: 350px;
    }
    
    .content-left {
        padding-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .courses-carousel {
        height: 600px;
    }
    
    .slide-inner {
        flex-direction: column;
        justify-content: flex-end;
        padding: 40px 30px 0 30px;
        text-align: center;
        align-items: center;
    }
    
    .content-left {
        max-width: 100%;
        padding-bottom: 30px;
    }
    
    .course-title {
        font-size: 2.2rem;
    }
    
    .course-description {
        font-size: 1rem;
    }
    
    .course-meta {
        justify-content: center;
        gap: 20px;
    }
    
    .content-right {
        width: 280px;
        height: 280px;
        margin-top: 20px;
    }
    
    .carousel-arrow {
        width: 44px;
        height: 44px;
    }
    
    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .courses-carousel {
        height: 550px;
    }
    
    .slide-inner {
        padding: 30px 20px 0 20px;
    }
    
    .course-badge {
        font-size: 0.75rem;
        padding: 8px 18px;
    }
    
    .course-title {
        font-size: 2.0rem;
        margin-bottom: 16px;
    }
    
    .course-description {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    .course-meta {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 28px;
    }
    
    .course-button {
        padding: 14px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .content-right {
        display: none;
    }
    
    .content-left {
        padding-bottom: 40px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-slide,
    .course-button,
    .carousel-arrow {
        transition: none;
    }
    
    .content-left,
    .content-right {
        animation: none;
    }
}

/* OCULTAR FLECHAS */
.carousel-arrow,
.carousel-prev,
.carousel-next {
    display: none !important;
}

/* Cursor de arrastre */
.courses-carousel {
    cursor: grab;
}

.courses-carousel:active {
    cursor: grabbing;
}