/**
 * Carrusel de Cursos Populares - Estilos Mejorados (UX/UI)
 * Paleta: Púrpura (#AE00FF), Negro (#000000), Blanco (#FFFFFF)
 */

/* --- Contenedor Principal y Fondo --- */
.ccp-carousel-wrapper {
    background-color: #000000;
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 3px solid #AE00FF;
    border-radius: 10px;
}

/* --- Estilos de las tarjetas (Slides) --- */
.ccp-course-card {
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.ccp-course-card:hover {
    transform: translateY(-5px);
}

/* --- Imagen Destacada (Miniatura) --- */
.ccp-course-image {
    margin: 0 auto 15px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #AE00FF;
}

.ccp-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Contenido de la Tarjeta --- */
.ccp-course-content {
    color: #FFFFFF;
}

.ccp-course-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    min-height: 50px;
}

.ccp-course-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ccp-course-title a:hover {
    color: #AE00FF;
}

/* --- Precio y Etiqueta "Gratis" --- */
.ccp-course-price {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.ccp-course-price .free-tag {
    font-weight: bold;
    color: #AE00FF;
}

/* --- Botones con Íconos --- */
.ccp-course-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.ccp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #AE00FF;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    font-size: 0;
    position: relative;
}

.ccp-btn svg {
    width: 22px;
    height: 22px;
    fill: #FFFFFF;
}

.ccp-btn:hover {
    background-color: #9300d6;
    transform: scale(1.1);
}

/* --- Controles de Navegación de Slick --- */
.slick-prev,
.slick-next {
    width: 40px;
    height: 40px;
    background-color: #AE00FF !important;
    border-radius: 50%;
    z-index: 10;
}

.slick-prev:before,
.slick-next:before {
    font-size: 24px !important;
    color: #FFFFFF !important;
}

/* 
 * --- CORRECCIÓN DE VISIBILIDAD DE FLECHAS ---
 * Se cambia el posicionamiento de negativo a positivo para que las flechas
 * aparezcan dentro del contenedor del carrusel y no sean cortadas por el `overflow: hidden`.
 */
.slick-prev { left: 15px; }
.slick-next { right: 15px; }


/* --- Notificación de "Agregado al Carrito" --- */
.ccp-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000000;
    color: #FFFFFF;
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid #AE00FF;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.ccp-notification.show {
    opacity: 1;
    visibility: visible;
}