:root {
  --tinta: #1F2328;
  --tinta-suave: #4A4F55;
  --gris: #6B7075;
  --linea: #D9D7D1;
  --fondo: #FFFFFF;
  --fondo-suave: #F7F6F3;
  --rojo: #D2342B;
  --rojo-fondo: #FBE3E1;
  --rojo-texto: #A3211A;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--tinta);
  background: var(--fondo-suave);
  min-height: 100vh;
}

.titulo {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0;
}

/* ---------- entrar ---------- */
.entrar {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tarjeta {
  width: 100%;
  max-width: 380px;
  background: var(--fondo);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 8px 30px rgba(31, 35, 40, .08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.franja {
  display: flex;
  gap: 4px;
  height: 6px;
}
.franja span { flex: 1; border-radius: 3px; }
.c-ptr { background: #2F6FDB; }
.c-mhc { background: #E07A1F; }
.c-casa { background: #1E9E78; }
.c-per { background: #8A4FD8; }
.subtitulo { font-size: 15px; }
.etiqueta { font-size: 13px; color: var(--gris); }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gris);
}
.campo input {
  height: 48px;
  border: 1px solid var(--linea);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 16px;
  color: var(--tinta);
  background: var(--fondo);
  outline: none;
}
.campo input:focus { border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(31, 35, 40, .12); }
.campo input.codigo { letter-spacing: .4em; font-weight: 700; font-size: 20px; text-align: center; }
.boton {
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: var(--tinta);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
}
.boton:disabled { opacity: .6; cursor: wait; }
.boton-secundario {
  height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1px solid var(--linea);
  background: var(--fondo);
  color: var(--tinta);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  cursor: pointer;
}
.error {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--rojo-fondo);
  color: var(--rojo-texto);
  font-size: 13px;
  font-weight: 600;
}
.error.visible { display: block; }

/* ---------- inicio (temporal, Etapa 1) ---------- */
.inicio {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cabecera { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aviso {
  background: var(--fondo);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aviso p { margin: 0; color: var(--tinta-suave); font-size: 14px; line-height: 1.5; }
.mundos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mundo {
  background: var(--fondo);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}
.mundo i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
