/*
  IDENTIKO — asistente de talle.

  Viene del sitio aprobado del 17/09, donde vivía embebido en el index junto
  a todo lo demás. Acá está separado y con dos cambios de fondo:

  · Los colores pasaron a los tokens del proyecto. Los degradados violetas
    del original se aplanaron al azul de la marca, que es la dirección visual
    que ya tiene el resto del sitio.

  · Las seis siluetas eran base64 adentro del HTML. Ahora son archivos WebP
    en assets/img/asistente/: el navegador los cachea y el HTML pesa 60 KB
    menos.
*/

/* ── cajón ──────────────────────────────────────────────────────────── */
.fa-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.fa-overlay.open { opacity: 1; pointer-events: all; }
.fa-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, calc(100vw - 52px));
  background: #EAEAEA; z-index: 301;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px 0 0 16px;
}
.fa-drawer.open { transform: translateX(0); }
.fa-header { background: var(--blanco); padding: 16px 20px 14px; border-bottom: 1px solid #E0E0E0; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.fa-header-left { display: flex; align-items: center; gap: 10px; }
.fa-logo-badge { background: var(--azul); color: #fff; border-radius: 8px; padding: 6px 10px; font-family: var(--fuente-ui); font-size: 13px; font-weight: 900; }
.fa-header-title { font-size: 15px; font-weight: 700; }
.fa-header-sub { font-size: 11px; color: var(--gris-texto); margin-top: 1px; }
.fa-close { background: none; border: none; cursor: pointer; color: var(--gris-texto); font-size: 22px; }
.fa-progress { height: 3px; background: #E0E0E0; flex-shrink: 0; }
.fa-progress-fill { height: 100%; background: var(--azul); transition: width 0.4s ease; border-radius: 0 2px 2px 0; }
.fa-body { flex: 1; overflow-y: auto; padding: 24px 20px; }
.fa-step { display: none; animation: fadeUp 0.3s ease; }
.fa-step.active { display: block; }
.fa-step-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--azul); margin-bottom: 6px; }
.fa-step-title { font-family: var(--fuente-ui); font-size: 26px; font-weight: 900; text-transform: uppercase; color: var(--negro); margin-bottom: 4px; line-height: 1; }
.fa-step-sub { font-size: 13px; color: var(--gris-texto); margin-bottom: 24px; }
.fa-toggle { display: flex; background: var(--blanco); border: 1.5px solid var(--gris-borde); border-radius: 8px; overflow: hidden; margin-bottom: 16px; width: fit-content; }
.fa-toggle-btn { padding: 7px 16px; font-size: 12px; font-weight: 700; border: none; background: none; cursor: pointer; color: var(--gris-texto); font-family: var(--fuente-texto); }
.fa-toggle-btn.active { background: var(--azul); color: #fff; }
.fa-big-input { flex: 1; height: 68px; border: 2px solid var(--gris-borde); border-radius: 12px; background: var(--blanco); font-family: var(--fuente-ui); font-size: 38px; font-weight: 900; text-align: center; color: var(--negro); outline: none; transition: border-color 0.2s; }
.fa-big-input:focus { border-color: var(--azul); }
.fa-input-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.fa-unit { font-size: 16px; font-weight: 700; color: var(--gris-texto); }
.fa-silhouette-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 8px; }
.fa-sil-card { background: var(--blanco); border: 2px solid transparent; border-radius: 14px; padding: 10px 6px 8px; cursor: pointer; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: border-color 0.18s, transform 0.15s; }
.fa-sil-card:hover { border-color: rgba(11,85,232,0.3); transform: translateY(-2px); }
.fa-sil-card.active { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(11,85,232,0.15); }
.fa-sil-img { width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; background: #EAEAEA; }
.fa-sil-label { font-size: 12px; font-weight: 700; }
.fa-sil-card.active .fa-sil-label { color: var(--azul); }
.fa-tip-box { display: flex; align-items: flex-start; gap: 10px; background: var(--blanco); border-radius: 12px; padding: 14px; margin-top: 16px; border-left: 3px solid var(--azul); animation: fadeUp 0.25s ease; }
.fa-tip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.fa-tip-text { font-size: 13px; color: var(--negro); line-height: 1.55; }
.fa-tip-text strong { color: var(--azul); }
.fa-slider { width: 100%; -webkit-appearance: none; height: 6px; border-radius: 3px; outline: none; background: linear-gradient(to right,var(--azul) 50%,#E0E0E0 50%); cursor: pointer; }
.fa-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--azul); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(11,85,232,0.4); cursor: pointer; }
.fa-slider-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--gris-texto); font-weight: 600; }
.fa-slider-value { text-align: center; font-family: var(--fuente-ui); font-size: 18px; font-weight: 900; color: var(--azul); margin-bottom: 8px; }
.fa-slider-wrap { margin-bottom: 24px; }
.fa-result { text-align: center; }
.fa-result-talle-wrap { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--azul); color: #fff; border-radius: 20px; padding: 18px 32px; margin-bottom: 20px; }
.fa-result-talle-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: 0.8; }
.fa-result-talle { font-family: var(--fuente-ui); font-size: 72px; font-weight: 900; line-height: 1; }
.fa-confidence { margin-bottom: 20px; }
.fa-confidence-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.fa-confidence-talle { font-size: 14px; font-weight: 700; }
.fa-confidence-pct { font-size: 14px; font-weight: 700; color: var(--azul); }
.fa-bar-track { height: 8px; background: #E0E0E0; border-radius: 4px; overflow: hidden; margin-bottom: 10px; }
.fa-bar-fill { height: 100%; border-radius: 4px; background: var(--azul); transition: width 1s cubic-bezier(.4,0,.2,1); }
.fa-bar-fill.secondary { background: #D1D5DB; }
.fa-result-desc { font-size: 13px; color: var(--gris-texto); line-height: 1.6; margin-bottom: 20px; }
.fa-result-desc strong { color: var(--negro); }
.fa-btn-apply { width: 100%; background: var(--azul); color: #fff; border: none; border-radius: var(--radio); padding: 16px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--fuente-ui); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.fa-btn-restart { width: 100%; background: none; border: none; color: var(--gris-texto); font-size: 13px; font-weight: 600; cursor: pointer; padding: 8px; font-family: var(--fuente-texto); }
.fa-footer { padding: 12px 20px; border-top: 1px solid #E0E0E0; background: var(--blanco); flex-shrink: 0; }
.fa-footer-nav { display: flex; align-items: center; justify-content: space-between; }
.fa-btn-back { background: none; border: 1.5px solid var(--gris-borde); border-radius: var(--radio); padding: 9px 20px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--gris-texto); font-family: var(--fuente-texto); }
.fa-btn-next { background: var(--azul); color: #fff; border: none; border-radius: var(--radio); padding: 9px 24px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: var(--fuente-texto); }
.fa-step-counter { font-size: 11px; color: var(--gris-texto); font-weight: 600; }

/* La animación de entrada de cada paso no existía en los estilos nuevos. */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ── botón que lo abre ───────────────────────────────────────────────────── */
.btn-fa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--azul);
  border-radius: var(--radio-chico);
  background: var(--blanco);
  color: var(--azul);
  font-family: var(--fuente-ui);
  font-size: 10px;
  letter-spacing: 0.9px;
  padding: 7px 10px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.btn-fa:hover { background: var(--azul); color: var(--blanco); }

.btn-fa-punto {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .fa-drawer, .fa-overlay, .fa-progress-fill, .fa-bar-fill { transition: none; }
  .fa-step { animation: none; }
  .fa-sil-card:hover { transform: none; }
}

/*
  Las siluetas pasaron de <div onclick> a <button>: se pueden recorrer con el
  teclado y un lector de pantalla las anuncia. Hay que reponerles lo que el
  navegador le saca a un botón.
*/
.fa-sil-card {
  width: 100%;
  font-family: inherit;
  color: inherit;
}

.fa-sil-card[aria-pressed='true'] {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(11, 85, 232, 0.15);
}

/* Aviso de dato mal cargado, en lugar del alert() del original. */
.fa-aviso {
  margin: 10px 0 0;
  border-left: 3px solid var(--alerta);
  background: #fdf0ef;
  padding: 9px 11px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--negro);
}

.fa-aviso[hidden] { display: none; }

@media (max-width: 760px) {
  /* En pantallas chicas el cajón ocupa todo: 420 px no entran. */
  .fa-drawer { max-width: 100vw; }
}
