/* Losada Lens Studio - Probador virtual */
:root {
  --llt-ink: #10163a;
  --llt-ink-2: #2b3157;
  --llt-mute: #6b7088;
  --llt-line: #e3e5ee;
  --llt-soft: #f4f5f9;
  --llt-accent: #00a6a6;
  --llt-radius: 14px;
}
html.llt-lock, html.llt-lock body { overflow: hidden !important; }

.llt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid var(--llt-ink); background: #fff; color: var(--llt-ink);
  font-weight: 600; font-size: 15px; font-family: inherit; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.llt-btn svg { width: 20px; height: 20px; flex: none; }
.llt-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16,22,58,.12); }
.llt-btn-primary { background: var(--llt-ink); color: #fff; }
.llt-btn-dark { background: var(--llt-ink); color: #fff; width: 100%; }
.llt-btn[disabled] { opacity: .45; cursor: default; transform: none; box-shadow: none; background: #fff; color: var(--llt-ink); }
.llt-tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--llt-soft);
  color: var(--llt-mute); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.llt-price { font-weight: 700; color: var(--llt-ink); }
.llt-privacy { display: inline-flex; align-items: center; gap: 6px; color: var(--llt-mute); font-size: 12.5px; }
.llt-privacy svg { width: 15px; height: 15px; }

/* ---------- modal ---------- */
.llt-modal {
  position: fixed; inset: 0; z-index: 100000; background: rgba(10,13,32,.62);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.llt-modal[hidden] { display: none; }
.llt-shell {
  width: min(1180px, 100%); height: min(760px, 100%); background: #fff; border-radius: 20px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35);
  color: var(--llt-ink); font-family: inherit;
}
.llt-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--llt-line); }
.llt-brand { display: flex; align-items: center; gap: 12px; }
.llt-brand > svg { width: 36px; height: 18px; color: var(--llt-ink); }
.llt-brand strong { display: block; font-size: 16px; }
.llt-brand span { display: block; font-size: 12.5px; color: var(--llt-mute); }
.llt-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--llt-soft); color: var(--llt-ink); cursor: pointer; display: grid; place-items: center; }
.llt-x svg { width: 20px; height: 20px; }
.llt-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.llt-body[hidden] { display: none; }

.llt-stage { position: relative; background: #0d1028; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; }
.llt-canvas { max-width: 100%; max-height: 100%; display: block; opacity: 0; transition: opacity .3s; }
.llt-modal.is-running .llt-canvas { opacity: 1; }
.llt-start {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px; text-align: center; color: #fff;
  background: radial-gradient(120% 90% at 50% 30%, #262d63 0%, #0d1028 70%);
}
.llt-start[hidden] { display: none; }
.llt-start h3 { margin: 6px 0 0; font-size: 24px; color: #fff; }
.llt-start p { margin: 0; color: #c9cce0; }
.llt-start .llt-privacy { color: #aeb2cc; }
.llt-start-face {
  width: 150px; height: 190px; border: 3px dashed #36d6c3; border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(255,255,255,.02) inset;
  animation: llt-pulse 2.4s ease-in-out infinite;
}
@keyframes llt-pulse { 50% { transform: scale(1.04); border-color: #7ef0e2; } }
.llt-start-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.llt-start .llt-btn { border-color: #fff; }
.llt-start .llt-btn-primary { background: #fff; color: var(--llt-ink); }
.llt-start .llt-btn:not(.llt-btn-primary) { background: transparent; color: #fff; }
.llt-msg {
  position: absolute; left: 50%; top: 16px; transform: translateX(-50%); max-width: calc(100% - 32px);
  background: rgba(255,255,255,.95); color: var(--llt-ink); padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); text-align: center; z-index: 3;
}
.llt-msg[hidden] { display: none; }
.llt-tools { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; z-index: 2; }
.llt-tools[hidden] { display: none; }
.llt-adj, .llt-src { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.94); border-radius: 999px; padding: 5px 8px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.llt-adj span { font-size: 12px; font-weight: 700; color: var(--llt-mute); padding: 0 4px 0 6px; }
.llt-adj button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--llt-soft); color: var(--llt-ink); font-size: 18px; font-weight: 700; cursor: pointer; }
.llt-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: transparent; color: var(--llt-ink); font-weight: 600; font-size: 13px; font-family: inherit; cursor: pointer; }
.llt-chip:hover { background: var(--llt-soft); }
.llt-chip svg { width: 18px; height: 18px; }

/* panel lateral */
.llt-side { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-left: 1px solid var(--llt-line); overflow-y: auto; min-height: 0; }
.llt-current h4 { margin: 8px 0 2px; font-size: 19px; line-height: 1.2; color: var(--llt-ink); }
.llt-link { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--llt-accent); text-decoration: none; }
.llt-actions { display: grid; gap: 8px; }
.llt-actions .llt-btn { width: 100%; min-height: 42px; font-size: 14px; }
.llt-tabs, .llt-page-tabs { display: flex; gap: 6px; }
.llt-tabs button, .llt-page-tabs button {
  flex: 1; height: 34px; border-radius: 999px; border: 1px solid var(--llt-line); background: #fff; color: var(--llt-ink-2);
  font-weight: 600; font-size: 13px; font-family: inherit; cursor: pointer;
}
.llt-tabs button.is-on, .llt-page-tabs button.is-on { background: var(--llt-ink); border-color: var(--llt-ink); color: #fff; }
.llt-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.llt-thumb {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; border-radius: 12px;
  border: 1.5px solid var(--llt-line); background: #fff; cursor: pointer; font-family: inherit;
}
.llt-thumb img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; }
.llt-thumb span { font-size: 11px; line-height: 1.2; color: var(--llt-ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.llt-thumb.is-on { border-color: var(--llt-ink); box-shadow: 0 0 0 2px var(--llt-ink) inset; }
.llt-looks { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--llt-line); display: grid; gap: 10px; }
.llt-looks-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.llt-looks-n { color: var(--llt-mute); font-size: 12px; }
.llt-looks-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.llt-look { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--llt-soft); }
.llt-look.is-empty { border: 1.5px dashed var(--llt-line); background: #fff; }
.llt-look img { width: 100%; height: 100%; object-fit: cover; display: block; }
.llt-look button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(16,22,58,.75); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
.llt-looks .llt-btn { min-height: 42px; font-size: 14px; }

/* comparar */
.llt-compare { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px 24px; background: var(--llt-soft); }
.llt-compare[hidden] { display: none; }
.llt-compare-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.llt-compare-head h3 { margin: 0; font-size: 20px; color: var(--llt-ink); }
.llt-back { border: 0; background: #fff; border-radius: 999px; height: 36px; padding: 0 14px; font-weight: 600; font-size: 14px; font-family: inherit; color: var(--llt-ink); cursor: pointer; box-shadow: 0 2px 8px rgba(16,22,58,.08); }
.llt-compare-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.llt-compare-grid.n3, .llt-compare-grid.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.llt-compare-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.llt-compare-grid.is-all { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.llt-card { margin: 0; background: #fff; border-radius: var(--llt-radius); overflow: hidden; box-shadow: 0 4px 16px rgba(16,22,58,.07); display: flex; flex-direction: column; }
.llt-card-img { position: relative; }
.llt-card-img img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.llt-card-del { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--llt-ink); font-size: 17px; cursor: pointer; }
.llt-card figcaption { padding: 10px 12px 12px; display: grid; gap: 4px; }
.llt-card figcaption strong { font-size: 15px; line-height: 1.25; }
.llt-card figcaption em { font-style: normal; font-weight: 700; }
.llt-card .llt-tag { justify-self: start; }
.llt-card-btns { display: flex; gap: 6px; margin-top: 6px; }
.llt-mini { flex: 1; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1.5px solid var(--llt-ink); background: #fff; color: var(--llt-ink); font-weight: 600; font-size: 13px; font-family: inherit; text-decoration: none; cursor: pointer; }
.llt-mini-dark { background: var(--llt-ink); color: #fff !important; }
.llt-wait { grid-column: 1 / -1; text-align: center; color: var(--llt-mute); padding: 40px 0; }

/* ---------- ficha de producto ---------- */
.llt-pdp-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0 4px; padding: 12px 16px;
  border-radius: var(--llt-radius); border: 1.5px solid var(--llt-ink); background: #fff; color: var(--llt-ink);
  font-family: inherit; text-align: left; cursor: pointer; transition: background .15s, box-shadow .15s;
}
.llt-pdp-btn:hover { background: var(--llt-soft); box-shadow: 0 6px 18px rgba(16,22,58,.1); }
.llt-pdp-btn svg { width: 28px; height: 28px; flex: none; }
.llt-pdp-btn strong { display: block; font-size: 15px; }
.llt-pdp-btn small { display: block; font-size: 12.5px; color: var(--llt-mute); }

/* ---------- página probador ---------- */
.lls-tryon-page { color: var(--llt-ink); max-width: 1200px; margin: 0 auto; padding: 8px 0 40px; }
.llt-hero {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  padding: 36px; border-radius: 24px; margin-bottom: 26px;
  background: radial-gradient(90% 120% at 100% 0%, #e7f7f6 0%, rgba(231,247,246,0) 60%), linear-gradient(180deg, #f6f7fb, #fff);
  border: 1px solid var(--llt-line);
}
.llt-eyebrow { display: inline-block; padding: 5px 12px; border: 1px solid var(--llt-line); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--llt-mute); }
.llt-hero h1 { margin: 14px 0 10px; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.02em; color: var(--llt-ink); }
.llt-hero h1 em { font-style: italic; color: var(--llt-accent); }
.llt-hero p { margin: 0 0 18px; color: var(--llt-ink-2); font-size: 17px; max-width: 34em; }
.llt-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.llt-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.llt-steps li { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--llt-line); border-radius: var(--llt-radius); padding: 14px 16px; }
.llt-steps b { width: 34px; height: 34px; border-radius: 50%; background: var(--llt-ink); color: #fff; display: grid; place-items: center; flex: none; }
.llt-steps strong { display: block; font-size: 15px; }
.llt-steps span { color: var(--llt-mute); font-size: 13.5px; }
.llt-page-tabs { max-width: 420px; margin: 0 0 18px; }
.llt-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.llt-pcard { background: #fff; border: 1px solid var(--llt-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.llt-pcard:hover { box-shadow: 0 12px 30px rgba(16,22,58,.1); transform: translateY(-2px); }
.llt-pcard-img { display: block; background: #fff; padding: 18px 14px 6px; }
.llt-pcard-img img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; display: block; }
.llt-pcard-info { padding: 6px 16px 0; display: grid; gap: 4px; }
.llt-pcard-info .llt-tag { justify-self: start; }
.llt-pcard-info h3 { margin: 4px 0 0; font-size: 16px; line-height: 1.25; color: var(--llt-ink); }
.llt-pcard-btns { display: flex; gap: 8px; padding: 12px 16px 16px; margin-top: auto; }
.llt-pcard-btns .llt-btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.llt-pcard-btns .llt-btn-primary { flex: 1; }

/* ---------- móvil ---------- */
@media (max-width: 860px) {
  .llt-modal { padding: 0; }
  .llt-shell { width: 100%; height: 100%; border-radius: 0; }
  .llt-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .llt-stage { min-height: 0; }
  .llt-side { border-left: 0; border-top: 1px solid var(--llt-line); max-height: 44vh; padding: 12px; gap: 10px; }
  .llt-current h4 { font-size: 16px; margin-top: 4px; }
  .llt-actions { grid-template-columns: 1fr 1fr; }
  .llt-actions .llt-btn { font-size: 13px; padding: 0 10px; }
  .llt-strip { display: flex; overflow-x: auto; gap: 8px; scroll-snap-type: x mandatory; padding-bottom: 2px; }
  .llt-thumb { flex: 0 0 96px; scroll-snap-align: start; }
  .llt-looks { margin-top: 0; }
  .llt-compare-grid, .llt-compare-grid.n3, .llt-compare-grid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .llt-compare-grid.is-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .llt-hero { grid-template-columns: 1fr; padding: 22px; gap: 18px; }
  .llt-hero-btns .llt-btn { flex: 1; }
  .llt-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .llt-pcard-btns { flex-direction: column; padding: 10px 12px 12px; }
  .llt-pcard-info { padding: 4px 12px 0; }
  .llt-start-face { width: 120px; height: 150px; }
  .llt-adj span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .llt-start-face { animation: none; }
  .llt-btn, .llt-pcard { transition: none; }
}

/* botón junto a la foto en la ficha */
.lls-gallery-tools { flex-wrap: wrap; gap: 8px; }
.lls-gallery-tools .llt-pdp-btn.is-chip {
  width: auto; margin: 0; padding: 0 16px 0 12px; min-height: 40px; border-radius: 999px; gap: 8px;
  background: var(--llt-ink); color: #fff; border-color: var(--llt-ink);
}
.lls-gallery-tools .llt-pdp-btn.is-chip svg { width: 20px; height: 20px; }
.lls-gallery-tools .llt-pdp-btn.is-chip strong { font-size: 14px; }
.lls-gallery-tools .llt-pdp-btn.is-chip small { display: none; }
.lls-gallery-tools .llt-pdp-btn.is-chip:hover { background: var(--llt-ink-2); }

/* página probador: el hero ya hace de título */
body:has(.lls-tryon-page) .page-header { display: none; }
.llt-pcard-img img { transform: scale(1.25); }

/* 1.1.4: ajustes celular */
.llt-strip, .llt-tabs, .llt-actions, .llt-current, .llt-looks { flex: none; }
.llt-btn { white-space: nowrap; }
@media (max-width: 860px) {
  .llt-side { max-height: 48vh; }
  .llt-current { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; order: 1; }
  .llt-current .llt-tag { display: none; }
  .llt-current h4 { margin: 0; grid-column: 1; }
  .llt-current .llt-price { grid-column: 2; grid-row: 1; }
  .llt-current .llt-link { grid-column: 1 / -1; margin-top: 2px; font-size: 13px; }
  .llt-strip { order: 2; }
  .llt-tabs { order: 3; }
  .llt-actions { order: 4; }
  .llt-looks { order: 5; }
  .llt-thumb { flex: 0 0 88px; }
  .llt-actions .llt-btn { white-space: normal; line-height: 1.15; }
  .llt-hero-btns { flex-direction: column; }
  .llt-hero-btns .llt-btn { width: 100%; }
  .llt-start h3 { font-size: 20px; }
  .llt-start-btns { flex-direction: column; width: 100%; max-width: 300px; }
  .llt-start-btns .llt-btn { width: 100%; }
  .llt-tools { left: 8px; right: 8px; bottom: 8px; }
  .llt-chip { padding: 0 9px; }
  .lls-gallery-tools .llt-pdp-btn.is-chip { width: 100%; justify-content: center; order: -1; }
}


/* 1.3.0: celular — imagen a pantalla completa y controles compactos */
@media (max-width: 860px) {
  .llt-body { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) auto; }
  .llt-side { min-width: 0; max-height: 40vh; }
  .llt-side > * { min-width: 0; max-width: 100%; }
  .llt-modal.is-running .llt-canvas { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
  .llt-tools { left: 50%; right: auto; transform: translateX(-50%); bottom: 8px; flex-wrap: nowrap; gap: 6px; width: max-content; max-width: calc(100% - 16px); }
  .llt-adj, .llt-src { padding: 3px 4px; gap: 2px; background: rgba(255,255,255,.85); }
  .llt-adj span { display: none; }
  .llt-adj button { width: 30px; height: 30px; font-size: 15px; }
  .llt-chip { height: 30px; padding: 0 7px; font-size: 0; gap: 0; }
  .llt-chip svg { width: 18px; height: 18px; }
  .llt-head { padding: 8px 12px; }
  .llt-brand span { display: none; }
  .llt-x { width: 34px; height: 34px; }
  .llt-msg { top: 8px; font-size: 13px; padding: 8px 12px; }
}
