/* ============================================================
   Simulador de motores Cummins · Cumandes
   Estilo mobile-first. Marca: rojo Cummins + negro/gris.
   ============================================================ */

:root {
  --rojo: #d5202a;
  --rojo-700: #b01820;
  --negro: #15171a;
  --gris-900: #1f2228;
  --gris-600: #5a616b;
  --gris-400: #9aa1ab;
  --gris-200: #e3e6ea;
  --gris-100: #f2f4f6;
  --blanco: #ffffff;
  --wa: #25d366;
  --ok: #1e9e5a;
  --radio: 12px;
  --sombra: 0 2px 10px rgba(21, 23, 26, .08);
  --sombra-f: 0 6px 24px rgba(21, 23, 26, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--negro);
  background: var(--gris-100);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.sim {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* ---------- Encabezado ---------- */
.sim__head { text-align: center; margin-bottom: 20px; }
.marca {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  color: var(--rojo); text-transform: uppercase; margin-bottom: 10px;
}
.sim__head h1 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; }
.sub { color: var(--gris-600); margin: 0 auto; max-width: 48ch; }

/* ---------- Progreso ---------- */
.prog {
  display: flex; align-items: center; gap: 8px;
  margin: 20px 0 24px; font-size: 13px;
}
.prog__paso { display: flex; align-items: center; gap: 6px; color: var(--gris-400); font-weight: 600; }
.prog__paso span {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gris-200); color: var(--gris-600); font-size: 12px;
}
.prog__paso.activo { color: var(--negro); }
.prog__paso.activo span { background: var(--rojo); color: #fff; }
.prog__paso.hecho span { background: var(--ok); color: #fff; }
.prog__linea { flex: 1; height: 3px; background: var(--gris-200); border-radius: 2px; overflow: hidden; }
.prog__linea i { display: block; height: 100%; width: 0; background: var(--rojo); transition: width .35s ease; }

/* ---------- Tarjeta / pasos ---------- */
.paso {
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 22px;
  animation: aparece .3s ease;
}
.oculto { display: none !important; }
.paso__tit { font-size: 15px; color: var(--rojo); margin: 0 0 18px; font-weight: 700; }

@keyframes aparece { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Campos ---------- */
.campo { margin-bottom: 18px; }
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .fila { grid-template-columns: 1fr; } }

label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
label em { color: var(--gris-400); font-weight: 400; font-style: normal; }

input[type=text], input[type=tel] {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--gris-200); border-radius: 10px;
  font-size: 16px; background: #fff; color: var(--negro);
  transition: border-color .15s;
}
input:focus { outline: none; border-color: var(--rojo); }
input.invalido { border-color: var(--rojo); background: #fff6f6; }

.hint { display: block; color: var(--gris-400); font-size: 12.5px; margin-top: 6px; }
.err { display: none; color: var(--rojo); font-size: 12.5px; margin-top: 6px; font-weight: 600; }
.err.ver { display: block; }

/* ---------- Grupos de botones (chips) ---------- */
.grupo { display: flex; flex-wrap: wrap; gap: 8px; }
.grupo--inline { margin-top: 8px; }

.chip {
  appearance: none; cursor: pointer;
  border: 1.5px solid var(--gris-200); background: #fff; color: var(--gris-900);
  padding: 11px 15px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: all .12s ease;
}
.chip:hover { border-color: var(--gris-400); }
.chip.sel {
  background: var(--rojo); border-color: var(--rojo); color: #fff;
  box-shadow: 0 2px 8px rgba(213, 32, 42, .35);
}
.chip--sm { padding: 7px 12px; font-size: 13px; }

.bloque {
  border-left: 3px solid var(--gris-200);
  padding-left: 14px; margin: 4px 0 18px;
}

/* ---------- Botones de acción ---------- */
.btn-row { margin-top: 24px; }
.btn-row--split { display: flex; gap: 12px; }
.btn-row--split .btn--primary { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none;
  padding: 14px 22px; border-radius: 10px; border: none;
  font-size: 16px; font-weight: 700; transition: all .15s;
}
.btn--primary { background: var(--rojo); color: #fff; width: 100%; }
.btn--primary:hover { background: var(--rojo-700); }
.btn--ghost { background: #fff; color: var(--gris-600); border: 1.5px solid var(--gris-200); }
.btn--ghost:hover { border-color: var(--gris-400); }
.btn--wa { background: var(--wa); color: #fff; width: 100%; font-size: 17px; }
.btn--wa:hover { filter: brightness(.95); }

/* ---------- Gracias ---------- */
.gracias { text-align: center; }
.check {
  width: 60px; height: 60px; margin: 4px auto 16px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 30px; font-weight: 700;
}
.gracias h2 { margin: 0 0 10px; }
.gracias .sub { margin-bottom: 22px; }
.nota { color: var(--gris-400); font-size: 12.5px; margin-top: 16px; }

.pie { text-align: center; color: var(--gris-400); font-size: 12px; margin-top: 18px; }
