body { margin: 0; background: #000; font-family: 'Mulish', sans-serif; font-weight: 300; overflow: hidden; }

#clock { position: absolute; top: 20px; left: 20px; color: #fff; font-size: 19px; font-weight: 300; background: rgba(0,0,0,0.75); padding: 10px 18px; border-radius: 8px; border: 1px solid #444; z-index: 10; box-shadow: 0 0 15px rgba(0,255,255,0.25); font-family: 'Mulish', sans-serif; }
#live-status-badge { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; font-weight: 400; background: rgba(0,0,0,0.85); padding: 8px 24px; border-radius: 30px; border: 1px solid #ff2a6d; z-index: 10; box-shadow: 0 0 15px rgba(255, 42, 109, 0.3); display: flex; align-items: center; gap: 10px; font-family: 'Mulish', monospace; transition: all 0.4s ease; letter-spacing: 1px; backdrop-filter: blur(4px); }

.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff2a6d; box-shadow: 0 0 10px #ff2a6d; animation: pulseLive 1.5s infinite; }
.buffer-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff9900; box-shadow: 0 0 10px #ff9900; animation: pulseBuffer 0.6s infinite; }
.standby-dot { width: 10px; height: 10px; border-radius: 50%; background: #05d9e8; box-shadow: 0 0 10px #05d9e8; animation: pulseLive 2s infinite; }

@keyframes pulseLive { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }
@keyframes pulseBuffer { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.7); } 100% { opacity: 1; transform: scale(1); } }

#version-badge { position: absolute; bottom: 12px; right: 20px; color: rgba(255,255,255,0.35); font-size: 11px; font-family: 'Mulish', monospace; font-weight: 300; z-index: 10; pointer-events: none; transition: opacity 0.3s; }
#version-badge:hover { opacity: 0.8; }

#lang-btn { position: absolute; top: 20px; right: 72px; z-index: 11; background: rgba(0, 0, 0, 0.85); color: #fff; border: 1px solid #555; padding: 0 14px; height: 42px; border-radius: 21px; cursor: pointer; font-size: 13px; font-weight: 400; font-family: 'Mulish', sans-serif; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 10px rgba(0,0,0,0.8); transition: all 0.2s ease; gap: 6px; }
#lang-btn:hover { background: rgba(50, 50, 50, 0.9); transform: scale(1.05); }

#toggle-btn { position: absolute; top: 20px; right: 20px; z-index: 11; background: rgba(0, 0, 0, 0.85); color: #fff; border: 1px solid #555; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 10px rgba(0,0,0,0.8); transition: all 0.2s ease; }
#toggle-btn:hover { background: rgba(50, 50, 50, 0.9); transform: scale(1.08); }

#control-panel { display: none; position: absolute; top: 72px; right: 20px; color: #fff; background: rgba(0, 0, 0, 0.85); padding: 15px; border-radius: 8px; border: 1px solid #555; z-index: 10; font-size: 13px; font-family: 'Mulish', sans-serif; font-weight: 300; width: 250px; box-shadow: 0 0 10px rgba(0,0,0,0.8); max-height: 80vh; overflow-y: auto; }
#control-panel h4 { margin: 0 0 10px 0; font-size: 14px; font-weight: 600; text-transform: uppercase; border-bottom: 1px solid #444; padding-bottom: 5px; }
#control-panel label { display: block; margin-top: 10px; margin-bottom: 3px; font-weight: 400; }
#control-panel input[type="range"], #control-panel select { width: 100%; cursor: pointer; box-sizing: border-box; font-family: 'Mulish', sans-serif; }
#control-panel input[type="color"] { width: 100%; height: 28px; border: none; cursor: pointer; background: transparent; }
#control-panel .checkbox-label { display: flex; align-items: center; gap: 8px; margin-top: 10px; cursor: pointer; font-weight: 300; }

#terminal-log { position: absolute; bottom: 20px; left: 20px; width: 460px; max-height: 180px; background: rgba(0, 15, 5, 0.85); border: 1px solid #0f0; border-radius: 4px; color: #0f0; font-family: 'Mulish', monospace; font-size: 11px; font-weight: 300; display: flex; flex-direction: column; box-shadow: 0 0 12px rgba(0, 255, 0, 0.2); z-index: 10; pointer-events: none; }
.terminal-header { background: #0f0; color: #000; padding: 4px 8px; font-weight: 600; font-size: 12px; }
#terminal-content { padding: 8px; overflow-y: hidden; display: flex; flex-direction: column; gap: 4px; }
.log-entry { animation: fadeIn 0.3s ease-out; text-shadow: 0 0 5px #0f0; white-space: nowrap; }

.marker-container { pointer-events: none; }
.marker-animator { display: flex; flex-direction: column; align-items: center; animation: floatUp 3.5s ease-out forwards; }

.speech-bubble {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 0px 18px 0px 0px; 
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  gap: 16px; 
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.9);
  transform: translateY(-100%);
  height: 64px; 
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffff;
}

.bubble-icon-box {
  width: 64px; 
  height: 100%; 
  border-radius: 12px 0 0 12px; 
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
  flex-shrink: 0;
  overflow: hidden; 
}

.bubble-icon {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  position: relative;
  z-index: 2;
  transform: scale(1.05); 
}

.bubble-text-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.bubble-subtext {
  font-size: 13px;
  color: #555555;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 3px;
}

/* MODIFICADO: Añadido flexbox para alinear la bandera y el texto */
.bubble-maintext {
  font-size: 18px;
  color: #000000;
  font-weight: 800;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 8px; /* Espacio entre la bandera y el texto */
}

/* NUEVO: Estilos para la bandera */
.country-flag {
  width: 24px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  object-fit: cover;
}

.hq-beacon-pillar { width: 4px; height: 140px; background: linear-gradient(to top, rgba(5,217,232,1), rgba(5,217,232,0)); box-shadow: 0 0 18px #05d9e8, 0 0 35px #05d9e8; border-radius: 2px; transform: translateY(-100%); }

.anim-starburst { position: absolute; width: 44px; height: 44px; background: currentColor; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); animation: starSpin 1.5s infinite ease-out; z-index: 0; }
@keyframes starSpin { 0% { transform: scale(0.2) rotate(0deg); opacity: 0.9; } 100% { transform: scale(2.8) rotate(90deg); opacity: 0; } }

.anim-radar { position: absolute; width: 40px; height: 40px; border-radius: 50%; border: 3px solid currentColor; background: transparent; animation: radarExpand 1.5s infinite ease-out; z-index: 0; }
@keyframes radarExpand { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(3.5); opacity: 0; } }

@keyframes floatUp { 
  0% { opacity: 0; transform: translateY(10px) scale(0.6); } 
  15% { opacity: 1; transform: translateY(-10px) scale(1.0); } 
  85% { opacity: 1; transform: translateY(-25px) scale(1.0); } 
  100% { opacity: 0; transform: translateY(-35px) scale(0.85); } 
}

@keyframes fadeIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
