/* Colores y estilo tomados de prototipo-t-tempo.html */
:root {
  --bg: #F7F7F5; --card: #fff; --ink: #14181F; --mut: #5B616B; --line: #E6E6E1;
  --acc: #3D5AFE; --chip: #EFEFEA; --ice: #0B8FD1; --error: #C62828;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101318; --card: #181C23; --ink: #F2F3F5; --mut: #A3AAB5; --line: #2A303A;
    --chip: #232933; --ice: #38BDF8; --error: #FF8A80;
  }
}
:root[data-theme="dark"] {
  --bg: #101318; --card: #181C23; --ink: #F2F3F5; --mut: #A3AAB5; --line: #2A303A;
  --chip: #232933; --ice: #38BDF8; --error: #FF8A80;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
           env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  -webkit-text-size-adjust: 100%;
}

h1 { margin: 0; font-size: 24px; font-weight: 800; }
header { display: flex; justify-content: space-between; align-items: center; padding: 16px; }
.contenido { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }

.land { min-height: 90vh; display: flex; flex-direction: column; justify-content: center;
        gap: 16px; padding: 24px; max-width: 480px; margin: 0 auto; }
.centro { text-align: center; }
.mut { color: var(--mut); font-size: 14px; margin: 0; }
.chico { font-size: 13px; }
.mut:empty { display: none; }
.error { color: var(--error); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
        padding: 14px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.card p { margin: 0; }

.b, .pri { font: inherit; border: 1px solid var(--line); background: var(--card); color: var(--ink);
           border-radius: 12px; padding: 10px 14px; min-height: 44px; text-align: center; font-weight: 500; }
.pri { background: var(--acc); border-color: var(--acc); color: #fff; font-weight: 700; }
.b:disabled, .pri:disabled { opacity: .55; }
.enlace { font: inherit; font-size: 14px; background: none; border: 0; color: var(--ice);
          padding: 8px; min-height: 40px; }

input { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--bg);
        border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 44px; }
input:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
.codigo { font-size: 26px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
label { display: block; }

/* Logo */
.lgo { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { border-radius: 8px; }
.wm { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; letter-spacing: 1px; line-height: 1; font-size: 18px; }
.wm svg { flex: none; }
.wm-grande { font-size: 34px; }
.guion { color: var(--acc); font-style: normal; }
.kz { letter-spacing: .42em; font-size: 11px; font-weight: 600; color: var(--mut); }
