/* ========== MODAL DE NOVEDADES - ESTILOS COMPLETOS ========== */

/* Botón flotante */
.btn-flotante-novedades {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99998;
    background: linear-gradient(135deg, #0066cc, #0a84ff);
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
    transition: all 0.3s ease;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.btn-flotante-novedades:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.5);
}

.btn-flotante-novedades i {
    font-size: 1.2rem;
}

.btn-flotante-texto {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Modal principal */
.modal-novedades {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.modal-novedades.visible {
    visibility: visible;
    opacity: 1;
}

.modal-novedades-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-novedades-contenedor {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 100000;
    animation: modalEntrada 0.4s ease;
}

@keyframes modalEntrada {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-novedades-cerrar {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-novedades-cerrar:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

/* Contenido */
.modal-novedades-contenido {
    padding: 0;
}

/* Carrusel */
.modal-carrusel {
    position: relative;
    min-height: 520px;
}

.modal-slide {
    display: none;
    text-align: center;
    padding: 32px 32px 24px;
    animation: slideFade 0.4s ease;
}

.modal-slide.active {
    display: block;
}

@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Badge */
.modal-badge {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.modal-badge.oferta {
    background: #e67e22;
}

/* Icono */
.modal-icono {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #0066cc, #0a84ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.modal-icono i {
    font-size: 2.8rem;
    color: white;
}

/* Título y descripción */
.modal-titulo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1d1c21;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.modal-descripcion {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Características */
.modal-caracteristicas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.modal-caracteristica {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
}

.modal-caracteristica i {
    color: #0066cc;
    font-size: 0.9rem;
}

/* Oferta */
.modal-oferta {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    border-radius: 60px;
    padding: 18px 28px;
    margin: 0 0 28px;
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-oferta-porcentaje {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.modal-oferta-texto {
    font-size: 1rem;
    color: white;
    opacity: 0.95;
}

/* Botones */
.modal-botones {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn-primario,
.modal-btn-secundario {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.modal-btn-primario {
    background: #0066cc;
    color: white;
}

.modal-btn-primario:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.modal-btn-secundario {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
}

.modal-btn-secundario:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Controles del carrusel */
.modal-controles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 24px 20px;
}

.modal-control-prev,
.modal-control-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #6c757d;
}

.modal-control-prev:hover,
.modal-control-next:hover {
    background: #0066cc;
    border-color: #0066cc;
    color: white;
}

.modal-puntos {
    display: flex;
    gap: 8px;
}

.modal-punto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-punto.active {
    width: 28px;
    border-radius: 12px;
    background: #0066cc;
}

/* Footer */
.modal-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid #e9ecef;
    text-align: center;
    background: #fafbfc;
}

.modal-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #6c757d;
}

.modal-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.modal-checkmark {
    width: 18px;
    height: 18px;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s ease;
}

.modal-checkbox input:checked + .modal-checkmark {
    background: #0066cc;
    border-color: #0066cc;
    position: relative;
}

.modal-checkbox input:checked + .modal-checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.modal-footer-nota {
    font-size: 0.7rem;
    color: #8e8e93;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.modal-footer-nota i {
    font-size: 0.7rem;
}

/* Modo Oscuro */
[data-theme="dark"] .modal-novedades-contenedor {
    background: #1e1e2e;
}

[data-theme="dark"] .modal-titulo {
    color: #ffffff;
}

[data-theme="dark"] .modal-descripcion {
    color: #a0a0b0;
}

[data-theme="dark"] .modal-caracteristica {
    background: #2d2d3a;
    color: #e0e0e8;
}

[data-theme="dark"] .modal-caracteristica i {
    color: #0a84ff;
}

[data-theme="dark"] .modal-btn-secundario {
    background: #2d2d3a;
    border-color: #3d3d4a;
    color: #e0e0e8;
}

[data-theme="dark"] .modal-btn-secundario:hover {
    background: #3d3d4a;
}

[data-theme="dark"] .modal-control-prev,
[data-theme="dark"] .modal-control-next {
    background: #2d2d3a;
    border-color: #3d3d4a;
    color: #a0a0b0;
}

[data-theme="dark"] .modal-punto {
    background: #3d3d4a;
}

[data-theme="dark"] .modal-footer {
    background: #2d2d3a;
    border-color: #3d3d4a;
}

[data-theme="dark"] .modal-checkbox {
    color: #a0a0b0;
}

[data-theme="dark"] .modal-checkmark {
    background: #2d2d3a;
    border-color: #3d3d4a;
}

[data-theme="dark"] .modal-novedades-cerrar {
    background: rgba(255, 255, 255, 0.1);
    color: #a0a0b0;
}

[data-theme="dark"] .modal-novedades-cerrar:hover {
    background: #ff453a;
    color: white;
}

[data-theme="dark"] .btn-flotante-novedades {
    background: linear-gradient(135deg, #0a84ff, #409cff);
}

/* Responsive */
@media (max-width: 768px) {
    .modal-carrusel {
        min-height: 550px;
    }
    
    .modal-slide {
        padding: 28px 24px 20px;
    }
    
    .modal-titulo {
        font-size: 1.4rem;
    }
    
    .modal-icono {
        width: 70px;
        height: 70px;
    }
    
    .modal-icono i {
        font-size: 2.2rem;
    }
    
    .btn-flotante-novedades {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
    }
    
    .btn-flotante-texto {
        display: none;
    }
    
    .btn-flotante-novedades i {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .modal-slide {
        padding: 24px 20px 16px;
    }
    
    .modal-titulo {
        font-size: 1.2rem;
    }
    
    .modal-descripcion {
        font-size: 0.9rem;
    }
    
    .modal-botones {
        flex-direction: column;
    }
    
    .modal-btn-primario,
    .modal-btn-secundario {
        width: 100%;
        justify-content: center;
    }
    
    .modal-caracteristicas {
        gap: 8px;
    }
    
    .modal-caracteristica {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .modal-oferta-porcentaje {
        font-size: 1.5rem;
    }
    
    .modal-control-prev,
    .modal-control-next {
        width: 34px;
        height: 34px;
    }
}