
        /* Estilos para el modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            max-width: 90%;
            max-height: 90%;
            position: relative;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .modal-image {
            max-width: 100%;
            max-height: 70vh;
            display: block;
            margin: 0 auto;
            cursor: pointer;
        }

        .close-button {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 24px;
            cursor: pointer;
            color: #333;
            background: none;
            border: none;
            padding: 5px 10px;
        }

        .close-button:hover {
            color: #ff0000;
        }

        /* Mostrar el modal cuando está activo */
        .modal.active {
            display: flex;
        }

        /* Media queries para responsividad */
        @media (max-width: 768px) {
            .modal-content {
                padding: 15px;
                max-width: 95%;
            }

            .close-button {
                font-size: 20px;
            }
        }

        @media (max-width: 480px) {
            .modal-content {
                padding: 10px;
            }

            .modal-image {
                max-height: 60vh;
            }
        }
  