/* Toast con Fondo de Color y Texto Blanco */
:root {
    --exito: #3ab65c;
    --error: #bf333b;
    --info: #1898c0;
    --warning: #bc8c12;
}

.toast-simple {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    border-radius: 8px;
    padding: 25px 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 500px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    cursor: pointer;
}

.toast-simple.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* ✅ FONDO CON COLORES DE LAS VARIABLES */
.toast-simple.success {
    background: var(--exito);
}

.toast-simple.error {
    background: var(--error);
}

.toast-simple.info {
    background: var(--info);
}

.toast-simple.warning {
    background: var(--warning);
}

/* Icono con fondo blanco */
.toast-simple::before {
    content: '';
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.toast-simple.success::before {
    content: '✓';
    color: var(--exito);
}

.toast-simple.error::before {
    content: '✕';
    color: var(--error);
}

.toast-simple.info::before {
    content: 'i';
    color: var(--info);
}

.toast-simple.warning::before {
    content: '!';
    color: var(--warning);
}

/* ✅ TEXTO EN BLANCO */
.toast-simple::after {
    content: attr(data-message);
    color: white;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

/* Overlay claro y transparente */
.toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.toast-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Animación mejorada */
@keyframes toastAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.toast-simple.show {
    animation: toastAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Efecto hover sutil */
.toast-simple:hover {
    transform: translate(-50%, -50%) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 480px) {
    .toast-simple {
        max-width: 95%;
        min-width: 260px;
        padding: 18px 22px;
        gap: 12px;
    }
    
    .toast-simple::before {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
    
    .toast-simple::after {
        font-size: 14px;
    }
}