/* cotiza_con_gandalf_modo100.css */

body {
  background: radial-gradient(ellipse at top, #2e004f 0%, #000000 100%);
  background-size: 400% 400%;
  animation: aurora 15s ease infinite;

  body::before {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  background: url("https://raw.githubusercontent.com/VincentGarreau/particles.js/master/demo/media/star.png") repeat;
  opacity: 0.04;
  animation: flotarEstrellas 60s linear infinite;
  z-index: -2;
}

@keyframes flotarEstrellas {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 1000px; }
}

}

/* Animación de fondo tipo aurora */
@keyframes aurora {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }

}

.intro-magica {
  display: none !important;
}

/* Contenedor principal del chat + banners */
#chat-gandalf-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 50px 0;
  gap: 40px;
  background: url('/imagenes/fondo_magico.jpg') no-repeat center center;
  background-size: cover;
  animation: fondoMagico 10s infinite alternate;
}

/* Animación suave al fondo */
@keyframes fondoMagico {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(20deg); }
}

/* Banners laterales */
.banner-left img, .banner-right img {
  border: 2px solid yellow;
  box-shadow: 0 0 20px yellow;
  border-radius: 10px;
  max-width: 180px;
  animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 10px yellow; }
  to { box-shadow: 0 0 25px gold; }
}

/* Chat principal */
.chat-container {
  max-width: 600px;
  width: 100%;
}

.chat-box {
  background: #111;
  border: 2px solid yellow;
  border-radius: 16px;
  box-shadow: 0 0 20px #ffcc00;
  padding: 20px;
  transition: all 0.4s ease;
}

.barra-titulo h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.3em;
  text-shadow: 0 0 5px yellow;
}

#modoTroll {
  transform: scale(1.2);
  margin-right: 5px;
}

/* Ventana del chat */
.ventana-chat {
  height: 350px;
  overflow-y: auto;
  background-color: #222;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: inset 0 0 10px #000;
}

/* Mensajes */
.ventana-chat .mensaje-usuario {
  background: linear-gradient(135deg, #ffe29f, #ffa751);
  color: #111;
  text-shadow: 0 0 1px #fff, 0 0 5px #ffd700;
  font-weight: bold;
  box-shadow: 0 0 12px #ffd700aa;
  padding: 8px 12px;
  border-radius: 20px;
  max-width: 80%;
  margin-bottom: 10px;
  align-self: flex-end;
  border: 2px solid #ffa500;
}

.ventana-chat .mensaje-gandalf {
  background: #333;
  color: #fffacd;
  padding: 8px 12px;
  border-radius: 20px;
  max-width: 80%;
  margin-bottom: 10px;
  align-self: flex-start;
  border-left: 4px solid yellow;
  box-shadow: 0 0 5px #ffa500;
}

/* Entrada de texto */
.entrada-chat {
  display: flex;
  gap: 10px;
}

.entrada-chat input[type="text"] {
  flex: 1;
  padding: 10px;
  border: 2px solid yellow;
  border-radius: 8px;
  background-color: #000;
  color: #fff;
  box-shadow: 0 0 10px #ff0;
}

.entrada-chat button {
  padding: 10px 16px;
  background: #ffcc00;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px #ff0;
  transition: transform 0.2s;
}

.entrada-chat button:hover {
  transform: scale(1.05);
}

/* Troll Gandalf */
#gandalfTroll {
  margin-top: 20px;
  animation: temblor 0.8s infinite;
}

@keyframes temblor {
  0% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
  100% { transform: rotate(-2deg); }
}

.chat-container {
  position: relative;
  z-index: 1;
}

.chat-container::before {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 60px;
  background: radial-gradient(ellipse at center, #ffffcc55 0%, transparent 80%);
  filter: blur(15px);
  z-index: -1;
  animation: pulsoAura 2.5s ease-in-out infinite;
}

@keyframes pulsoAura {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
  100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
}

.ventana-chat .mensaje-usuario,
.ventana-chat .mensaje-gandalf {
  position: relative;
  animation: entradaBurbuja 0.8s ease forwards;
  transition: transform 0.2s ease;
  border-radius: 25px;
  padding: 8px 16px;
}

@keyframes entradaBurbuja {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(20px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.ventana-chat .mensaje-usuario:hover,
.ventana-chat .mensaje-gandalf:hover {
  box-shadow: 0 0 12px #ffd70088;
}

.chatbox-wrapper {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
  padding-bottom: 30px;
}


.chatbox-wrapper img {
  animation: flotarTroll 4s ease-in-out infinite;
  margin-top: -40px;
}

@keyframes flotarTroll {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}


#modo100-label {
  color: #39f !important;
  font-weight: bold;
  text-shadow: 0 0 5px #00f8ff;
}

#modo100 {
  accent-color: #00ccff !important;
  transform: scale(1.2);
  margin-right: 5px;
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 80%);
  animation: niebla 60s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes niebla {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(20px, -10px); }
  100% { transform: scale(1) translate(0, 0); }
}


.chatbox-wrapper {
  animation: entradaCaja 2s ease-in-out;
}

@keyframes entradaCaja {
  0% {
    transform: scale(0.8) translateY(30px);
    opacity: 0;
    filter: blur(8px);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

.ventana-chat .mensaje-gandalf {
  position: relative;
}

.ventana-chat .mensaje-gandalf::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, #ffffaa44 0%, transparent 60%);
  transform: translate(-50%, -50%);
  animation: pulsoLuz 2s ease-out;
  z-index: -1;
}

@keyframes pulsoLuz {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}
