:root{
  --bg:#0b1220;
  --card:#121a2b;
  --muted:#a9b2c7;
  --text:#e9edf6;
  --ok:#18c37e;
  --bad:#ff5b5b;
  --warn:#ffcc66;
  --line:rgba(255,255,255,.08);
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius:16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color-scheme: dark;
}

*{box-sizing:border-box}

/* Disuasión (NO seguridad): evita selección general */
body{
  margin:0;
  font-family:var(--sans);
  background: radial-gradient(900px 500px at 20% 10%, rgba(24,195,126,.22), transparent 55%),
              radial-gradient(900px 500px at 80% 20%, rgba(255,204,102,.18), transparent 55%),
              radial-gradient(900px 500px at 50% 90%, rgba(90,125,255,.15), transparent 55%),
              var(--bg);
  color:var(--text);
  min-height:100vh;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:24px;

  -webkit-user-select:none;
  user-select:none;

  /* Bootstrap variables (evita texto oscuro) */
  --bs-body-color: var(--text);
  --bs-body-bg: var(--bg);
}

.wrap{ width:100%; max-width:920px; }

header{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
}

.brand{ display:flex; flex-direction:column; gap:4px; }

h1{ font-size:20px; margin:0; letter-spacing:.2px; }

.sub{ color:var(--muted); font-size:13px; margin:0; line-height:1.4; }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
  color: var(--text);
}

.form{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:flex-end;
}

label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}

input{
  width:260px;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255, 255, 255, 0.877);
  background:rgba(10,16,28,.55);
  color:var(--text);
  outline:none;
  font-size:14px;
  font-family:var(--mono);

  /* permitir seleccionar dentro del input */
  -webkit-user-select:text;
  user-select:text;
}

input:focus{
  border-color:rgba(24,195,126,.55);
  box-shadow:0 0 0 4px rgba(24,195,126,.12);
}

button{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(24,195,126,.16);
  color:var(--text);
  font-weight:600;
  cursor:pointer;
  transition:.15s ease;
}

button:hover{ transform: translateY(-1px); background: rgba(24,195,126,.22); }
button:disabled{ opacity:.55; cursor:not-allowed; transform:none; }

.hint{ margin-top:10px; color:var(--muted); font-size:12px; }

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-top:16px;
}

@media (max-width:720px){
  .grid{ grid-template-columns: 1fr; }
  input{ width:100%; }
  header{ flex-direction:column; align-items:flex-start; }
}

/* 🔧 FIX REAL: renombré tu ".row" a ".hourCard" para no chocar con Bootstrap */
.hourCard{
  padding:14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(18,26,43,.35);
  width: 100%;
  overflow: hidden;
  color: var(--text);
}

.k{ color:var(--muted); font-size:12px; margin-bottom:8px; }
.v{ font-size:16px; font-weight:650; letter-spacing:.2px; color: var(--text); }

.pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  margin-top:14px;
  font-size:13px;
  color:var(--muted);
}

.dot{
  width:10px; height:10px; border-radius:99px;
  background:var(--warn);
  box-shadow:0 0 0 4px rgba(255,204,102,.15);
}
.dot.ok{ background:var(--ok); box-shadow:0 0 0 4px rgba(24,195,126,.15); }
.dot.bad{ background:var(--bad); box-shadow:0 0 0 4px rgba(255,91,91,.15); }

.resultHead{
  display:flex; justify-content:space-between; align-items:flex-start; gap:12px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line);
  color: var(--text);
}

.name{ font-size:18px; font-weight:700; margin:0; }
.dni{
  font-family:var(--mono);
  color:var(--muted);
  margin:6px 0 0 0;
  font-size:13px;
}

.status{ text-align:right; font-size:12px; color:var(--muted); }

.msg{
  margin-top:14px;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
  white-space:pre-wrap;
}
.msg.ok{ border-color: rgba(24,195,126,.35); color: rgba(233,237,246,.92); }
.msg.bad{ border-color: rgba(255,91,91,.35); color: rgba(233,237,246,.92); }

.footerLine{
  margin-top:14px;
  color:var(--muted);
  font-size:12px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.wa{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: rgba(233,237,246,.92);
  text-decoration:none;
}
.wa:hover{ transform: translateY(-1px); }
