/* ==========================================================================
   KIOSKLY (kioskly.store, conectada a estudiantina.online)
   Identidad propia, distinta del portal: claro por defecto (oscuro automático),
   Bricolage Grotesque, negro con un solo acento bordó, esquinas rectas en todo
   (radio 0) y sombras duras tipo sticker en lo que se toca.
   ========================================================================== */

:root {
  --bg: #eef0f3;
  --surface: #fbfbfc;
  --surface-2: #e2e5ea;
  --ink: #121316;
  --ink-2: #474b54;
  --ink-3: #6f747e;
  --line: rgba(18, 19, 22, 0.12);
  --line-strong: rgba(18, 19, 22, 0.85);
  /* Acento de Kioskly: bordó (antes verde lima; el nombre --lime quedó por compatibilidad con los temas) */
  --lime: #8c1736;
  --lime-soft: rgba(140, 23, 54, 0.12);
  --on-lime: #ffffff;
  /* Bordó más claro para cuando va sobre una franja negra (cinta, avisos) */
  --lime-sobre-negro: #e35d82;
  --ok: #17803f;
  --warn: #a86b00;
  --bad: #d23b3f;
  --wa: #25d366;
  --shadow-hard: 4px 4px 0 var(--ink);
  --shadow-soft: 0 18px 40px -18px rgba(18, 19, 22, 0.35);

  --font: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --header-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f11;
    --surface: #17181b;
    --surface-2: #23252a;
    --ink: #f0f1f3;
    --ink-2: #b3b7bf;
    --ink-3: #8a8f99;
    --line: rgba(240, 241, 243, 0.12);
    --line-strong: rgba(240, 241, 243, 0.8);
    --lime: #a81e44;
    --lime-soft: rgba(168, 30, 68, 0.22);
    --lime-sobre-negro: #8c1736;
    --ok: #4cc77a;
    --warn: #f0b43c;
    --bad: #ff6b6e;
    --shadow-hard: 4px 4px 0 var(--lime);
    --shadow-soft: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }
html { scroll-padding-top: calc(var(--header-h) + 72px); -webkit-text-size-adjust: 100%; }
body.st-body {
  min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--on-lime); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ph { line-height: 1; }

.st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st-skip { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: 0.6rem 1rem; background: var(--lime); color: var(--on-lime); font-weight: 700; }
.st-skip:focus { top: 0.75rem; }
.st-wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.st-main { flex: 1; outline: none; }
.st-kicker { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.st-cargando { padding: 3rem 0; color: var(--ink-3); }
.st-error { padding: 1.5rem 0; color: var(--bad); font-weight: 600; }
.st-fine { font-size: 0.84rem; color: var(--ink-3); line-height: 1.5; }
.st-fine strong { color: var(--ink); }

/* Entrada de cada vista */
.st-enter > * { animation: st-rise 0.6s var(--ease) both; }
.st-enter > *:nth-child(2) { animation-delay: 0.06s; }
.st-enter > *:nth-child(3) { animation-delay: 0.12s; }
@keyframes st-rise { from { opacity: 0; transform: translateY(18px); } }

/* Aparición al bajar (IntersectionObserver agrega .is-in) */
.st-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.st-reveal.is-in { opacity: 1; transform: none; }

/* ---------- cabecera ---------- */
.st-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(160%); border-bottom: 1.5px solid var(--ink); }
.st-header-inner { height: var(--header-h); display: flex; align-items: center; gap: 1.75rem; }
.st-wordmark { display: inline-flex; align-items: center; font-weight: 800; font-size: 1.55rem; letter-spacing: -0.045em; white-space: nowrap; }
.st-wordmark span { margin-left: 0.04em; padding: 0 0.16em 0.04em 0.1em; background: var(--lime); color: var(--on-lime); letter-spacing: -0.03em; transform: rotate(-4deg); transition: transform 0.4s var(--spring); }
.st-wordmark:hover span { transform: rotate(3deg) scale(1.06); }
.st-wordmark--sm { font-size: 1.1rem; }
.st-wordmark--tema img { height: 40px; width: auto; animation: st-fade 0.5s var(--ease); }
.st-header-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border: 1.5px solid var(--ink); padding: 0.15rem 0.5rem; }
.st-header-nav { display: flex; gap: 0.25rem; font-weight: 600; font-size: 0.95rem; }
.st-header-nav a { position: relative; padding: 0.4rem 0.75rem; }
.st-header-nav a::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.1rem; height: 3px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.st-header-nav a:hover::after, .st-header-nav a.is-active::after { transform: scaleX(1); }
.st-header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }

.st-cart-btn { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; height: 44px; padding: 0 1rem; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 0.92rem; transition: transform 0.15s; }
.st-cart-btn .ph { font-size: 1.25rem; }
.st-cart-btn:active { transform: translateY(1px); }
/* Botón de modo claro / oscuro (js/modo.js) */
.st-modo-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); cursor: pointer; transition: background 0.2s, transform 0.15s; }
.st-modo-btn:hover { background: var(--lime); color: var(--on-lime); }
.st-modo-btn:active { transform: translateY(1px); }
.st-modo-btn .ph { font-size: 1.25rem; }
.st-modo-btn.is-girando > * { animation: st-modo-giro 0.5s var(--spring); }
@keyframes st-modo-giro { from { opacity: 0; transform: rotate(-90deg) scale(0.5); } }
/* Al cambiar de modo los colores pasan suave en lugar de saltar */
.st-modo-cambio, .st-modo-cambio * { transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease !important; }
.st-cart-count { min-width: 1.4rem; height: 1.4rem; padding: 0 0.35rem; display: inline-grid; place-items: center; background: var(--lime); color: var(--on-lime); font-size: 0.78rem; font-weight: 800; }
.st-cart-count.is-bump { animation: st-bump 0.55s var(--spring); }
@keyframes st-bump { 30% { transform: scale(1.55) rotate(-8deg); } 60% { transform: scale(0.9); } }

.st-link-sm { font-size: 0.9rem; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--line); transition: color 0.2s, text-decoration-color 0.2s; }
.st-link-sm:hover { color: var(--ink); text-decoration-color: var(--lime); }
.st-link-inline { font-weight: 700; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.st-who { font-size: 0.85rem; color: var(--ink-3); }
.st-cuenta { display: flex; align-items: center; gap: 0.75rem; }

.st-menu { position: relative; }
.st-menu summary { list-style: none; cursor: pointer; }
.st-menu summary::-webkit-details-marker { display: none; }
.st-menu summary img, .st-avatar { width: 40px; height: 40px; object-fit: cover; border: 1.5px solid var(--ink); }
.st-avatar { display: grid; place-items: center; background: var(--lime); color: var(--on-lime); font-weight: 800; }
.st-menu-pop { position: absolute; right: 0; top: calc(100% + 0.6rem); min-width: 230px; padding: 0.4rem; background: var(--surface); border: 1.5px solid var(--ink); box-shadow: var(--shadow-hard); display: flex; flex-direction: column; animation: st-pop 0.3s var(--spring); transform-origin: top right; }
@keyframes st-pop { from { opacity: 0; transform: scale(0.92) translateY(-6px); } }
.st-menu-pop a, .st-menu-pop button { text-align: left; padding: 0.6rem 0.75rem; font-weight: 600; font-size: 0.93rem; }
.st-menu-pop a:hover, .st-menu-pop button:hover { background: var(--lime); color: var(--on-lime); }
.st-menu-who { padding: 0.55rem 0.75rem 0.75rem; margin-bottom: 0.3rem; border-bottom: 1.5px solid var(--line); font-weight: 700; }
.st-menu-who span { display: block; font-weight: 400; font-size: 0.8rem; color: var(--ink-3); overflow-wrap: anywhere; }

/* ---------- botones y chips ---------- */
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 50px; padding: 0.75rem 1.5rem; white-space: nowrap;
  background: var(--lime); color: var(--on-lime); border: 1.5px solid #121316;
  font-weight: 700; font-size: 1rem; box-shadow: 4px 4px 0 #121316;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.2s;
}
.st-btn .ph { font-size: 1.2rem; }
.st-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #121316; }
.st-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #121316; }
.st-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 #121316; }
.st-btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.st-btn--ghost:hover { box-shadow: 6px 6px 0 var(--ink); }
.st-btn--ghost:active { box-shadow: 0 0 0 var(--ink); }
.st-btn--danger { background: var(--surface); color: var(--bad); border-color: var(--bad); box-shadow: 4px 4px 0 var(--bad); }
.st-btn--danger:hover { box-shadow: 6px 6px 0 var(--bad); }
.st-btn--danger:active { box-shadow: 0 0 0 var(--bad); }
.st-btn--wa { background: var(--wa); color: #06210f; }
.st-btn--block { width: 100%; }
.st-btn--sm { min-height: 38px; padding: 0.4rem 0.95rem; font-size: 0.88rem; box-shadow: 3px 3px 0 #121316; }
.st-btn--ghost.st-btn--sm { box-shadow: 3px 3px 0 var(--ink); }

.st-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.6rem; font-size: 0.76rem; font-weight: 700; white-space: nowrap; border: 1.5px solid currentColor; }
.st-chip--espera { color: var(--warn); }
.st-chip--aviso { color: var(--ink); background: var(--lime-soft); }
.st-chip--ok { color: var(--ok); }
.st-chip--fin { color: var(--ink-3); }
.st-chip--mal { color: var(--bad); }

/* ---------- portada ---------- */
.st-hero { position: relative; padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.st-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .st-hero-grid { grid-template-columns: 1fr; } }
.st-hero-title { font-weight: 800; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.045em; isolation: isolate; }
.st-hero-title .w { display: inline-block; animation: st-word 0.8s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
@keyframes st-word { from { opacity: 0; transform: translateY(0.5em) rotate(4deg); } }
.st-hero-title mark { background: none; color: var(--on-lime); position: relative; white-space: nowrap; }
.st-hero-title mark::before { content: ""; position: absolute; z-index: -1; left: -0.08em; right: -0.08em; top: 0.08em; bottom: 0.04em; background: var(--lime); transform: scaleX(0); transform-origin: left; animation: st-marker 0.7s var(--ease) 0.75s forwards; }
@keyframes st-marker { to { transform: scaleX(1); } }
.st-hero-lead { margin-top: 1.25rem; max-width: 44ch; font-size: 1.12rem; color: var(--ink-2); animation: st-rise 0.7s var(--ease) 0.45s both; }
.st-hero-search { margin-top: 2rem; display: flex; max-width: 560px; border: 1.5px solid var(--ink); background: var(--surface); box-shadow: var(--shadow-hard); animation: st-rise 0.7s var(--ease) 0.6s both; transition: box-shadow 0.2s, transform 0.2s; }
.st-hero-search:focus-within { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
@media (prefers-color-scheme: dark) { .st-hero-search:focus-within { box-shadow: 6px 6px 0 var(--lime); } }
.st-hero-search > .ph { align-self: center; margin-left: 1rem; font-size: 1.3rem; color: var(--ink-3); }
.st-hero-search input { flex: 1; min-width: 0; padding: 1rem 0.75rem; background: none; border: 0; outline: none; font-size: 1.05rem; }
.st-hero-search input::placeholder { color: var(--ink-3); }
.st-hero-search button { padding: 0 1.4rem; background: var(--ink); color: var(--bg); font-weight: 700; transition: background 0.2s, color 0.2s; }
.st-hero-search button:hover { background: var(--lime); color: var(--on-lime); }
.st-hero-alt { margin-top: 1.4rem; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; animation: st-rise 0.7s var(--ease) 0.7s both; }
.st-hero-alt .ph { transition: transform 0.3s var(--ease); }
.st-hero-alt:hover .ph { transform: translateX(5px); }

.st-collage { position: relative; height: clamp(340px, 42vw, 520px); }
@media (max-width: 860px) { .st-collage { height: 340px; max-width: 520px; width: 100%; margin-inline: auto; } }
.st-collage-item { position: absolute; width: 52%; aspect-ratio: 4 / 5; border: 1.5px solid var(--ink); background: var(--surface-2); box-shadow: var(--shadow-soft); overflow: hidden; transform: rotate(var(--r)); animation: st-drop 0.9s var(--spring) both; transition: transform 0.5s var(--ease); }
.st-collage-item img { width: 100%; height: 100%; object-fit: cover; }
.st-collage-item:nth-child(1) { left: 0; top: 10%; --r: -7deg; animation-delay: 0.3s; z-index: 1; }
.st-collage-item:nth-child(2) { left: 26%; top: 0; --r: 3deg; animation-delay: 0.45s; z-index: 2; }
.st-collage-item:nth-child(3) { right: 0; top: 18%; --r: 9deg; animation-delay: 0.6s; z-index: 3; }
.st-collage-item:hover { transform: rotate(0deg) translateY(-12px) scale(1.04); z-index: 5; }
@keyframes st-drop { from { opacity: 0; transform: translateY(-60px) rotate(calc(var(--r) * -2)); } }
.st-collage-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.6rem 0.75rem; background: var(--surface); border-top: 1.5px solid var(--ink); font-size: 0.85rem; font-weight: 700; display: flex; justify-content: space-between; gap: 0.5rem; }
.st-collage-cap span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-collage-cap span:last-child { font-variant-numeric: tabular-nums; }
.st-sticker { position: absolute; z-index: 6; right: 4%; bottom: 2%; width: 128px; height: 128px; display: grid; place-items: center; text-align: center; padding: 1rem; background: var(--lime); color: var(--on-lime); border: 1.5px solid #121316; font-weight: 800; font-size: 1.05rem; line-height: 1.05; letter-spacing: -0.02em; transform: rotate(-12deg); box-shadow: 4px 4px 0 #121316; animation: st-stamp 0.7s var(--spring) 1.05s both; transition: transform 0.4s var(--spring); }
.st-sticker:hover { transform: rotate(6deg) scale(1.08); }
@keyframes st-stamp { from { opacity: 0; transform: rotate(-40deg) scale(2.2); } }
@media (max-width: 860px) { .st-sticker { width: 104px; height: 104px; font-size: 0.92rem; } }

/* Cinta de emprendimientos (única marquesina de la página) */
.st-marquee { border-block: 1.5px solid var(--ink); background: var(--ink); color: var(--bg); overflow: hidden; }
.st-marquee-track { display: flex; width: max-content; animation: st-marquee 38s linear infinite; }
.st-marquee:hover .st-marquee-track { animation-play-state: paused; }
.st-marquee-track a { display: inline-flex; align-items: center; gap: 1.25rem; padding: 0.9rem 0 0.9rem 1.25rem; font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.8rem); letter-spacing: -0.03em; white-space: nowrap; transition: color 0.2s; }
.st-marquee-track a:hover { color: var(--lime-sobre-negro); }
.st-marquee-track .ph { color: var(--lime-sobre-negro); font-size: 0.8em; }
@keyframes st-marquee { to { transform: translateX(-50%); } }

/* ---------- catálogo ---------- */
.st-catalogo { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: 5rem; }
.st-catalogo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.st-h2 { font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.04em; line-height: 1; }
.st-h2 small { font-size: 0.42em; font-weight: 600; letter-spacing: 0; color: var(--ink-3); margin-left: 0.4rem; vertical-align: middle; }
.st-toolbar-cat { position: sticky; top: var(--header-h); z-index: 20; display: flex; gap: 0.75rem; align-items: center; padding: 0.75rem 0; margin-bottom: 1.5rem; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); }
.st-buscar { position: relative; flex: 0 1 300px; }
.st-buscar .ph { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.st-buscar input { padding-left: 2.4rem !important; }
.st-orden { flex: 0 0 auto; }
.st-buscar input, .st-orden select, .st-field input, .st-field select, .st-field textarea, .st-tienda-sel,
.st-informar input, .st-miembro-add input, .st-miembro-add select, .st-admin-top select {
  width: 100%; min-height: 46px; padding: 0.65rem 0.9rem;
  background: var(--surface); border: 1.5px solid var(--ink); outline: none;
  transition: box-shadow 0.2s var(--ease);
}
.st-buscar input:focus, .st-orden select:focus, .st-field :is(input, select, textarea):focus, .st-informar input:focus, .st-tienda-sel:focus { box-shadow: 4px 4px 0 var(--lime); }
.st-field input::placeholder, .st-field textarea::placeholder, .st-buscar input::placeholder, .st-informar input::placeholder { color: var(--ink-3); }
.st-cats { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px 6px 6px 2px; }
.st-cats::-webkit-scrollbar { display: none; }
.st-cat { flex: none; padding: 0.5rem 0.95rem; border: 1.5px solid var(--ink); background: var(--surface); font-size: 0.9rem; font-weight: 600; white-space: nowrap; transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.st-cat:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.st-cat.is-active { background: var(--ink); color: var(--bg); transform: none; box-shadow: none; }
@media (max-width: 760px) {
  .st-toolbar-cat { flex-wrap: wrap; }
  .st-buscar { flex: 1 1 60%; }
  .st-cats { order: 3; flex: 1 1 100%; }
}

.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(1.5rem, 2.5vw, 2.25rem) clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 540px) { .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 0.8rem; } }
.st-card-link { display: block; }
.st-card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); border: 1.5px solid var(--ink); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.st-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.st-card-link:hover .st-card-media { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--ink); }
@media (prefers-color-scheme: dark) { .st-card-link:hover .st-card-media { box-shadow: 6px 6px 0 var(--lime); } }
.st-card-link:hover .st-card-media img { transform: scale(1.07); }
.st-card-ver { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.7rem; background: var(--lime); color: var(--on-lime); border-top: 1.5px solid #121316; font-weight: 700; font-size: 0.9rem; transform: translateY(101%); transition: transform 0.4s var(--ease); }
.st-card-link:hover .st-card-ver, .st-card-link:focus-visible .st-card-ver { transform: none; }
@media (hover: none) { .st-card-ver { display: none; } }
.st-card-sinfoto { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; font-size: 3.2rem; color: var(--ink-3); background: var(--surface-2); }
.st-card-sinfoto--lg { font-size: 7rem; aspect-ratio: 4 / 5; }
.st-card-agotado { position: absolute; left: 0; top: 0.9rem; padding: 0.25rem 0.65rem; background: var(--ink); color: var(--bg); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.st-card-body { padding-top: 0.85rem; display: grid; gap: 0.15rem; }
.st-card-tienda { font-size: 0.84rem; font-weight: 600; color: var(--ink-3); }
a.st-card-tienda:hover { color: var(--ink); }
.st-card-title { font-weight: 700; font-size: 1.04rem; line-height: 1.25; letter-spacing: -0.01em; }
.st-card-precio { margin-top: 0.3rem; justify-self: start; padding: 0.05rem 0.4rem; background: var(--lime-soft); font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* Esqueletos */
.st-skel { background: linear-gradient(100deg, var(--surface-2) 30%, color-mix(in srgb, var(--surface-2) 40%, var(--surface)) 50%, var(--surface-2) 70%); background-size: 300% 100%; animation: st-shimmer 1.4s linear infinite; }
@keyframes st-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.st-skel-media { aspect-ratio: 4 / 5; border: 1.5px solid var(--line); }
.st-skel-line { height: 0.85rem; margin-top: 0.8rem; width: 70%; }
.st-skel-line + .st-skel-line { width: 40%; margin-top: 0.45rem; }

.st-mas { display: flex; justify-content: center; padding-top: 2.75rem; }

.st-vacio { padding: clamp(3rem, 8vw, 5.5rem) 1rem; text-align: center; display: grid; justify-items: center; gap: 0.7rem; }
.st-vacio-icon { width: 76px; height: 76px; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); border: 1.5px solid #121316; font-size: 2.2rem; transform: rotate(-6deg); box-shadow: 4px 4px 0 #121316; animation: st-float 3.5s ease-in-out infinite; }
@keyframes st-float { 50% { transform: rotate(4deg) translateY(-6px); } }
.st-vacio h2 { font-weight: 800; font-size: 1.9rem; letter-spacing: -0.03em; margin-top: 0.6rem; }
.st-vacio p { color: var(--ink-2); max-width: 46ch; }
.st-vacio .st-btn { margin-top: 0.9rem; }
/* Tienda sin productos todavía */
.st-proximamente { margin: clamp(1rem, 4vw, 2.5rem) auto 0; max-width: 620px; padding: clamp(2.5rem, 7vw, 4.5rem) 1.5rem; text-align: center; display: grid; justify-items: center; gap: 0.8rem; border: 1.5px dashed var(--line-strong); }
.st-proximamente-tag { padding: 0.35rem 0.9rem; background: var(--lime); color: var(--on-lime); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; transform: rotate(-3deg); animation: st-stamp 0.7s var(--spring) 0.2s both; }
.st-proximamente h2 { margin-top: 0.4rem; font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.1; }
.st-proximamente p { color: var(--ink-2); max-width: 44ch; }
.st-proximamente .st-btn { margin-top: 0.6rem; }

/* ---------- páginas ---------- */
.st-page { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 5rem; }
.st-page--angosta { max-width: 820px; }
.st-page-head { margin-bottom: 2.25rem; }
.st-page-title { margin-top: 0.35rem; font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 0.98; letter-spacing: -0.045em; }
.st-page-lead { margin-top: 0.9rem; color: var(--ink-2); max-width: 60ch; font-size: 1.05rem; }
.st-page-lead a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }

/* Emprendimientos */
.st-tiendas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.4rem; }
.st-tienda-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem; min-height: 230px; background: var(--surface); border: 1.5px solid var(--ink); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.st-tienda-card:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--ink); }
@media (prefers-color-scheme: dark) { .st-tienda-card:hover { box-shadow: 6px 6px 0 var(--lime); } }
.st-tienda-card .st-logo { transition: transform 0.4s var(--spring); }
.st-tienda-card:hover .st-logo { transform: rotate(-6deg) scale(1.06); }
.st-tienda-nombre { font-weight: 800; font-size: 1.55rem; line-height: 1.05; letter-spacing: -0.03em; }
.st-tienda-desc { color: var(--ink-2); font-size: 0.93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-tienda-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.9rem; }
.st-tienda-foot .ph { font-size: 1.3rem; transition: transform 0.35s var(--ease); }
.st-tienda-card:hover .st-tienda-foot .ph { transform: translateX(6px); }

.st-logo { width: 56px; height: 56px; object-fit: cover; background: var(--surface-2); border: 1.5px solid var(--ink); flex: none; }
.st-logo--lg { width: 112px; height: 112px; }
.st-logo--vacio { display: grid; place-items: center; background: var(--lime); color: var(--on-lime); font-weight: 800; font-size: 1.6rem; }
.st-logo--lg.st-logo--vacio { font-size: 3rem; }

.st-tienda-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 3vw, 2.25rem); align-items: center; margin-bottom: 2.75rem; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--surface); border: 1.5px solid var(--ink); box-shadow: var(--shadow-hard); }
.st-tienda-head .st-logo--lg { transform: rotate(-4deg); animation: st-stamp 0.7s var(--spring) 0.15s both; }
.st-tienda-bio { margin-top: 0.75rem; color: var(--ink-2); max-width: 62ch; white-space: pre-line; }
.st-tienda-meta { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.st-tienda-meta li { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem; border: 1.5px solid var(--line-strong); font-size: 0.85rem; font-weight: 600; }
.st-tienda-meta a:hover { text-decoration: underline; }
@media (max-width: 600px) { .st-tienda-head { grid-template-columns: 1fr; align-items: start; } }

/* ---------- producto ---------- */
.st-producto { padding-top: 1.5rem; padding-bottom: 5rem; }
.st-migas { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; font-weight: 600; color: var(--ink-3); margin-bottom: 1.5rem; }
.st-migas a:hover { color: var(--ink); }
.st-producto-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.75rem, 4.5vw, 4rem); align-items: start; }
/* minmax(0, …) y min-width: 0: si no, una tira de muchas miniaturas ensancha la columna y la ficha se sale de la pantalla en el celular */
.st-producto-grid > * { min-width: 0; }
@media (max-width: 860px) { .st-producto-grid { grid-template-columns: minmax(0, 1fr); } }
.st-galeria-main { aspect-ratio: 4 / 5; background: var(--surface-2); border: 1.5px solid var(--ink); overflow: hidden; }
.st-galeria-main img { width: 100%; height: 100%; object-fit: cover; animation: st-fade 0.45s var(--ease); }
@keyframes st-fade { from { opacity: 0; transform: scale(1.03); } }
.st-galeria-thumbs { margin-top: 0.75rem; display: flex; gap: 0.6rem; overflow-x: auto; padding: 2px; }
.st-galeria-thumbs button { flex: none; width: 76px; height: 76px; overflow: hidden; border: 1.5px solid var(--line); opacity: 0.6; transition: opacity 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.st-galeria-thumbs button.is-active, .st-galeria-thumbs button:hover { opacity: 1; border-color: var(--ink); transform: translateY(-2px); }
.st-galeria-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.st-producto-info { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 0.5rem; }
@media (max-width: 860px) { .st-producto-info { position: static; } }
.st-producto-title { font-weight: 800; font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1; letter-spacing: -0.045em; }
.st-producto-precio { justify-self: start; margin-top: 0.4rem; padding: 0.1rem 0.5rem; background: var(--lime); color: var(--on-lime); font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; transform: rotate(-1.5deg); }
.st-compra { margin-top: 1.5rem; display: grid; gap: 1.1rem; }
.st-variantes { border: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; min-inline-size: 0; }
.st-variantes legend { width: 100%; margin-bottom: 0.55rem; font-size: 0.86rem; font-weight: 700; color: var(--ink-2); }
.st-variante { position: relative; }
.st-variante input { position: absolute; opacity: 0; pointer-events: none; }
.st-variante span { display: inline-block; min-width: 3.2rem; padding: 0.6rem 0.95rem; text-align: center; font-weight: 700; background: var(--surface); border: 1.5px solid var(--ink); cursor: pointer; transition: background 0.15s, transform 0.2s var(--spring), box-shadow 0.2s; }
.st-variante span small { display: block; margin-top: 0.1rem; font-size: 0.78em; font-weight: 500; opacity: 0.75; }
.st-variante:hover span { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.st-variante input:checked + span { background: var(--ink); color: var(--bg); transform: none; box-shadow: none; }
.st-variante input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.st-variante.is-off span { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; box-shadow: none; transform: none; }
.st-compra-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: stretch; }
/* Si no entra al lado de la cantidad (celular angosto, letras espaciadas de algún tema), baja a su propia línea */
.st-compra-row .st-btn { flex: 1 1 auto; min-width: 0; }
.st-stepper { display: flex; align-items: stretch; border: 1.5px solid var(--ink); background: var(--surface); }
.st-stepper button { width: 44px; font-size: 1.05rem; display: grid; place-items: center; transition: background 0.15s; }
.st-stepper button:hover { background: var(--lime); color: var(--on-lime); }
.st-stepper input { width: 44px; text-align: center; border: 0; background: none; font-weight: 800; font-variant-numeric: tabular-nums; -moz-appearance: textfield; outline: none; }
.st-stepper input::-webkit-outer-spin-button, .st-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.st-stock { min-height: 1.3em; font-size: 0.88rem; font-weight: 700; color: var(--warn); }
.st-producto-desc { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1.5px solid var(--line); color: var(--ink-2); }
.st-producto-datos { margin-top: 0.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 520px) { .st-producto-datos { grid-template-columns: 1fr; } }
.st-producto-datos div { padding: 1rem; background: var(--surface); border: 1.5px solid var(--line); }
.st-producto-datos dt { display: flex; align-items: center; gap: 0.4rem; font-weight: 800; font-size: 0.92rem; }
.st-producto-datos dt .ph { font-size: 1.15rem; }
.st-producto-datos dd { margin-top: 0.3rem; color: var(--ink-2); font-size: 0.88rem; }

/* Foto que vuela al carrito */
.st-fly { position: fixed; z-index: 90; pointer-events: none; object-fit: cover; border: 1.5px solid var(--ink); box-shadow: var(--shadow-soft); }

/* ---------- carrito ---------- */
.st-checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
@media (max-width: 880px) { .st-checkout { grid-template-columns: 1fr; } }
.st-grupo { padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; background: var(--surface); border: 1.5px solid var(--ink); }
.st-grupo-title { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; padding-bottom: 0.75rem; border-bottom: 1.5px solid var(--line); }
.st-grupo-title .ph { color: var(--ink-3); }
.st-grupo-sub { margin-top: 0.85rem; display: flex; justify-content: space-between; color: var(--ink-2); font-weight: 600; }
.st-grupo-sub strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.st-item, .st-lista-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; align-items: center; padding: 0.9rem 0; }
.st-item + .st-item { border-top: 1.5px dashed var(--line); }
.st-item-img { width: 72px; height: 72px; object-fit: cover; border: 1.5px solid var(--ink); font-size: 1.6rem; }
.st-item-info { display: grid; min-width: 0; }
.st-item-title { font-weight: 700; }
a.st-item-title:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.st-item-var { font-size: 0.85rem; color: var(--ink-3); }
.st-item-precio { font-size: 0.92rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-item-qty { display: flex; align-items: center; border: 1.5px solid var(--ink); background: var(--bg); }
.st-item-qty button { width: 36px; height: 36px; display: grid; place-items: center; transition: background 0.15s; }
.st-item-qty button:hover { background: var(--lime); color: var(--on-lime); }
.st-item-qty span { min-width: 1.75rem; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-checkout-form { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.5rem; background: var(--surface); border: 1.5px solid var(--ink); box-shadow: var(--shadow-hard); display: grid; gap: 1.1rem; }
@media (max-width: 880px) { .st-checkout-form { position: static; } }
.st-total { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 1rem; border-bottom: 1.5px solid var(--ink); font-weight: 700; }
.st-total strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
#st-pedido { display: grid; gap: 1rem; }

/* ---------- formularios ---------- */
.st-field { display: grid; gap: 0.4rem; border: 0; min-width: 0; }
.st-field > span, .st-field > legend { font-size: 0.86rem; font-weight: 700; color: var(--ink-2); }
.st-field small { font-weight: 500; color: var(--ink-3); }
.st-field textarea { resize: vertical; }
.st-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 1rem; }
.st-entrega { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.st-entrega legend { width: 100%; margin-bottom: 0.1rem; }
.st-entrega label { flex: 1 1 140px; display: flex; align-items: center; gap: 0.55rem; padding: 0.7rem 0.85rem; border: 1.5px solid var(--ink); background: var(--bg); font-weight: 700; cursor: pointer; transition: background 0.15s; }
.st-entrega label:has(input:checked) { background: var(--lime); color: var(--on-lime); }
.st-entrega .is-off { opacity: 0.45; cursor: not-allowed; }
.st-check { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; cursor: pointer; }
input[type=radio], input[type=checkbox] { accent-color: #121316; width: 1.1rem; height: 1.1rem; }

.st-login { padding: 1.5rem; background: var(--surface); border: 1.5px solid var(--ink); display: grid; gap: 1rem; justify-items: start; }
.st-checkout-form .st-login { padding: 0; border: 0; }
.st-login p:first-child { font-weight: 600; }
.st-login-btn { min-height: 44px; }
.st-login-fine { font-size: 0.84rem; color: var(--ink-3); }
/* Carrito sin cuenta: Google es opcional */
.st-login-opcional { display: grid; gap: 0.7rem; justify-items: start; padding: 0 0 1.25rem; margin-bottom: 1.25rem; border-bottom: 1.5px dashed var(--line-strong); font-size: 0.93rem; color: var(--ink-2); }
.st-login-opcional strong { color: var(--ink); }
/* Pedido hecho sin cuenta: link para verlo desde otro lado */
.st-pedido-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; margin-top: 1rem; padding: 0.8rem 1rem; background: var(--lime-soft); font-size: 0.9rem; }
.st-pedido-link p { display: flex; align-items: flex-start; gap: 0.45rem; flex: 1 1 260px; }
.st-pedido-link .ph { margin-top: 0.15rem; }

/* ---------- pedidos ---------- */
.st-pedido { padding: 1.5rem; margin-bottom: 1.5rem; background: var(--surface); border: 1.5px solid var(--ink); display: grid; gap: 1.1rem; }
.st-pedido.is-nuevo { box-shadow: 6px 6px 0 var(--lime); }
.st-pedido-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.st-pedido-head > div { min-width: 0; }
@media (max-width: 520px) { .st-pedido-head { flex-direction: column-reverse; gap: 0.6rem; } }
.st-pedido-codigo { display: inline-block; padding: 0.1rem 0.4rem; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; }
.st-pedido-tienda { margin-top: 0.4rem; font-weight: 800; font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.03em; }
.st-pedido-fecha { font-size: 0.84rem; color: var(--ink-3); overflow-wrap: anywhere; }
.st-pedido-items li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; font-size: 0.95rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.st-pedido-items small { color: var(--ink-3); margin-left: 0.25rem; }
.st-pedido-total { margin-top: 0.35rem; padding-top: 0.7rem !important; border-top: 1.5px solid var(--ink); color: var(--ink) !important; font-weight: 800; font-size: 1.05rem !important; }
.st-pago { padding: 1.25rem; background: var(--lime-soft); border: 1.5px solid var(--ink); display: grid; gap: 1rem; }
.st-pago-title { font-size: 1.1rem; font-weight: 600; }
.st-pago-title strong { font-weight: 800; }
.st-pago-datos { display: grid; gap: 0.55rem; }
.st-pago-datos div { display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; gap: 0.75rem; }
.st-pago-datos dt { font-size: 0.82rem; font-weight: 700; color: var(--ink-2); }
.st-pago-datos dd { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; min-width: 0; font-weight: 600; }
.st-pago-datos code { font-family: var(--mono); font-size: 0.98rem; font-weight: 700; overflow-wrap: anywhere; }
.st-copiar { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.6rem; border: 1.5px solid var(--ink); background: var(--surface); transition: background 0.15s, transform 0.25s var(--spring); }
.st-copiar:hover { background: var(--ink); color: var(--bg); }
.st-copiar.is-ok { background: var(--lime); color: var(--on-lime); transform: scale(1.08) rotate(-2deg); }
.st-pago-acciones { display: grid; gap: 0.85rem; }
.st-informar { display: flex; gap: 0.75rem; }
.st-informar input { flex: 1; min-width: 0; }
.st-informar .st-btn { min-height: 46px; }
@media (max-width: 480px) { .st-informar { flex-direction: column; } }
.st-pedido-nota { font-size: 0.93rem; color: var(--ink-2); }
.st-pedido-nota a { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.st-pedido-nota--alerta { padding: 0.8rem 0.95rem; border: 1.5px solid var(--bad); color: var(--ink); background: color-mix(in srgb, var(--bad) 8%, transparent); }
.st-arrepentirse { justify-self: start; }
.st-pedido-datos { display: grid; gap: 0.45rem; font-size: 0.92rem; }
.st-pedido-datos div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.75rem; }
.st-pedido-datos dt { color: var(--ink-3); font-weight: 600; }
.st-pedido-datos dd { overflow-wrap: anywhere; }
.st-pedido-datos a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.st-pedido-acciones { display: flex; flex-wrap: wrap; gap: 0.85rem; }
@media (max-width: 480px) { .st-pedido-datos div { grid-template-columns: 1fr; gap: 0; } }

.st-arrep { display: grid; gap: 1.1rem; }
.st-legal h2 { margin: 2rem 0 0.5rem; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.st-legal p { color: var(--ink-2); }
.st-legal a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }

/* ---------- pie ---------- */
.st-footer { margin-top: auto; border-top: 1.5px solid var(--ink); padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; overflow: hidden; }
.st-footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
@media (max-width: 700px) { .st-footer-inner { grid-template-columns: 1fr; } }
.st-footer-big { font-weight: 800; font-size: clamp(2.6rem, 8.5vw, 7rem); line-height: 0.88; letter-spacing: -0.06em; }
.st-footer-big span { display: inline-block; padding: 0 0.12em 0.06em; background: var(--lime); color: var(--on-lime); transform: rotate(-2deg); }
.st-footer-note a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.st-footer-note { margin-top: 1rem; max-width: 46ch; font-size: 0.92rem; color: var(--ink-2); }
.st-footer-links { display: grid; gap: 0.55rem; font-weight: 600; font-size: 0.95rem; justify-items: start; }
.st-footer-links a { display: inline-flex; align-items: center; gap: 0.4rem; }
.st-footer-links a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 3px; }
/* Subtienda con diseño propio: se ve como una tienda aparte */
.st-footer-credito { display: none; }
body[data-subtienda] .st-header-nav,
body[data-subtienda] .st-footer-big,
body[data-subtienda] .st-footer-note,
body[data-subtienda] #st-portal-link { display: none; }
body[data-subtienda] .st-footer-credito { display: block; font-size: 0.92rem; color: var(--ink-2); }
body[data-subtienda] .st-footer-credito a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 3px; }
body[data-subtienda] .st-footer-inner { align-items: center; }
.st-arrepentimiento-link { padding: 0.45rem 0.7rem; border: 1.5px solid var(--ink); }

/* ---------- avisos ---------- */
.st-toasts { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 95; display: grid; gap: 0.5rem; width: min(92vw, 420px); pointer-events: none; }
.st-toast { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.1rem; background: #121316; color: #f0f1f3; border: 1.5px solid #121316; font-weight: 700; font-size: 0.93rem; box-shadow: 4px 4px 0 var(--lime); animation: st-toast-in 0.5s var(--spring); transition: opacity 0.35s, transform 0.35s var(--ease); }
.st-toast .ph { color: #e35d82; font-size: 1.2rem; }
.st-toast--error { background: var(--bad); border-color: var(--bad); color: #fff; box-shadow: 4px 4px 0 #121316; }
.st-toast--error .ph { color: #fff; }
.st-toast.is-out { opacity: 0; transform: translateY(10px) scale(0.96); }
@keyframes st-toast-in { from { opacity: 0; transform: translateY(24px) scale(0.9); } }

.st-aviso { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.9rem 1rem; margin-bottom: 1.4rem; border: 1.5px solid var(--ink); background: var(--lime-soft); font-weight: 600; font-size: 0.93rem; }

/* ---------- panel ---------- */
.st-panel { padding-top: 2.25rem; padding-bottom: 5rem; }
.st-panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.st-panel-head > div:last-child { display: flex; align-items: center; gap: 0.9rem; }
.st-tienda-sel { margin-top: 0.4rem; width: auto; min-width: 260px; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.st-tabs { display: flex; border: 1.5px solid var(--ink); margin-bottom: 2rem; overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; background: var(--surface); }
.st-tabs button { flex: none; padding: 0.75rem 1.15rem; font-weight: 700; color: var(--ink-2); transition: background 0.2s, color 0.2s; }
.st-tabs button + button { border-left: 1.5px solid var(--ink); }
.st-tabs button:hover { color: var(--ink); background: var(--lime-soft); }
.st-tabs button[aria-selected="true"] { color: var(--on-lime); background: var(--lime); }
.st-tab { animation: st-rise 0.45s var(--ease); }
.st-toolbar { display: flex; justify-content: flex-end; margin-bottom: 1.25rem; }
.st-lista { display: grid; gap: 0.7rem; }
.st-lista-row { grid-template-columns: 72px 1fr auto auto; padding: 0.75rem 1rem 0.75rem 0.75rem; background: var(--surface); border: 1.5px solid var(--ink); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.st-lista-row:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
@media (max-width: 560px) { .st-lista-row { grid-template-columns: 56px 1fr auto; } .st-lista-row .st-chip { display: none; } .st-lista-row .st-item-img { width: 56px; height: 56px; } }

.st-form { display: grid; gap: 1.15rem; max-width: 780px; margin-top: 1rem; }
.st-form--inline { max-width: none; padding: 1.5rem; background: var(--surface); border: 1.5px solid var(--ink); box-shadow: var(--shadow-hard); margin: 0 0 2.25rem; }
.st-form-title { font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; }
.st-form-title small { font-size: 0.9rem; font-weight: 600; color: var(--ink-3); }
.st-form-actions { display: flex; gap: 0.75rem; }
.st-var-head { display: grid; grid-template-columns: 1fr 110px 80px 140px 46px; gap: 0.5rem; margin: 0.6rem 0 0.3rem; font-size: 0.78rem; font-weight: 700; color: var(--ink-3); }
.st-var-row { display: grid; grid-template-columns: 1fr 110px 80px 140px 46px; gap: 0.5rem; margin-bottom: 0.5rem; animation: st-rise 0.35s var(--ease); }
@media (max-width: 520px) { .st-var-head { display: none; } .st-var-row { grid-template-columns: 1fr 1fr 46px; } .st-var-row [name=var_foto] { grid-column: 1 / 3; } .st-var-row [name=var_nombre] { grid-column: 1 / -1; } }
.st-icon-btn { width: 46px; height: 46px; display: grid; place-items: center; border: 1.5px solid var(--ink); background: var(--surface); font-size: 1.1rem; transition: background 0.15s, color 0.15s; }
.st-icon-btn:hover { background: var(--bad); color: #fff; border-color: var(--bad); }

.st-fotos { margin-top: 2.75rem; padding-top: 2rem; border-top: 1.5px solid var(--ink); max-width: 780px; display: grid; gap: 1rem; }
.st-fotos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.85rem; }
.st-fotos-grid li { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface-2); border: 1.5px solid var(--ink); animation: st-rise 0.4s var(--ease); }
.st-fotos-grid li.st-foto-add { border: 0; background: none; }
.st-fotos-grid img { width: 100%; height: 100%; object-fit: cover; }
.st-foto-tag, .st-foto-btn { position: absolute; left: 0; bottom: 0; padding: 0.2rem 0.5rem; font-size: 0.74rem; font-weight: 800; background: var(--surface); border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); }
.st-foto-tag { background: var(--lime); color: var(--on-lime); }
.st-foto-btn--x { left: auto; right: 0; top: 0; bottom: auto; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; font-size: 1rem; border: 0; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.st-foto-btn:hover { background: var(--ink); color: var(--bg); }
.st-foto-btn--x:hover { background: var(--bad); color: #fff; }
.st-foto-add label { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 0.3rem; border: 1.5px dashed var(--ink); background: var(--bg); font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: background 0.2s; }
.st-foto-add label .ph { font-size: 1.6rem; }
.st-foto-add label:hover { background: var(--lime); color: var(--on-lime); }
/* Panel: link corto de la tienda */
.st-link-tienda { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; padding: 0.9rem 1rem; margin-bottom: 1.25rem; background: var(--lime-soft); border: 1.5px solid var(--ink); }
.st-link-tienda span { flex-basis: 100%; font-size: 0.8rem; font-weight: 700; color: var(--ink-2); }
.st-link-tienda a { font-weight: 800; font-size: 1.1rem; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.st-admin-slug { display: flex; align-items: center; margin: 0.3rem 0 0.2rem; font-size: 0.85rem; color: var(--ink-3); }
.st-admin-slug input { width: 11rem; padding: 0.2rem 0.4rem; font: inherit; font-weight: 700; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); }
.st-admin-slug input:focus { outline: none; border-color: var(--ink); box-shadow: 3px 3px 0 var(--lime); }
.st-logo-edit { display: flex; align-items: center; gap: 1.25rem; }
.st-logo-edit label { cursor: pointer; }

.st-admin-lista { display: grid; gap: 0.85rem; }
.st-admin-tienda { padding: 1.1rem 1.25rem; background: var(--surface); border: 1.5px solid var(--ink); display: grid; gap: 0.85rem; }
.st-admin-top { display: grid; grid-template-columns: 1fr auto auto auto; gap: 0.75rem; align-items: center; }
.st-admin-top strong { font-weight: 800; font-size: 1.1rem; }
.st-admin-top select { width: auto; min-height: 38px; padding: 0.35rem 0.6rem; }
@media (max-width: 640px) { .st-admin-top { grid-template-columns: 1fr; } }
.st-admin-miembros { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.st-miembro { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.2rem 0.25rem 0.2rem 0.65rem; border: 1.5px solid var(--ink); background: var(--bg); font-size: 0.84rem; font-weight: 600; }
.st-miembro small { color: var(--ink-3); font-weight: 500; }
.st-miembro button { width: 24px; height: 24px; display: grid; place-items: center; }
.st-miembro button:hover { background: var(--bad); color: #fff; }
.st-miembro-add { display: flex; gap: 0.4rem; align-items: center; }
.st-miembro-add input, .st-miembro-add select { min-height: 34px; padding: 0.25rem 0.6rem; font-size: 0.86rem; width: auto; }

@media (max-width: 680px) {
  .st-header-inner { height: auto; flex-wrap: wrap; padding-top: 0.65rem; padding-bottom: 0.3rem; row-gap: 0.2rem; gap: 0.75rem; }
  .st-header-nav { order: 3; width: 100%; margin-left: -0.75rem; }
  .st-cart-label { display: none; }
  .st-who { display: none; }
  .st-toolbar-cat { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .st-reveal { opacity: 1; transform: none; }
  .st-marquee-track { animation: none; }
}
