/* style.css v20250627a-style */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Segoe UI', sans-serif;
  background-color: #050b18;
  color: #e0f0ff;
  overflow: hidden;
}

.container {
  display: grid;
  grid-template-areas: 
    "historial mapa"
    "historial mapa"
    "central central";
  grid-template-columns: 1fr 1fr; /* 50% y 50% */
  grid-template-rows: 1fr auto auto;
  height: 100vh;
  width: 100vw;
  padding: 20px;
  gap: 20px;
}

.panel {
  background-color: #0a1227;
  border-radius: 12px;
  border: 1px solid #00bfff55;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.panel-mensajes {
  grid-area: historial;
  overflow-y: auto;
  padding-right: 0px;
  padding-top: 0px;
}

.mensajes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mensajes div {
  background-color: #1e2a3d;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.35);
  font-size: 0.9rem;
  line-height: 1.4;
  animation: aparecer 0.5s ease-out;
}

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

.panel-mapa {
  grid-area: mapa;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mapa-real {
  height: 100%;
  min-height: 300px;
  border-radius: 12px;
  border: 2px solid #00bfff;
}

.mapa-label, .mapa-coordenadas {
  font-size: 0.9rem;
  color: #6ed6ff;
  background-color: #0a1227;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,191,255,0.2);
}

.panel-central {
  grid-column: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  height: 130px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.mensaje-actual {
  font-size: 1.6rem;
  color: #00d2ff;
  text-shadow: 0 0 6px #00bfff;
  transition: all 0.3s ease;
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.panel-central.reproduciendo {
  border: 1px solid #00ffff;
  box-shadow: 0 0 20px #00ffff;
  background-color: #0d1a33;
}

#barra-espera {
  position: absolute;
  bottom: 25px;
  left: 50%;
  width: 200px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #00ffff, transparent);
  animation: barraMover 1.6s infinite ease-in-out;
  transform: translateX(-50%);
  opacity: 0.8;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  border-radius: 2px;
  z-index: 2;
}

@keyframes barraMover {
  0%   { transform: translateX(-50%) scaleX(0.3); opacity: 0.4; }
  50%  { transform: translateX(-50%) scaleX(1.1); opacity: 1; }
  100% { transform: translateX(-50%) scaleX(0.3); opacity: 0.4; }
}

.wave-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#onda {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,191,255,0.2) 10%, rgba(0,191,255,0) 70%);
  animation: ondas 1.8s ease-in-out infinite;
  margin-bottom: 15px;
  transition: opacity 0.3s ease;
}

@keyframes ondas {
  0%   { transform: scale(1);   opacity: 0.6; }
  50%  { transform: scale(1.4); opacity: 0.3; }
  100% { transform: scale(1.8); opacity: 0;   }
}

.wave-logo img {
  height: 130px;
  width: 130px;
  border-radius: 50%;
  z-index: 2;
  filter: drop-shadow(0 0 12px #00bfff);
  transition: transform 0.4s ease;
}

.version-info {
  position: fixed;
  font-size: 0.7rem;
  color: #9cc9ff;
  opacity: 0.6;
  z-index: 99;
}

.version-index { bottom: 5px; right: 10px; }
.version-style { bottom: 18px; right: 10px; }
.version-main  { bottom: 31px; right: 10px; }

.canal-login {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #222f44;
  padding: 10px;
  border-radius: 8px;
  z-index: 9999;
  display: flex;
  gap: 8px;
}

.canal-login input, .canal-login select {
  padding: 6px;
  border: none;
  border-radius: 4px;
}

.canal-login button {
  background-color: #00bfff;
  color: black;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.canal-login button:hover {
  background-color: #00a7cc;
}

.login-feedback {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #4caf50;
  padding: 10px;
  border-radius: 5px;
  z-index: 9999;
  color: white;
  animation: aparecer 0.4s ease-out;
}

@media (max-width: 768px) {
  .container {
    display: flex;
    flex-direction: column;
    padding: 10px;
  }
  .panel {
    height: auto;
  }
  .mensaje-actual {
    font-size: 1.3rem;
  }
  #onda {
    width: 80px;
    height: 80px;
  }
  .wave-logo img {
    width: 70px;
    height: 70px;
  }
}

.version-info {
  display: none !important;
}

/* NUEVOS ESTILOS PARA HISTORIAL CON COLUMNA DE MÓVIL */

.historial-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.historial-item {
  display: flex;
  gap: 10px;
  background-color: #1e2a3d;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.35);
  font-size: 0.9rem;
  line-height: 1.4;
  animation: aparecer 0.5s ease-out;
}

.nro-maquina {
  font-weight: bold;
  min-width: 70px;
  color: #00ffff;
}

.texto-mensaje {
  flex: 1;
}