/* =====================================================================
   Noshopia — Experiencia (onboarding horizontal, Mis Logros, Noa)
   Diseño: blanco, tipografía del sistema (San Francisco en iOS), un solo
   acento, mucho aire, botones grandes, animaciones discretas.
   Todo vive bajo .nx-* para no tocar estilos existentes (Android intacto:
   estos componentes no se montan en Android).
   ===================================================================== */
:root {
  --nx-ink: #0f172a;
  --nx-text: #1f2937;
  --nx-muted: #6b7280;
  --nx-faint: #9ca3af;
  --nx-line: #e5e7eb;
  --nx-surface: #f7f7f8;
  --nx-bg: #ffffff;
  --nx-accent: #6d28d9;
  --nx-accent-soft: #f3efff;
  --nx-star: #f5b301;
  --nx-ok: #16a34a;
  --nx-radius: 16px;
  --nx-radius-sm: 12px;
  --nx-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --nx-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
  /* iOS: env(); Android (Capacitor 8 borde a borde): --safe-area-inset-* si el WebView las inyecta. */
  --nx-safe-top: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px));
  --nx-safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px));
}

.nx-sheet, .nx-sheet * { box-sizing: border-box; }
.nx-sheet {
  position: fixed; inset: 0; z-index: 4000;
  background: var(--nx-bg); color: var(--nx-text);
  font-family: var(--nx-font); font-size: 16px; line-height: 1.45;
  display: flex; flex-direction: column;
  padding: calc(12px + var(--nx-safe-top)) 0 calc(12px + var(--nx-safe-bottom));
  -webkit-font-smoothing: antialiased;
  animation: nx-fade .22s ease-out;
}
.nx-sheet[hidden] { display: none; }
/* Onboarding inicial encajado bajo el header de la app (z 1000) y su menú ☰
   (z 999): ambos quedan accesibles; los modales de la app (2000+) van encima. */
.nx-sheet.nx-embedded { z-index: 990; animation: none; }

/* ---------- cabecera con progreso ---------- */
.nx-top { padding: 4px 24px 0; }
.nx-top-row { display: flex; align-items: center; justify-content: space-between; min-height: 36px; }
.nx-close {
  appearance: none; border: 0; background: var(--nx-surface); color: var(--nx-ink);
  width: 32px; height: 32px; border-radius: 50%; font-size: 15px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}


/* ---------- carrusel horizontal ---------- */
.nx-viewport { flex: 1; overflow: hidden; position: relative; }
.nx-track { display: flex; height: 100%; transition: transform .38s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.nx-slide {
  flex: 0 0 100%; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 28px 24px 16px; display: flex; flex-direction: column;
}
.nx-slide[aria-hidden="true"] { visibility: hidden; }
.nx-eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--nx-accent); margin: 0 0 8px; }
.nx-title { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--nx-ink); margin: 0 0 10px; }
.nx-lead { font-size: 16px; color: var(--nx-muted); margin: 0 0 24px; max-width: 520px; }
.nx-small { font-size: 13px; color: var(--nx-muted); }

/* ---------- opciones ---------- */
.nx-options { display: grid; gap: 12px; }
.nx-options.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nx-option {
  appearance: none; width: 100%; text-align: left; cursor: pointer;
  border: 1.5px solid var(--nx-line); background: var(--nx-bg); color: var(--nx-ink);
  border-radius: var(--nx-radius); padding: 16px 18px; min-height: 60px;
  display: flex; align-items: center; gap: 14px; font: inherit; font-weight: 600;
  transition: border-color .15s, background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.nx-option:active { transform: scale(.985); }
.nx-option small { display: block; font-weight: 400; color: var(--nx-muted); font-size: 13px; margin-top: 2px; }
.nx-option[aria-pressed="true"] { border-color: var(--nx-ink); background: var(--nx-surface); }
.nx-option[aria-pressed="true"]::after { content: "✓"; margin-left: auto; font-weight: 700; color: var(--nx-ink); }
.nx-option[disabled] { opacity: .45; cursor: not-allowed; }
.nx-option-icon { font-size: 22px; width: 28px; text-align: center; flex: none; }
.nx-swatch { width: 28px; height: 28px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

.nx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-chip {
  appearance: none; border: 1.5px solid var(--nx-line); background: var(--nx-bg); color: var(--nx-ink);
  border-radius: 99px; padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.nx-chip[aria-pressed="true"] { border-color: var(--nx-ink); background: var(--nx-ink); color: #fff; }

.nx-check { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--nx-radius);
  background: var(--nx-surface); cursor: pointer; font-size: 15px; }
.nx-check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--nx-ink); flex: none; }
.nx-link { color: var(--nx-accent); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.nx-notice { margin-top: 16px; font-size: 13px; color: var(--nx-muted); }

.nx-input { width: 100%; border: 1.5px solid var(--nx-line); border-radius: var(--nx-radius-sm); padding: 14px 16px;
  font: inherit; color: var(--nx-ink); background: var(--nx-bg); }
.nx-input:focus { outline: none; border-color: var(--nx-ink); }

/* ---------- tutorial "Cómo funciona" ---------- */



/* ---------- pie con navegación ---------- */
.nx-footer { display: flex; gap: 12px; padding: 12px 24px 4px; border-top: 1px solid transparent; }
.nx-btn {
  appearance: none; border: 0; border-radius: 14px; height: 52px; padding: 0 20px;
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  -webkit-tap-highlight-color: transparent; transition: opacity .15s, transform .1s;
}
.nx-btn:active { transform: scale(.98); }
.nx-btn-primary { background: var(--nx-ink); color: #fff; flex: 2; }
.nx-btn-primary[disabled] { background: #d1d5db; color: #fff; cursor: not-allowed; }
.nx-btn-ghost { background: var(--nx-surface); color: var(--nx-ink); }
.nx-btn-ghost[hidden] { display: none; }

/* Contenido bajo el header fijo con su altura real (iOS/web; Android usa la
   regla fija de siempre). Escritorio >=1024 lo maneja desktop.css. */
@media (max-width: 1023px) {
  html.nx-on body.is-authenticated .upload-section { padding-top: calc(var(--nx-header-h, 4.5rem) + 12px); }
}

/* =====================================================================
   Mis Logros
   ===================================================================== */
.nx-page { max-width: 640px; margin: 0 auto; padding: 20px 20px 40px; }
.nx-section-title { font-size: 20px; font-weight: 700; color: var(--nx-ink); margin: 24px 0 12px; letter-spacing: -.01em; }
.nx-card { background: var(--nx-bg); border: 1px solid var(--nx-line); border-radius: 20px; padding: 20px; box-shadow: var(--nx-shadow); }
.nx-card + .nx-card { margin-top: 16px; }
.nx-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nx-card-kicker { font-size: 13px; font-weight: 600; color: var(--nx-muted); text-transform: uppercase; letter-spacing: .06em; }
.nx-level { font-size: 22px; font-weight: 700; color: var(--nx-ink); margin: 2px 0 0; letter-spacing: -.01em; }
.nx-stars { display: inline-flex; gap: 2px; font-size: 18px; line-height: 1; }
.nx-stars .on { color: var(--nx-star); }
.nx-stars .off { color: #e5e7eb; }
.nx-meter { height: 10px; background: var(--nx-surface); border-radius: 99px; overflow: hidden; margin: 16px 0 8px; }
.nx-meter > span { display: block; height: 100%; background: linear-gradient(90deg, #8b5cf6, var(--nx-accent));
  border-radius: 99px; width: 0; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.nx-meter-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--nx-muted); font-variant-numeric: tabular-nums; }
.nx-meter-row strong { color: var(--nx-ink); }
.nx-ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; }
.nx-rung { text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--nx-surface); font-size: 11px; color: var(--nx-muted); }
.nx-rung b { display: block; font-size: 15px; color: var(--nx-ink); }
.nx-rung.is-reached { background: var(--nx-accent-soft); color: var(--nx-accent); }
.nx-missions { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.nx-mission { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--nx-text); }
.nx-mission-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--nx-line); flex: none;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }
.nx-mission.is-done .nx-mission-dot { background: var(--nx-ok); border-color: var(--nx-ok); }
.nx-mission.is-done span.nx-mission-text { color: var(--nx-muted); text-decoration: line-through; }
.nx-mission-count { margin-left: auto; color: var(--nx-faint); font-variant-numeric: tabular-nums; }
.nx-capacity { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--nx-surface); font-size: 13px; color: var(--nx-muted); }
.nx-capacity strong { color: var(--nx-ink); }
.nx-tabs { display: inline-flex; background: var(--nx-surface); border-radius: 12px; padding: 3px; gap: 2px; }
.nx-tab { appearance: none; border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--nx-muted); cursor: pointer; }
.nx-tab[aria-selected="true"] { background: var(--nx-bg); color: var(--nx-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Resumen compacto en el Clóset */
.nx-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; font-family: var(--nx-font); }
.nx-strip-item { appearance: none; text-align: left; border: 1px solid var(--nx-line); background: var(--nx-bg); border-radius: 14px; padding: 12px 14px; cursor: pointer; font: inherit; }
.nx-strip-item small { display: block; font-size: 12px; color: var(--nx-muted); font-weight: 600; }
.nx-strip-item b { display: block; font-size: 15px; color: var(--nx-ink); margin: 2px 0 8px; }
.nx-strip-item .nx-meter { margin: 0; height: 6px; }

/* Toast de logro */
.nx-toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--nx-safe-bottom)); transform: translate(-50%, 20px); opacity: 0;
  z-index: 4500; background: var(--nx-ink); color: #fff; border-radius: 16px; padding: 14px 18px;
  font-family: var(--nx-font); font-size: 15px; display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .25); transition: opacity .25s, transform .25s; pointer-events: none;
}
.nx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.nx-toast-star { color: var(--nx-star); font-size: 22px; }

/* =====================================================================
   Noa
   ===================================================================== */
.nx-noa-fab {
  position: fixed; right: 18px; bottom: calc(20px + var(--nx-safe-bottom)); z-index: 3000;
  width: 58px; height: 58px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--nx-bg); box-shadow: 0 10px 28px rgba(15, 23, 42, .18), 0 0 0 1px rgba(15, 23, 42, .06);
  display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent;
}
.nx-noa-fab[hidden] { display: none; }
.nx-noa-fab img, .nx-noa-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.nx-noa-avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; overflow: hidden; background: #000; /* fondo del logo oficial */
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #e9c46a; font-size: 14px; }
.nx-noa-fab .nx-noa-avatar { width: 46px; height: 46px; font-size: 18px; }
.nx-noa-head { display: flex; align-items: center; gap: 12px; padding: 4px 16px 12px; border-bottom: 1px solid var(--nx-line); }
.nx-noa-head h2 { font-size: 17px; font-weight: 700; margin: 0; color: var(--nx-ink); }
.nx-noa-head p { margin: 0; font-size: 12px; color: var(--nx-muted); }
.nx-noa-head .nx-spacer { flex: 1; }
.nx-icon-btn { appearance: none; border: 0; background: transparent; color: var(--nx-muted); font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px; font-family: inherit; }
.nx-noa-log { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--nx-bg); }
.nx-msg { max-width: 84%; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; }
.nx-msg-user { align-self: flex-end; background: var(--nx-ink); color: #fff; border-bottom-right-radius: 6px; }
.nx-msg-bot { align-self: flex-start; background: var(--nx-surface); color: var(--nx-text); border-bottom-left-radius: 6px; }
.nx-msg-row { display: flex; gap: 8px; align-items: flex-end; }
.nx-look { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; white-space: normal; width: 100%; }
.nx-msg-bot:has(.nx-look) { width: 84%; }
/* Nota: ninguna clase .nx-* contiene "outfit" ni "images": index.html fuerza
   con !important div[class*="outfit"] y div[class*="images"] (fix móvil antiguo). */
.nx-look figure { display: block; min-width: 0; width: auto; margin: 0; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--nx-line); aspect-ratio: 3/4; position: relative; }
.nx-look img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-look figcaption { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; padding: 3px 6px; background: rgba(255,255,255,.88); color: var(--nx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-look-meta { font-size: 12px; color: var(--nx-muted); margin-top: 6px; }
.nx-actions { white-space: normal; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nx-action { appearance: none; border: 1px solid var(--nx-line); background: #fff; color: var(--nx-ink); border-radius: 99px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.nx-action.is-primary { background: var(--nx-ink); color: #fff; border-color: var(--nx-ink); }
.nx-typing { align-self: flex-start; color: var(--nx-muted); font-size: 13px; padding: 4px 6px; }
.nx-suggest { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 0; scrollbar-width: none; }
.nx-suggest::-webkit-scrollbar { display: none; }
.nx-suggest .nx-chip { white-space: nowrap; font-size: 13px; padding: 7px 12px; }
.nx-composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 4px; border-top: 1px solid var(--nx-line); background: var(--nx-bg); }
.nx-composer textarea { flex: 1; resize: none; max-height: 120px; min-height: 44px; border: 1.5px solid var(--nx-line); border-radius: 22px;
  padding: 11px 16px; font: inherit; font-size: 16px; color: var(--nx-ink); background: var(--nx-surface); outline: none; }
.nx-composer textarea:focus { border-color: var(--nx-ink); background: #fff; }
.nx-round { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; flex: none; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center; }
.nx-mic { background: var(--nx-surface); color: var(--nx-ink); }
.nx-mic.is-listening { background: #fee2e2; color: #dc2626; animation: nx-pulse 1.2s ease-in-out infinite; }
.nx-send { background: var(--nx-ink); color: #fff; }
.nx-send[disabled] { background: #d1d5db; }
.nx-voice-hint { font-size: 12px; color: var(--nx-muted); padding: 2px 18px 0; min-height: 16px; }
.nx-empty { margin: auto; text-align: center; color: var(--nx-muted); max-width: 300px; }
.nx-empty .nx-noa-avatar { width: 64px; height: 64px; font-size: 26px; margin-bottom: 12px; }
.nx-empty h3 { color: var(--nx-ink); font-size: 20px; margin: 0 0 6px; }

/* Selector de ocasión por texto/voz bajo el selector visual */
.nx-occasion-ask { display: flex; gap: 8px; margin: 12px 0 0; font-family: var(--nx-font); }
.nx-occasion-ask .nx-input { height: 46px; padding: 10px 14px; font-size: 15px; }
.nx-occasion-ask .nx-round { width: 46px; height: 46px; }

/* =====================================================================
   Sitio público: tiendas (solo web)
   ===================================================================== */
body.is-authenticated #descarga { display: none; }

.nx-env-badge { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(6px + var(--nx-safe-bottom)); z-index: 4600;
  background: #f59e0b; color: #111; font: 700 11px/1 var(--nx-font); letter-spacing: .06em; padding: 5px 10px; border-radius: 99px; pointer-events: none; }

@keyframes nx-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes nx-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .3); } 50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); } }
@media (prefers-reduced-motion: reduce) {
  .nx-sheet, .nx-track, .nx-meter > span, .nx-toast { animation: none !important; transition: none !important; }
}
@media (min-width: 768px) {
  .nx-sheet { padding-top: 24px; }
  .nx-slide, .nx-top, .nx-footer { padding-left: max(24px, calc(50% - 280px)); padding-right: max(24px, calc(50% - 280px)); }
  .nx-noa-log, .nx-composer, .nx-suggest, .nx-noa-head { padding-left: max(16px, calc(50% - 340px)); padding-right: max(16px, calc(50% - 340px)); }
}

/* =====================================================================
   iOS 1.0.1 (corrección): perfilado horizontal SIN scroll vertical
   ===================================================================== */
/* Mientras el wizard está abierto, la página de fondo (landing, clóset) no
   se desplaza ni se ve: un solo fondo uniforme, una pantalla por etapa. */
.nx-wizard-open { overflow: hidden !important; overscroll-behavior: none; } /* en <html> y <body> */
.nx-wizard-open .nx-noa-fab { display: none; }
.nx-wizard { background: var(--nx-bg); overscroll-behavior: contain; }
.nx-wizard .nx-slide {
  overflow: hidden; /* el contenido se ajusta (fit) en vez de desplazarse */
  padding: clamp(14px, 3.2vh, 28px) clamp(18px, 6vw, 24px) 8px;
}
.nx-wizard .nx-title { font-size: clamp(22px, 3.6vh, 28px); }
.nx-wizard .nx-lead { margin-bottom: clamp(12px, 2.6vh, 24px); }
.nx-wizard .nx-options { gap: clamp(8px, 1.4vh, 12px); }
.nx-wizard .nx-option { min-height: clamp(50px, 7.2vh, 60px); padding: 10px 16px; }
.nx-wizard .nx-footer { padding: 10px clamp(18px, 6vw, 24px) 4px; background: var(--nx-bg); }
.nx-wizard .nx-btn { height: clamp(46px, 6.4vh, 52px); }
/* Ocasiones como mosaico 2 columnas (icono arriba). */
.nx-options.is-tiles .nx-option { position: relative; flex-direction: column; align-items: flex-start; gap: 4px; min-height: clamp(70px, 10vh, 92px); padding: 10px 14px; }
.nx-options.is-tiles .nx-option[aria-pressed="true"]::after { position: absolute; top: 8px; right: 12px; }
.nx-options.is-tiles .nx-option-icon { width: auto; text-align: left; font-size: 20px; }
/* 5 opciones en 2 columnas: la última ocupa el ancho completo. */
.nx-options.is-grid > .nx-option:nth-child(5):last-child { grid-column: 1 / -1; }
/* Nivel 1 y 2 de compactación (iPhone SE, texto grande). */
.nx-slide.nx-fit-1 .nx-eyebrow { display: none; }
.nx-slide.nx-fit-1 .nx-title { font-size: 21px; margin-bottom: 6px; }
.nx-slide.nx-fit-1 .nx-lead { font-size: 14px; margin-bottom: 10px; }
.nx-slide.nx-fit-1 .nx-option { min-height: 46px; padding: 8px 12px; }
.nx-slide.nx-fit-1 .nx-options.is-tiles .nx-option { min-height: 60px; }
.nx-slide.nx-fit-1 .nx-notice { margin-top: 8px; font-size: 12px; }
.nx-slide.nx-fit-1 .nx-check { padding: 12px; font-size: 14px; }
.nx-slide.nx-fit-2 .nx-lead, .nx-slide.nx-fit-2 .nx-option small { display: none; }
.nx-slide.nx-fit-2 .nx-option { min-height: 42px; }
.nx-slide.nx-fit-2 .nx-options.is-tiles .nx-option { min-height: 50px; }
.nx-slide.nx-fit-2 .nx-chip { padding: 7px 11px; font-size: 13px; }
.nx-slide.nx-fit-2 .nx-pet-photo { display: none; }

/* Tutorial "Cómo funciona": carrusel horizontal, una tarjeta a la vez. */
.nx-tut { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.nx-tut-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border-radius: var(--nx-radius); }
.nx-tut-track::-webkit-scrollbar { display: none; }


/* Pets */
.nx-pet-photo { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; margin: 0 0 14px; background: var(--nx-surface); }
.nx-pet-photo img { width: 100%; height: 100%; object-fit: cover; }
.nx-subhead { font-size: 13px; font-weight: 600; color: var(--nx-muted); margin: 14px 0 8px; }
.nx-coat { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.nx-coat-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 10px; border-radius: 99px; background: var(--nx-surface); }
.nx-coat-chip i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

/* Acceso visible "Mis Logros" en el Clóset Digital */


/* Try-On dentro del chat de Noa */
.nx-msg-bot:has(.nx-photo-picker), .nx-msg-bot:has(.nx-tryon-preview), .nx-msg-bot:has(.nx-tryon-result) { width: 84%; white-space: normal; }
.nx-photo-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.nx-photo-opt { appearance: none; position: relative; border: 1.5px solid var(--nx-line); background: #fff; border-radius: 14px; padding: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--nx-ink); cursor: pointer; min-height: 120px; text-align: center; overflow: hidden; }
.nx-photo-opt img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; }
.nx-photo-opt .nx-photo-plus { font-size: 30px; line-height: 1; }
.nx-photo-opt input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.nx-photo-note { grid-column: 1 / -1; font-size: 12px; color: var(--nx-muted); margin: 2px 0 0; }
.nx-tryon-preview { margin-top: 10px; }
.nx-tryon-pair { display: grid; grid-template-columns: 1.1fr 1fr; gap: 8px; align-items: stretch; }
.nx-tryon-pair > img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; border: 1px solid var(--nx-line); background: #fff; }
.nx-tryon-pieces { display: grid; grid-template-rows: repeat(3, 1fr); gap: 4px; }
.nx-tryon-pieces img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 8px; border: 1px solid var(--nx-line); background: #fff; }
.nx-tryon-info { font-size: 12px; color: var(--nx-muted); margin: 8px 0 0; }
.nx-tryon-status { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--nx-ink); }
.nx-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--nx-line); border-top-color: var(--nx-accent); animation: nx-spin .8s linear infinite; flex: none; }
@keyframes nx-spin { to { transform: rotate(360deg); } }
.nx-tryon-result img { width: 100%; border-radius: 14px; margin-top: 10px; display: block; cursor: zoom-in; border: 1px solid var(--nx-line); }
.nx-tryon-error { margin-top: 8px; color: #b91c1c; font-size: 14px; }
.nx-action[disabled] { opacity: .5; cursor: not-allowed; }
/* Escritorio/tablet: el wizard mantiene la columna centrada de 560 px. */
@media (min-width: 768px) {
  .nx-wizard .nx-slide, .nx-wizard .nx-footer { padding-left: max(24px, calc(50% - 280px)); padding-right: max(24px, calc(50% - 280px)); }
}

/* =====================================================================
   Flujo tipo HISTORIAS (onboarding humano/Pets y "Crear look")
   ===================================================================== */
/* Barra de progreso segmentada (un segmento por historia). */
.nx-segments { display: flex; gap: 4px; padding-top: 2px; }
.nx-seg { flex: 1; height: 4px; border-radius: 99px; background: var(--nx-line); overflow: hidden; }
.nx-seg i { display: block; height: 100%; width: 0; background: var(--nx-ink); border-radius: 99px; transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.nx-seg.is-done i, .nx-seg.is-current i { width: 100%; }
.nx-seg.is-current i { background: var(--nx-accent); }
.nx-stories .nx-top-row { margin-top: 10px; min-height: 32px; }
.nx-story-brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.nx-noa-avatar.nx-story-logo { width: 28px; height: 28px; font-size: 13px; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.nx-top-right { display: inline-flex; align-items: center; gap: 12px; flex: none; }
/* Contenido centrado (vertical y horizontal) con fondo uniforme. */
.nx-stories .nx-slide { justify-content: flex-start; }
.nx-story-body { margin: auto 0; width: 100%; display: flex; flex-direction: column; }
/* Botones fijos abajo: ← Volver / Siguiente → */
.nx-stories .nx-footer { position: relative; }
.nx-stories .nx-btn[disabled].nx-btn-ghost { opacity: .45; cursor: not-allowed; }
/* Opciones en una fila (tallas). */
.nx-options.is-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nx-options.is-row .nx-option { justify-content: center; padding: 8px 4px; min-height: 48px; }
.nx-options.is-row .nx-option[aria-pressed="true"]::after { display: none; }
.nx-options.is-row .nx-option[aria-pressed="true"] { background: var(--nx-ink); color: #fff; }
.nx-chips-tight { gap: 6px; margin-top: 10px; }
.nx-chips-tight .nx-chip { padding: 7px 12px; font-size: 13px; }

/* Elegir prenda: carrusel horizontal (2 filas en pantallas altas). */
.nx-pick { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nx-pick-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(104px, 30%, 150px); grid-template-rows: auto;
  gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; padding: 2px 2px 4px; }
.nx-pick-track::-webkit-scrollbar { display: none; }
@media (min-height: 760px) { .nx-pick-track { grid-template-rows: auto auto; } }




/* Try-On y Guardar look: la imagen ocupa el alto disponible, sin scroll. */

.nx-slide.nx-fit-1 .nx-pick-track { grid-template-rows: auto; }
.nx-slide.nx-fit-2 .nx-pick-track { grid-auto-columns: clamp(92px, 26%, 120px); }

/* =====================================================================
   Historias v2 (UX): pantalla completa, barra mínima, alineado arriba,
   fotos protagonistas y botones livianos.
   ===================================================================== */
/* 1. Pantalla COMPLETA: cubre el header del sitio (z 1000) y queda bajo los
      modales de la app (eliminar cuenta, privacidad: 2000+). */
.nx-sheet.nx-stories, .nx-sheet.nx-stories.nx-embedded { z-index: 1500; top: 0; padding-top: calc(10px + var(--nx-safe-top)); animation: none; }
.nx-stories .nx-top { position: relative; }
.nx-icon-round { appearance: none; border: 0; background: var(--nx-surface); color: var(--nx-ink); width: 34px; height: 34px; border-radius: 50%;
  font-size: 18px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.nx-stories .nx-close { width: 34px; height: 34px; }
.nx-more-menu { position: absolute; right: 16px; top: calc(100% + 6px); z-index: 5; min-width: 200px; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--nx-line); border-radius: 14px; box-shadow: var(--nx-shadow); padding: 6px; }
.nx-more-menu[hidden] { display: none; }
.nx-more-menu button { appearance: none; border: 0; background: none; text-align: left; padding: 11px 12px; border-radius: 10px;
  font: inherit; font-size: 15px; color: var(--nx-ink); cursor: pointer; }
.nx-more-menu button:hover, .nx-more-menu button:focus-visible { background: var(--nx-surface); }
.nx-more-menu .is-danger { color: #b91c1c; }

/* 2. Arriba solo barra segmentada + logo de Noa (+ título de la historia).
      "Paso X de N" queda para lectores de pantalla. */
.nx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.nx-story-name { font-size: 14px; font-weight: 700; color: var(--nx-ink); letter-spacing: -.01em; }
.nx-stories .nx-eyebrow { display: none; }
.nx-stories .nx-top-row { margin-top: 12px; }

/* 3. Contenido alineado ARRIBA, mismo margen en todas las historias. */
.nx-stories .nx-story-body { margin: 0; }
.nx-stories .nx-slide { padding-top: clamp(18px, 3.2vh, 30px); }
.nx-stories .nx-title { margin-bottom: 8px; }

/* 4. Fotos protagonistas: galería de 3 columnas y Try-On a todo el ancho. */
.nx-stories .nx-pick-track { grid-auto-columns: calc((100% - 20px) / 3); grid-template-rows: repeat(2, auto); gap: 10px; }
.nx-stories .nx-slide.nx-fit-1 .nx-pick-track, .nx-stories .nx-slide.nx-fit-2 .nx-pick-track { grid-template-rows: auto; grid-auto-columns: calc((100% - 20px) / 3); }
@media (max-width: 767px) {
  /* de borde a borde: anula el margen lateral de la historia */
  .nx-stories .nx-top { padding: 4px clamp(18px, 6vw, 24px) 0; }
  .nx-more-menu { right: clamp(18px, 6vw, 24px); }
}

/* 5. Botones livianos: "Siguiente" con el color de marca, "Volver" como texto. */
.nx-stories .nx-footer { padding-top: 8px; gap: 8px; align-items: center; }
.nx-stories .nx-btn { height: 50px; border-radius: 99px; font-size: 16px; font-weight: 600; }
.nx-stories .nx-btn-primary { background: var(--nx-accent); color: #fff; flex: 1; }
.nx-stories .nx-btn-primary[disabled] { background: #ece9f5; color: #a8a3bd; }
.nx-stories .nx-btn-ghost { background: transparent; color: var(--nx-ink); flex: 0 0 auto; padding: 0 14px 0 4px; }
.nx-stories .nx-btn-ghost[disabled] { opacity: .3; }
.nx-stories .nx-action.is-primary { background: var(--nx-ink); }

/* "Tu perfil": color, edad y estilo en una historia (chips de selección única). */
.nx-chip-group { margin-top: 6px; }
.nx-chip-group .nx-subhead { margin: 12px 0 8px; }
.nx-chip-group .nx-chips { gap: 8px; }
.nx-chip-group .nx-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; font-size: 15px; }
.nx-chip-swatch { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.nx-slide.nx-fit-1 .nx-chip-group .nx-subhead { margin: 8px 0 6px; }
.nx-slide.nx-fit-1 .nx-chip-group .nx-chip { min-height: 38px; padding: 6px 12px; font-size: 14px; }

/* Galería 3 columnas por filas cuando hay pocas prendas (<= 6 con "Subir"). */
.nx-stories .nx-pick-track.is-few { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; grid-auto-columns: auto; overflow: visible; }
/* Avisos de la app durante las historias: banner compacto arriba que deja pasar los toques. */
body.nx-wizard-open .notification { top: calc(8px + var(--nx-safe-top)) !important; bottom: auto; left: 16px; right: 16px; max-width: 560px; margin: 0 auto;
  padding: .6rem 1rem; font-size: 14px; text-align: center; pointer-events: none; } /* banner arriba: nunca tapa ni bloquea botones */
/* Logro durante las historias: arriba (bajo el banner de avisos) y sin bloquear botones. */
body.nx-wizard-open .nx-toast { top: calc(64px + var(--nx-safe-top)); bottom: auto; pointer-events: none; }

/* Dentro de las historias el ✓ en la prenda ya confirma: sin avisos de éxito (los errores sí se muestran). */
body.nx-wizard-open .notification.success { display: none !important; }

/* =====================================================================
   App con pestañas (iOS/web): Clóset · Crear look · Logros
   ===================================================================== */
.nx-tabs-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; display: flex; justify-content: space-around;
  background: rgba(255,255,255,.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--nx-line); padding: 6px 8px calc(6px + var(--nx-safe-bottom)); font-family: var(--nx-font); }
.nx-tab-item { appearance: none; border: 0; background: none; flex: 1; max-width: 160px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 4px; font: inherit; font-size: 11px; font-weight: 600; color: var(--nx-muted); cursor: pointer; border-radius: 12px; }
.nx-tab-item span { font-size: 22px; line-height: 1; }
.nx-tab-item[aria-current="page"] { color: var(--nx-ink); }
.nx-tab-create span { width: 44px; height: 32px; border-radius: 12px; background: var(--nx-accent); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.nx-tab-create { color: var(--nx-accent); }
html.nx-tabs-on body.is-authenticated { padding-bottom: calc(76px + var(--nx-safe-bottom)); }
html.nx-tabs-on .nx-noa-fab { bottom: calc(84px + var(--nx-safe-bottom)); }

/* Clóset = solo el armario. El paso a paso antiguo (selección, ocasión,
   "Cómo me queda", resultados) vive ahora en "Crear look"; la landing pública
   no se repite debajo de la app. Android no monta nada de esto. */
/* Fuera de la app solo la landing y la subida "rápida" antigua. El flujo
   básico (seleccionar varias prendas -> IA recomienda -> elegir look ->
   Try-On -> guardar/feedback) se mantiene: es "Crear look". */
html.nx-tabs-on body.is-authenticated > section:not(#upload),
html.nx-tabs-on body.is-authenticated > footer,
html.nx-tabs-on #uploadArea { display: none !important; }

/* Crear look: la MISMA tarjeta del Clóset (verde = seleccionada, rojo = eliminar). */


/* Mis fotos (Try-On): varias, eliminables. */
.nx-photo-opt[data-photo="device"] { padding: 0; overflow: hidden; }
.nx-photo-pick { appearance: none; border: 0; padding: 0; background: none; width: 100%; height: 100%; cursor: pointer; display: block; }
.nx-photo-pick img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.nx-photo-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #ef4444; color: #fff;
  font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nx-photo-tag { position: absolute; left: 6px; bottom: 6px; background: rgba(15,23,42,.75); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.nx-photo-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nx-photo-picker .nx-photo-opt { min-height: 0; aspect-ratio: 3 / 4; }
.nx-photo-picker .nx-photo-opt img { height: 100%; }

/* =====================================================================
   Unificación visual tras el login (iOS/web con pestañas): una sola app,
   sin restos del sitio ni de la selección antigua. Android no cambia.
   ===================================================================== */
html.nx-tabs-on header .business-btn { display: none !important; }
html.nx-tabs-on #upload, html.nx-tabs-on #closetContainer { font-family: var(--nx-font); }
html.nx-tabs-on .closet-container { border: 0; box-shadow: none; background: transparent; padding-left: 0; padding-right: 0; }
html.nx-tabs-on .closet-header { background: transparent !important; color: var(--nx-ink) !important; box-shadow: none !important; padding: 4px 4px 0 !important; }
html.nx-tabs-on .closet-header i { display: none; }
html.nx-tabs-on .closet-header h2 { color: var(--nx-ink) !important; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
html.nx-tabs-on #userEmail { color: var(--nx-muted) !important; font-size: 14px !important; }
/* Contadores y textos de la selección antigua ("Superiores 0/3", "Toca una prenda para seleccionarla…"). */
html.nx-tabs-on #closetStepPanel1 .closet-step-title { display: none !important; }
html.nx-tabs-on .closet-tab-content > div:first-child h3 { font-size: 17px !important; font-weight: 700; }
html.nx-tabs-on #closetStepPanel1 { padding: 8px 4px 0 !important; }
/* Prendas: grilla de 3 columnas con la misma tarjeta (rojo = eliminar). */
html.nx-tabs-on .closet-item-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
html.nx-tabs-on .closet-item-card img { height: auto !important; aspect-ratio: 3 / 4; object-fit: cover; }
html.nx-tabs-on .closet-item-card > div:last-child { display: none; } /* fecha de subida */
html.nx-tabs-on .automatic-upload-zone { padding: 18px !important; margin-top: 12px; border-radius: var(--nx-radius); }
html.nx-tabs-on .automatic-upload-zone .upload-ai-title { font-size: 17px; }
html.nx-tabs-on .wear-mode-selector { margin-top: 4px; }

/* Crear look: prendas grandes y centradas. */
.nx-stories .nx-pick-track { grid-auto-columns: calc((100% - 10px) / 2); grid-template-rows: auto; }
@media (min-height: 760px) { .nx-stories .nx-pick-track { grid-template-rows: repeat(2, auto); } }
.nx-stories .nx-pick-track.is-few { grid-template-columns: repeat(2, minmax(0, 170px)); justify-content: center; grid-auto-columns: auto; grid-template-rows: none; }
.nx-stories .nx-slide.nx-fit-1 .nx-pick-track:not(.is-few), .nx-stories .nx-slide.nx-fit-2 .nx-pick-track:not(.is-few) { grid-template-rows: auto; grid-auto-columns: calc((100% - 10px) / 2); }
.nx-stories .nx-slide.nx-fit-1 .nx-pick-track.is-few { grid-template-columns: repeat(2, minmax(0, 130px)); }
.nx-stories .nx-slide.nx-fit-2 .nx-pick-track.is-few { grid-template-columns: repeat(2, minmax(0, 108px)); }
/* Prendas más grandes en el Clóset: 2 columnas (3 en escritorio). */
html.nx-tabs-on .closet-item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
@media (min-width: 1024px) { html.nx-tabs-on .closet-item-grid { grid-template-columns: repeat(3, minmax(0, 220px)) !important; justify-content: center; } }
/* Espacio para la barra de pestañas: nada queda tapado al final (bug en escritorio: "Generar mi recomendación" quedaba bajo la barra). */
html.nx-tabs-on body.is-authenticated #upload { padding-bottom: calc(110px + var(--nx-safe-bottom)) !important; }
/* Escritorio: la barra fija "Generar mi recomendación" queda SOBRE la barra de pestañas, no debajo. */
html.nx-tabs-on #closetGenerateSection.generate-section { bottom: calc(84px + var(--nx-safe-bottom)) !important; }

/* =====================================================================
   Flujo esencial con el MISMO diseño de la app (iOS/web). Solo estilo:
   la lógica (selección múltiple, IA, Try-On, favoritos, feedback) no cambia.
   ===================================================================== */
html.nx-tabs-on #upload, html.nx-tabs-on #upload button, html.nx-tabs-on #upload h2, html.nx-tabs-on #upload h3,
html.nx-tabs-on #upload p, html.nx-tabs-on #upload span, html.nx-tabs-on #upload label { font-family: var(--nx-font) !important; }
html.nx-tabs-on #upload h3 { color: var(--nx-ink) !important; font-weight: 700 !important; letter-spacing: -.01em; }

/* Paso a paso: indicador sobrio */
html.nx-tabs-on .closet-stepper-mobile { background: transparent !important; box-shadow: none !important; padding: 4px 0 !important; color: var(--nx-muted) !important; font-weight: 600; font-size: 13px; }
html.nx-tabs-on .closet-stepper-mobile .step-progress { background: var(--nx-line) !important; height: 4px !important; border-radius: 99px; }
html.nx-tabs-on .closet-stepper-mobile .step-progress-fill { background: var(--nx-accent) !important; border-radius: 99px; }
html.nx-tabs-on .closet-stepper-step.is-active { color: var(--nx-accent) !important; }
html.nx-tabs-on .closet-step-badge { background: var(--nx-surface) !important; color: var(--nx-muted) !important; font-weight: 600 !important; border-radius: 99px !important; }
html.nx-tabs-on .closet-step-heading h3 { font-size: 22px !important; }
html.nx-tabs-on .closet-step-heading p, html.nx-tabs-on .closet-tab-content p { color: var(--nx-muted) !important; }

/* Ocasión y Oficina: mismas tarjetas que las historias */
html.nx-tabs-on .occasion-section, html.nx-tabs-on #officeSubContexts { background: transparent !important; box-shadow: none !important; padding: 8px 0 !important; border: 0 !important; }
html.nx-tabs-on .occasion-section h3, html.nx-tabs-on #officeSubContexts h3 { font-size: 20px !important; text-align: left !important; margin-bottom: 12px !important; }
html.nx-tabs-on .occasion-grid { gap: 10px !important; }
html.nx-tabs-on .occasion-btn { background: #fff !important; color: var(--nx-ink) !important; border: 1.5px solid var(--nx-line) !important; border-radius: var(--nx-radius) !important;
  box-shadow: none !important; padding: 14px 12px !important; min-height: 64px; font-weight: 600 !important; transform: none !important; }
html.nx-tabs-on .occasion-btn i { color: var(--nx-ink) !important; opacity: .8; }
html.nx-tabs-on .occasion-btn.active, html.nx-tabs-on .occasion-btn.selected { border-color: var(--nx-ink) !important; background: var(--nx-surface) !important; color: var(--nx-ink) !important; }
html.nx-tabs-on #officeSubContexts .occasion-btn { min-height: 0; padding: 12px 14px !important; text-align: left; }
html.nx-tabs-on .occasion-section .floating-clothes, html.nx-tabs-on #occasionSelector [class*="floating"] { display: none !important; }

/* Generar: tarjeta blanca + botón de marca */
html.nx-tabs-on .generate-section { background: #fff !important; border: 1px solid var(--nx-line) !important; border-radius: var(--nx-radius) !important; box-shadow: var(--nx-shadow) !important; }
html.nx-tabs-on .generate-section h3 { font-size: 17px !important; }
html.nx-tabs-on .generate-btn, html.nx-tabs-on .closet-cta-primary, html.nx-tabs-on .vto-generate-btn {
  background: var(--nx-accent) !important; color: #fff !important; border: 0 !important; border-radius: 99px !important;
  min-height: 52px; padding: 0 24px !important; font-size: 16px !important; font-weight: 600 !important; box-shadow: none !important; }
html.nx-tabs-on .generate-btn[disabled], html.nx-tabs-on .vto-generate-btn[disabled] { background: #ece9f5 !important; color: #a8a3bd !important; }
html.nx-tabs-on .closet-cta-secondary, html.nx-tabs-on .closet-step-back, html.nx-tabs-on .file-label, html.nx-tabs-on .vto-rotate-btn {
  background: #fff !important; color: var(--nx-ink) !important; border: 1.5px solid var(--nx-line) !important; border-radius: 99px !important;
  box-shadow: none !important; font-weight: 600 !important; }

/* Recomendación: tarjeta limpia y prendas protagonistas */
html.nx-tabs-on #result > div[style*="border:2px solid"] { border: 1px solid var(--nx-line) !important; box-shadow: var(--nx-shadow) !important; border-radius: var(--nx-radius) !important; padding: 16px !important; }
html.nx-tabs-on #result h3 { font-size: 18px !important; }
html.nx-tabs-on #result .look-pieces > div > div[style*="dashed"] { border: 0 !important; padding: 0 !important; min-height: 0 !important; background: var(--nx-surface); border-radius: 12px !important; aspect-ratio: 3 / 4; overflow: hidden; }
html.nx-tabs-on #result .look-pieces img { max-width: 100% !important; max-height: none !important; width: 100%; height: 100%; object-fit: cover !important; box-shadow: none !important; border-radius: 12px !important; }
html.nx-tabs-on #result div[style*="rgba(59,130,246,.1)"], html.nx-tabs-on #result div[style*="rgba(251,191,36,0.1)"] { background: var(--nx-surface) !important; border-left: 0 !important; border-radius: 12px !important; }
html.nx-tabs-on .feedback-container { background: var(--nx-surface) !important; border: 0 !important; border-radius: var(--nx-radius) !important; box-shadow: none !important; }
html.nx-tabs-on .feedback-title { color: var(--nx-ink) !important; font-weight: 700 !important; }
html.nx-tabs-on .feedback-btn { border-radius: 99px !important; font-weight: 600 !important; box-shadow: none !important; }
html.nx-tabs-on .feedback-btn.like { background: var(--nx-ink) !important; color: #fff !important; border: 0 !important; }
html.nx-tabs-on .feedback-btn.dislike { background: #fff !important; color: var(--nx-ink) !important; border: 1.5px solid var(--nx-line) !important; }

/* Try-On: tarjetas blancas como el resto */
html.nx-tabs-on .vto-card { background: #fff !important; border: 1px solid var(--nx-line) !important; border-radius: var(--nx-radius) !important; box-shadow: none !important; }
html.nx-tabs-on .vto-quota { color: var(--nx-muted) !important; font-weight: 600; }
html.nx-tabs-on .vto-photo-preview { border-radius: 12px !important; }

/* Subir prendas: zona sobria */
html.nx-tabs-on .automatic-upload-zone { background: var(--nx-surface) !important; border: 1.5px dashed var(--nx-line) !important; box-shadow: none !important; }
html.nx-tabs-on .automatic-upload-zone .upload-ai-title { color: var(--nx-ink) !important; }
html.nx-tabs-on #upload .floating-clothes { display: none !important; } /* decoración de la web, no de la app */
html.nx-tabs-on #result div[style*="solid var(--gold)"] { border: 1px solid var(--nx-line) !important; box-shadow: var(--nx-shadow) !important; border-radius: var(--nx-radius) !important; padding: 16px !important; }

/* =====================================================================
   Selector Yo / Mi Mascota (control segmentado) y flujo esencial Pets
   1 Perfil → 2 Su clóset → 3 Recibe su chaleco → 4 Pruébaselo con IA
   ===================================================================== */
html.nx-tabs-on .wear-mode-selector { background: transparent !important; box-shadow: none !important; padding: 0 !important; margin: 4px 0 12px !important; }
html.nx-tabs-on .wear-mode-title { font-family: var(--nx-font) !important; font-size: 13px !important; font-weight: 600 !important; color: var(--nx-muted) !important; text-align: left !important; margin: 0 0 6px !important; }
html.nx-tabs-on .wear-mode-options { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--nx-surface) !important; border-radius: 12px !important; padding: 4px !important; box-shadow: none !important; }
html.nx-tabs-on .wear-mode-btn { font-family: var(--nx-font) !important; border: 0 !important; border-radius: 9px !important; background: transparent !important; color: var(--nx-muted) !important;
  font-weight: 600 !important; min-height: 40px; box-shadow: none !important; transform: none !important; }
html.nx-tabs-on .wear-mode-btn.is-active { background: #fff !important; color: var(--nx-ink) !important; box-shadow: 0 1px 3px rgba(15,23,42,.12) !important; }

/* Tarjetas de mascota con el diseño de la app */
html.nx-tabs-on .pet-container, html.nx-tabs-on .pet-container button, html.nx-tabs-on .pet-container h3, html.nx-tabs-on .pet-container p { font-family: var(--nx-font) !important; }
html.nx-tabs-on .pet-card { background: #fff !important; border: 1px solid var(--nx-line) !important; border-radius: var(--nx-radius) !important; box-shadow: none !important; padding: 16px !important; }
html.nx-tabs-on .pet-card h3 { color: var(--nx-ink) !important; font-size: 18px !important; font-weight: 700 !important; }
html.nx-tabs-on .pet-btn-secondary { background: #fff !important; color: var(--nx-ink) !important; border: 1.5px solid var(--nx-line) !important; border-radius: 99px !important; box-shadow: none !important; font-weight: 600 !important; }
html.nx-tabs-on .pet-meta, html.nx-tabs-on .pet-muted { color: var(--nx-muted) !important; }
html.nx-tabs-on .pet-photo-frame { border-radius: var(--nx-radius) !important; overflow: hidden; }

/* Orden del flujo y número de paso */
html.nx-tabs-on .pet-main.nx-pet-flow { display: flex !important; flex-direction: column; gap: 1rem; }
html.nx-tabs-on .nx-pet-flow > #nxPetClosetStep { order: 1; }
html.nx-tabs-on .nx-pet-flow > #nxPetRecommendStep { order: 2; }
html.nx-tabs-on .nx-pet-flow > #petRecommendation { order: 3; }
html.nx-tabs-on .nx-pet-flow > #petTryOnPanel { order: 4; }
html.nx-tabs-on .pet-profile-card::before, html.nx-tabs-on #nxPetClosetStep::before, html.nx-tabs-on #nxPetRecommendStep::before,
html.nx-tabs-on #petTryOnPanel::before { display: block; font: 600 12px/1.2 var(--nx-font); letter-spacing: .06em; text-transform: uppercase; color: var(--nx-accent); margin-bottom: 8px; }
html.nx-tabs-on .pet-profile-card::before { content: "Paso 1 · Su perfil"; }
html.nx-tabs-on #nxPetClosetStep::before { content: "Paso 2 · Su clóset"; }
html.nx-tabs-on #nxPetRecommendStep::before { content: "Paso 3 · Recibe su chaleco"; }
html.nx-tabs-on #petTryOnPanel::before { content: "Paso 4 · Pruébaselo con IA"; }
.nx-pet-step-lead { color: var(--nx-muted); font-size: 14px; margin: 4px 0 12px; }
#nxPetRecommendStep #petRecommendBtn { width: 100%; }

/* Su clóset: prendas grandes (2 columnas), verde probar / rojo eliminar */
html.nx-tabs-on .pet-closet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
html.nx-tabs-on .pet-item { border: 1px solid var(--nx-line) !important; border-radius: 14px !important; padding: 6px !important; }
html.nx-tabs-on .pet-item .pet-media { width: 100%; aspect-ratio: 3 / 4; height: auto !important; object-fit: cover; border-radius: 10px; }
html.nx-tabs-on .pet-item-btn.is-primary { background: var(--success, #10b981) !important; color: #fff !important; border: 0 !important; border-radius: 99px !important; }
html.nx-tabs-on .pet-item-btn.is-danger { background: #ef4444 !important; color: #fff !important; border: 0 !important; border-radius: 99px !important; }

/* =====================================================================
   Pestaña Clóset (sin "Crear look" activo): SOLO el armario.
   ===================================================================== */
html.nx-tabs-on:not(.nx-create) #occasionSelector, html.nx-tabs-on:not(.nx-create) #officeSubContexts,
html.nx-tabs-on:not(.nx-create) #closetGenerateSection, html.nx-tabs-on:not(.nx-create) #result,
html.nx-tabs-on:not(.nx-create) #closetStepPanel3, html.nx-tabs-on:not(.nx-create) #closetStepPanel4,
html.nx-tabs-on:not(.nx-create) #closetStepper, html.nx-tabs-on:not(.nx-create) #closetStepperMobile,
html.nx-tabs-on:not(.nx-create) #closetStepPanel1 .closet-step-heading { display: none !important; }
html.nx-tabs-on:not(.nx-create) #closetStepPanel1 { display: block !important; }
#nxCreateBar, #nxCreateCta { display: none; }

/* =====================================================================
   Crear look paso a paso: Ocasión → Prendas → Tu look → Pruébatelo
   ===================================================================== */
html.nx-create #nxCreateBar { display: block; position: fixed; left: 0; right: 0; top: var(--nx-header-h, 72px); z-index: 1100;
  background: rgba(255,255,255,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nx-line); padding: 10px clamp(16px, 5vw, 24px) 8px; font-family: var(--nx-font); }
html.nx-create #nxCreateBar .nx-segments { max-width: 640px; margin: 0 auto; }
.nx-create-row { max-width: 640px; margin: 8px auto 0; display: flex; align-items: center; gap: 10px; }
.nx-create-back { appearance: none; border: 0; background: none; font: inherit; font-weight: 600; color: var(--nx-ink); padding: 6px 0; cursor: pointer; flex: none; }
.nx-create-title { flex: 1; text-align: center; font-size: 16px; color: var(--nx-ink); }
html.nx-create body.is-authenticated #upload { padding-top: calc(var(--nx-header-h, 72px) + 92px) !important; }

/* Lo que no es parte de la etapa no se ve (una etapa a la vez). */
html.nx-create #wearModeSelector, html.nx-create #welcomeSection, html.nx-create .closet-header,
html.nx-create #nxProgressStrip, html.nx-create #closetFavoritesToggleWrap, html.nx-create #closetFreePeriodWarning,
html.nx-create #closetStepper, html.nx-create #closetStepperMobile, html.nx-create #closetStepPanel1 .closet-step-heading,
html.nx-create .closet-step-back, html.nx-create #petContainer { display: none !important; }

/* 1 · Ocasión */
html.nx-create[data-nx-step="ocasion"] #closetContainer, html.nx-create[data-nx-step="ocasion"] #closetGenerateSection,
html.nx-create[data-nx-step="ocasion"] #result { display: none !important; }
html.nx-create[data-nx-step="ocasion"] #occasionSelector { display: block !important; }
html.nx-create #nxCreateCta { display: block; position: fixed; left: 0; right: 0; z-index: 1150;
  bottom: calc(76px + var(--nx-safe-bottom)); padding: 10px clamp(16px, 5vw, 24px); background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0)); }
#nxCreateCta .nx-btn { width: 100%; max-width: 640px; margin: 0 auto; display: flex; background: var(--nx-accent); border-radius: 99px; }
#nxCreateCta .nx-btn[disabled] { background: #ece9f5; color: #a8a3bd; }

/* 2 · Prendas (selección múltiple + la IA recomienda) */
html.nx-create[data-nx-step="prendas"] #occasionSelector, html.nx-create[data-nx-step="prendas"] #officeSubContexts,
html.nx-create[data-nx-step="prendas"] #result { display: none !important; }

/* 3 · Tu look (guardar y feedback se hacen después del Try-On) */
html.nx-create[data-nx-step="look"] #occasionSelector, html.nx-create[data-nx-step="look"] #officeSubContexts,
html.nx-create[data-nx-step="look"] #closetGenerateSection, html.nx-create[data-nx-step="look"] #saveFavoriteBtn,
html.nx-create[data-nx-step="look"] #feedbackContainer { display: none !important; }

/* 4 · Pruébatelo + guardar y calificar */
html.nx-create[data-nx-step="tryon"] #occasionSelector, html.nx-create[data-nx-step="tryon"] #officeSubContexts,
html.nx-create[data-nx-step="tryon"] #closetGenerateSection { display: none !important; }
.nx-after-tryon { display: none; margin-top: 16px; padding: 16px; background: #fff; border: 1px solid var(--nx-line); border-radius: var(--nx-radius); font-family: var(--nx-font); }
.nx-after-tryon.is-ready { display: block; }
.nx-after-tryon h3 { font-size: 18px; margin: 0 0 12px; color: var(--nx-ink); }
.nx-after-tryon #saveFavoriteBtn { width: 100%; margin: 0 0 12px !important; }

/* Crear look: la barra superior ya dice la etapa; sin títulos repetidos del paso a paso antiguo. */
html.nx-create .closet-step-heading, html.nx-create #result > div[style*="text-align:center;margin-bottom:2rem"], html.nx-create #closetStep3Header .closet-step-heading { display: none !important; }
html.nx-create .nx-toast { top: calc(var(--nx-header-h, 72px) + 100px); bottom: auto; } /* logro bajo la barra, sin tapar botones */

/* =====================================================================
   Noa protagonista: pestaña principal (el botón flotante ya no se repite)
   ===================================================================== */
html.nx-tabs-on .nx-noa-fab { display: none !important; }
.nx-tab-item { padding: 6px 2px; font-size: 10.5px; min-width: 0; }
.nx-tab-item span { display: flex; align-items: center; justify-content: center; height: 26px; }
.nx-tab-item svg { width: 22px; height: 22px; }
.nx-tab-create span { color: #fff; }
.nx-tab-create span svg { width: 18px; height: 18px; }
.nx-tab-noa .nx-noa-avatar { width: 26px; height: 26px; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--nx-line); }
.nx-tab-noa[aria-current="page"] .nx-noa-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--nx-ink); }
.nx-tab-item:focus-visible { outline: 2px solid var(--nx-accent); outline-offset: -2px; }

/* =====================================================================
   Clóset compacto (Yo / Mi mascota): un solo componente arriba
   ===================================================================== */
.nx-closet-bar { display: grid; gap: 10px; margin: 0 0 16px; font-family: var(--nx-font); }
#wearModeSelector[style*="none"] + .nx-closet-bar, html.nx-create .nx-closet-bar { display: none !important; }
@media (min-width: 640px) { .nx-closet-bar { grid-template-columns: 1fr 1fr; } }
.nx-upload-btn, .nx-noa-card { appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px;
  border-radius: var(--nx-radius); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nx-upload-btn { border: 0; background: var(--nx-ink); color: #fff; }
.nx-upload-btn.is-drop { outline: 2px dashed var(--nx-accent); outline-offset: 3px; }
.nx-upload-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; flex: none; }
.nx-upload-text strong, .nx-noa-card strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.nx-upload-text small { display: block; font-size: 12.5px; opacity: .75; font-weight: 500; }
.nx-noa-card { border: 1px solid var(--nx-line); background: #fff; color: var(--nx-ink); }
.nx-noa-card .nx-noa-avatar { width: 40px; height: 40px; }
.nx-noa-card small { display: block; font-size: 13px; color: var(--nx-muted); }
.nx-upload-btn:focus-visible, .nx-noa-card:focus-visible, .nx-filter:focus-visible, .nx-density:focus-visible,
.nx-cal-day:focus-visible, .nx-cal-city:focus-visible { outline: 2px solid var(--nx-accent); outline-offset: 2px; }

.nx-filter-row { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; font-family: var(--nx-font); }
.nx-filters { display: flex; gap: 6px; overflow-x: auto; flex: 1; padding: 2px; scrollbar-width: none; }
.nx-filters::-webkit-scrollbar { display: none; }
.nx-filters[hidden], .nx-filters[hidden] + .nx-density { display: none; }
.nx-filter { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border-radius: 99px;
  border: 1px solid var(--nx-line); background: #fff; color: var(--nx-text); font: 600 13px/1 var(--nx-font); cursor: pointer; }
.nx-filter[aria-selected="true"] { background: var(--nx-ink); color: #fff; border-color: var(--nx-ink); }
.nx-filter-count { font-weight: 500; font-size: 12px; opacity: .6; }
.nx-density { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--nx-line); background: #fff; color: var(--nx-ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.nx-density svg { width: 18px; height: 18px; }
html.nx-create .nx-filter-row, .nx-closet-empty-state { display: none; }

/* Yo: las 3 categorías en UNA grilla de miniaturas (sin bloques apilados);
   los filtros eligen categoría. Solo en la pestaña Clóset: "Crear look"
   conserva su selección por categorías. */
html.nx-tabs-on:not(.nx-create) #automaticUploadZone,
html.nx-tabs-on:not(.nx-create) #closetStepPanel1 .closet-step1-progress,
html.nx-tabs-on .pet-add-btn { display: none !important; }
/* Miniaturas grandes y reconocibles: 3 columnas a todo el ancho en el
   celular (antes 4 columnas dentro de 5 márgenes anidados = ~51 px). Vista
   ampliada (botón de grilla): 2 columnas. Clósets grandes: filtros. */
html.nx-tabs-on:not(.nx-create) #closetContainer,
html.nx-tabs-on:not(.nx-create) #closetStepPanel1 { padding-left: 0 !important; padding-right: 0 !important; }
html.nx-tabs-on:not(.nx-create) #closetStepPanel1 .closet-content { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  padding: 0 !important; margin: 0 !important; }
html.nx-tabs-on:not(.nx-create)[data-nx-closet="wide"] #closetStepPanel1 .closet-content { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) {
  html.nx-tabs-on:not(.nx-create) #closetStepPanel1 .closet-content { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  html.nx-tabs-on:not(.nx-create)[data-nx-closet="wide"] #closetStepPanel1 .closet-content { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  html.nx-tabs-on:not(.nx-create) #closetStepPanel1 .closet-content { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  html.nx-tabs-on:not(.nx-create)[data-nx-closet="wide"] #closetStepPanel1 .closet-content { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
html.nx-tabs-on:not(.nx-create) #closetStepPanel1 .closet-tab-content,
html.nx-tabs-on:not(.nx-create) #closetStepPanel1 .closet-item-grid { display: contents !important; }
html.nx-tabs-on:not(.nx-create) #closetStepPanel1 .closet-tab-content > div:not(.closet-item-grid) { display: none !important; }
html.nx-tabs-on:not(.nx-create) #closetStepPanel1[data-nx-filter="superiores"] .closet-tab-content:not(#superiores),
html.nx-tabs-on:not(.nx-create) #closetStepPanel1[data-nx-filter="inferiores"] .closet-tab-content:not(#inferiores),
html.nx-tabs-on:not(.nx-create) #closetStepPanel1[data-nx-filter="calzado"] .closet-tab-content:not(#calzado) { display: none !important; }
html.nx-tabs-on:not(.nx-create) #closetStepPanel1 .closet-item-card { border-radius: 12px !important; box-shadow: none !important; border: 1px solid var(--nx-line); }
html.nx-tabs-on:not(.nx-create) #closetStepPanel1 .closet-item-card { background: #fff !important; overflow: hidden; }
/* Foto completa sobre blanco (fondo blanco del backend): nunca recortada ni deformada. */
html.nx-tabs-on:not(.nx-create) #closetStepPanel1 .closet-item-card img { width: 100% !important; height: auto !important; aspect-ratio: 3 / 4; display: block;
  object-fit: contain !important; background: #fff; }
html.nx-tabs-on:not(.nx-create) #closetStepPanel1 .closet-item-selected-label { display: none !important; }
html.nx-tabs-on:not(.nx-create) #closetStepPanel1 .closet-item-checkmark { transform: scale(.75); transform-origin: top left; }
html.nx-tabs-on:not(.nx-create) #closetStepPanel1.nx-closet-empty .closet-content,
html.nx-tabs-on:not(.nx-create) #closetStepPanel1.nx-closet-empty .nx-filter-row { display: none !important; }
html.nx-tabs-on:not(.nx-create) #closetStepPanel1.nx-closet-empty .nx-closet-empty-state { display: block; text-align: center; padding: 28px 16px;
  border: 1px dashed var(--nx-line); border-radius: var(--nx-radius); color: var(--nx-muted); font-family: var(--nx-font); }
.nx-closet-empty-state p { margin: 0 0 4px; }
.nx-closet-empty-state strong { color: var(--nx-ink); }

/* Mi mascota: misma densidad y filtros sobre su grilla */
html.nx-tabs-on .pet-closet-grid .pet-item.nx-filtered-out { display: none !important; }
html.nx-tabs-on[data-nx-closet="compact"] .pet-closet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
@media (min-width: 640px) { html.nx-tabs-on[data-nx-closet="compact"] .pet-closet-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } }

/* =====================================================================
   Guía inicial (3 pasos)
   ===================================================================== */
.nx-sheet.nx-tutorial { background: rgba(15, 23, 42, .45); align-items: center; justify-content: center; padding: 24px; z-index: 4100; }
.nx-tut-card { background: #fff; border-radius: 24px; padding: 28px 22px 20px; max-width: 420px; width: 100%; text-align: center; box-shadow: var(--nx-shadow); }
.nx-tut-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: var(--nx-accent-soft); color: var(--nx-accent);
  display: flex; align-items: center; justify-content: center; }
.nx-tut-icon svg { width: 30px; height: 30px; }
.nx-tut-icon .nx-noa-avatar { width: 64px; height: 64px; border-radius: 20px; }
.nx-tut-card .nx-title { font-size: 22px; }
.nx-tut-dots { display: flex; justify-content: center; gap: 6px; margin: 18px 0; }
.nx-tut-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--nx-line); transition: width .2s ease; }
.nx-tut-dots i.is-on { width: 18px; background: var(--nx-ink); }
.nx-tut-actions { display: flex; gap: 10px; }

/* =====================================================================
   Calendario de looks
   ===================================================================== */
.nx-sheet.nx-cal { z-index: 3900; }
.nx-cal .nx-top { width: 100%; max-width: 640px; margin: 0 auto; padding: 4px clamp(16px, 5vw, 24px) 0; }
.nx-cal-body { flex: 1; overflow-y: auto; width: 100%; max-width: 640px; margin: 0 auto; padding: 8px clamp(16px, 5vw, 24px) 24px; -webkit-overflow-scrolling: touch; }
.nx-cal-strip { position: relative; display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; scroll-snap-type: x proximity; }
.nx-cal-strip::-webkit-scrollbar { display: none; }
.nx-cal-day { flex: none; width: 50px; padding: 8px 0 6px; border-radius: 14px; border: 1px solid var(--nx-line); background: #fff; color: var(--nx-ink);
  display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; cursor: pointer; scroll-snap-align: center; }
.nx-cal-day small { font-size: 11px; color: var(--nx-muted); }
.nx-cal-day b { font-size: 17px; }
.nx-cal-day i { width: 5px; height: 5px; border-radius: 99px; background: transparent; }
.nx-cal-day i.is-on { background: var(--nx-accent); }
.nx-cal-day[aria-selected="true"] { background: var(--nx-ink); border-color: var(--nx-ink); color: #fff; }
.nx-cal-day[aria-selected="true"] small { color: rgba(255,255,255,.7); }
.nx-cal-day[aria-selected="true"] i.is-on { background: #fff; }
.nx-cal-weather, .nx-cal-city { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin: 0 0 12px; border-radius: var(--nx-radius-sm);
  background: var(--nx-surface); color: var(--nx-text); font-size: 14px; }
.nx-cal-city { width: 100%; border: 1px dashed var(--nx-line); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.nx-cal-weather svg, .nx-cal-city svg { flex: none; width: 18px; height: 18px; }
.nx-cal-weather .nx-link { margin-left: auto; flex: none; }
.nx-cal-weather.is-muted { color: var(--nx-muted); }
.nx-cal-dayhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.nx-cal-dayhead h2 { margin: 0; font-size: 20px; color: var(--nx-ink); }
.nx-cal-dayhead h2::first-letter { text-transform: uppercase; }
.nx-btn.nx-cal-add { flex: none; height: 40px; padding: 0 16px; font-size: 14px; }
.nx-cal-event { border: 1px solid var(--nx-line); border-radius: var(--nx-radius); padding: 14px; margin: 0 0 12px; background: #fff; }
.nx-cal-when { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--nx-muted); }
.nx-cal-event h3 { margin: 2px 0 10px; font-size: 17px; color: var(--nx-ink); }
.nx-cal-look { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; }
.nx-cal-look img, .nx-cal-thumb-missing { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: var(--nx-surface); }
.nx-cal-thumb-missing { display: flex; align-items: center; justify-content: center; padding: 4px; font-size: 11px; color: var(--nx-muted); text-align: center; }
.nx-cal-notes { margin: 0 0 10px; font-size: 14px; color: var(--nx-text); }
.nx-cal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-action.is-danger { color: #b91c1c; border-color: #fecaca; }
.nx-cal-empty { text-align: center; padding: 24px 12px; color: var(--nx-muted); border: 1px dashed var(--nx-line); border-radius: var(--nx-radius); }
.nx-cal-empty p { margin: 0 0 12px; }
.nx-cal-empty .nx-btn { flex: none; height: 44px; }
.nx-cal-form { display: grid; gap: 12px; padding: 14px; margin: 0 0 12px; border: 1px solid var(--nx-line); border-radius: var(--nx-radius); background: #fff; }
.nx-cal-form h3 { margin: 0; font-size: 17px; color: var(--nx-ink); }
.nx-cal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nx-cal-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--nx-muted); }
.nx-cal-field[hidden] { display: none; }
.nx-cal-field .nx-input { font-weight: 400; color: var(--nx-ink); padding: 12px 14px; font-size: 16px; } /* 16px: iOS no hace zoom */
@media (prefers-reduced-motion: reduce) {
  .nx-tut-dots i { transition: none; }
  .nx-cal-strip { scroll-behavior: auto; }
}
/* Mi mascota: index.html oculta todo salvo el selector y #petContainer; la
   barra del clóset es compartida y debe seguir visible (mismo lugar). */
html.nx-tabs-on:not(.nx-create) #upload.is-pet-mode .section-container > #wearModeSelector:not([style*="none"]) + #nxClosetBar:not(#petContainer) { display: grid !important; }
/* Vista compacta de Mi mascota: controles proporcionados a la miniatura. */
html.nx-tabs-on[data-nx-closet="compact"] .pet-item { position: relative; }
html.nx-tabs-on[data-nx-closet="compact"] .pet-item-btn.is-danger { width: 34px !important; height: 34px !important; min-height: 0; top: 10px !important; right: 10px !important; font-size: .75rem; }
html.nx-tabs-on[data-nx-closet="compact"] .pet-item-btn.is-primary { min-height: 36px; font-size: .8rem; }
html.nx-tabs-on[data-nx-closet="compact"] .pet-item-name { font-size: .8rem; }
/* Pestaña Clóset: la bandeja "Seleccionadas para recomendación" repetía las
   3 categorías; vive solo en "Crear look" (las miniaturas marcan la selección). */
html.nx-tabs-on:not(.nx-create) #closetSelectionTray { display: none !important; }

/* Atribución visible del proveedor del clima (WeatherAPI.com la solicita en su plan gratuito). */
.nx-weather-credit { display: inline-block; margin: 6px 0 12px; font-size: 11.5px; color: var(--nx-muted); text-decoration: underline; text-underline-offset: 2px; }
.nx-msg-bot .nx-weather-credit { margin: 8px 0 0; }

/* =====================================================================
   Crear look SIN scroll: cada etapa cabe en una pantalla (solo el chat de
   Noa scrollea). El botón principal vive en la barra fija (#nxCreateCta);
   los botones originales siguen existiendo y la barra los pulsa.
   --nx-fit: alto útil entre la barra superior de Crear look y la barra fija.
   ===================================================================== */
html.nx-create { --nx-fit: calc(100vh - var(--nx-header-h, 72px) - 76px - 150px - var(--nx-safe-bottom)); }
@supports (height: 100dvh) { html.nx-create { --nx-fit: calc(100dvh - var(--nx-header-h, 72px) - 76px - 150px - var(--nx-safe-bottom)); } }
html.nx-create body.is-authenticated #upload { padding-top: calc(var(--nx-header-h, 72px) + 72px) !important; padding-bottom: calc(70px + var(--nx-safe-bottom)) !important; min-height: 0 !important; }
html.nx-create[data-nx-step="look"] #closetContainer, html.nx-create[data-nx-step="tryon"] #result { display: none !important; }
html.nx-create #generateClosetBtn, html.nx-create #probarmeEsteLookBtn, html.nx-create #vtoGenerateBtn,
html.nx-create #closetGenerateSection > :not(#recQuota) { display: none !important; }
html.nx-create #result > .nx-cta-origin { display: none !important; }
html.nx-create #closetGenerateSection { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 4px 0 0 !important; }
html.nx-create #closetGenerateSection #recQuota { margin: 0 !important; font-size: 12px !important; color: var(--nx-muted) !important; text-align: center; }
html.nx-create .closet-container, html.nx-create #closetStepPanel1, html.nx-create .closet-content { padding-top: 0 !important; margin-top: 0 !important; }
html.nx-create .section-container { padding-top: 0 !important; padding-bottom: 0 !important; }
html.nx-create #recomendaciones { display: none !important; }
html.nx-create .closet-container, html.nx-create .closet-content { padding-bottom: 0 !important; margin-bottom: 0 !important; }

/* 1 · Ocasión: compacta */
html.nx-create[data-nx-step="ocasion"] .occasion-section h3 { margin: 0 0 10px !important; font-size: 18px !important; }
html.nx-create[data-nx-step="ocasion"] .occasion-btn { min-height: 0 !important; padding: 12px !important; }

/* 2 · Prendas: una fila por categoría que se desliza de lado (sin scroll vertical) */
html.nx-create[data-nx-step="prendas"] { --nx-pick: clamp(60px, calc((var(--nx-fit) - 182px) / 3), 170px); }
/* Todo el ancho para las fotos (los márgenes anidados dejaban ~250 px de 350). */
html.nx-create[data-nx-step="prendas"] #closetContainer, html.nx-create[data-nx-step="prendas"] #closetStepPanel1,
html.nx-create[data-nx-step="prendas"] .closet-content { padding-left: 0 !important; padding-right: 0 !important; }
/* El conteo por categoría ya lo dice el botón ("Falta seleccionar: ..."). */
html.nx-create[data-nx-step="prendas"] #closetStep1Progress { display: none !important; }
html.nx-create[data-nx-step="prendas"] .closet-tab-content + .closet-tab-content { border-top: 0 !important; }
html.nx-create[data-nx-step="prendas"] #closetSelectionTray, html.nx-create[data-nx-step="prendas"] #automaticUploadZone,
html.nx-create[data-nx-step="prendas"] #nxClosetBar, html.nx-create[data-nx-step="prendas"] #nxClosetEmpty,
html.nx-create[data-nx-step="prendas"] .closet-tab-content > div:first-child p,
html.nx-create[data-nx-step="prendas"] .closet-tab-content > div:first-child .closet-selection-counter { display: none !important; }
html.nx-create[data-nx-step="prendas"] .closet-tab-content { display: block !important; margin: 0 0 6px !important; padding: 0 !important; }
html.nx-create[data-nx-step="prendas"] .closet-tab-content > div:first-child { margin: 0 0 4px !important; padding: 0 !important; min-height: 0 !important; }
html.nx-create[data-nx-step="prendas"] .closet-tab-content > div:first-child * { margin: 0 !important; padding: 0 !important; min-height: 0 !important; }
html.nx-create[data-nx-step="prendas"] .closet-tab-content h3 { font-size: 14px !important; text-align: left !important; }
html.nx-create[data-nx-step="prendas"] .closet-item-grid { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important;
  gap: 8px !important; padding: 2px 2px 4px !important; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
html.nx-create[data-nx-step="prendas"] .closet-item-grid::-webkit-scrollbar { display: none; }
html.nx-create[data-nx-step="prendas"] .closet-item-card { flex: 0 0 auto !important; width: max(var(--nx-pick), 92px) !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important;
  scroll-snap-align: start; background: #fff !important; overflow: hidden; }
html.nx-create[data-nx-step="prendas"] .closet-item-selected-label,
html.nx-create[data-nx-step="prendas"] #closetStep1Progress i { display: none !important; }
html.nx-create[data-nx-step="prendas"] .closet-item-checkmark { top: 6px !important; left: 6px !important; width: 24px !important; height: 24px !important; font-size: 11px !important; }
html.nx-create[data-nx-step="prendas"] .closet-item-card.selected { outline: 3px solid var(--nx-accent); outline-offset: -3px; }
html.nx-create[data-nx-step="prendas"] .closet-item-card img { width: 100% !important; height: var(--nx-pick) !important; aspect-ratio: auto !important; object-fit: contain !important; background: #fff; }

/* 3 · Tu look: tarjeta compacta, prendas lado a lado y el porqué en pocas líneas
   (estructura de app.js renderRecommendations/renderCard/renderItem). */
html.nx-create[data-nx-step="look"] #result { margin: 0 !important; padding: 0 !important; }
html.nx-create[data-nx-step="look"] #result > div[style*="display:grid"] { display: block !important; gap: 0 !important; margin: 0 !important; padding: 0 !important; }
html.nx-create[data-nx-step="look"] #result > div:empty, html.nx-create[data-nx-step="look"] #result > div[style*="margin-top:1rem"]:not(.nx-cta-origin):not([id]) { display: none !important; }
html.nx-create[data-nx-step="look"] #result div[style*="border:2px solid"] { display: block !important; padding: 12px !important; margin: 0 !important; }
html.nx-create[data-nx-step="look"] #result div[style*="border:2px solid"] > div[style*="space-between"] { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
  align-items: center !important; justify-content: space-between !important; gap: 8px !important; margin: 0 0 8px !important; padding: 0 !important; }
html.nx-create[data-nx-step="look"] #result div[style*="border:2px solid"] > div[style*="space-between"] h3 { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; font-size: 16px !important;
  margin: 0 !important; text-align: left !important; line-height: 1.25; }
html.nx-create[data-nx-step="look"] #result div[style*="border:2px solid"] > div[style*="space-between"] span { flex: none !important; padding: 4px 10px !important; font-size: 13px !important; }
html.nx-create[data-nx-step="look"] #result #lookPieces.look-pieces { display: grid !important; grid-template-columns: repeat(var(--look-pieces, 3), minmax(0, 1fr)) !important;
  gap: 8px !important; margin: 0 0 8px !important; padding: 0 !important; }
html.nx-create[data-nx-step="look"] #result #lookPieces > div { display: block !important; width: auto !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; }
html.nx-create[data-nx-step="look"] #result #lookPieces > div > div:first-child:not([style*="dashed"]) { display: none !important; }
html.nx-create[data-nx-step="look"] #result #lookPieces > div > div[style*="dashed"] { display: block !important; margin: 0 !important; padding: 0 !important; min-height: 0 !important;
  width: 100% !important; height: auto !important; aspect-ratio: 3 / 4 !important; max-height: calc(var(--nx-fit) - 215px);
  display: flex !important; align-items: center !important; justify-content: center !important; overflow: hidden; }
html.nx-create[data-nx-step="look"] #result #lookPieces > div > div[style*="dashed"] img { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important;
  object-fit: contain !important; } /* proporción real de la foto: nada alargado ni deformado */
html.nx-create[data-nx-step="look"] #result #lookPieces > div > div:last-child:not([style*="dashed"]) { display: block !important; font-size: 11.5px !important; line-height: 1.3; margin: 4px 0 0 !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
html.nx-create[data-nx-step="look"] #result div[style*="rgba(59,130,246,.1)"], html.nx-create[data-nx-step="look"] #result div[style*="rgba(251,191,36,0.1)"] { display: block !important; padding: 8px 12px !important; margin: 0 0 6px !important;
  font-size: 13px !important; line-height: 1.4; text-align: left !important; }
html.nx-create[data-nx-step="look"] #result div[style*="rgba(59,130,246,.1)"] > div { display: inline !important; margin: 0 !important; font-size: 13px !important; }
html.nx-create[data-nx-step="look"] #result div[style*="rgba(59,130,246,.1)"] > div:first-child::after { content: " · "; }
html.nx-create[data-nx-step="look"] #result div[style*="rgba(251,191,36,0.1)"] > div:first-child { display: none !important; }
html.nx-create[data-nx-step="look"] #result div[style*="rgba(251,191,36,0.1)"] > div:last-child { display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px !important; }

/* 4 · Pruébatelo: foto a la medida de la pantalla; tocarla la cambia */
html.nx-create[data-nx-step="tryon"] #closetStep3Header, html.nx-create[data-nx-step="tryon"] .vto-photo-rotate-notice,
html.nx-create[data-nx-step="tryon"] .vto-photo-hint, html.nx-create[data-nx-step="tryon"] #vtoStep4PhotoThumb { display: none !important; }
html.nx-create[data-nx-step="tryon"] .vto-card { padding: 10px !important; margin: 0 0 8px !important; }
html.nx-create[data-nx-step="tryon"] #vtoPhotoSection { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
html.nx-create[data-nx-step="tryon"] .vto-photo-preview-wrap { flex: 1 1 100%; display: flex; justify-content: center; margin: 0 !important; }
html.nx-create[data-nx-step="tryon"] #vtoPhotoPreviewImg { height: clamp(100px, calc(var(--nx-fit) - 265px), 420px) !important; width: auto !important; max-width: 100% !important; object-fit: contain; cursor: pointer !important; }
html.nx-create[data-nx-step="tryon"] .vto-photo-rotate-controls { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 6px !important; margin: 0 !important; width: auto !important; }
html.nx-create[data-nx-step="tryon"] .vto-photo-rotate-controls .vto-rotate-btn { width: auto !important; flex: none !important; }
/* Rotar: solo el ícono (el texto sigue en el botón para lectores de pantalla). */
html.nx-create[data-nx-step="tryon"] #upload .vto-rotate-btn:not(.vto-rotate-save-btn) { font-size: 0 !important; width: 40px !important; height: 36px !important; padding: 0 !important; justify-content: center; }
html.nx-create[data-nx-step="tryon"] #upload .vto-rotate-btn:not(.vto-rotate-save-btn) i { font-size: 15px !important; margin: 0 !important; }
/* Pantallas bajas (iPhone SE): sin la línea de cuota de recomendaciones para que todo quepa
   (si se agota, el backend igual lo avisa al generar). */
@media (max-height: 700px) { html.nx-create[data-nx-step="prendas"] #closetGenerateSection { display: none !important; }
  html.nx-create[data-nx-step="prendas"] .closet-tab-content h3 { font-size: 13px !important; }
  /* Pruébatelo: las prendas ya se vieron en el paso anterior; la foto gana ese espacio. */
  html.nx-create[data-nx-step="tryon"] .vto-summary { display: none !important; }
  html.nx-create[data-nx-step="tryon"] #vtoPhotoPreviewImg { height: clamp(100px, calc(var(--nx-fit) - 235px), 420px) !important; } }
html.nx-create[data-nx-step="tryon"] .vto-photo-rotate-controls .vto-rotate-btn, html.nx-create[data-nx-step="tryon"] #vtoPhotoSection .file-label {
  padding: 8px 12px !important; font-size: 13px !important; min-height: 0 !important; margin: 0 !important; }
html.nx-create[data-nx-step="tryon"] #vtoPhotoSection > div[style] { margin: 0 !important; }
html.nx-create[data-nx-step="tryon"] .vto-summary { margin: 0 !important; }
html.nx-create[data-nx-step="tryon"] .vto-outfit-thumbs { gap: 6px !important; justify-content: center; }
html.nx-create[data-nx-step="tryon"] .vto-outfit-thumb { width: 52px !important; height: 52px !important; }
html.nx-create[data-nx-step="tryon"] .vto-quota { margin: 4px 0 0 !important; font-size: 12px !important; text-align: center; }
/* Con el resultado: se ve el resultado (sin la foto de origen) + guardar y calificar */
html.nx-vto-done.nx-create[data-nx-step="tryon"] #closetStepPanel3, html.nx-vto-done.nx-create[data-nx-step="tryon"] .vto-summary,
html.nx-vto-done.nx-create[data-nx-step="tryon"] #vtoAccessorySlot, html.nx-vto-done.nx-create[data-nx-step="tryon"] #vtoModeToggle { display: none !important; }
html.nx-vto-done.nx-create[data-nx-step="tryon"] #vtoQuota, html.nx-vto-done.nx-create[data-nx-step="tryon"] .vto-result-pieces,
html.nx-vto-done.nx-create .nx-after-tryon h3, html.nx-vto-done.nx-create .feedback-subtitle { display: none !important; }
html.nx-vto-done.nx-create[data-nx-step="tryon"] .vto-result-main img { max-height: calc(var(--nx-fit) - 160px) !important; height: auto !important; width: auto !important;
  max-width: 100% !important; margin: 0 auto; display: block; object-fit: contain; }
html.nx-vto-done.nx-create[data-nx-step="tryon"] .vto-result, html.nx-vto-done.nx-create[data-nx-step="tryon"] .vto-result-main { display: flex !important; justify-content: center; margin: 0 !important; padding: 0 !important; }
/* ¿Te gustó?: una sola fila compacta */
html.nx-vto-done.nx-create .nx-after-tryon .feedback-container { display: flex !important; flex-direction: column !important; align-items: center; gap: 6px; padding: 8px 12px !important; margin: 0 !important; }
html.nx-vto-done.nx-create .nx-after-tryon .feedback-title { font-size: 14px !important; margin: 0 !important; text-align: center; }
html.nx-vto-done.nx-create .nx-after-tryon .feedback-buttons { display: flex !important; flex-direction: row !important; justify-content: center; gap: 8px !important; margin: 0 !important; width: 100%; }
html.nx-vto-done.nx-create .nx-after-tryon .feedback-btn { min-height: 40px !important; padding: 0 12px !important; font-size: 12.5px !important; width: auto !important; white-space: nowrap; }
html.nx-vto-done.nx-create .nx-after-tryon { margin-top: 8px; padding: 0; border: 0; background: none; }
html.nx-vto-done.nx-create .nx-after-tryon h3 { font-size: 15px; margin-bottom: 8px; }
html.nx-vto-done.nx-create .nx-after-tryon #saveFavoriteBtn { display: none !important; } /* lo pulsa la barra fija: "Guardar look" */

/* Visor de fotos: el ✕ quedaba bajo el notch/barra de estado del iPhone (no
   se podía cerrar). Ahora respeta el área segura y hay un "Cerrar" grande abajo. */
html.nx-tabs-on .image-viewer-close { top: calc(12px + var(--nx-safe-top)) !important; right: 14px !important; width: 44px !important; height: 44px !important; }
html.nx-tabs-on .image-viewer-overlay { padding: calc(64px + var(--nx-safe-top)) 16px calc(84px + var(--nx-safe-bottom)) !important; }
.nx-viewer-done { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(20px + var(--nx-safe-bottom)); z-index: 2;
  min-height: 48px; padding: 0 28px; border: 0; border-radius: 99px; background: #fff; color: #111; font: 600 16px var(--nx-font); cursor: pointer; }

/* =====================================================================
   Eliminar prenda (Clóset y Crear look): separado de la acción principal.
   Tocar la foto = seleccionar (✓ arriba a la izquierda). Eliminar = ícono
   gris discreto en la esquina OPUESTA (abajo a la derecha), con área táctil
   de 36 px y confirmación (app.js::removeClosetItemAsk). Nunca rojo encima
   de la foto.
   ===================================================================== */
html.nx-tabs-on .closet-item-card > .closet-item-delete { top: auto !important; left: auto !important; right: 4px !important; bottom: 4px !important;
  width: 36px !important; height: 36px !important; background: transparent !important; border-radius: 50% !important; font-size: 0 !important;
  color: transparent !important; z-index: 2; }
html.nx-tabs-on .closet-item-card > .closet-item-delete::before { content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 0 0 1px rgba(17,24,39,.12); }
html.nx-tabs-on .closet-item-card > .closet-item-delete:active::before { background-color: #fee2e2; }

/* 3 · Tu look: fotos grandes usando el alto libre (antes 3 columnas de ~110 px
   y media pantalla vacía). Superior + inferior lado a lado y el calzado
   (más ancho que alto) en una fila completa. Fotos completas sobre blanco. */
html.nx-create[data-nx-step="look"] #result #lookPieces.look-pieces { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
html.nx-create[data-nx-step="look"] #result #lookPieces[style*="--look-pieces:3"] > div:nth-child(3),
html.nx-create[data-nx-step="look"] #result #lookPieces[style*="--look-pieces: 3"] > div:nth-child(3) { grid-column: 1 / -1; }
html.nx-create[data-nx-step="look"] #result #lookPieces > div > div[style*="dashed"] { aspect-ratio: auto !important; max-height: none !important;
  height: clamp(64px, calc((var(--nx-fit) - 250px) / 2), 230px) !important; background: #fff !important; border: 1px solid var(--nx-line) !important; border-radius: 12px !important; }
/* index.html fuerza #result img a 28 % / mín. 110 px (flex: 0 0 28%): aquí la
   foto llena su recuadro (object-fit: contain, sin recortar ni deformar). */
html.nx-create[data-nx-step="look"] #result #lookPieces > div > div[style*="dashed"] img { flex: 1 1 100% !important; min-width: 0 !important;
  margin: 0 !important; box-shadow: none !important; border-radius: 10px !important; }
/* Pantallas muy angostas (≤ 340 px): la línea secundaria de armonía (2 líneas
   ahí) cede su espacio a las fotos; el porcentaje sigue visible arriba. */
@media (max-width: 340px) {
  html.nx-create[data-nx-step="look"] #result div[style*="rgba(59,130,246,.1)"] { display: none !important; }
}

/* =====================================================================
   Noa: outfit grande y legible + elegir y agendar sin salir del chat
   ===================================================================== */
.nx-msg-bot:has(.nx-look) { width: 94%; }
.nx-look { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nx-look figure { aspect-ratio: auto; border: 0; background: none; border-radius: 0; overflow: visible; }
.nx-look figure:nth-child(3) { grid-column: 1 / -1; }
.nx-look-photo { background: #fff; border: 1px solid var(--nx-line); border-radius: 12px; overflow: hidden; height: clamp(110px, 30vw, 170px); display: flex; align-items: center; justify-content: center; }
.nx-look figure:nth-child(3) .nx-look-photo { height: clamp(90px, 24vw, 140px); }
.nx-look img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.nx-look figcaption { position: static; background: none; padding: 4px 2px 0; font-size: 12px; color: var(--nx-text); text-align: center; }
.nx-msg-bot .nx-actions .nx-action { min-height: 40px; }
.nx-schedule { white-space: normal; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--nx-line); }
.nx-schedule-title { margin: 0 0 8px; font-weight: 700; color: var(--nx-ink); font-size: 14px; }
.nx-schedule-days { display: flex; flex-wrap: wrap; gap: 6px; }
.nx-schedule-days .nx-chip { min-height: 38px; padding: 6px 12px; font-size: 13px; }
.nx-schedule-other { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.nx-schedule-other.is-on { border-color: var(--nx-ink); background: var(--nx-ink); color: #fff; }
.nx-schedule-other input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.nx-schedule-time { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--nx-ink); }
.nx-schedule-time span { font-weight: 400; color: var(--nx-muted); }
.nx-schedule-time input { max-width: 130px; min-height: 38px; }

/* Calendario: el look con las fotos reales, completas y sobre blanco */
.nx-cal-look figure { margin: 0; min-width: 0; }
.nx-cal-look img { object-fit: contain !important; background: #fff !important; border: 1px solid var(--nx-line); }
.nx-cal-look figcaption { font-size: 11.5px; color: var(--nx-muted); text-align: center; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-schedule-actions { flex-wrap: nowrap; }
.nx-schedule-actions [data-save] { flex: 1 1 auto; }
.nx-look-mini { display: flex; gap: 6px; margin-top: 8px; }
.nx-look-mini img { width: 52px; height: 52px; object-fit: contain; background: #fff; border: 1px solid var(--nx-line); border-radius: 10px; }
