﻿/* css/modal-botones/modal-botones.css - Versión Premium */
.modal-botones-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.85) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    display: none;
}

.modal-botones-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 34, 40, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    z-index: 9999;
    width: 520px;
    max-width: 95%;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.modal-botones-header {
    background: linear-gradient(135deg, #d42228 0%, #8b1a1f 100%);
    color: white;
    padding: 28px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

    .modal-botones-header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 50%);
        animation: rotate 20s linear infinite;
    }

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.modal-botones-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .modal-botones-header h3 i {
        font-size: 28px;
        filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.modal-botones-close {
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

    .modal-botones-close:hover {
        opacity: 1;
        background: rgba(255, 255, 255, 0.25);
        transform: rotate(180deg) scale(1.1);
        border-color: rgba(255, 255, 255, 0.5);
    }

.modal-botones-content {
    padding: 35px 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 100%);
    position: relative;
}

    .modal-botones-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #d42228, #ff6b6b, #d42228);
        background-size: 200% 100%;
        animation: gradientMove 3s linear infinite;
    }

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.modal-botones-buttons {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.modal-botones-btn {
    padding: 22px 25px;
    border: none;
    background: linear-gradient(145deg, #ffffff, #f0f3fa);
    color: #1a1f36;
    font-size: 18px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    position: relative;
    box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(212, 34, 40, 0.1), inset 0 -2px 0 rgba(0,0,0,0.05), inset 0 2px 4px rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: scale(1);
}

    .modal-botones-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 20px;
        padding: 2px;
        background: linear-gradient(145deg, #d42228, #ff8a8a);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
    }

    .modal-botones-btn i {
        font-size: 36px;
        width: 48px;
        text-align: center;
        background: linear-gradient(135deg, #d42228, #b31e24);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        filter: drop-shadow(0 4px 6px rgba(212, 34, 40, 0.2));
    }

    .modal-botones-btn span {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

        .modal-botones-btn span strong {
            font-size: 18px;
            font-weight: 700;
            color: #1a1f36;
            transition: color 0.3s ease;
        }

        .modal-botones-btn span small {
            font-size: 13px;
            color: #5a6275;
            font-weight: 500;
            letter-spacing: 0.3px;
            transition: color 0.3s ease;
        }

    .modal-botones-btn .btn-arrow {
        font-size: 16px;
        color: #d42228;
        opacity: 0.5;
        transform: translateX(0);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        background: rgba(212, 34, 40, 0.1);
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .modal-botones-btn:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 20px 30px -10px rgba(212, 34, 40, 0.4), 0 0 0 2px rgba(212, 34, 40, 0.3), inset 0 -2px 0 rgba(0,0,0,0.1);
        background: linear-gradient(145deg, #ffffff, #ffffff);
    }

        .modal-botones-btn:hover::before {
            opacity: 1;
        }

        .modal-botones-btn:hover i {
            transform: scale(1.1) rotate(5deg);
            filter: drop-shadow(0 6px 8px rgba(212, 34, 40, 0.3));
        }

        .modal-botones-btn:hover span strong {
            color: #d42228;
        }

        .modal-botones-btn:hover span small {
            color: #8b1a1f;
        }

        .modal-botones-btn:hover .btn-arrow {
            opacity: 1;
            transform: translateX(8px);
            background: #d42228;
            color: white;
        }

    .modal-botones-btn:active {
        transform: translateY(-2px) scale(1.01);
        transition: all 0.1s ease;
    }

    .modal-botones-btn:focus {
        outline: none;
        box-shadow: 0 0 0 4px rgba(212, 34, 40, 0.3), 0 10px 20px -8px rgba(0, 0, 0, 0.2);
    }

/* Botón especial para doble validación */
.modal-botones-btn-doble {
    background: linear-gradient(145deg, #fff5f5, #ffe8e8);
    border: 1px solid rgba(212, 34, 40, 0.3);
}

    .modal-botones-btn-doble i {
        background: linear-gradient(135deg, #d42228, #ff4444);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .modal-botones-btn-doble .btn-arrow {
        background: rgba(212, 34, 40, 0.15);
        color: #d42228;
    }

    .modal-botones-btn-doble:hover {
        background: linear-gradient(145deg, #fff0f0, #ffe0e0);
        box-shadow: 0 20px 30px -10px rgba(212, 34, 40, 0.5), 0 0 0 2px rgba(212, 34, 40, 0.4);
    }

/* Animaciones de entrada */
@keyframes modalScaleIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.modal-botones-container.show {
    display: block;
    animation: modalScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-botones-overlay.show {
    display: block;
    animation: overlayFadeIn 0.4s ease forwards;
}

/* Toast notifications premium */
.modal-botones-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    color: white;
    padding: 18px 30px 18px 25px;
    border-radius: 60px;
    z-index: 10000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.2);
    animation: toastPremium 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 450px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 15px;
    letter-spacing: 0.3px;
}

    .modal-botones-toast i {
        font-size: 24px;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }

    .modal-botones-toast.info {
        background: linear-gradient(135deg, #2196F3, #1976D2);
    }

    .modal-botones-toast.success {
        background: linear-gradient(135deg, #4CAF50, #2E7D32);
    }

    .modal-botones-toast.error {
        background: linear-gradient(135deg, #f44336, #c62828);
    }

    .modal-botones-toast.warning {
        background: linear-gradient(135deg, #ff9800, #ed6c02);
    }

@keyframes toastPremium {
    0% {
        transform: translateX(120%) rotate(5deg);
        opacity: 0;
    }

    50% {
        transform: translateX(-10%) rotate(-2deg);
    }

    100% {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .modal-botones-container {
        width: 95%;
    }

    .modal-botones-header h3 {
        font-size: 20px;
    }

    .modal-botones-btn {
        padding: 18px 20px;
    }

        .modal-botones-btn i {
            font-size: 28px;
            width: 40px;
        }

        .modal-botones-btn span strong {
            font-size: 16px;
        }

        .modal-botones-btn span small {
            font-size: 12px;
        }
}




/* css/modal-botones.css - Añadir estos estilos */

.modal-botones-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    border-left: 4px solid;
    overflow: hidden;
}

    .modal-botones-toast.show {
        transform: translateX(0);
    }

    .modal-botones-toast i {
        font-size: 20px;
    }

    .modal-botones-toast span {
        flex: 1;
        font-size: 14px;
        color: #333;
    }

    .modal-botones-toast.success {
        border-left-color: #28a745;
    }

        .modal-botones-toast.success i {
            color: #28a745;
        }

    .modal-botones-toast.error {
        border-left-color: #dc3545;
    }

        .modal-botones-toast.error i {
            color: #dc3545;
        }

    .modal-botones-toast.warning {
        border-left-color: #ffc107;
    }

        .modal-botones-toast.warning i {
            color: #ffc107;
        }

    .modal-botones-toast.info {
        border-left-color: #17a2b8;
    }

        .modal-botones-toast.info i {
            color: #17a2b8;
        }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transition: width 4s linear;
    border-radius: 0 0 8px 8px;
}

.modal-botones-toast.success .toast-progress {
    background: #28a745;
}

.modal-botones-toast.error .toast-progress {
    background: #dc3545;
}

.modal-botones-toast.warning .toast-progress {
    background: #ffc107;
}

.modal-botones-toast.info .toast-progress {
    background: #17a2b8;
}












/* Estilos para el botón con efecto rojo */
/*.modal-botones-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
}*/

    .modal-botones-btn:hover {
        border-color: #d42228;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(212, 34, 40, 0.3);
    }

    /* Contenedor del icono con fondo rojo */
    .modal-botones-btn .btn-icon-container {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #d42228, #a51b20) !important;
        border-radius: 12px;
        color: white !important;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(212, 34, 40, 0.3);
    }

    .modal-botones-btn:hover .btn-icon-container {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 6px 15px rgba(212, 34, 40, 0.5);
        background: linear-gradient(135deg, #e03a40, #b81e24) !important;
    }

/* Efecto de pulso rojo */
@keyframes redPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 34, 40, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 34, 40, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 34, 40, 0);
    }
}

.modal-botones-btn[data-accion="facial"]:hover .btn-icon-container {
    animation: redPulse 1.5s infinite;
}

/* SVG dentro del contenedor */
.modal-botones-btn svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.modal-botones-btn span {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-botones-btn strong {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.modal-botones-btn small {
    font-size: 12px;
    color: #666;
}

.modal-botones-btn .btn-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    color: #999;
    transition: all 0.3s ease;
}

.modal-botones-btn:hover .btn-arrow {
    background: #d42228;
    color: white;
    transform: translateX(5px);
}

/* Efecto de onda roja al hacer hover */
.modal-botones-btn[data-accion="facial"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 34, 40, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.modal-botones-btn[data-accion="facial"]:hover::before {
    width: 300px;
    height: 300px;
}

/* Para mantener el texto por encima de la onda */
.modal-botones-btn[data-accion="facial"] > * {
    position: relative;
    z-index: 1;
}