/* Vitrina · estilos compartidos (panel, acceso y catálogo) */
:root {
  --bg: #f5f2f7; --surface: #ffffff; --surface-2: #efe8f3; --ink: #24162f; --muted: #6c5d78; --line: #e2d8e9;
  --accent: #d6336c; --accent-ink: #ffffff; --tag: #ffd84d; --tag-ink: #24162f;
  --ok: #1d8556; --warn: #c2410c; --danger: #b42318; --bubble: #e3f4e9;
  --font-display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141017; --surface: #1e1724; --surface-2: #2a2131; --ink: #f3ecf7; --muted: #ac9eb8; --line: #382d41;
    --accent: #ff5c93; --accent-ink: #1a0f1f; --ok: #4cc38a; --warn: #fb923c; --danger: #f87171; --bubble: #1f3a2b;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px;
  background: var(--ink); color: var(--surface); font-weight: 700; padding: 12px 16px; font-size: 15px; text-decoration: none; }
.btn.acc { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: var(--surface-2); color: var(--ink); }
.btn.danger { background: transparent; color: var(--danger); border: 1.5px solid currentColor; }
.btn.block { width: 100%; }
.btn-s { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 9px; padding: 6px 11px; font-size: 13px; font-weight: 700; text-decoration: none; }
.btn-s.danger { color: var(--danger); }

/* ---------- formularios ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; }
.field label, .lbl { font-size: 13px; font-weight: 700; }
.field .hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel],
.field input:not([type]), .field input[inputmode], .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 11px; padding: 11px 12px; font-size: 15px; }
.field textarea { min-height: 90px; resize: vertical; }
.field input[type=file] { font-size: 14px; }
.field.err input, .field.err select, .field.err textarea { border-color: var(--danger); }
.field .msg { color: var(--danger); font-size: 12.5px; font-weight: 600; margin: 0; }
.two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
@media (max-width: 380px) { .two { grid-template-columns: minmax(0,1fr); } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 1px; flex: none; }
.prefix { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--surface); }
.prefix span { padding: 11px 0 11px 12px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.prefix input { border: 0 !important; padding-left: 2px !important; min-width: 0; }

/* ---------- avisos ---------- */
.alert { border-radius: 12px; padding: 11px 14px; font-size: 14px; font-weight: 600; }
.alert.ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }
.alert.error { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }

/* ---------- layout simple (acceso, inicio, errores) ---------- */
.simple { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  padding: 32px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
.volver-inicio { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin: -14px 0 14px; padding: 7px 12px 7px 8px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.volver-inicio:hover { border-color: var(--accent); color: var(--accent); }
.volver-inicio svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 720px) { .volver-inicio { position: absolute; top: 24px; left: 24px; margin: 0; } }
.simple .marca { font-family: var(--font-display); font-size: 30px; color: var(--ink); text-decoration: none; margin-bottom: 22px; }
.simple .marca b { color: var(--accent); font-weight: 400; }
.tarjeta { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px; }
.tarjeta h1 { font-size: 22px; margin-bottom: 4px; }
.tarjeta > p { margin: 0 0 18px; color: var(--muted); }
.pie-form { text-align: center; font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Portada */
.hero { width: min(760px, 100%); text-align: left; display: grid; gap: 18px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 7vw, 56px); line-height: 1.05; }
.hero p { font-size: 18px; color: var(--muted); margin: 0; max-width: 46ch; }
.hero .acciones { display: flex; gap: 10px; flex-wrap: wrap; }
.pasos { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.pasos div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.pasos b { display: block; margin-bottom: 2px; }
.pasos span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .pasos { grid-template-columns: minmax(0,1fr); } }

/* Páginas legales */
.documento { width: min(720px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; }
.documento h1 { font-size: 26px; margin-bottom: 4px; }
.documento h2 { font-size: 17px; margin: 22px 0 6px; }
.documento p, .documento li { color: var(--ink); max-width: 68ch; }
.documento ul { padding-left: 20px; }
.documento .fecha { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.pie-legal { margin-top: 26px; font-size: 13px; color: var(--muted); }
.pie-legal a { color: var(--muted); }

/* ---------- panel ---------- */
.panel-top { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line);
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
.panel-top .in { max-width: 860px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.panel-top .marca { font-family: var(--font-display); font-size: 20px; text-decoration: none; color: var(--ink); }
.panel-top .marca b { color: var(--accent); font-weight: 400; }
.panel-top .tienda { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.panel-top .tienda-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32vw; }
.panel-top .tienda-av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-size: 13px;
  color: #fff; background: var(--accent); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent); }
.panel-top .salir button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 10px; padding: 7px 10px; font-size: 13px; font-weight: 700; }
.panel-top .salir button:hover { border-color: var(--danger); color: var(--danger); }
.panel-top .salir svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 380px) { .panel-top .salir span { display: none; } }
.panel-main { max-width: 860px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 16px; }
.panel-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--surface); border-top: 1px solid var(--line);
  padding: 0 max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px)); }
.panel-nav .in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.panel-nav a { display: grid; justify-items: center; gap: 2px; padding: 9px 4px 10px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-decoration: none; position: relative; }
.panel-nav a svg { width: 23px; height: 23px; fill: currentColor; }
.panel-nav a[aria-current="page"] { color: var(--accent); }
.panel-nav .bdg { position: absolute; top: 4px; left: calc(50% + 6px); background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: 10.5px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; }

.panel-main > *, .bloque, .form > * { min-width: 0; }
.titulo { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.titulo h1 { font-size: 22px; }
.bloque { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.bloque h2 { font-size: 15px; margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 12px; text-decoration: none; color: inherit; min-width: 0; }
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat.hot { background: var(--accent); color: var(--accent-ink); }
.stat.hot span { color: inherit; opacity: .85; }
.linkbox { display: flex; align-items: center; gap: 8px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 9px 10px; }
.linkbox code { flex: 1; min-width: 0; font-family: var(--font-body); font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.barra i { display: block; height: 100%; background: var(--accent); border-radius: 8px; }
.pasos-lista { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pasos-lista li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.pasos-lista .ck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.pasos-lista .hecho .ck { background: var(--ok); border-color: var(--ok); color: #fff; }
.pasos-lista .hecho span { color: var(--muted); text-decoration: line-through; }

/* Lista de productos */
.plist { display: grid; gap: 8px; }
.pitem { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.pitem.oculto { opacity: .6; }
.pitem .foto { width: 58px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-family: var(--font-display); color: var(--muted); }
.pitem .foto img { width: 100%; height: 100%; object-fit: cover; }
.pitem .n { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); text-decoration: none; display: block; }
.pitem .m { font-size: 12.5px; color: var(--muted); }
.pitem .acc { display: flex; gap: 6px; align-items: center; }
.low { color: var(--warn); font-weight: 800; }
.vacio { text-align: center; padding: 30px 16px; color: var(--muted); }
.vacio b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* Formulario de producto */
.fotos-actuales { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.fotos-actuales figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); aspect-ratio: 1; }
.fotos-actuales figure.principal { border-color: var(--accent); }
.fotos-actuales img { width: 100%; height: 100%; object-fit: cover; }
.fotos-actuales .acc { position: absolute; inset: auto 4px 4px 4px; display: flex; gap: 4px; justify-content: space-between; }
.fotos-actuales .acc button { border: 0; border-radius: 7px; padding: 3px 6px; font-size: 11px; font-weight: 800; background: rgba(20,10,25,.72); color: #fff; }
.fotos-actuales .tagp { position: absolute; top: 4px; left: 4px; font-size: 10px; padding: 1px 6px; }
.tallas { display: grid; gap: 6px; }
.talla-fila { display: grid; grid-template-columns: minmax(0,1fr) 110px 40px; gap: 6px; align-items: center; }
.talla-fila input { width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 10px; }
.talla-fila button { border: 0; background: var(--surface-2); border-radius: 10px; height: 40px; font-size: 18px; font-weight: 700; color: var(--muted); }
.form-pie { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); background: var(--bg); padding: 10px 0; display: flex; gap: 10px; }
.form-pie .btn { flex: 1; }

/* Pedidos */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tab { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; color: var(--ink); }
.tab[aria-current="page"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.pedido { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; }
.pedido .cab { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pedido .cab b { font-size: 15px; }
.pedido .cod { font-family: var(--font-display); font-size: 14px; background: var(--tag); color: var(--tag-ink); padding: 1px 8px; border-radius: 6px; }
.pedido ul { margin: 0; padding-left: 18px; font-size: 14px; }
.pedido .tot { display: flex; justify-content: space-between; font-weight: 800; border-top: 1px solid var(--line); padding-top: 8px; font-variant-numeric: tabular-nums; }
.pedido .acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.pedido .acciones form { display: contents; }

/* Aviso de nueva versión (PWA) */
.actualizar { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 30; max-width: 520px; margin: 0 auto;
  background: var(--ink); color: var(--surface); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }
.actualizar span { flex: 1; font-size: 14px; font-weight: 600; }
.actualizar button { border: 0; border-radius: 10px; background: var(--tag); color: var(--tag-ink); font-weight: 800; padding: 8px 12px; }

.tagp { background: var(--tag); color: var(--tag-ink); font-family: var(--font-display); font-weight: 400; padding: 1px 8px; border-radius: 6px; display: inline-block; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: var(--ink); color: var(--surface);
  padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; max-width: calc(100% - 32px); text-align: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- acceso: recuperar contraseña ---------- */
.label-fila { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.label-fila a { font-size: 13px; font-weight: 700; text-decoration: none; }
.icono-tarjeta { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px;
  background: color-mix(in srgb, var(--accent) 13%, var(--surface)); color: var(--accent); }
.icono-tarjeta.ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }
.icono-tarjeta.aviso { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); color: var(--warn); }
.icono-tarjeta svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tarjeta.centrada { text-align: center; }
.tarjeta.centrada .icono-tarjeta { margin-inline: auto; }
.lista-ayuda { text-align: left; margin: 0 0 18px; padding: 12px 14px 12px 32px; background: var(--surface-2); border-radius: 12px; font-size: 14px; display: grid; gap: 4px; }
.datos-cuenta { margin: 0 0 18px; background: var(--surface-2); border-radius: 12px; padding: 10px 14px; display: grid; gap: 6px; }
.datos-cuenta div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.datos-cuenta dt { color: var(--muted); font-size: 13px; }
.datos-cuenta dd { margin: 0; font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.con-ojo { position: relative; }
.con-ojo input { padding-right: 76px !important; }
.con-ojo .ojo { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--surface-2); color: var(--ink);
  border-radius: 8px; padding: 5px 10px; font-size: 12.5px; font-weight: 700; }

/* ---------- inicio del panel ---------- */
.saludo { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.saludo h1 { font-size: 24px; }
.fecha-hoy { margin: 0 0 2px; font-size: 13px; color: var(--muted); font-weight: 600; }
.chip-plan { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 800; text-decoration: none;
  background: var(--tag); color: var(--tag-ink); }
.chip-plan::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; }
.chip-plan.basico, .chip-plan.pro { background: var(--ink); color: var(--surface); }

.vitrina-link { position: relative; overflow: hidden; border-radius: 20px; padding: 18px 18px 16px; color: #fff; background: #24162f; isolation: isolate; }
.vitrina-link::before, .vitrina-link::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; border: 3px dashed #d6336c; opacity: .55; }
.vitrina-link::before { width: 180px; height: 180px; right: -50px; top: -60px; }
.vitrina-link::after { width: 120px; height: 120px; right: -20px; top: -30px; border-style: solid; border-color: #ffd84d; opacity: .35; }
.vl-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.vl-tienda { font-weight: 800; }
.vl-estado { display: inline-flex; align-items: center; gap: 6px; color: #e9dcf2; margin-right: 72px; }
.vl-estado i { width: 8px; height: 8px; border-radius: 50%; background: #4cc38a; box-shadow: 0 0 0 4px rgba(76,195,138,.22); }
.vl-url { font-family: var(--font-display); font-size: clamp(19px, 5.4vw, 28px); margin: 10px 0 14px; overflow-wrap: anywhere; line-height: 1.15; }
.vl-acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.vl-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff;
  border-radius: 11px; padding: 9px 13px; font-weight: 700; font-size: 14px; text-decoration: none; }
.vl-btn:hover { background: rgba(255,255,255,.16); }
.vl-btn.fuerte { background: #d6336c; border-color: #d6336c; }
.vl-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .vitrina-link { background: #2d1d3a; border: 1px solid var(--line); } }

.numeros { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
@media (max-width: 700px) { .numeros { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.num { position: relative; display: grid; align-content: start; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 13px;
  text-decoration: none; color: inherit; min-width: 0; }
a.num:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.num b { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.num b small { font-size: 14px; color: var(--muted); }
.num > span:not(.num-ico) { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.num-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 6px; background: var(--surface-2); color: var(--accent); }
.num-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num.alerta { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.num.alerta > span:not(.num-ico) { color: inherit; opacity: .9; }
.num.alerta .num-ico { background: rgba(255,255,255,.2); color: inherit; }
.num.alerta::after { content: ""; position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--tag); animation: latido 1.6s ease-in-out infinite; }
@keyframes latido { 50% { transform: scale(1.6); opacity: .5; } }
.num-barra { display: block; height: 5px; border-radius: 5px; background: var(--surface-2); margin-top: 7px; overflow: hidden; }
.num-barra i { display: block; height: 100%; background: var(--accent); border-radius: 5px; }

.atajos { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.atajos a { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 4px 2px; }
.atajos span { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent); transition: transform .15s; }
.atajos a:hover span { transform: translateY(-2px); border-color: var(--accent); }
.atajos a:first-child span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.atajos svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.bloque { border-radius: 18px; padding: 16px; }
.bloque-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.bloque-cab h2 { margin: 0; }
.bloque-cab a { font-weight: 700; text-decoration: none; }
.bloque h3.sub { font-size: 13px; margin: 16px 0 6px; }
.dos-col { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
@media (max-width: 700px) { .dos-col { grid-template-columns: minmax(0,1fr); } }

.pasos-bloque { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 16px; align-items: center; }
.anillo { --p: 0; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--surface-2) 0); }
.anillo span { width: 60px; height: 60px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--font-display); font-size: 16px; }
.enlace { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; font-size: 14px; text-align: left; }

.barras { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; height: 150px; }
.barra-dia { display: grid; grid-template-rows: 18px 1fr 18px; gap: 4px; border: 0; background: none; padding: 0; color: var(--muted); border-radius: 10px; }
.bd-n { font-size: 12px; font-weight: 800; color: var(--ink); }
.bd-col { display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 9px; overflow: hidden; }
.bd-col i { display: block; width: 100%; background: color-mix(in srgb, var(--accent) 45%, var(--surface-2)); border-radius: 9px; transition: background .15s; }
.barra-dia.hoy .bd-col i, .barra-dia.activa .bd-col i { background: var(--accent); }
.barra-dia.hoy .bd-dia { color: var(--accent); }
.bd-dia { font-size: 11.5px; font-weight: 700; }
.detalle-dia { margin: 10px 0 0; min-height: 1.5em; }

.ultimos { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ultimos a { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 7px 6px; border-radius: 12px; text-decoration: none; color: inherit; }
.ultimos a:hover { background: var(--surface-2); }
.u-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; color: var(--accent); }
.u-txt, .u-der { display: grid; min-width: 0; }
.u-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-txt small { color: var(--muted); font-size: 12px; }
.u-der { justify-items: end; font-variant-numeric: tabular-nums; }
.u-der b { font-size: 14px; }
.estado-p { font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.estado-p.pendiente { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: var(--warn); }
.estado-p.confirmado { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok); }
.estado-p.cancelado { background: var(--surface-2); color: var(--muted); }
.vacio-mini { background: var(--surface-2); border-radius: 14px; padding: 14px; display: grid; gap: 10px; justify-items: start; }
.vacio-mini p { margin: 0; font-size: 14px; color: var(--muted); }

.top-vistos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.top-vistos a { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 10px; align-items: center; text-decoration: none; color: inherit; padding: 4px; border-radius: 12px; }
.top-vistos a:hover { background: var(--surface-2); }
.tv-foto { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-family: var(--font-display); color: var(--muted); }
.tv-foto img { width: 100%; height: 100%; object-fit: cover; }
.tv-txt { display: grid; gap: 5px; min-width: 0; }
.tv-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-barra { display: block; height: 6px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.tv-barra i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.tv-n { display: grid; justify-items: end; font-weight: 800; font-variant-numeric: tabular-nums; }
.tv-n small { font-size: 11px; color: var(--muted); font-weight: 600; }
.reponer { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.reponer li { display: flex; justify-content: space-between; gap: 10px; }
.reponer a { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mejora { display: grid; gap: 14px; align-content: start; background: linear-gradient(160deg, color-mix(in srgb, var(--tag) 30%, var(--surface)), var(--surface) 60%); }
.mejora-vista { display: flex; align-items: flex-end; gap: 6px; height: 74px; filter: blur(1.5px); opacity: .75; }
.mejora-vista span { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 40%, var(--surface))); }
.mejora-txt h2 { font-size: 17px; margin-bottom: 4px; }
.mejora-txt p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }

.consejo { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; background: var(--surface-2); border-radius: 18px; padding: 14px 16px; }
.consejo h2 { font-size: 13px; color: var(--muted); margin: 0 0 2px; }
.consejo p { margin: 0; font-size: 14.5px; font-weight: 600; }
.consejo p.entra { animation: entra .35s ease-out; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } }
.consejo-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--tag); color: var(--tag-ink); display: grid; place-items: center; }
.consejo-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Dibujos de productos de muestra (portada y pantallas de acceso) */
.dib.blusa, .t-foto.blusa { background: #fbd5e3; --dibujo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M35 20 50 28 65 20 84 34 75 49 68 45V84H32V45L25 49 16 34Z' fill='%23d6336c'/%3E%3Cpath d='M41 22Q50 36 59 22' fill='none' stroke='%23fbd5e3' stroke-width='3'/%3E%3C/svg%3E"); }
.dib.bolso, .t-foto.bolso { background: #fde7a6; --dibujo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M35 46Q35 20 50 20T65 46' fill='none' stroke='%238a5a2b' stroke-width='5'/%3E%3Crect x='22' y='42' width='56' height='42' rx='9' fill='%23b07a3e'/%3E%3Cpath d='M22 56h56M22 70h56' stroke='%23d9a066' stroke-width='3'/%3E%3C/svg%3E"); }
.dib.zapa, .t-foto.zapa { background: #d6e9fb; --dibujo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M14 64Q16 44 30 42L44 40Q50 52 64 55L82 59Q90 61 88 70H14Z' fill='%23fff' stroke='%2324162f' stroke-width='3'/%3E%3Cpath d='M14 70h74v7H14z' fill='%2324162f'/%3E%3Cpath d='M33 46l6 10M40 43l6 10' stroke='%23d6336c' stroke-width='3'/%3E%3C/svg%3E"); }
.dib.aretes, .t-foto.aretes { background: #e7dcf6; --dibujo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='32' cy='26' r='4' fill='%23c9971c'/%3E%3Ccircle cx='32' cy='52' r='17' fill='none' stroke='%23e0b33a' stroke-width='6'/%3E%3Ccircle cx='68' cy='26' r='4' fill='%23c9971c'/%3E%3Ccircle cx='68' cy='52' r='17' fill='none' stroke='%23e0b33a' stroke-width='6'/%3E%3C/svg%3E"); }
.dib.vestido, .t-foto.vestido { background: #d4f0e0; --dibujo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M40 14h20l-2 18 22 52H20l22-52z' fill='%231d8556'/%3E%3Ccircle cx='38' cy='62' r='4' fill='%23ffd84d'/%3E%3Ccircle cx='58' cy='72' r='4' fill='%23ffd84d'/%3E%3Ccircle cx='52' cy='50' r='3.5' fill='%23fff'/%3E%3C/svg%3E"); }
.dib.gorra, .t-foto.gorra { background: #ffe0cc; --dibujo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M22 62Q22 30 50 30T78 62Z' fill='%23e8590c'/%3E%3Cpath d='M70 62h18q2 8-10 8H22v-8z' fill='%23b8450a'/%3E%3Ccircle cx='50' cy='29' r='4' fill='%23b8450a'/%3E%3Cpath d='M38 50l6-8 6 8 6-8' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E"); }
