/* ========== SISTEMA DE NOTIFICACIONES - INTERFAZ PREMIUM ========== */

.notification-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 5000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

.notification-banner.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    animation: slideDownNotification 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notification-banner.hidden {
    display: none;
}

/* Wrapper para efectos visuales */
.notification-wrapper {
    position: relative;
    width: 100%;
}

/* Fondo con gradiente y blur */
.notification-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 50%, #1a1f2e 100%);
    opacity: 0.98;
    backdrop-filter: blur(10px);
    z-index: -1;
}

/* Contenido principal */
.notification-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Sección principal */
.notification-main {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex: 1;
    min-width: 280px;
}

/* Wrapper del icono con efecto glow */
.notification-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icono mejorado */
.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.75rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Tipos de icono */
.notification-icon.info {
    background: linear-gradient(135deg, #4a9eff 0%, #357abd 100%);
    color: #ffffff;
    border: 2px solid rgba(74, 158, 255, 0.3);
}

.notification-icon.success {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: #ffffff;
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.notification-icon.warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 152, 0, 0.3);
}

.notification-icon.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: #ffffff;
    border: 2px solid rgba(244, 67, 54, 0.3);
}

.notification-icon.promo {
    background: linear-gradient(135deg, #FF9900 0%, #ff6b00 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 153, 0, 0.3);
}

/* Glow effect */
.notification-glow {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.2) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    z-index: 0;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(74, 158, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(74, 158, 255, 0);
    }
}

.notification-icon i {
    animation: iconBounce 0.6s ease-out;
}

@keyframes iconBounce {
    0% {
        transform: scale(0.3) rotateZ(-20deg);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1) rotateZ(0deg);
        opacity: 1;
    }
}

/* Texto mejorado */
.notification-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.2rem;
}

.notification-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    word-break: break-word;
}

.notification-message {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
    word-break: break-word;
}

.notification-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-style: italic;
    margin-top: 0.2rem;
}

/* Acciones */
.notification-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Botón Aceptar - Premium */
.notification-btn-accept {
    background: linear-gradient(135deg, #FF9900 0%, #ff6b00 100%);
    color: #ffffff;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}

.notification-btn-accept::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.notification-btn-accept:hover {
    background: linear-gradient(135deg, #ff6b00 0%, #ff4500 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 153, 0, 0.6);
}

.notification-btn-accept:hover::before {
    left: 100%;
}

.notification-btn-accept:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.4);
}

.btn-text {
    font-weight: 700;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkBounce 0.6s ease-out;
}

@keyframes checkBounce {
    0% {
        transform: scale(0) rotateZ(-90deg);
    }
    70% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1) rotateZ(0deg);
    }
}

/* Botón Cerrar - Mejorado */
.notification-btn-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.notification-btn-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification-btn-close:active {
    transform: scale(0.95) rotate(90deg);
}

/* Barra de progreso */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF9900, #4a9eff, #4caf50);
    background-size: 200% 100%;
    animation: progressBar 20s linear forwards;
    z-index: 3;
}

@keyframes progressBar {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

/* Animación de entrada */
@keyframes slideDownNotification {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1200px) {
    .notification-content {
        padding: 1.25rem 1.75rem;
        gap: 1.5rem;
    }
    
    .notification-title {
        font-size: 1.15rem;
    }
}

@media (max-width: 992px) {
    .notification-content {
        padding: 1.2rem 1.5rem;
        gap: 1.25rem;
    }

    .notification-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .notification-glow {
        width: 50px;
        height: 50px;
    }

    .notification-title {
        font-size: 1.1rem;
    }

    .notification-message {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .notification-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.1rem 1.25rem;
        gap: 1rem;
    }

    .notification-main {
        width: 100%;
        gap: 1rem;
    }

    .notification-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .notification-glow {
        width: 48px;
        height: 48px;
    }

    .notification-title {
        font-size: 1rem;
    }

    .notification-message {
        font-size: 0.85rem;
    }

    .notification-actions {
        width: 100%;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .notification-btn-accept {
        flex: 1;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .notification-btn-close {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .notification-btn-close {
        display: none;
    }
}

@media (max-width: 480px) {
    .notification-content {
        padding: 0.9rem 0.9rem;
        gap: 0.75rem;
    }

    .notification-main {
        gap: 0.75rem;
    }

    .notification-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .notification-glow {
        width: 44px;
        height: 44px;
    }

    .notification-title {
        font-size: 0.95rem;
        font-weight: 700;
    }

    .notification-message {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .notification-actions {
        flex-direction: column-reverse;
        width: 100%;
    }

    .notification-btn-accept {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .notification-btn-close {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        align-self: flex-end;
    }

    .notification-subtitle {
        font-size: 0.75rem;
    }
}

/* Efectos especiales */
.notification-banner.visible .notification-content {
    animation: contentFadeIn 0.6s ease-out;
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sombra superior elegante */
.notification-banner {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
