/* ===== Body ===== */
body {
  background: linear-gradient(135deg, #1a1a2e, #162447, #1f4068);
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding: 10px;
}

/* ===== Chat Container ===== */
.chat-container {
  width: 100%;
  max-width: 650px;   /* ⬅ más ancho en PC */
  min-height: 75vh;   /* ⬅ ocupa más pantalla */
  background: rgba(255, 255, 255, 0.05);
  border-radius: 22px;
  padding: 30px;
  backdrop-filter: blur(15px);
  box-shadow: 0 0 30px rgba(255, 182, 193, 0.5),
              0 0 60px rgba(30, 136, 229, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
}


/* ===== Chat Box ===== */
#chat-box {
  height: 55vh;              /* ⬅ mucho más alto */
  min-height: 420px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  overflow-y: auto;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: inset 0 0 14px rgba(255, 182, 193, 0.25);
  scroll-behavior: smooth;
  flex-grow: 1;
  font-size: 1.25rem;        /* ⬅ letra grande */
  line-height: 1.6;
}


/* ===== Mensajes ===== */
.medico {
  color: #1e88e5;
  font-weight: bold;
  text-shadow: 0 0 6px #1e88e5;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.enfermera {
  color: #ff82a9;
  font-weight: bold;
  text-shadow: 0 0 6px #ff82a9;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* ===== Formulario ===== */
form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input, select {
  flex: 1 1 60%;
  padding: 14px; /* más grande para tocar en móvil */
  border-radius: 12px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 0 5px rgba(255, 182, 193, 0.3);
  font-size: 1rem; /* más legible */
}

input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

button {
  flex: 1 1 35%;
  padding: 14px 0; /* más grande */
  border: none;
  border-radius: 12px;
  background: linear-gradient(45deg, #ff82a9, #1e88e5);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 182, 193, 0.5), 0 0 18px rgba(30, 136, 229, 0.5);
  font-size: 1rem; /* más legible */
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(255, 182, 193, 0.8), 0 0 28px rgba(30, 136, 229, 0.8);
}

/* ===== Responsivo ===== */
@media (max-width: 500px) {
  .chat-container {
    padding: 20px;
  }

  #chat-box {
    height: 380px;
    padding: 15px;
    font-size: 1.2rem; /* más grande para móvil */
  }

  input, select, button {
    flex: 1 1 100%;
    font-size: 1.1rem; /* letras grandes para tocar fácil */
    padding: 16px;
  }

  button {
    margin-top: 10px;
  }
}
/* ===== Avatar ===== */
.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  flex-shrink: 0;
}
.mensaje {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.texto {
  background: rgba(255,255,255,0.18);
  padding: 14px 18px;
  border-radius: 16px;
  max-width: 78%;
  word-wrap: break-word;
  font-size: 1.15rem;     /* ⬅ letras grandes */
}
/* ===== Animaciones flotantes ===== */
#animaciones {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.flotante {
  position: absolute;
  width: 80px;
  animation: cruzar 12s linear forwards;
  opacity: 0.85;
}

@keyframes cruzar {
  from {
    transform: translateX(-120px) scale(0.8);
    top: var(--top);
  }
  to {
    transform: translateX(110vw) scale(1);
    top: var(--top);
  }
}

/* ===== Mensajes románticos ===== */
.mensaje-romantico {
  position: absolute;
  font-size: 1.4rem;
  color: #ffb6c1;
  text-shadow: 0 0 10px #ff69b4;
  animation: aparecer 6s ease forwards;
}

@keyframes aparecer {
  0% { opacity: 0; transform: translateX(-50px); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(50px); }
}

/* ===== Link juegos ===== */
.link-juegos {
  margin-top: 15px;
  text-align: center;
  font-size: 1.1rem;
  color: #ffd1dc;
  text-decoration: none;
}

.link-juegos:hover {
  text-shadow: 0 0 8px #ff69b4;
}
/* ===== Controles de audio ===== */
.audio-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.audio-controls button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 182, 193, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.audio-controls button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.8);
}

.audio-controls button:active {
  transform: scale(0.95);
}
#voiceBtn {
  margin-left: 5px;
  cursor: pointer;
}

#voiceBtn.listening {
  background: crimson;
  color: white;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.guia-rol{
  text-align:center;
  margin:10px 0 15px;
  font-size:0.95rem;
  color:#ffe3f3;
  line-height:1.4;
}

.guia-rol span{
  font-weight:600;
  color:#ffb6ff;
}

/* Select mejorado */
#role{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:none;
  margin-bottom:8px;
  font-size:1rem;
  background:rgba(255,255,255,0.15);
  color:#fff;
}

#role option{
  color:#000;
}

/* Confirmación visual */
.rol-elegido{
  text-align:center;
  margin-bottom:12px;
  font-size:0.9rem;
  color:#9cffd6;
  min-height:18px;
}

