/* ---MODALES GPTW & ESR ---*/
/* --- ESTILOS DE VENTANAS MODALES --- */

/* Contenedor base oculto por defecto */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Estado Activo para mostrar la modal */
.custom-modal--active {
    opacity: 1;
    visibility: visible;
}

/* Fondo oscuro semitransparente */
.custom-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    /* Ligero efecto borroso al fondo */
}

/* Tarjeta contenedora del texto (Estilo según tus capturas de pantalla) */
.custom-modal__container {
    position: relative;
    background-color: #f1ede4;
    /* Color beige claro del diseño */
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    padding: 40px 30px 35px 30px;
    border-radius: 28px;
    /* Bordes muy redondeados del diseño */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    /* Scroll interno si el texto es muy largo en móviles */
    z-index: 1001;
    transform: translateY(-30px);
    transition: transform 0.4s ease;
}

/* Animación de entrada de la tarjeta */
.custom-modal--active .custom-modal__container {
    transform: translateY(0);
}

/* Botón para cerrar (X) */
.custom-modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-primary, #292662);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.custom-modal__close:hover {
    transform: scale(1.15);
}

/* Tipografías internas */
.custom-modal__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111424;
    /* Color oscuro para el título */
    margin-bottom: 25px;
    line-height: 1.4;
}

.custom-modal__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 18px;
}

.custom-modal__text:last-child {
    margin-bottom: 0;
}

/*MODAL SALIDA DEL SITIO*/
.custom-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
    flex-direction: column;
}

.cancel_btn {
    background-color: var(--color-gray-light);
    color: var(--color-text-dark);
    padding: 12px 30px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(41, 38, 98, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    max-width: 400px;
    margin: 0 auto;
}


.irSitio__btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(41, 38, 98, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    max-width: 400px;
    margin: 0 auto;
}

/* Bloqueo del scroll del body al estar abierta la modal */
body.modal-open {
    overflow: hidden;
}

/* --- MEDIA QUERIES (RESPONSIVE TABLET / DESKTOP) --- */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .custom-modal__actions {
        gap: 15px;
        flex-direction: row;
    }
}

/* // Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    
}

/* // X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {}

/* // XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {}