/* Fondo modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        /* Caja del modal */
        .modal-content {
            /* background: #fff;
            width: 70%;
            max-width: 90%;
            border-radius: 10px;
            padding: 20px;
            position: relative;*/

            background: #fff;
            width: min(900px, 90vw);
            /* ancho elegante y responsive */
            height: 80vh;
            /* <-- clave: 80% del alto de pantalla */
            border-radius: 10px;
            padding: 20px;
            position: relative;
            display: flex;
            /* para que el body ocupe el alto sobrante */
            flex-direction: column;
            /* header/cerrar arriba, body debajo */
            overflow: hidden;
            /* redondeos limpios */

        }

        .modal-header {
            height: 40px;
            display: flex;
            justify-content: flex-end;
            align-items: center;
            padding-right: 10px;
            /* border-bottom: 1px solid #eee;*/

        }


        /* Botón cerrar */
        .close {
            /*  position: absolute;
            top: 15px;
            right: 40px;
            font-size: 32px;
            cursor: pointer;
            z-index: 10; /* por si acaso */

            /*position: static;
            font-size: 32px;
            cursor: pointer;*/

            position: absolute;
            top: 10px;
            /* distancia desde arriba */
            right: 20px;
            /* distancia desde la derecha */
            font-size: 32px;
            cursor: pointer;
            z-index: 1001;
            /* asegura que quede por encima de todo */



        }

        /* Contenedor principal dividido */
        .modal-body {
            /*display: flex;
            gap: 30px;*/

            display: flex;
            gap: 30px;
            flex: 1;
            /* ocupa todo el alto disponible bajo el botón */
            min-height: 0;
            /* importante para que flex permita overflow en hijos */

        }

        /* Columna imagen */
        .modal-img img {
            width: 250px;
            border-radius: 10px;
            object-fit: cover;
        }

        /* Columna texto */
        .modal-text {
            /*flex: 1;
            max-height: 90%;*/

            flex: 1;
            min-width: 0;
            /* evita desbordes de línea largos */
            overflow-y: auto;
            /* <-- scroll interno aquí */

        }

        .modal-text h2 {
            margin-top: 0;
        }

        /* Responsive */
        @media (max-width: 700px) {
            .modal-body {
                flex-direction: column;
                align-items: center;
            }

            .modal-img img {
                width: 60%;
            }
        }

        #modal_CV {

            overflow: auto;
            white-space: pre-line;

        }