/* --- MODAL OVERLAY --- */
.modal-seguros {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* permite scroll del overlay si hace falta */
    background-color: rgba(0,0,0,0.5);
    padding: 30px;
    box-sizing: border-box;
}

/* --- MODAL CONTENT BOX --- */
.modal-content-seguros {
    background-color: #fff;
    margin: 50px auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    position: relative;
    box-sizing: border-box;

    /* Para contenidos largos en pantallas pequeñas */
    max-height: calc(100vh - 100px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- CLOSE BUTTON --- */
.modal-close-seguros {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.modal-close-seguros:hover { color: #000; }

/* --- GRID LAYOUT --- */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}
.modal-left, .modal-right {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 20px;
    box-sizing: border-box;
    min-width: 0; /* evita desbordes por textos largos */
}
.modal-left h2,
.modal-right h3 {
    margin-top: 0;
    color: #0073aa;
}
.modal-left .prima {
    font-size: 26px;
    color: #d35400;
    font-weight: bold;
    margin: 15px 0;
}
.modal-left .detalle {
    font-size: 15px;
    color: #333;
}
.modal-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.modal-left ul li { margin-bottom: 6px; }

/* --- MODAL RIGHT COLUMN --- */
.modal-right { font-size: 14px; color: #444; }
.modal-right p { margin-bottom: 12px; }
.modal-right strong { color: #333; font-weight: bold; }

/* --- CONTACT FORM --- */
.modal-contacto {
    margin-top: 30px;
    background: #f0f4f8;
    border-radius: 6px;
    padding: 20px;
}
.modal-contacto h3 { margin-top: 0; color: #0073aa; }
.modal-contacto p  { font-size: 14px; color: #555; }

.modal-contacto input,
.modal-contacto select {
    width: 100%;
    padding: 8px 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}
.modal-contacto button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s;
}
.modal-contacto button:hover { background-color: #005a87; }

#mensaje-contacto {
    color: green;
    margin-top: 10px;
    font-weight: bold;
}

/* --- Precio en rojo para sugerencias --- */
.precio-rojo { color: #d35400; font-weight: bold; }

/* ===================== */
/*   RESPONSIVE MÓVIL    */
/* ===================== */
@media (max-width: 900px) {
    .modal-seguros { padding: 16px; }
    .modal-content-seguros {
        margin: 10px auto;
        padding: 18px;
        border-radius: 10px;
        max-height: calc(100vh - 32px); /* más alto en móvil */
    }
    .modal-grid {
        grid-template-columns: 1fr; /* pasa a 1 columna */
        gap: 18px;
    }
    .modal-left .prima { font-size: 22px; }
}

@media (max-width: 480px) {
    .modal-content-seguros { padding: 14px; }
    .modal-close-seguros { top: 8px; right: 10px; font-size: 24px; }
}
