/* Noutfits · estilos, mobile-first. Sin dependencias externas ni estilos en línea.
   Forma inspirada en la maqueta (tarjetas muy redondeadas, sombras suaves, degradados, iconos)
   con la paleta del logo: burdeos, rosa empolvado y dorado. Diseño claro siempre. */
:root {
  --bg: #fbf1ee;
  --surface: #ffffff;
  --surface-2: #fdf6f4;
  --ink: #3a1022;
  --muted: #8b6b74;
  --line: #f0dfdb;
  --accent: #74193f;
  --accent-2: #a23a63;
  --accent-ink: #ffffff;
  --accent-soft: #f8e4e6;
  --rose: #e2ada0;
  --rose-soft: #f6dcd4;
  --gold: #c29a5b;
  --gold-light: #ecd3a0;
  --ok: #2f9a5e;
  --warn: #d9932b;
  --info: #3d7fd6;
  --error: #b3261e;
  --grad: linear-gradient(135deg, #b0476f 0%, #8a2450 45%, #6a1638 100%);
  --grad-soft: linear-gradient(160deg, #ffffff 0%, #fdf0ee 100%);
  --shadow: 0 10px 28px -12px rgba(116, 25, 63, 0.28), 0 2px 6px rgba(116, 25, 63, 0.05);
  --shadow-sm: 0 4px 14px -6px rgba(116, 25, 63, 0.22);
  --radius: 24px;
  --radius-sm: 16px;
  --tabbar-h: 68px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100dvh;
  padding-top: var(--safe-top);
  background:
    radial-gradient(90% 45% at 100% 0%, #f9dccf 0%, transparent 70%),
    radial-gradient(80% 40% at 0% 30%, #f8e1e6 0%, transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--accent); }
h1 { font-family: var(--serif); font-weight: 700; color: var(--accent); font-size: 1.75rem; line-height: 1.15; margin: 0.2rem 0 1rem; }
h2 { font-size: 1.08rem; margin: 0 0 0.7rem; color: var(--ink); }
p { margin: 0 0 0.75rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem; z-index: 10; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: var(--safe-top); z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.6rem 1.1rem;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.logo-small { display: inline-flex; align-items: center; gap: 0.5rem; }
.logo-small-icon { width: 34px; height: 34px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.wordmark-small { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--accent); letter-spacing: 0.01em; }
.top-actions { display: flex; align-items: center; gap: 0.5rem; }
.pill-link, .link.pill-link {
  display: inline-flex; align-items: center; gap: 0.3rem; min-height: 40px; padding: 0 0.95rem;
  border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm);
  color: var(--accent); font-weight: 600; font-size: 0.92rem; text-decoration: none;
}
.pill-link .icon { width: 18px; height: 18px; }
.round-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow-sm); color: var(--accent); text-decoration: none;
}
.round-btn .icon { width: 21px; height: 21px; }

.page {
  max-width: 640px; margin: 0 auto;
  padding: 0.4rem 1.1rem calc(var(--tabbar-h) + var(--safe-bottom) + 2rem);
}
body.auth .page { padding-bottom: 2rem; }

/* ---------- Tarjetas y estructura ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.15rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.card.highlight { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--rose), var(--shadow); }
.stack { display: flex; flex-direction: column; gap: 0.8rem; }
.stack > form { margin: 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 1.4rem 0 0.7rem; }
.section-title h2 { font-family: var(--serif); font-size: 1.25rem; margin: 0; color: var(--accent); }
.soon { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: linear-gradient(135deg, #f6e3c4, var(--gold-light)); color: #7a5520; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; }
.soon .icon { width: 14px; height: 14px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.title-row h1 { margin-bottom: 0.25rem; }
.count-pill { padding: 0.2rem 0.75rem; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--muted); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.link { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ---------- Botones (mínimo 48 px de alto) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0 1.3rem; width: 100%;
  border-radius: 999px; border: 0;
  background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 22px; height: 22px; }
.btn-primary {
  background: var(--grad); color: var(--accent-ink);
  box-shadow: 0 12px 24px -10px rgba(116, 25, 63, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary .icon-gold { color: var(--gold-light); }
.btn-ghost { background: transparent; box-shadow: none; color: var(--muted); }
.btn-small { min-height: 40px; padding: 0 1rem; width: auto; font-size: 0.9rem; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .tab:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px;
}
.chip-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 40px; padding: 0 0.95rem; border-radius: 999px; border: 0;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.chip-btn.is-current { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }

/* ---------- Formularios (16 px para que iOS no haga zoom) ---------- */
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.93rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  min-height: 50px; padding: 0.65rem 0.95rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose); background: var(--surface); }
.field.has-error input, .field.has-error select { border-color: var(--error); }
.help { color: var(--muted); font-size: 0.85rem; margin: 0; }
.help ul { margin: 0.25rem 0 0; padding-left: 1.1rem; }
.error { color: var(--error); font-size: 0.9rem; margin: 0; }
.form-error { padding: 0.7rem 0.9rem; background: color-mix(in srgb, var(--error) 9%, var(--surface)); border-radius: var(--radius-sm); }
.field ul, .field > div:not(.swatches) > div { list-style: none; padding: 0; margin: 0; }
.field input[type=checkbox], .field input[type=radio] { width: 22px; height: 22px; min-height: 0; accent-color: var(--accent); }
.field label:has(input[type=checkbox]), .field label:has(input[type=radio]) { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; margin-right: 0.9rem; min-height: 40px; }
.field input[type=range] { padding: 0; min-height: 40px; accent-color: var(--accent); background: transparent; border: 0; }
.check { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
details > summary { cursor: pointer; font-weight: 700; color: var(--accent); min-height: 44px; display: flex; align-items: center; }
details[open] > summary { margin-bottom: 0.5rem; }

.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.msg { padding: 0.8rem 1.1rem; border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); margin-bottom: 0.5rem; border-left: 4px solid var(--gold); }
.msg-success { border-left-color: var(--ok); }
.msg-error { border-left-color: var(--error); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1rem; margin: 0 0 1rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; flex-direction: column; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.row { flex-direction: row !important; align-items: center; justify-content: space-between; }
.code { font: 700 1.6rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; user-select: all; -webkit-user-select: all; color: var(--accent); }
.version { text-align: center; color: var(--muted); font-size: 0.8rem; }
.notes { white-space: normal; background: var(--surface-2); padding: 0.8rem; border-radius: var(--radius-sm); }
.empty { text-align: center; }
.empty-art { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: 0.6rem; }
.empty-art .icon { width: 40px; height: 40px; }

/* ---------- Acceso (entrar / registro) ---------- */
.auth-box { max-width: 420px; margin: 4vh auto 0; }
.logo-lockup { display: block; margin: 0 auto 0.5rem; text-align: center; }
.logo-img {
  display: block; width: 100%; max-width: 400px; height: auto; margin: 0 auto;
  border-radius: 28px; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.tagline { text-align: center; color: var(--muted); margin-bottom: 1.4rem; font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.auth-title { text-align: center; font-family: var(--serif); color: var(--accent); font-size: 1.35rem; }
.auth-card { padding: 1.4rem; }
.auth-alt { text-align: center; margin-top: 1.25rem; }

/* ---------- Barra de pestañas inferior ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding: 0.35rem 0.4rem var(--safe-bottom);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -8px 24px -12px rgba(116, 25, 63, 0.25);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); text-decoration: none; font-size: 0.7rem; font-weight: 600;
}
.tab .icon { width: 25px; height: 25px; padding: 2px; border-radius: 12px; box-sizing: content-box; }
.tab.is-active { color: var(--accent); }
.tab.is-active .icon { background: var(--accent-soft); padding: 4px 14px; }
.tab.is-soon { opacity: 0.38; }

/* ---------- Inicio ---------- */
.hello {
  display: flex; align-items: center; gap: 1rem;
  background: var(--grad-soft); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.hello::after {
  content: ""; position: absolute; right: -40px; top: -50px; width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 211, 160, 0.55), transparent 70%);
}
.hello-avatar { flex: none; width: 84px; height: 84px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--gold-light), var(--rose), var(--accent-2)); }
.hello-avatar img, .hello-avatar span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: var(--accent-soft); color: var(--accent); font: 700 2rem var(--serif); }
.hello-text { position: relative; z-index: 1; min-width: 0; }
.hello-text h1 { font-size: 1.45rem; margin: 0 0 0.2rem; }
.hello-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.8rem; color: var(--muted); font-size: 0.9rem; }
.hello-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.hello-meta .icon { width: 17px; height: 17px; }
.hello-meta .sun { color: var(--gold); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
  aspect-ratio: 1 / 1.05; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm);
  color: var(--accent); font-size: 0.8rem; font-weight: 600; text-align: center; text-decoration: none;
}
.tile .icon { width: 30px; height: 30px; }
.tile span { color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 40px; padding: 0 0.95rem;
  border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 0.88rem; font-weight: 600;
}
.pill .icon { width: 18px; height: 18px; color: var(--gold); }
.is-preview { opacity: 0.6; }

.summary-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 0.55rem; }
.sum-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.7rem 0.3rem 0.6rem;
  border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm);
  color: var(--accent); text-decoration: none; text-align: center;
}
.sum-item .icon { width: 26px; height: 26px; }
.sum-item strong { font-size: 1.15rem; color: var(--ink); line-height: 1.1; }
.sum-item small { font-size: 0.68rem; color: var(--muted); line-height: 1.15; }
.status-line { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.status-line .pill { font-size: 0.82rem; min-height: 34px; }

/* ---------- Armario: filtros ---------- */
.filters { margin-bottom: 1rem; }
.search-row { display: flex; gap: 0.5rem; align-items: center; }
.search-field { position: relative; flex: 1; }
.search-field .icon { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search-field input { min-height: 48px; padding-left: 2.6rem; border-radius: 999px; background: var(--surface); border-color: transparent; box-shadow: var(--shadow-sm); }
.chips { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.85rem 0.1rem 0.4rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.05rem; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.chip input:checked + span { background: var(--grad); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--rose); }
.more-filters { margin-top: 0.3rem; background: var(--surface); border-radius: var(--radius); padding: 0 1rem; box-shadow: var(--shadow-sm); }
.more-filters[open] { padding-bottom: 1rem; }
.more-filters summary { gap: 0.4rem; }
.more-filters summary .icon { width: 20px; height: 20px; }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* ---------- Armario: cuadrícula ---------- */
.garment-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
@media (min-width: 370px) { .garment-grid { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; } }
@media (min-width: 560px) { .garment-grid { grid-template-columns: repeat(5, 1fr); gap: 0.7rem; } }
.garment-card {
  position: relative; display: block; padding: 5px 5px 0.45rem; border-radius: 18px; background: var(--surface);
  box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; text-align: center;
}
.garment-card img, .garment-card .no-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--surface-2); }
.no-photo { display: grid !important; place-items: center; color: var(--rose); }
.no-photo .icon { width: 42%; height: 42%; }
.garment-card.is-unavailable img { opacity: 0.55; filter: grayscale(0.4); }
.garment-name { display: block; margin-top: 0.35rem; padding: 0 0.2rem; font-size: 0.76rem; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.garment-brand { display: block; padding: 0 0.2rem; font-size: 0.7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1em; }
.fav-badge { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--accent); font-size: 0.8rem; }
.thumb { position: relative; display: block; }
.status-dot { position: absolute; right: 5px; bottom: 5px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; background: var(--ok); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); flex: none; }
.status-available { background: var(--ok); }
.status-laundry { background: var(--info); }
.status-stained, .status-broken { background: var(--warn); }
.status-out_of_season { background: #9b8d86; }
.status-retired { background: #4a3a40; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 0.9rem; margin-top: 1rem; color: var(--muted); font-size: 0.78rem; }
.legend span { display: inline-flex; align-items: center; gap: 0.3rem; }
.fab {
  position: fixed; right: 1.1rem; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 1rem); z-index: 6;
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; text-decoration: none;
  box-shadow: 0 14px 26px -10px rgba(116, 25, 63, 0.75), inset 0 0 0 2px rgba(236, 211, 160, 0.55);
}
.fab .icon { width: 30px; height: 30px; }

/* ---------- Ficha de prenda ---------- */
.garment-photo { margin: 0 0 1rem; padding: 10px; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); }
.garment-photo img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; border-radius: 20px; background: var(--surface-2); }
.garment-photo .no-photo { height: 220px; border-radius: 20px; background: var(--surface-2); }
.icon-btn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 1.4rem; color: var(--rose); cursor: pointer; }
.icon-btn .icon { width: 26px; height: 26px; }
.icon-btn.is-on { color: #fff; background: var(--grad); }
.icon-btn.is-on .icon { fill: currentColor; }
.status-now { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; margin-bottom: 0.8rem; }
.status-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.status-buttons form { margin: 0; }
.status-buttons .chip-btn .dot { width: 9px; height: 9px; }
.actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.55rem; margin-bottom: 1rem; }
.actions-grid form { margin: 0; display: contents; }
.action-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem;
  min-height: 82px; padding: 0.5rem 0.25rem; border: 0; border-radius: 20px;
  background: var(--surface); box-shadow: var(--shadow-sm); color: var(--accent);
  font: inherit; font-size: 0.74rem; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer; width: 100%;
}
.action-tile span { color: var(--ink); line-height: 1.15; }
.action-tile .icon { width: 26px; height: 26px; }

/* ---------- Alta de prenda: visor tipo cámara ---------- */
.step { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #5a3a10; font-size: 0.85rem; margin-right: 0.35rem; }
.viewfinder {
  position: relative; display: grid; place-items: center; min-height: 340px; padding: 4rem 1rem 6.8rem;
  border-radius: 26px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 50% 20%, #8a3a5c 0%, #4a1029 70%, #2c0817 100%);
}
.viewfinder::before {
  content: ""; position: absolute; inset: 3.3rem 1.4rem 6.4rem;
  background:
    linear-gradient(#fff, #fff) top left / 34px 3px no-repeat, linear-gradient(#fff, #fff) top left / 3px 34px no-repeat,
    linear-gradient(#fff, #fff) top right / 34px 3px no-repeat, linear-gradient(#fff, #fff) top right / 3px 34px no-repeat,
    linear-gradient(#fff, #fff) bottom left / 34px 3px no-repeat, linear-gradient(#fff, #fff) bottom left / 3px 34px no-repeat,
    linear-gradient(#fff, #fff) bottom right / 34px 3px no-repeat, linear-gradient(#fff, #fff) bottom right / 3px 34px no-repeat;
  opacity: 0.85; pointer-events: none;
}
.vf-hint { position: absolute; top: 0.8rem; margin: 0; left: 50%; transform: translateX(-50%); width: max-content; max-width: 85%; padding: 0.35rem 0.9rem; border-radius: 999px; background: rgba(0, 0, 0, 0.35); font-size: 0.82rem; text-align: center; }
.vf-art { color: rgba(255, 255, 255, 0.35); }
.vf-art .icon { width: 96px; height: 96px; stroke-width: 1.2; }
.vf-controls { position: absolute; left: 0; right: 0; bottom: 1rem; display: flex; align-items: center; justify-content: center; gap: 2.4rem; }
.vf-shutter { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; cursor: pointer; }
.vf-shutter::after { content: ""; width: 58px; height: 58px; border-radius: 50%; background: #fff; transition: transform 0.12s ease; }
.vf-shutter:active::after { transform: scale(0.9); }
.vf-side { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; font-size: 0.7rem; cursor: pointer; }
.vf-side .vf-round { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.vf-side .icon { width: 24px; height: 24px; }
.vf-spacer { width: 46px; }
.guide { margin-top: 0.2rem; }
.guide ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.crop-frame { height: min(55vh, 440px); background: #2c0817; border-radius: 22px; overflow: hidden; }
.crop-frame img { display: block; max-width: 100%; }
.crop-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }

/* Muestras de color */
.swatches { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.swatches > div { display: contents; }
.swatch { position: relative; display: flex; flex-direction: column; align-items: center; width: 58px; font-size: 0.7rem; text-align: center; color: var(--muted); }
.swatch input { position: absolute; opacity: 0; }
.swatch-dot { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px -2px rgba(58, 16, 34, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.swatch-pattern { background: conic-gradient(#e85d5d, #f2cf3d, #3d8b4f, #2f6fd0, #7a4fa3, #e85d5d); }
.swatch input:checked + .swatch-dot { outline: 3px solid var(--accent); outline-offset: 2px; }
.swatch input:focus-visible + .swatch-dot { outline: 3px dashed var(--accent); outline-offset: 2px; }
.swatch-label { margin-top: 0.25rem; line-height: 1.1; }

/* ---------- Perfil ---------- */
.profile-hero { text-align: center; padding: 1.4rem 1rem 1.2rem; }
.profile-hero .hello-avatar { width: 104px; height: 104px; margin: 0 auto 0.7rem; }
.profile-hero h1 { margin-bottom: 0.1rem; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li + li { border-top: 1px solid var(--line); }
.menu-list a, .menu-list button {
  display: flex; align-items: center; gap: 0.8rem; width: 100%; min-height: 54px; padding: 0 0.2rem;
  background: none; border: 0; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer;
}
.menu-list .icon { color: var(--accent); }
.menu-list .icon:last-child { margin-left: auto; width: 18px; height: 18px; color: var(--muted); }
.menu-list form { margin: 0; }
.menu-list .danger, .menu-list .danger .icon { color: var(--muted); }

@media (min-width: 720px) {
  .btn { width: auto; }
  .stack .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
