/* ===========================
   CARRUSEL DE NOTICIAS MEJORADO
   Diseño profesional, vistoso y práctico
   =========================== */

.licepay-carrusel-premium {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.carrusel-header {
    text-align: center;
    margin-bottom: 3rem;
}

.carrusel-header h2 {
    font-size: 2.5rem;
    color: #E41E26;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.carrusel-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contenedor principal del carrusel */
.carrusel-wrapper {
    position: relative;
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.carrusel-viewport {
    overflow: hidden;
    position: relative;
}

.carrusel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Tarjeta de noticia mejorada */
.noticia-card-premium {
    flex: 0 0 100%;
    padding: 0;
    display: flex;
    min-height: 480px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 100%);
}

.noticia-card-premium.layout-2col {
    flex-basis: 50%;
    min-height: 400px;
}

.noticia-card-premium.layout-3col {
    flex-basis: 33.333%;
    min-height: 350px;
}

/* Imagen de la noticia */
.noticia-imagen-premium {
    flex: 0 0 50%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #E41E26 0%, #6A1B9A 100%);
}

.noticia-imagen-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.noticia-card-premium:hover .noticia-imagen-premium img {
    transform: scale(1.08);
}

/* Badge de categoría */
.noticia-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: #E41E26;
    color: #FFFFFF;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(228, 30, 38, 0.3);
}

/* Contenido de la noticia */
.noticia-contenido-premium {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.noticia-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #999;
}

.noticia-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.noticia-meta-icon {
    color: #E41E26;
    font-weight: 700;
}

.noticia-titulo-premium {
    font-size: 1.8rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-excerpt-premium {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.noticia-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #E0E0E0;
}

.noticia-autor {
    font-size: 0.9rem;
    color: #999;
}

.noticia-link-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #E41E26;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #FFF3F3;
}

.noticia-link-premium:hover {
    background: #E41E26;
    color: #FFFFFF;
    gap: 1rem;
}

/* Botones de navegación */
.carrusel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #E41E26;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 20;
}

.carrusel-nav:hover {
    background: #E41E26;
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
}

.carrusel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carrusel-nav-prev {
    left: 1.5rem;
}

.carrusel-nav-next {
    right: 1.5rem;
}

/* Indicadores (dots) */
.carrusel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.carrusel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E0E0E0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carrusel-dot:hover {
    background: #B0B0B0;
    transform: scale(1.2);
}

.carrusel-dot.active {
    background: #E41E26;
    width: 32px;
    border-radius: 6px;
}

/* Información adicional */
.carrusel-info {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .noticia-card-premium {
        flex-direction: column;
        min-height: auto;
    }

    .noticia-imagen-premium {
        flex: 0 0 250px;
    }

    .noticia-contenido-premium {
        padding: 2rem;
    }

    .noticia-titulo-premium {
        font-size: 1.5rem;
    }

    .carrusel-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .carrusel-nav-prev {
        left: 1rem;
    }

    .carrusel-nav-next {
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .licepay-carrusel-premium {
        padding: 2rem 1rem;
    }

    .carrusel-header h2 {
        font-size: 1.8rem;
    }

    .noticia-card-premium {
        min-height: auto;
    }

    .noticia-imagen-premium {
        flex: 0 0 200px;
    }

    .noticia-contenido-premium {
        padding: 1.5rem;
    }

    .noticia-titulo-premium {
        font-size: 1.3rem;
    }

    .noticia-excerpt-premium {
        font-size: 0.95rem;
    }

    .noticia-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .carrusel-nav {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .carrusel-indicators {
        gap: 0.5rem;
    }

    .carrusel-dot {
        width: 10px;
        height: 10px;
    }

    .carrusel-dot.active {
        width: 28px;
    }
}

@media (max-width: 480px) {
    .licepay-carrusel-premium {
        padding: 1.5rem 1rem;
    }

    .carrusel-header h2 {
        font-size: 1.5rem;
    }

    .carrusel-header p {
        font-size: 1rem;
    }

    .noticia-imagen-premium {
        flex: 0 0 150px;
    }

    .noticia-contenido-premium {
        padding: 1rem;
    }

    .noticia-titulo-premium {
        font-size: 1.1rem;
        -webkit-line-clamp: 2;
    }

    .noticia-excerpt-premium {
        -webkit-line-clamp: 2;
        font-size: 0.9rem;
    }

    .noticia-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .carrusel-nav {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .carrusel-nav-prev {
        left: 0.5rem;
    }

    .carrusel-nav-next {
        right: 0.5rem;
    }

    .carrusel-indicators {
        gap: 0.4rem;
    }

    .carrusel-dot {
        width: 8px;
        height: 8px;
    }

    .carrusel-dot.active {
        width: 24px;
    }
}

/* Animaciones */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.noticia-card-premium.active {
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estados */
.carrusel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carrusel-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #E41E26;
    transform: translateY(-50%);
}

/* Accesibilidad */
.carrusel-nav:focus,
.carrusel-dot:focus {
    outline: 2px solid #E41E26;
    outline-offset: 2px;
}
