/* ==========================================================================
   FixGo · app del cliente (one page mobile)
   ========================================================================== */

/* ------------------------------ Auth ---------------------------------- */
.auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(24px + var(--safe-t)) 20px calc(24px + var(--safe-b));
  max-width: var(--maxw);
  margin: 0 auto;
}
.auth-box { width: 100%; max-width: 400px; }
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-bottom: 8px;
}
.auth-logo .brand-mark { width: 46px; height: 46px; border-radius: 15px; }
.auth-logo .brand-mark svg { width: 25px; height: 25px; }
.auth-logo span { font-size: 30px; font-weight: 820; letter-spacing: -0.04em; }
.auth-logo em { font-style: normal; color: var(--primary); }
.auth h1 { text-align: center; font-size: 22px; margin: 16px 0 6px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }

.auth-switch {
  display: flex;
  padding: 4px;
  gap: 4px;
  background: rgba(6, 11, 20, 0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 22px;
}
.auth-switch button {
  flex: 1;
  padding: 10px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--muted);
  transition: all var(--t);
}
.auth-switch button.active {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(79, 123, 255, 0.9);
}
.auth-perks { margin-top: 24px; display: grid; gap: 11px; }
.perk { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: var(--muted); }
.perk svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* --------------------------- Selector de tipo -------------------------- */
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 480px) { .type-grid { grid-template-columns: repeat(3, 1fr); } }

.type-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 15px 13px;
  border-radius: var(--r);
  background: var(--grad-surface);
  border: 1.5px solid var(--line-soft);
  text-align: center;
  transition: all var(--t);
  overflow: hidden;
}
.type-card:active { transform: scale(0.96); }
.type-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin: 0 auto;
  border-radius: 14px;
  background: rgba(79, 123, 255, 0.1);
  border: 1px solid rgba(79, 123, 255, 0.2);
  color: #8fb0ff;
  transition: all var(--t);
}
.type-icon svg { width: 23px; height: 23px; }
.type-name { font-size: 13px; font-weight: 650; line-height: 1.25; }
.type-from { font-size: 11px; color: var(--muted-2); font-weight: 600; }
.type-card.selected {
  border-color: var(--primary);
  background: linear-gradient(160deg, rgba(79, 123, 255, 0.16), rgba(123, 92, 255, 0.08));
  box-shadow: 0 10px 28px -14px rgba(79, 123, 255, 0.9);
}
.type-card.selected .type-icon {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}
.type-card.selected::after {
  content: '';
  position: absolute;
  top: 9px; right: 9px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--grad-mint);
  box-shadow: inset 0 0 0 2px #0a0f1c;
}

/* ------------------------------- Wizard -------------------------------- */
.wiz-steps { display: flex; align-items: center; gap: 7px; margin-bottom: 22px; }
.wiz-dot {
  flex: 1;
  height: 4px;
  border-radius: var(--pill);
  background: var(--line);
  transition: background var(--t);
}
.wiz-dot.on { background: var(--grad-brand); }
.wiz-head { margin-bottom: 20px; }
.wiz-head h2 { font-size: 23px; letter-spacing: -0.03em; }
.wiz-head p { color: var(--muted); font-size: 14px; margin-top: 5px; }

.wiz-body { animation: view-in 0.3s var(--ease); }
.wiz-foot {
  position: sticky;
  bottom: 0;
  margin: 24px -18px calc(-1 * (var(--tabbar) + var(--safe-b) + 26px));
  padding: 14px 18px calc(14px + var(--tabbar) + var(--safe-b));
  background: linear-gradient(180deg, rgba(6, 9, 18, 0.4), rgba(6, 9, 18, 0.96) 40%);
  backdrop-filter: blur(14px);
  display: flex;
  gap: 10px;
}

/* Tarjeta resumen antes de confirmar */
.summary-card { padding: 18px; border-radius: var(--r-lg); background: var(--grad-surface); border: 1px solid var(--line-soft); }
.sum-row { display: flex; gap: 12px; padding: 11px 0; }
.sum-row + .sum-row { border-top: 1px solid var(--line-soft); }
.sum-key { font-size: 12.5px; color: var(--muted); font-weight: 650; min-width: 96px; }
.sum-val { font-size: 14px; font-weight: 600; flex: 1; }

/* Ubicacion */
.geo-state {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  background: rgba(79, 123, 255, 0.08);
  border: 1px solid rgba(79, 123, 255, 0.22);
  color: #b7c9ff;
  margin-bottom: 12px;
}
.geo-state.warn {
  background: rgba(255, 176, 32, 0.1);
  border-color: rgba(255, 176, 32, 0.28);
  color: #ffd27a;
}
.geo-state svg { width: 17px; height: 17px; flex: none; }

/* --------------------------- Pantalla activa -------------------------- */
.active-hero {
  position: relative;
  padding: 20px;
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, rgba(79, 123, 255, 0.2), rgba(123, 92, 255, 0.1) 55%, transparent);
  border: 1px solid rgba(79, 123, 255, 0.32);
  overflow: hidden;
  margin-bottom: 16px;
}
.active-hero::after {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  top: -130px; right: -70px;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.22), transparent 70%);
}
.active-hero > * { position: relative; }

.pulse-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 14px 34px -12px rgba(79, 123, 255, 0.9);
}
.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(79, 123, 255, 0.5);
  animation: ring 1.9s var(--ease) infinite;
}
@keyframes ring {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.pulse-ring svg { width: 28px; height: 28px; }

/* Busqueda de tecnico (animacion estilo Uber) */
.searching-dots { display: flex; gap: 5px; }
.searching-dots i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: dot-bounce 1.1s infinite;
}
.searching-dots i:nth-child(2) { animation-delay: 0.15s; }
.searching-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Tarjeta del tecnico asignado */
.driver-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--grad-surface);
  border: 1px solid rgba(0, 229, 160, 0.28);
  box-shadow: 0 14px 36px -18px rgba(0, 229, 160, 0.6);
}
.driver-actions { display: flex; gap: 9px; margin-top: 14px; }
.driver-actions .btn { flex: 1; }

/* Contacto rapido */
.contact-row { display: flex; gap: 9px; }
.contact-row .btn { flex: 1; flex-direction: column; gap: 4px; padding: 13px 8px; }
.contact-row .btn span { font-size: 11.5px; font-weight: 650; }
.contact-row .btn svg { width: 21px; height: 21px; }

/* Filtros de lista */
.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  margin: 0 -18px;
  padding-inline: 18px;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-row .chip { flex: none; }

/* Estrellas parasible */
.rate-wrap { text-align: center; padding: 8px 0 4px; }
.rate-stars { display: flex; justify-content: center; gap: 10px; }
.rate-stars button { color: var(--line); transition: transform var(--t-fast); }
.rate-stars button svg { width: 42px; height: 42px; }
.rate-stars button.on { color: #ffc531; }
.rate-stars button.on svg { fill: #ffc531; }
.rate-stars button:active { transform: scale(1.2); }
.rate-label { font-size: 15px; font-weight: 650; margin-top: 12px; min-height: 22px; }

/* Resumen final de la resena */
.rate-summary { text-align: center; }
.rate-summary .avatar { margin: 0 auto 14px; }

/* Estrellas de solo lectura */
.rating-read { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; }
.rating-read svg { width: 15px; height: 15px; color: #ffc531; fill: #ffc531; }

/* Perfil */
.profile-head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-radius: var(--r-xl);
  background: var(--grad-surface);
  border: 1px solid var(--line-soft);
}
.profile-rows { margin-top: 14px; }
.prow {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--t);
}
.prow:last-child { border-bottom: 0; }
.prow:active { background: rgba(79, 123, 255, 0.07); }
.prow-icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 12px;
  background: rgba(79, 123, 255, 0.11);
  color: #8fb0ff;
}
.prow-icon svg { width: 18px; height: 18px; }
.prow b { font-size: 14.5px; font-weight: 620; display: block; }
.prow span { font-size: 12.5px; color: var(--muted); }
.prow > svg:last-child { width: 17px; height: 17px; color: var(--muted-2); margin-left: auto; flex: none; }

/* Selector de metodo de pago */
.pay-opts { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.pay-opt {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border-radius: var(--r);
  background: rgba(6, 11, 20, 0.5);
  border: 1.5px solid var(--line);
  transition: all var(--t);
  text-align: left;
}
.pay-opt svg { width: 22px; height: 22px; color: var(--muted); }
.pay-opt b { font-size: 13.5px; display: block; }
.pay-opt span { font-size: 11.5px; color: var(--muted); }
.pay-opt.selected { border-color: var(--primary); background: rgba(79, 123, 255, 0.1); }
.pay-opt.selected svg { color: var(--primary); }

/* Modal de onboarding GPS */
.gps-prompt { text-align: center; }
.gps-prompt .gps-icon {
  display: grid;
  place-items: center;
  width: 78px; height: 78px;
  margin: 6px auto 18px;
  border-radius: 50%;
  background: rgba(79, 123, 255, 0.12);
  border: 1px solid rgba(79, 123, 255, 0.26);
  color: var(--primary);
  animation: ring-soft 2.4s var(--ease) infinite;
}
.gps-prompt .gps-icon svg { width: 36px; height: 36px; }
@keyframes ring-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 123, 255, 0.3); }
  50% { box-shadow: 0 0 0 16px rgba(79, 123, 255, 0); }
}
.gps-prompt h3 { font-size: 19px; margin-bottom: 8px; }
.gps-prompt p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 22px; }
