        /* Contenedor que cubre toda la pantalla */
        .custom-modal {
            display: none;
            position: fixed;
            z-index: 99999999 !important;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
        }

        /* El cuadro blanco donde vive la imagen */
        .modal-box {
            width: 90%;
            max-width: 800px;
            max-height: 85vh;
            background: #fff;
            position: relative;
            border-radius: 10px;
            overflow-y: auto;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
            margin-top: 100px;
            padding: 0;
        }

        /* El botón de cerrar (La X) */
        .cerrar-modal {
            position: sticky;
            top: 0;
            right: 0;
            float: right;
            background: #00A788;
            color: white;
            width: 45px;
            height: 45px;
            line-height: 40px;
            text-align: center;
            font-size: 35px;
            font-weight: bold;
            cursor: pointer;
            z-index: 1000;
            border-radius: 0 0 0 10px;
            transition: background 0.3s;
        }

        .cerrar-modal:hover {
            background: #01a184;
        }

        .contenido-modal {
            width: 100%;
            height: auto;
            display: block;
            margin: 0;
            padding: 0;
            border-radius: 10px 10px 0 0;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }