﻿body {
    .modal-overlay {
        display: none;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.60);
        justify-content: center;
        align-items: center;
        z-index: 99999;
    }

        .modal-overlay.activo {
            display: flex;
        }

    .modal-contenido {
        width: calc(100% - 40px);
        max-width: 430px;
        padding: 35px;
        background: white;
        border-radius: 14px;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.30);
        text-align: center;
        box-sizing: border-box;
        animation: aparecerModal 0.20s ease-out;
    }

    .modal-icono {
        width: 55px;
        height: 55px;
        margin: 0 auto 15px;
        border: 3px solid #9d1c1c;
        border-radius: 50%;
        color: #9d1c1c;
        font-family: Arial, sans-serif;
        font-size: 35px;
        font-weight: bold;
        line-height: 52px;
    }

    .modal-contenido h2 {
        margin: 0 0 12px;
        color: #222;
        font-family: Arial, sans-serif;
        font-size: 24px;
    }

    .modal-contenido p {
        margin: 0 0 28px;
        color: #555;
        font-family: Arial, sans-serif;
        font-size: 16px;
    }

    .modal-botones {
        display: flex;
        justify-content: center;
        gap: 12px;
    }

    .boton-cancelar,
    .boton-confirmar {
        padding: 12px 20px;
        border: none;
        border-radius: 7px;
        cursor: pointer;
        font-family: Arial, sans-serif;
        font-size: 15px;
        font-weight: bold;
    }

    .boton-cancelar {
        background: #e6e6e6;
        color: #333;
    }

        .boton-cancelar:hover {
            background: #d5d5d5;
        }

    .boton-confirmar {
        background: #9d1c1c;
        color: white;
    }

        .boton-confirmar:hover {
            background: #781515;
        }

    @keyframes aparecerModal {
        from {
            opacity: 0;
            transform: translateY(-20px) scale(0.96);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @media (max-width: 500px) {
        .modal-botones {
            flex-direction: column-reverse;
        }

        .boton-cancelar,
        .boton-confirmar {
            width: 100%;
        }
    }
}
