"use client" import { useState } from "react" import { motion } from "framer-motion" import { GatoMascota } from "./gato-mascota" interface AudioUnlockProps { onUnlock: () => void } export default function AudioUnlock({ onUnlock }: AudioUnlockProps) { const [pressed, setPressed] = useState(false) const handleUnlock = () => { if (typeof window !== "undefined") { const AudioCtx = window.AudioContext || (window as any).webkitAudioContext if (AudioCtx) { const ctx = new AudioCtx() ctx.resume().then(() => { ctx.close() }) } } setPressed(true) setTimeout(onUnlock, 600) } return (