/**
 * Carousel Text Module - Styles
 * Estilo banner superior tipo notificación
 */

.carousel-text-module {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Mostrar solo escritorio en desktop */
.carousel-text-desktop {
    display: block;
    position: absolute;
}

.carousel-text-mobile {
    display: none;
}

/* Mostrar solo móvil en dispositivos móviles */
@media (max-width: 768px) {
    .carousel-text-desktop {
        display: none;
    }
    
    .carousel-text-mobile {
        display: block;
        margin-top: -60px;
        margin-bottom: 60px;
    }

    .carousel-text-wrapper{
        max-height: 45px;
    }
}

/* Wrapper del carrusel - estilo banner superior */
.carousel-text-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2196f3b0 0%, #2196f340 100%);
    width: 100%;
}

.carousel-text-container {
    position: relative;
    width: 100%;
    min-height: 50px;
}

.carousel-text-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.carousel-text-item.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.carousel-text-content {
    padding: 12px 80px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #ffffff;
    text-align: center;
    font-weight: 500;
}

.carousel-text-content p {
    margin: 0;
    padding: 0;
}

.carousel-text-content strong,
.carousel-text-content b {
    font-weight: 700;
    color: black;
}

.carousel-text-content a {
    color: #ffffff;
    text-decoration: underline;
    transition: opacity 0.3s;
}

.carousel-text-content a:hover {
    opacity: 0.8;
}

/* Botones de navegación - adaptados para banner */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-prev svg,
.carousel-next svg {
    color: #ffffff;
    width: 18px;
    height: 18px;
}

/* Puntos de navegación - estilo banner */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 0 12px 0;
    background: transparent;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.carousel-dot:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background: #ffffff;
    border-color: #ffffff;
}

/* Versión sin carrusel (un solo texto) - estilo banner */
.carousel-text-single {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 100%;
}

.carousel-text-single .carousel-text-content {
    padding: 12px 40px;
    text-align: center;
    color: #ffffff;
}

/* Variaciones de color (opcional - puedes cambiar el gradiente) */
/* Para azul claro estilo la imagen: */
/*
.carousel-text-wrapper,
.carousel-text-single {
    background: linear-gradient(135deg, #89CFF0 0%, #6BA8D0 100%);
}
*/

/* Para un color sólido como en la imagen: */
/*
.carousel-text-wrapper,
.carousel-text-single {
    background: #89CFF0;
}
*/

/* Responsive */
@media (max-width: 768px) {
    .carousel-text-content {
        padding: 10px 60px;
        font-size: 0.85em;
    }
    
    .carousel-text-single .carousel-text-content {
        padding: 10px 30px;
        font-size: 0.85em;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 28px;
        height: 28px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-prev svg,
    .carousel-next svg {
        width: 16px;
        height: 16px;
    }
    
    .carousel-dots {
        padding: 6px 0 10px 0;
    }
}

@media (max-width: 480px) {
    .carousel-text-content {
        padding: 12px 50px;
        font-size: 0.8em;
    }
    
    .carousel-text-single .carousel-text-content {
        padding: 8px 20px;
        font-size: 0.8em;
    }
}