:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #0ea5a4;
  --btn-bg: #111;
  --btn-text: #ffffff;
  --nav-height: 64px;
  --border: rgba(0, 0, 0, 0.08)
}

.dark {
  --bg: #0b1220;
  --text: #e6eef6;
  --muted: #9aa6b2;
  --accent: #60f0d8;
  --btn-bg: #155e59;
  --btn-text: #e6eef6;
  --border: rgba(255, 255, 255, 0.08)
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lexend", sans-serif;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.navbar {
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}

.title {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.title .name {
  font-weight: 700;
  font-size: 1.02rem;
}

.title .tag {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
}

/* CONTENIDO */
.container {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  margin-bottom: 15px;
}

.card {
  width: 95%;
  max-width: 450px;
  background: var(--bg);
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  text-align: center;
}

h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
}

p.desc {
  font-size: 15px;
  margin-bottom: 25px;
  opacity: 0.9;
}

label {
  text-align: left;
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

input {
  width: 100%;
  height: 50px;
  border-radius: 10px;
  border: 2px solid #ddd;
  background: #fafafa;
  padding: 0 15px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  outline: none;
}

input:focus {
  border-color: #13ec5b;
  background: white;
}

.btn {
  margin-top: 20px;
  width: 100%;
  height: 52px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 17px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s;
}

.btn:hover {
  transform: scale(1.03);
}

footer {
  text-align: center;
  padding: 12px 20px;
  font-size: 13px;
  color: #888;
  border-top: 1px solid #ddd;
  line-height: 1.5;
  width: 100%;
}

/* ==================== TECLADO NUMÉRICO ==================== */
.numpad {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
  padding: 15px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Solo mostrar en tablets y escritorio (768px o más) */
@media (min-width: 768px) {
  .numpad {
    display: grid;
  }
}

.numpad-btn {
  height: 60px;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.numpad-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.05);
}

.numpad-btn:active {
  transform: scale(0.95);
}

/* Botones de acción (borrar/limpiar) en rojo */
.numpad-action {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

.numpad-action:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.dark .numpad-action {
  background: #450a0a;
  color: #f87171;
  border-color: #7f1d1d;
}

.dark .numpad-action:hover {
  background: #b91c1c;
  color: #fff;
  border-color: #b91c1c;
}

/* Input en modo oscuro */
.dark input {
  background: #1e293b;
  border-color: #334155;
  color: var(--text);
}

.dark input:focus {
  border-color: var(--accent);
  background: #0f172a;
}
