/* Tu Armario Virtual: prototipo navegable (sin animaciones, por petición) */
:root {
  --bg-1: #fbe9e1;
  --bg-2: #f5d3da;
  --bg-3: #e9afc2;
  --ink: #2b1d22;
  --ink-2: #5a4049;
  --ink-3: #6a4f5b;
  --plum: #623d50;
  --plum-dark: #4d2f3f;
  --on-plum: #ffffff;
  --glass: rgba(255, 255, 255, 0.5);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.75);
  --line: rgba(107, 68, 87, 0.14);
  --danger: #8e2a3d;
  --success: #2f5a3e;
  --radius-s: 14px;
  --radius-m: 20px;
  --radius-l: 28px;
  --font-serif: "Instrument Serif", "Cormorant", Georgia, serif;
  --font-sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --stage: #efe6e2;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--stage);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; border-radius: 8px; }
img { display: block; max-width: 100%; }

/* ---------- Escenario: teléfono + panel de demo ---------- */
.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 32px 16px;
}
.phone {
  position: relative;
  width: 390px;
  height: 844px;
  border-radius: 54px;
  border: 11px solid #1c1417;
  box-shadow: 0 30px 80px rgba(60, 30, 45, 0.25);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
  flex: none;
}
.status-bar {
  position: absolute; inset: 0 0 auto 0; height: 50px; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 30px 0 34px; font-weight: 600; font-size: 15px; pointer-events: none;
  background: var(--bg-1);
}
.status-bar .island { position: absolute; left: 50%; top: 10px; width: 120px; height: 34px; margin-left: -60px; background: #1c1417; border-radius: 20px; }
.status-icons { display: flex; gap: 6px; align-items: center; }
.home-indicator { position: absolute; bottom: 8px; left: 50%; width: 134px; height: 5px; margin-left: -67px; background: var(--ink); border-radius: 3px; z-index: 30; pointer-events: none; }

#app { position: absolute; inset: 0; }
.view {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  top: 50px;
  padding: 12px 22px 130px;
  scrollbar-width: none;
}
.view::-webkit-scrollbar { display: none; }
.view.no-tabs { padding-bottom: 48px; }

/* ---------- Tipografía ---------- */
.serif { font-family: var(--font-serif); font-weight: 400; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; line-height: 1.1; }
h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
p { margin: 0; line-height: 1.55; font-size: 17px; }
.lead { font-family: var(--font-serif); font-size: 28px; line-height: 1.25; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
.italic { font-style: italic; }
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
  margin: 30px 0 12px;
}
.eyebrow::before { content: "✦"; font-size: 12px; letter-spacing: 0; }

/* ---------- Cabeceras ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 8px; gap: 8px; }
.topbar .title { font-family: var(--font-serif); font-size: 22px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  color: var(--ink);
}
.icon-btn.glass { background: var(--glass); border: 1px solid var(--glass-border); }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon.filled { fill: currentColor; }
.wordmark { font-family: var(--font-serif); font-size: 22px; font-style: italic; }

/* ---------- Superficies ---------- */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-m);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.list { padding: 0; overflow: hidden; }
.row {
  width: 100%; min-height: 56px; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; text-align: left; font-size: 17px;
  border-bottom: 1px solid var(--line); text-decoration: none;
}
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .value { color: var(--ink); font-weight: 500; text-align: right; }
.row .label { color: var(--ink-2); }
.row .sub { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.row .chev { color: var(--ink-3); }
.row.danger { color: var(--danger); }

/* ---------- Botones e inputs ---------- */
.btn {
  min-height: 54px; width: 100%; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 17px; font-weight: 600; padding: 0 22px; text-decoration: none;
}
.btn-primary { background: var(--plum); color: var(--on-plum); }
.btn-primary:hover { background: var(--plum-dark); }
.btn-primary:disabled { background: rgba(107, 68, 87, 0.35); cursor: not-allowed; }
.btn-soft { background: var(--glass-strong); border: 1px solid var(--glass-border); color: var(--plum); }
.btn-sm { min-height: 44px; width: auto; font-size: 15px; padding: 0 16px; }
.link { color: var(--plum); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.field-label { display: block; font-size: 15px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px 6px; }
.pill-input {
  width: 100%; min-height: 56px; border-radius: 999px; border: 1px solid var(--glass-border);
  background: var(--glass-strong); padding: 0 22px; font-size: 17px;
}
.pill-input::placeholder { color: var(--ink-3); }
.helper { font-size: 14px; color: var(--ink-2); margin: 8px 0 0 6px; }
.error { font-size: 14px; color: var(--danger); margin: 8px 0 0 6px; font-weight: 500; }
.otp { display: flex; gap: 8px; justify-content: space-between; }
.otp input {
  width: 46px; height: 58px; text-align: center; font-size: 24px; font-weight: 600;
  border-radius: 14px; border: 1px solid var(--glass-border); background: var(--glass-strong);
}

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 -22px; padding-left: 22px; padding-right: 22px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border); font-size: 15px; font-weight: 500; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--plum); color: var(--on-plum); border-color: var(--plum); }
.badge {
  display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(43, 29, 34, 0.55); color: #fff; backdrop-filter: blur(6px);
}
.badge.light { background: var(--glass-strong); color: var(--plum); }
.badge.out { background: var(--danger); color: #fff; }

/* ---------- Imágenes ---------- */
.ph { background: linear-gradient(160deg, #f3d7dc, #d9a7b8); }
.photo { width: 100%; height: 100%; object-fit: cover; }
.photo-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-l);
  aspect-ratio: 3 / 4; text-decoration: none; color: #fff;
}
.photo-card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,29,34,0) 40%, rgba(43,29,34,0.75) 100%); }
.photo-card .overlay { position: absolute; left: 18px; right: 18px; bottom: 18px; }
.photo-card .overlay h3 { font-style: italic; font-size: 26px; color: #fff; }
.photo-card .topright { position: absolute; top: 12px; right: 12px; }
.photo-card .topleft { position: absolute; top: 14px; left: 14px; }

/* Carrusel horizontal */
.carousel { display: flex; gap: 14px; overflow-x: auto; margin: 0 -22px; padding: 0 22px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: none; width: 74%; scroll-snap-align: center; }
.carousel.small > * { width: 42%; }

/* Rejilla de productos */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.product { text-decoration: none; display: block; }
.product .thumb { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-m); overflow: hidden; }
.product .thumb .topleft { position: absolute; top: 10px; left: 10px; }
.product .name { font-size: 16px; font-weight: 500; margin-top: 10px; line-height: 1.3; }
.product .meta { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.product.is-out .thumb img { filter: grayscale(0.7) opacity(0.75); }

/* Fila de fav sobre foto */
.fav-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(43, 29, 34, 0.35); color: #fff; backdrop-filter: blur(6px); }
.fav-btn.on { color: #fff; background: var(--plum); }
.fav-btn.dark { background: var(--glass-strong); color: var(--plum); border: 1px solid var(--glass-border); }
.fav-btn.dark.on { background: var(--plum); color: #fff; }

/* Tiles de acceso rápido */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { padding: 18px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-height: 140px; }
.tile .tile-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--plum); color: #fff; display: flex; align-items: center; justify-content: center; }
.tile h3 { font-size: 22px; }
.tile p { font-size: 14px; color: var(--ink-2); line-height: 1.4; }

/* ---------- Barra inferior ---------- */
.tabbar {
  position: absolute; left: 16px; right: 16px; bottom: 26px; z-index: 20;
  height: 70px; border-radius: 999px; display: flex; justify-content: space-around; align-items: center;
  background: rgba(255, 255, 255, 0.78); border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(107, 68, 87, 0.15); backdrop-filter: blur(16px);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 60px; min-height: 52px; justify-content: center; font-size: 12px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.tab .icon { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--plum); }
.tab[aria-current="page"] .icon { stroke-width: 2.1; }

/* ---------- Progreso y pantallas de pregunta ---------- */
.progress { flex: 1; height: 6px; border-radius: 3px; background: rgba(107, 68, 87, 0.12); overflow: hidden; }
.progress span { display: block; height: 100%; background: #a08891; border-radius: 3px; }
.style-option { display: flex; gap: 14px; align-items: center; padding: 10px; width: 100%; text-align: left; margin-bottom: 12px; }
.style-option .sw { width: 72px; height: 88px; border-radius: 14px; overflow: hidden; flex: none; }
.style-option .t { font-size: 18px; font-weight: 600; }
.style-option .d { font-size: 14px; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }
.style-option[aria-pressed="true"] { border: 2px solid var(--plum); background: var(--glass-strong); }
.style-option .check { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink-3); flex: none; display: flex; align-items: center; justify-content: center; }
.style-option[aria-pressed="true"] .check { background: var(--plum); border-color: var(--plum); color: #fff; }

/* ---------- Artículo (carta) ---------- */
.article-hero { margin: 0 -22px; aspect-ratio: 4 / 3; overflow: hidden; }
.article p + p { margin-top: 16px; }
.dropcap::first-letter { font-family: var(--font-serif); font-size: 58px; float: left; line-height: 0.85; margin: 6px 8px 0 0; color: var(--plum); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; margin: 22px 0; }
.video .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: #fff; color: var(--plum); display: flex; align-items: center; justify-content: center; }
.video .cap { position: absolute; left: 14px; bottom: 12px; }
.signature { font-family: var(--font-serif); font-style: italic; font-size: 30px; margin-top: 22px; }

/* ---------- PDF con marca de agua ---------- */
.pdf-sheet { position: relative; background: #fff; border-radius: 6px; box-shadow: 0 10px 30px rgba(43, 29, 34, 0.18); padding: 26px 22px; overflow: hidden; }
.pdf-sheet .pdf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.pdf-sheet .pdf-grid div { aspect-ratio: 3 / 4; overflow: hidden; }
.watermark { position: absolute; inset: -40%; display: flex; flex-wrap: wrap; align-content: center; gap: 40px 30px; transform: rotate(-30deg); pointer-events: none; }
.watermark span { font-size: 16px; font-weight: 600; color: rgba(98, 61, 80, 0.32); white-space: nowrap; }

/* ---------- Bloqueo VIP y estados ---------- */
.locked { text-align: center; padding: 30px 22px; }
.lock-circle { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--glass-strong); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; color: var(--plum); }
.lock-circle .icon { width: 30px; height: 30px; }
.state-screen { min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 18px; }

/* ---------- Toggle ---------- */
.switch { position: relative; width: 52px; height: 32px; flex: none; border-radius: 999px; background: rgba(107, 68, 87, 0.25); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.switch[aria-checked="true"] { background: var(--plum); }
.switch[aria-checked="true"]::after { left: 23px; }
.switch:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Aviso (toast) y push ---------- */
.toast {
  position: absolute; left: 20px; right: 20px; bottom: 112px; z-index: 40;
  background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 18px; font-size: 15px; line-height: 1.4;
}
.push {
  position: absolute; left: 10px; right: 10px; top: 54px; z-index: 40;
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; text-align: left; width: calc(100% - 20px);
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--glass-border); border-radius: 22px;
  box-shadow: 0 10px 30px rgba(43, 29, 34, 0.18); backdrop-filter: blur(18px);
}
.push .app-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--plum); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 20px; font-style: italic; flex: none; }
.push .grow { flex: 1; min-width: 0; }
.push strong { font-size: 15px; }
.push .when { font-size: 13px; color: var(--ink-2); }
.push p { font-size: 15px; line-height: 1.35; }

/* ---------- Varios ---------- */
.stack > * + * { margin-top: 14px; }
.spacer { height: 18px; }
.hr { height: 1px; background: var(--line); margin: 22px 0; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--glass-strong); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 30px; color: var(--plum); flex: none; }
.prompt-card { padding: 18px; }
.prompt-card h3 { font-size: 22px; }
.prompt-card p { font-size: 15px; color: var(--ink-2); margin: 8px 0 14px; }
.prompt-actions { display: flex; gap: 10px; }
.prompt-actions .btn { flex: 1; white-space: nowrap; padding: 0 12px; }
.eyebrow .more { margin-left: auto; letter-spacing: 0; text-transform: none; font-size: 15px; }
.search-wrap { position: relative; }
.search-wrap .icon { position: absolute; left: 18px; top: 17px; color: var(--ink-3); }
.search-wrap input { padding-left: 50px; }
.result { display: flex; gap: 14px; align-items: center; padding: 12px; text-decoration: none; text-align: left; width: 100%; }
.result .th { width: 60px; height: 72px; border-radius: 12px; overflow: hidden; flex: none; }
.result .type { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.result .t { font-size: 16px; font-weight: 500; margin-top: 2px; line-height: 1.3; }
.look { margin-bottom: 26px; }
.look .look-img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-l); overflow: hidden; }
.item-row { display: flex; gap: 12px; align-items: center; padding: 10px 12px; }
.item-row .th { width: 54px; height: 64px; border-radius: 10px; overflow: hidden; flex: none; }
.empty { text-align: center; padding: 40px 10px; color: var(--ink-2); }

/* ---------- Panel de demo (fuera del teléfono) ---------- */
.demo-panel {
  width: 300px; background: #fff; border-radius: 20px; padding: 22px;
  box-shadow: 0 10px 40px rgba(60, 30, 45, 0.08); font-size: 14px; color: #3a3035;
}
.demo-panel h2 { font-family: var(--font-sans); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.demo-panel p.note { font-size: 13px; color: #6d6067; line-height: 1.45; margin-bottom: 16px; }
.demo-panel fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.demo-panel legend { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6d6067; margin-bottom: 8px; }
.demo-panel label { display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.demo-panel button { width: 100%; min-height: 40px; border-radius: 10px; border: 1px solid #ddd3d7; background: #faf7f8; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.demo-panel button:hover { background: #f2ebee; }

@media (max-width: 860px) {
  .demo-panel { display: none; }
}
@media (max-width: 430px) {
  .stage { padding: 0; display: block; }
  .phone { width: 100vw; height: 100vh; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .status-bar, .home-indicator { display: none; }
  .view { top: 0; padding-top: 24px; }
  .push { top: 10px; }
}
