/* =========================================================
   COLABORAWEB | ACTUALIZACIONES PREMIUM
   Diseño corporativo azul + verde
   Compatible con el HTML y JS del rotador actual
========================================================= */


/* =========================================================
   ETIQUETA PREMIUM: ACTUALIZACIONES
========================================================= */

.news-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    isolation: isolate;

    padding: 10px 18px;
    margin-bottom: 14px;

    color: #ffffff;
    background: linear-gradient(
        135deg,
        #087cf0 0%,
        #0759b5 100%
    );

    border: 1px solid rgba(16, 217, 130, 0.45);
    border-radius: 10px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;

    box-shadow:
        0 5px 18px rgba(8, 124, 240, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}


/* Brillo que recorre la etiqueta */

.news-badge::after {
    content: "";

    position: absolute;
    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.24) 50%,
        transparent 100%
    );

    transform: skewX(-20deg);
    animation: cwBadgeShine 5s ease-in-out infinite;

    pointer-events: none;
    z-index: -1;
}


/* =========================================================
   INDICADOR LUMINOSO VERDE
========================================================= */

.fire-icon {
    display: inline-block;
    flex: 0 0 8px;

    width: 8px;
    height: 8px;

    background: #10d982;
    border-radius: 50%;

    box-shadow:
        0 0 7px rgba(16, 217, 130, 0.95),
        0 0 15px rgba(16, 217, 130, 0.55);

    animation: cwStatusPulse 1.8s ease-in-out infinite;
}


/* =========================================================
   CONTENEDOR PRINCIPAL DE NOVEDADES
========================================================= */

.news-content {
    display: flex;
    align-items: center;
    gap: 14px;

    width: 100%;
    min-width: 0;
    box-sizing: border-box;

    padding: 15px 18px;

    color: #eaf3ff;

    background: linear-gradient(
        115deg,
        rgba(10, 25, 48, 0.96),
        rgba(13, 39, 70, 0.94)
    );

    border: 1px solid rgba(91, 160, 235, 0.24);
    border-left: 3px solid #087cf0;
    border-radius: 12px;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}


/* =========================================================
   ICONO TECNOLÓGICO
========================================================= */

.news-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;
    width: 38px;
    height: 38px;

    color: #10d982;

    background: rgba(16, 217, 130, 0.09);
    border: 1px solid rgba(16, 217, 130, 0.22);
    border-radius: 10px;

    font-size: 23px;
    line-height: 1;
}


/* =========================================================
   ÁREA DE TEXTO
========================================================= */

.news-text {
    position: relative;

    flex: 1 1 auto;
    min-width: 0;
    min-height: 24px;

    overflow: hidden;
}


/* Todas las novedades permanecen ocultas por defecto */

.news-text a {
    display: none;

    width: 100%;
    box-sizing: border-box;

    color: #f4f8ff;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;

    text-decoration: none;
    overflow-wrap: anywhere;

    transition: color 0.25s ease;
}


/* =========================================================
   NOVEDAD ACTIVA
   Entrada suave, desplazamiento y desenfoque ligero
========================================================= */

.news-text a.active {
    display: block;

    animation: cwNewsEnter 0.65s cubic-bezier(
        0.22,
        1,
        0.36,
        1
    ) both;
}


/* Efecto al pasar el cursor */

.news-text a:hover {
    color: #10d982;
}


/* =========================================================
   ANIMACIÓN DE BRILLO DE LA ETIQUETA
========================================================= */

@keyframes cwBadgeShine {
    0%,
    65% {
        left: -120%;
    }

    100% {
        left: 160%;
    }
}


/* =========================================================
   ANIMACIÓN DEL INDICADOR VERDE
========================================================= */

@keyframes cwStatusPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(0.82);
    }
}


/* =========================================================
   ENTRADA PREMIUM DE CADA NOVEDAD
========================================================= */

@keyframes cwNewsEnter {
    0% {
        opacity: 0;
        transform: translateY(12px);
        filter: blur(2px);
    }

    65% {
        opacity: 1;
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}


/* =========================================================
   RESPONSIVE: TABLET Y MÓVIL
========================================================= */

@media (max-width: 600px) {

    .news-badge {
        padding: 9px 14px;
        margin-bottom: 12px;

        font-size: 11px;
        letter-spacing: 1px;
    }

    .news-content {
        gap: 10px;
        padding: 12px;
    }

    .news-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;

        font-size: 20px;
    }

    .news-text {
        min-height: 22px;
    }

    .news-text a {
        font-size: 13px;
        line-height: 1.55;
    }

}


/* =========================================================
   ACCESIBILIDAD: MOVIMIENTO REDUCIDO
   Mantiene la rotación controlada por JavaScript,
   pero elimina los efectos visuales animados.
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .news-badge::after,
    .fire-icon {
        animation: none !important;
    }

    .news-text a.active {
        animation: none !important;
        filter: none;
        transform: none;
    }

    .news-text a {
        transition: none;
    }

}


/* =========================================================
   FIN | COLABORAWEB ACTUALIZACIONES PREMIUM
========================================================= */