body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  padding: 10px;
  margin: 0;
}

#logo-container {
  text-align: center;
  margin: 5px 0;
  position: relative;
}

#logo {
  width: 160px;
  height: auto;
}

#avatar-container {
  position: fixed;
  bottom: 52px;
  right: 10px; /* <-- MODIFICADO AQUÍ: Ajusta este valor para moverlo más o menos a la izquierda */
  width: 200px;
  height: 270px;
  z-index: 100;
  cursor: grab;
  display: none;
}

#avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#interacciones {
  margin-bottom: 100px;
}

.interaccion {
  margin: 10px 0;
  padding: 10px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.pregunta {
  font-weight: bold;
  text-align: right;
  background-color: #daf0ff;
  padding: 10px;
  border-radius: 10px;
}

.respuesta {
  text-align: left;
  background-color: #e9ffe3;
  padding: 10px;
  border-radius: 10px;
}

.fecha-hora-der, .fecha-hora-izq {
  font-size: 10px;
  color: #888;
  margin: 2px 5px;
}

.fecha-hora-der {
  text-align: right;
}

.fecha-hora-izq {
  text-align: left;
}

#entrada {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: white;
  display: flex;
  gap: 10px;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

#entrada input {
  flex: 1;
  padding: 8px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#entrada button {
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  background-color: #343a40;
  color: white;
  cursor: pointer;
}

#entrada button:hover {
  background-color: #495057;
}

/* --- ESTILOS AÑADIDOS Y CORREGIDOS PARA LA PANTALLA INICIAL --- */

#pantalla-inicial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('images/fondo.jpg'); 
  background-size: cover;
  background-position: center;
  z-index: 2000; 
  transition: opacity 0.8s ease-out;
}

#texto-iniciar {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  padding: 15px 30px;
  font-family: sans-serif;
  font-size: 1.5em;
  font-weight: bold; 
  color: white;
  background-color: rgba(0, 0, 0, 0.7); 
  border-radius: 10px;
  cursor: pointer;
  text-shadow: 2px 2px 4px #000;
}

/* Clase para ocultar el contenido principal al inicio */
.oculto {
  display: none;
}

/* Estilos para los mensajes del asistente */
.mensaje-procesando { 
  color: #777; 
  font-style: italic; 
}

.mensaje-escuchando { 
  color: #777; 
  font-weight: bold; 
  animation: blinker 1s linear infinite; 
}

@keyframes blinker { 
  50% { opacity: 0; } 
}

/* --- ESTILO PARA LA PANTALLA DE DESPEDIDA --- */
#farewell-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('images/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2500;
    /* Inicialmente oculto por la clase .oculto */
}