html {
  min-height: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
  background-attachment: fixed;
}

.container {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align: center;
  width: 100%;
  max-width: 500px;
  margin-top: 40px;
}

h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
}

.tool-box {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

input {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

button {
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: white;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: 0.2s;
}

button:hover {
  background: #1e4fc7;
}

#qr-result {
  margin-top: 20px;
}

@media (max-width: 500px) {
  .container {
    padding: 25px;
  }

  .tool-box {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}

.info {
  margin-top: 40px;
  text-align: left;
}

.info h2 {
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 18px;
}

.info h3 {
  margin-top: 15px;
  font-size: 15px;
}

.info p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.nav-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.nav-btn {
  padding: 10px 18px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.nav-btn.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.tool-box-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
}

html.bg-whatsapp,
body.bg-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

html.bg-wifi,
body.bg-wifi {
  background: linear-gradient(135deg, #3b82f6, #1e3a8a);
}

html.bg-instagram,
body.bg-instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

html.bg-enlace,
body.bg-enlace {
  background: linear-gradient(135deg, #facc15, #f59e0b);
}

.qr-wrapper {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 20px;
}

.qr-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.primary-btn {
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  background-color: #2f6fed;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  height: fit-content;
}

.primary-btn:hover {
  background-color: #1d4fd8;
}

@media (max-width: 600px) {
  .qr-wrapper {
    flex-direction: column;
    align-items: center;
  }
}
