﻿.fixed {
    display: none; /* Asegúrate de que esto cambia cuando se debe mostrar el modal */
}

.hidden {
    display: none;
}

.active {
    display: block !important;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
}

.is-hidden {
    display: none !important; /* Controla visibilidad mediante display */
}

.modal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 90%;
}

.error-list {
    list-style: decimal inside;
    margin-left: 20px;
}

.custom-modal .modal-content {
    border: 2px solid #9b9b9b;
    width: 90vw; /* El modal ocupará el 90% del ancho de la ventana */
    height: 70vh; /* El modal ocupará el 70% de la altura de la ventana */
    box-sizing: border-box; /* Incluye el padding y border en el tamaño total */
    overflow-y: auto; /* Añadir barra lateral de desplazamiento */
}

.custom-modal h2 {
    margin-top: 0;
}

.custom-modal .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}


/* Estilos del Modal */
.modal-corcasanet_poliza_modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.modal-content-corcasanet_poliza_modal {
    background-color: #fff;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    border-radius: 8px;
    overflow-y: auto;
    max-height: 80%;
    position: relative;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.close-corcasanet_poliza_modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.section-corcasanet_poliza_modal {
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

h3.corcasanet_poliza_modal_title {
    color: #2d3748;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

p.corcasanet_poliza_modal_text {
    margin: 5px 0;
    color: #4a5568;
    text-align: left;
}

.properties-corcasanet_poliza_modal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.vehicle-image-corcasanet_poliza_modal {
    width: 100px;
    height: auto;
    margin: 5px;
    display: inline-block;
}







/*//////////////////////////////////////////////////////////////////////////////////*/
/*////// DEFINICIÓN DE MODALS //////////////////*/
/*//////////////////////////////////////////////////////////////////////////////////*/
/* VERSION PARA COMPUTADORAS LAPTOP */
@media (min-width: 900px) {
    .fixed {
        display: none; /* Asegúrate de que esto cambia cuando se debe mostrar el modal */
    }

    .hidden {
        display: none;
    }

    .active {
        display: block !important;
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1050;
    }

    .is-hidden {
        display: none !important; /* Controla visibilidad mediante display */
    }

    .modal-container {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1050;
    }

    .modal-content {
        background: white;
        padding: calc(20px ); /* 14px */
        border-radius: calc(10px ); /* 7px */
        box-shadow: 0 calc(4px ) calc(6px ) rgba(0,0,0,0.1); /* 2.8px 4.2px */
        max-width: calc(600px ); /* 420px */
        width: 90%;
    }

    .error-list {
        list-style: decimal inside;
        margin-left: calc(20px ); /* 14px */
    }

    .custom-modal .modal-content {
        border: calc(2px ) solid #9b9b9b; /* 1.4px */
        width: calc(90vw ); /* 63vw */
        height: calc(70vh ); /* 49vh */
        box-sizing: border-box;
        overflow-y: auto;
    }

    .custom-modal h2 {
        margin-top: 0;
    }

    .custom-modal .close-button {
        position: absolute;
        top: calc(10px ); /* 7px */
        right: calc(10px ); /* 7px */
        background-color: #dc3545;
        color: #fff;
        border: none;
        padding: calc(5px ) calc(10px ); /* 3.5px 7px */
        border-radius: calc(5px ); /* 3.5px */
        cursor: pointer;
    }
}
