        /* Estilos base de la modal */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            transition: opacity 0.3s ease;
        }

        /* Contenido de la modal */
        .modal-contenido {
            background-color: rgb(0, 0, 0);
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            max-width: 500px;
            width: 90%;
            position: relative;
            max-height: calc(100vh - 60px);
            overflow-y: auto;
            
        }
        .modal-contenido h2 {
            color: #ffffff;
        }

        .modal-contenido p {
            color: #ffffff;
        }

        /* Botón de cerrar */
        .modal-cerrar {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #666;
            transition: color 0.3s ease;
        }

        .modal-cerrar:hover {
            color: #333;
        }

        /* Botón para abrir la modal */
        .btn-abrir-modal {
            background-color: #007bff;
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s ease;
        }

        .btn-abrir-modal:hover {
            background-color: #0056b3;
        }

        /* Clase VISIBLE - Modal se muestra */
        .modal.visible {
            opacity: 1;
            pointer-events: auto;
        }

        /* Clase INVISIBLE - Modal oculta */
        .modal.invisible {
            opacity: 0;
            pointer-events: none;
        }

        /* Estilos adicionales para el contenido */
        h2 {
            margin-top: 0;
            color: #333;
        }

        p {
            color: #666;
            line-height: 1.6;
        }