:root {
  --azul-oscuro: #130F2D;
  --azul-claro: #0097D6;
  --arandano: #4F2FFC;
  --texto-suave: #6b7280;
  --borde: #d9dce3;
  --error: #c0392b;
  --exito: #1e8f5f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f6fa;
  color: var(--azul-oscuro);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tarjeta {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(19, 15, 45, 0.08);
  padding: 32px 24px;
  width: 100%;
  max-width: 420px;
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 6px;
}

.subtitulo {
  color: var(--texto-suave);
  font-size: 0.92rem;
  margin: 0 0 24px;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 16px 0 6px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border: 1px solid var(--borde);
  border-radius: 10px;
  background: #fff;
}

input:focus {
  outline: none;
  border-color: var(--azul-claro);
}

button, .boton {
  display: inline-block;
  width: 100%;
  padding: 14px;
  margin-top: 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--azul-claro);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

button:active, .boton:active { opacity: 0.85; }

.boton-secundario {
  background: transparent;
  color: var(--azul-claro);
  border: 1px solid var(--azul-claro);
}

.error {
  color: var(--error);
  font-size: 0.9rem;
  margin-top: 12px;
}

.exito {
  color: var(--exito);
  font-size: 0.9rem;
  margin-top: 12px;
}

.qr-imagen {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 8px auto 0;
  border-radius: 8px;
}

.nombre-asistente {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 16px;
}

.honeypot { position: absolute; left: -9999px; top: -9999px; }

.fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-on { background: #e2f8ee; color: var(--exito); }
.badge-off { background: #fdecea; color: var(--error); }

table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.85rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--borde); }
