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

@font-face {
  font-family: 'Joggo-Font';
  src: url('/01_Yo_nunca/src/fuentes/ChauPhilomeneOne-Italic.ttf') format('truetype');
  font-display: swap;
}

body {
  font-family: 'Joggo-Font', 'Inter', 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
  color: #fff;
  min-height: 100vh;
  padding: 2vh 0;
  overflow-x: hidden;
}

.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.bg-logo {
  position: fixed;
  inset: 0;
  background-image: url('/00_shared/src/iconos/LOGO_JOGGO_L.png');
  background-repeat: no-repeat;
  background-position: center 10vh;
  background-size: min(70vw, 700px);
  opacity: 0.08;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
  pointer-events: none;
  z-index: 0;

  animation: bgDrift 26s ease-in-out infinite alternate;
}

.bg-logo::after {
  /* sutil resplandor animado para dar más vida */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.12), transparent 60%);
  animation: bgGlow 8s ease-in-out infinite alternate;
}

@keyframes bgDrift {
  0%   { transform: translate3d(-1.5vw, -1vh, 0) scale(1) rotate(-0.3deg); }
  50%  { transform: translate3d(1.5vw, 1vh, 0) scale(1.02) rotate(0.3deg); }
  100% { transform: translate3d(-1vw, 0.5vh, 0) scale(1.01) rotate(-0.2deg); }
}

@keyframes bgGlow {
  0%   { opacity: 0.06; filter: blur(0px); }
  100% { opacity: 0.12; filter: blur(2px); }
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 4vw;
  position: relative;
  z-index: 1;
}

.header {
  text-align: center;
  margin-bottom: 4vh;
  position: relative;
  z-index: 10;
}

.header h1 {
  font-size: clamp(28px, 6.5vw, 40px);
  font-weight: 900;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 16px rgba(0,0,0,0.35);
  margin-bottom: 2vh;
}

.status {
  font-size: clamp(12px, 3vw, 14px);
  padding: 1vh 2vw;
  border-radius: 20px;
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  margin-top: 1vh;
}

.status.connected {
  background: rgba(16, 185, 129, 0.3);
}

.status.disconnected {
  background: rgba(239, 68, 68, 0.3);
}

.soluciones-list {
  display: flex;
  flex-direction: column;
  gap: 2vh;
  margin-top: 3vh;
}

.solucion-item {
  background: linear-gradient(90deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08));
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 3vh 4vw;
  border: 1px solid rgba(255,255,255,0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.solucion-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  border-color: rgba(255,255,255,0.4);
}

.solucion-item:active {
  transform: scale(0.98);
  background: rgba(255,255,255,0.25);
}

.solucion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1vh;
}

.solucion-letra {
  font-size: clamp(32px, 7.5vw, 48px);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0,0,0,0.35);
  min-width: 60px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 1vh 2vw;
}

.solucion-texto {
  font-size: clamp(18px, 4.2vw, 22px);
  font-weight: 700;
  flex: 1;
  margin-left: 4vw;
  text-align: left;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.empty-state {
  text-align: center;
  padding: 8vh 4vw;
  color: rgba(255,255,255,0.7);
  font-size: clamp(14px, 3.5vw, 18px);
}

/* Modal/Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 4vw;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: rgba(255,255,255,0.95);
  color: #111;
  border-radius: 20px;
  padding: 6vw;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: slideUp 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 4vw;
  right: 4vw;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: all 0.2s ease;
}

.modal-close:active {
  transform: scale(0.9);
}

.modal-header {
  margin-bottom: 4vh;
  text-align: center;
}

.modal-letra {
  font-size: clamp(48px, 12vw, 72px);
  font-weight: 900;
  color: #8b5cf6;
  margin-bottom: 2vh;
}

.modal-pregunta {
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 600;
  color: #333;
  line-height: 1.5;
  margin-bottom: 3vh;
}

.modal-solucion {
  font-size: clamp(16px, 4vw, 20px);
  color: #666;
  padding: 3vh 4vw;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  border-left: 4px solid #8b5cf6;
}

