@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@600&display=swap");

body {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  background: url("../img/fondoinvitacion.png") no-repeat center center fixed;
  background-size: cover;
  overflow: hidden;
  color: #00ffe7;
}

.formulario-cyber {
  position: fixed;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  background: rgba(0, 10, 20, 0.9);
  border: 2px solid #00ffe7;
  border-radius: 16px;
  padding: 25px;
  z-index: 900;
  box-shadow: 0 0 25px #00ffe740;
  color: #00ffe7;
  font-family: "Orbitron", sans-serif;
}

.formulario-cyber h2 {
  font-size: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.formulario-cyber label {
  display: block;
  margin: 10px 0 4px;
  font-size: 13px;
}

.formulario-cyber input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: none;
  margin-bottom: 10px;
  font-size: 14px;
  background-color: #001d29;
  color: #00ffe7;
}

.formulario-cyber input::placeholder {
  color: #00ffe7aa;
}

.formulario-cyber button {
  width: 100%;
  background: #00ffe7;
  color: #001d29;
  font-weight: bold;
  padding: 10px 0;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 15px #00ffe7;
  transition: all 0.2s ease;
}

.formulario-cyber button:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px #00ffe7;
}


  #idiomaSelector {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 6px 10px;
    border-radius: 8px;
    color: rgb(3, 3, 3);
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
  }

  #idiomaSelector select {
    background-color: transparent;
    border: none;
    color: cyan;
    font-weight: bold;
    font-size: 15px;
    outline: none;
    cursor: pointer;
  }

  #idiomaSelector select option {
    color: black;
    background-color: white;
  }
  


#bordes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url("../img/bordes.png") no-repeat center center;
  background-size: cover;
  pointer-events: none;
  z-index: 1;
}

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 25, 38, 0.75);
  border-radius: 20px;
  padding: 40px 60px;
  box-shadow: 0 0 30px #00ffe7;
  text-align: center;
  z-index: 2;
}

.container.hablando {
  box-shadow: 0 0 30px #ff0a54; /* rojo mientras habla */
}

.container.listening {
  box-shadow: 0 0 30px #00ffe7; /* cyan cuando escucha */
}

.logo-panel {
  width: 100px;
  margin-bottom: 20px;
  animation: pulse 3s infinite ease-in-out;
  filter: drop-shadow(0 0 10px #00ffe7);
}

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

h1,
p {
  text-shadow: 0 0 10px #00ffe7;
}

canvas#wave {
  display: block;
  margin: 30px auto 0;
  width: 100%;
  max-width: 600px;
  height: 120px;
  background: transparent;
}

canvas#viz {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
#inicioDemo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  transition: opacity 0.6s ease;
}
.boton-ayuda {
  margin-top: 10px;
  background: #00ffee;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  color: black;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}
.botonera-vertical {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
}


.boton-ayuda:hover {
  background: #00c2c2;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-contenido {
  background-color: #111;
  color: #0ff;
  border: 2px solid #0ff;
  padding: 20px;
  border-radius: 15px;
  width: 80%;
  max-width: 500px;
  text-align: left;
}
.oculto {
  display: none;
}


#inicioDemo button {
  padding: 18px 40px;
  font-size: 18px;
  border: none;
  border-radius: 12px;
  background: #00ffe7;
  color: #001d29;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 20px #00ffe7;
  transition: all 0.3s ease-in-out;
}

#inicioDemo button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px #00ffe7;
}
#inicioDemo {
  animation: fadeIn 1s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.botReset {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: #ff0a54;
  color: white;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 10px #ff0a54;
}

.chat-window {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 320px;
  max-height: 400px;
  background: rgba(0, 10, 20, 0.85);
  border: 2px solid #00ffe7;
  border-radius: 12px;
  font-family: "Orbitron", sans-serif;
  color: #00ffe7;
  box-shadow: 0 0 20px #00ffe7;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 99;
}

.chat-header {
  background: #001d29;
  padding: 10px;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid #00ffe7;
}

.chat-messages {
  flex-grow: 1;
  padding: 10px;
  overflow-y: auto;
}

.chat-message {
  margin: 8px 0;
  line-height: 1.4em;
  animation: fadeIn 0.4s ease-in-out;
}

.chat-message.user::before {
  content: "🔊";
  margin-right: 6px;
}

.chat-message.ai::before {
  content: "🤖";
  margin-right: 6px;
}

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

#tutorialModal.flex {
  animation: fadeZoom 0.4s ease;
}

@keyframes fadeZoom {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.tutorial-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutorial-contenido {
  background: #001d29;
  border: 2px solid #00ffe7;
  border-radius: 20px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 30px #00ffe7;
  color: #00ffe7;
  font-family: "Orbitron", sans-serif;
  position: relative;
}

.tutorial-titulo {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.cerrar-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #ff0a54;
  cursor: pointer;
}

.acordeon .item {
  margin-bottom: 10px;
}

.acordeon .pregunta {
  width: 100%;
  text-align: left;
  background-color: #003544;
  border: none;
  padding: 12px 16px;
  color: #0ff;
  font-weight: bold;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.acordeon .pregunta:hover {
  background-color: #005f6a;
}

.pregunta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.flecha {
  transition: transform 0.3s ease;
}

/* Rota cuando está activo */
.item.activa .flecha {
  transform: rotate(180deg);
}


.acordeon .respuesta {
  padding: 12px 16px;
  background: #002833;
  border-radius: 10px;
  margin-top: 5px;
  display: none;
  font-size: 14px;
}

.acordeon .item.activa .respuesta {
  display: block;
}

.highlight {
  margin-top: 10px;
  background: #001920;
  padding: 10px;
  border: 1px dashed #0ff;
  border-radius: 8px;
  text-align: center;
}

.mic-img-miniatura {
  max-width: 250px;
  border-radius: 12px;
  margin-top: 15px;
  cursor: zoom-in;
  border: 2px solid rgba(0, 255, 255, 0.4);
  transition: transform 0.2s ease;
}
.mic-img-miniatura:hover {
  transform: scale(1.03);
}

.imagen-centrada {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.mic-img-miniatura {
  max-width: 250px;
  border-radius: 12px;
  cursor: zoom-in;
  border: 2px solid rgba(0, 255, 255, 0.4);
  transition: transform 0.2s ease;
}

.mic-img-miniatura:hover {
  transform: scale(1.03);
}


.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: zoomIn 0.3s ease;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border: 4px solid cyan;
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.7);
  animation: zoomInImage 0.3s ease;
}

@keyframes zoomInImage {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}



.hidden {
  display: none;
}
.chat-message {
  font-size: 12px; /* 👈 Ajustá a gusto (13px o 12px si querés aún más pequeño) */
  margin: 8px 0;
  line-height: 1.4em;
  animation: fadeIn 0.4s ease-in-out;
}
