* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
h1 { color: #1e3c72; text-align: center; margin-bottom: 10px; font-size: 1.5rem; }

/* Indicador de conexión */
.conexion-status {
  text-align: center;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 20px auto;
  width: fit-content;
}
.conexion-status.online {
  background: #e8f5e9;
  color: #2e7d32;
}
.conexion-status.offline {
  background: #ffebee;
  color: #c62828;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.online .dot { background: #4caf50; }
.offline .dot { background: #f44336; }

.categorias { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  background: #2a5298;
  color: white;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}
.btn:hover { background: #1e3c72; transform: translateY(-2px); }
.btn.active { background: #ff6b35; }
.btn:disabled { background: #ccc; cursor: not-allowed; }

/* Botón de instalar PWA */
.btn-instalar {
  display: block;
  width: 100%;
  margin-top: 15px;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  font-size: 18px;
  padding: 15px;
  animation: pulse 2s infinite;
}
.btn-instalar:hover {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.sintomas-lista { margin: 20px 0; }
.sintoma-item {
  background: #f5f5f5;
  padding: 15px;
  margin: 10px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}
.sintoma-item:hover { background: #e0e0e0; transform: translateX(5px); }

#resultado {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  min-height: 100px;
  border-left: 5px solid #ff6b35;
}
#status { text-align: center; color: #666; margin: 15px 0; font-style: italic; }
.tip { padding: 8px 0; border-bottom: 1px dashed #ddd; }
.tip:last-child { border-bottom: none; }
.tip::before { content: "💡 "; }

/* Responsive para móviles */
@media (max-width: 480px) {
  .container { padding: 20px; border-radius: 0; min-height: 100vh; }
  h1 { font-size: 1.3rem; }
  .btn { padding: 10px 16px; font-size: 14px; }
}