@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap");

.modal-tam {
    width: 350px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    /* centra horizontal */
}


button {
    display: block;
    width: 160px;
    border: 2px solid transparent;
    padding: 12px 15px;
    border-radius: 3px;
    color: var(--white);
    cursor: pointer;
    transition: background 0.5s ease;
}

button.success_btn {
    background: var(--success-clr);
    font-size: 13px;
    font-weight: 600;
    font-family: "Open Sans", sans-serif !important;
}

button.error_btn {
    background: var(--error-clr);
    font-size: 13px;
    font-weight: 600;
    font-family: "Open Sans", sans-serif !important;
}


button.success_btn:hover {
    background: var(--success-hvr);
}

button.error_btn:hover {
    background: var(--error-hvr);
}

/* --- MODAL ITEM --- */

.modal_item {
    width: 100%;
    background: var(--white);
    border-radius: 3px;
    position: relative;
}

.modal_item .modal_body {
    padding: 35px 35px 15px 35px;
    text-align: center;
}

.modal_item .modal_body .s_icon {
    width: 60px;
    height: 60px;
    background: var(--success-clr);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    margin: 0 auto 15px;
}

.modal_item.e_modal .modal_body .s_icon {
    background: var(--error-clr);
}


.modal_item.s_modal .modal_body .s_text h2 {
    color: var(--success-clr);
    font-size: 18px;
    font-family: "Open Sans", sans-serif !important;
    font-weight: 600;

}

.modal_item.e_modal .modal_body .s_text h2 {
    color: var(--error-clr);
    font-size: 18px;
    font-family: "Open Sans", sans-serif !important;
    font-weight: 600;
}


.modal_item .modal_body .s_text p {
    margin-top: 5px;
    font-size: 12px;
    font-family: "Open Sans", sans-serif !important;
    color: #706f6f;
}

.modal_item.e_modal .modal_body .s_text h2 {
    color: var(--error-clr);
}

.s_text .error-text {
    font-size: 13px;
    font-family: "Open Sans", sans-serif !important;
    color: #706f6f;
    margin: 0;
}


/* Cerrar */
.modal_item .close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: var(--white);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.5s ease;
}

.modal_item.s_modal .close:hover {
    background: var(--success-clr);
    color: var(--white);
}

.modal_item.e_modal .close:hover {
    background: var(--error-clr);
    color: var(--white);
}

/* Botón de abajo */
.modal_item .s_button button {
    width: 100%;
    border-radius: 0;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}

/* Para mostrar el modal */
.modal_item.s_modal.active {
    display: block;
}