/* Fuente Retro Futurista */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Press Start 2P', cursive;
    background-color: #0A0A0A; /* Fondo negro azulado */
    color: #00FFFF; /* Letras celeste neón */
}

header {
    background-color: #000;
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.menu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.menu li {
    margin: 0 15px;
}

.menu a {
    color: #00FFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #FFFFFF;
}

.inicio {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh; /* Asegura un alto mínimo */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.inicio h1 {
    margin-bottom: 20px;
}


main {
    padding: 0; /* Removemos el padding que puede estar causando el desplazamiento */
    min-height: calc(100vh - 150px); /* Altura total menos header y footer */
    display: flex;
    align-items: center;
}

h1 {
    text-align: center;
    font-size: 2em;
    animation: neon 1.5s ease-in-out infinite alternate;
}

@keyframes neon {
    from {
        text-shadow:
            0 0 5px #00FFFF,
            0 0 10px #00FFFF,
            0 0 20px #00FFFF,
            0 0 40px #00FFFF,
            0 0 80px #00FFFF,
            0 0 160px #00FFFF;
    }
    to {
        text-shadow:
            0 0 10px #00FFFF,
            0 0 20px #00FFFF,
            0 0 40px #00FFFF,
            0 0 80px #00FFFF,
            0 0 160px #00FFFF,
            0 0 320px #00FFFF;
    }
}

.proyectos, .tienda, .contacto {
    max-width: 1200px;
    margin: 0 auto;
}

.lista-proyectos, .productos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.proyecto, .producto {
    background-color: #111;
    margin: 15px;
    padding: 20px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
}

.proyecto:hover, .producto:hover {
    transform: scale(1.05);
}


.producto img {
    max-width: 100%;
    height: auto;
}

label {
    display: block;
    margin: 15px 0 5px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    background-color: #222;
    border: none;
    color: #00FFFF;
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #00FFFF;
    border: none;
    color: #000;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #00CCCC;
}

footer {
    background-color: #000;
    text-align: center;
    padding: 10px;
    color: #00FFFF;
}

/* Diseño Responsivo */
@media (max-width: 768px) {
    .menu ul {
        flex-direction: column;
    }

    .menu li {
        margin: 10px 0;
    }

    .proyecto, .producto {
        width: 100%;
    }
}

/* Estilos para el modal y anotaciones */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.mostrar {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    position: relative;
    width: 80%; /* Ancho máximo ajustado */
    max-height: 80vh; /* Altura máxima ajustada */
    background-color: #111;
    padding: 40px 20px; /* Padding superior aumentado */
    border: 2px solid #00FFFF;
    animation: aparecer 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modelo-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modelo-imagen {
    max-width: 100%;
    max-height: 70vh; /* Altura máxima ajustada */
    object-fit: contain;
    margin: auto;
}

.cerrar-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #00FFFF;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1001; /* Asegura que esté sobre la imagen */
}

.cerrar-modal:hover {
    transform: scale(1.2);
}

.modelo-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#modelo-imagen {
    max-width: 100%;
    height: auto;
    display: block;
}

.anotacion {
    position: absolute;
    animation: aparecerAnotacion 0.5s ease forwards;
}

.linea {
    width: 2px;
    height: 50px;
    background-color: #00FFFF;
    position: absolute;
    transform-origin: top;
    animation: dibujarLinea 0.5s ease forwards;
}

.texto-anotacion {
    background-color: rgba(0, 255, 255, 0.1);
    border: 1px solid #00FFFF;
    padding: 10px;
    border-radius: 5px;
    margin-top: 55px;
    width: 200px;
    font-size: 0.8em;
    animation: aparecerTexto 0.5s ease forwards;
}


@keyframes aparecer {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes dibujarLinea {
    from {
        height: 0;
    }
    to {
        height: 50px;
    }
}

@keyframes aparecerAnotacion {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aparecerTexto {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modal-controls {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    z-index: 1001;
}

.modal-icons {
    display: flex;
    gap: 15px;
}

.modal-icon {
    color: #00FFFF;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-shadow: 0 0 5px #00FFFF;
}

.modal-icon:hover {
    transform: scale(1.2);
}

#modelo3d-container {
    width: 100%;
    height: 100%;
    min-height: 1000px;
}

#proyecto-video {
    max-width: 100%;
    max-height: 70vh;
    margin: auto;
}

#anotaciones {
    position: absolute;
    top: 0;
    left: 0;
}

.anotacion .linea {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: bottom center;
}

/* Add to existing styles.css */
.ia-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.welcome-message {
    text-align: center;
    margin-bottom: 30px;
    animation: neon 1.5s ease-in-out infinite alternate;
}

.chat-container {
    min-height: 400px;
    margin-bottom: 20px;
    padding: 20px;
    border: 2px solid #00FFFF;
    background: rgba(0, 255, 255, 0.05);
}

.message {
    margin: 10px 0;
    line-height: 1.5;
}

.controls {
    text-align: center;
}

.mic-button {
    padding: 15px 30px;
    font-family: 'Press Start 2P', cursive;
    background: #111;
    border: 2px solid #00FFFF;
    color: #00FFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mic-button:hover {
    background: #00FFFF;
    color: #111;
}

.mic-button.recording {
    animation: pulse 1s infinite;
    background: #FF0000;
    border-color: #FF0000;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Estilos para la sección de juegos */
.juegos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.lista-juegos {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
}

.juego {
    flex: 0 0 auto;
    width: 150px;
    height: 150px;
    position: relative;
    cursor: pointer;
}

.disco {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    mask: radial-gradient(circle, transparent 50%, black 50%);
}

.disco img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilos para el modal de juegos */
#modal-juego .modal-contenido {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto; /* Permitir scroll si el contenido es muy grande */
}

#imagen-container-juego {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.imagen-texto-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 100%;
}

#juego-imagen {
    max-width: 100%;
    max-height: 50vh; /* Ajustar la altura máxima de la imagen */
    object-fit: contain; /* Asegurar que la imagen no se salga del contenedor */
    border: 2px solid #00FFFF;
    border-radius: 10px;
}

.texto-descriptivo {
    color: #00FFFF;
    font-size: 1em;
    text-align: center;
    max-width: 80%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #00FFFF;
    border-radius: 5px;
}

#juego-video {
    max-width: 100%;
    max-height: 70vh;
    margin: auto;
}

/* Estilos para el scroll horizontal de los juegos */
.lista-juegos {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
}

.juego {
    flex: 0 0 auto;
    width: 250px;
    height: 250px;
    position: relative;
    cursor: pointer;
}

/* Estilos para los discos */
.disco {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    mask: radial-gradient(circle, transparent 25%, black 25%);
    transform-origin: center; /* Asegurar que el giro sea alrededor del centro */
}

.disco img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; /* Transición suave para el hover */
}
/* Animación de giro al pasar el cursor */
.juego:hover .disco img {
    animation: spin 2s linear infinite; /* Aplicar la animación de giro */
}

@keyframes spin {
    from {
        transform: rotate(0deg); /* Inicia en 0 grados */
    }
    to {
        transform: rotate(360deg); /* Gira 360 grados */
    }
}

/* Scroll personalizado */
.lista-juegos::-webkit-scrollbar {
    height: 8px;
}

.lista-juegos::-webkit-scrollbar-thumb {
    background-color: #00FFFF;
    border-radius: 4px;
}

.lista-juegos::-webkit-scrollbar-track {
    background-color: #111;
}