/* =============================================================================
   CIRCUITO — Street market / urban thrift
   Navy = trust · Ámbar = monedas · Coral = urgencia de compra
   Tipografía Syne (marca) + Outfit (cuerpo)
   ============================================================================= */

:root {
  --navy: #0e1c2c;
  --navy-2: #17324a;
  --ink: #0e1c2c;
  --muted: #5a6d7f;
  --line: #d2dce7;
  --paper: #f0f4f8;
  --white: #ffffff;
  --amber: #f0b429;
  --amber-ink: #3d2e05;
  --coral: #cc3018;
  --coral-ink: #3a1008;
  --sky: #186eab;
  --ok: #1f9d6a;
  --danger: #d64545;
  --shadow: 0 12px 32px rgba(14, 28, 44, 0.1);
  --radius: 3px;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --shell: min(1120px, calc(100% - 2rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
html, body { margin: 0; min-height: 100%; max-width: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(980px 480px at 110% -8%, rgba(255, 77, 46, 0.12), transparent 55%),
    radial-gradient(860px 420px at -8% 5%, rgba(240, 180, 41, 0.16), transparent 50%),
    linear-gradient(180deg, #e8eef4 0%, var(--paper) 40%, #e4ebf2 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.page-root { position: relative; z-index: 1; transition: filter 0.25s ease; max-width: 100%; overflow-x: clip; }
body.modal-open .page-root {
  filter: blur(7px) brightness(0.92);
  pointer-events: none;
  user-select: none;
}

/* —— Header —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  font-size: 1.35rem;
}
.brand span { color: var(--amber); }
.brand-icon { width: 0.8em; height: 0.8em; flex-shrink: 0; }

.topbar-search {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 1 1 280px;
  max-width: 540px;
  min-width: 0;
  border: 1.5px solid var(--line);
  background: var(--white);
  transition: border-color 0.15s ease;
}
.topbar-search:focus-within { border-color: var(--sky); }
.topbar-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
}
.topbar-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.topbar-search button {
  appearance: none;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  padding: 0 1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.topbar-search button:hover { background: var(--coral); color: #fff; }
@media (max-width: 720px) {
  .topbar-search { order: 3; flex: 1 1 100%; max-width: 100%; margin-top: 0.6rem; }
}

.search-suggest {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-height: 70vh;
  overflow-y: auto;
}
.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
}
.search-suggest-item:last-of-type { border-bottom: 0; }
.search-suggest-item:hover,
.search-suggest-item.is-active { background: var(--paper); }
.search-suggest-item img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--paper);
}
.ssi-body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.ssi-title {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ssi-meta { font-size: 0.76rem; color: var(--muted); }
.search-suggest-empty { margin: 0; padding: 0.9rem 0.9rem; color: var(--muted); font-size: 0.85rem; }
.search-suggest-all {
  display: block;
  width: 100%;
  appearance: none;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--sky);
  font-weight: 700;
  font-size: 0.83rem;
  padding: 0.65rem 0.9rem;
  text-align: left;
  cursor: pointer;
}
.search-suggest-all:hover { background: var(--line); }

.nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
}
.nav a {
  color: var(--navy-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.nav a:hover { color: var(--sky); }
.nav a.btn,
.nav a.btn:hover { color: #fff; }
.nav-link-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--navy-2);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0;
}
.nav-link-btn:hover { color: var(--sky); }
.nav-bell-btn { display: inline-flex; align-items: center; position: relative; }

.nav-mode { margin-left: 0.5rem; }
.mode-switch {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 3px;
}
.mode-switch a {
  padding: 0.45rem 0.9rem;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mode-switch a.on {
  background: var(--navy);
  color: #fff;
}

.nav-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #f0d48a;
  background: linear-gradient(180deg, #fff8e1, #ffe8a3);
  color: var(--amber-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-credit:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.coin {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  display: inline-block;
  background: radial-gradient(circle at 32% 28%, #fff6c8, var(--amber) 48%, #c48900);
  box-shadow: inset 0 -1px 1px rgba(0,0,0,0.2);
}

.tier-pill {
  font-size: 0.62rem;
  padding: 0.12rem 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(18, 38, 58, 0.08);
}
.tier-gold { color: #875d00; }
.tier-silver { color: #4a5d70; }
.tier-bronze { color: #8a5a2b; }

.shell {
  width: var(--shell);
  margin: 0 auto 3rem;
  padding-top: 0;
  max-width: 100%;
}

/*
  Full-bleed fuera del .shell.
  100vw + calc(50% - 50vw) a veces empuja ~15px por el scrollbar;
  el overflow-x: clip en html/body/page-root corta ese desborde.
*/
.bleed {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
  box-sizing: border-box;
}

/* —— Street-market hero (una composición) —— */
.hero {
  display: grid;
  gap: 1rem;
  padding: 1.75rem 0 1.5rem;
  animation: rise 0.55s ease both;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.98;
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.hero-market {
  position: relative;
  min-height: min(74vh, 580px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: #0a1520;
  margin-bottom: 1.5rem;
  animation: rise 0.6s ease both;
}
.hub-hero { min-height: min(92vh, 700px); }

.market-plane {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, #0a1520 0%, #12263a 42%, #1a3a56 100%);
}
.market-plane.buy-plane {
  background: linear-gradient(155deg, #140c0a 0%, #2a1210 40%, #4a1e16 100%);
}
.market-plane.sell-plane {
  background: linear-gradient(155deg, #0c1610 0%, #143024 45%, #1e4a34 100%);
}
.market-plane.auction-plane {
  background: linear-gradient(155deg, #0a1522 0%, #12304a 45%, #1a4a6e 100%);
}
.market-plane.service-plane {
  background: linear-gradient(155deg, #0a1a12 0%, #123a26 45%, #1e5c3a 100%);
}

.market-awning {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: repeating-linear-gradient(
    90deg,
    var(--amber) 0 28px,
    var(--navy) 28px 56px
  );
  opacity: 0.95;
  animation: awningSlide 18s linear infinite;
}
.market-awning.coral {
  background: repeating-linear-gradient(90deg, var(--coral) 0 28px, #1a0c08 28px 56px);
}
.market-awning.amber {
  background: repeating-linear-gradient(90deg, var(--amber) 0 28px, #0c1810 28px 56px);
}
.market-awning.sky {
  background: repeating-linear-gradient(90deg, var(--sky) 0 28px, #081420 28px 56px);
}
.market-awning.leaf {
  background: repeating-linear-gradient(90deg, #2f8f5b 0 28px, #08180f 28px 56px);
}

.market-glow {
  position: absolute;
  width: min(55vw, 640px);
  height: 70%;
  right: 0;
  top: 15%;
  background: radial-gradient(circle, rgba(255, 77, 46, 0.28), transparent 62%);
  pointer-events: none;
  animation: glowDrift 8s ease-in-out infinite alternate;
}
.market-glow.coral {
  background: radial-gradient(circle, rgba(255, 77, 46, 0.45), transparent 62%);
}
.market-glow.amber {
  background: radial-gradient(circle, rgba(240, 180, 41, 0.4), transparent 62%);
}
.market-glow.sky {
  background: radial-gradient(circle, rgba(42, 143, 212, 0.42), transparent 62%);
}
.market-glow.leaf {
  background: radial-gradient(circle, rgba(47, 143, 91, 0.42), transparent 62%);
}

.hero-market-inner {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin: 0 auto;
  padding: 4.5rem 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.brand-mark {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  animation: rise 0.7s ease 0.05s both;
}
.brand-mark span:not([class]) { color: var(--amber); }
.brand-mark.sm {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.mode-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  background: var(--coral);
  color: #fff;
  vertical-align: middle;
}
.mode-tag.amber { background: var(--amber); color: var(--amber-ink); }
.mode-tag.sky { background: var(--sky); color: #fff; }
.mode-tag.leaf { background: #267c4d; color: #fff; }

.hero-market h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.5vw, 5.4rem);
  line-height: 0.92;
  margin: 0;
  letter-spacing: -0.04em;
  max-width: 15ch;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
  animation: rise 0.7s ease 0.12s both;
}
.hero-market h1 mark {
  background: none;
  color: #ff8a70;
  -webkit-text-stroke: 0;
}
.hero-market h1 mark.mk-sky { color: #8fd0ff; }
.hero-market h1 mark.mk-amber { color: var(--amber); }
.hero-market h1 mark.mk-leaf { color: #7be0a8; }

/* —— Bento hero: titular + tarjetas de dato duro —— */
.hero-bento {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.35rem;
  align-items: stretch;
}
@media (max-width: 860px) {
  .hero-bento { grid-template-columns: 1fr; }
}
.hero-bento-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}
.hero-bento-side {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
@media (max-width: 860px) {
  .hero-bento-side { flex-direction: row; flex-wrap: wrap; }
}
.bento-tile {
  flex: 1;
  min-width: 8.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  padding: 1.05rem 1.25rem;
  animation: rise 0.55s ease both;
  animation-delay: calc(0.25s + var(--bento-i, 0) * 0.09s);
}
.bento-tile strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.bento-tile span {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bento-navy { background: linear-gradient(135deg, #1c3752, #0e1c2c); }
.bento-navy strong, .bento-navy span { color: #fff; }
.bento-navy span { color: rgba(255, 255, 255, 0.75); }
.bento-coral { background: linear-gradient(135deg, var(--coral), #8f230f); }
.bento-coral strong, .bento-coral span { color: #fff; }
.bento-coral span { color: rgba(255, 255, 255, 0.8); }
.bento-amber { background: linear-gradient(135deg, var(--amber), #c98f10); }
.bento-amber strong, .bento-amber span { color: var(--amber-ink); }
.bento-sky { background: linear-gradient(135deg, var(--sky), #0e4a74); }
.bento-sky strong, .bento-sky span { color: #fff; }
.bento-sky span { color: rgba(255, 255, 255, 0.8); }
.bento-leaf { background: linear-gradient(135deg, #267c4d, #165233); }
.bento-leaf strong, .bento-leaf span { color: #fff; }
.bento-leaf span { color: rgba(255, 255, 255, 0.8); }

/* —— Ticker de marca: banda que se mueve, entre el hero y el catálogo —— */
.market-ticker {
  overflow: hidden;
  background: var(--navy);
  padding: 0.7rem 0;
}
.market-ticker-track {
  display: flex;
  gap: 2.75rem;
  white-space: nowrap;
  width: max-content;
  animation: tickerScroll 20s linear infinite;
}
.market-ticker-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.market-ticker-track span.tk-accent { color: #ff6a48; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .market-ticker-track { animation: none; }
}

/* —— Onboarding post-registro: elige camino + regalo de bienvenida —— */
.onboarding-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  text-align: center;
}
.onboarding-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0.4rem 0 0.6rem;
  overflow-wrap: break-word;
}
.onb-highlight { display: block; color: var(--coral); }
.onb-lead {
  max-width: 46ch;
  margin: 0 auto 2.25rem;
  color: var(--muted);
  font-size: 1.02rem;
}
.onb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 860px) {
  .onb-grid { grid-template-columns: repeat(2, 1fr); }
}
.onb-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.75rem 1.1rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  animation: rise 0.5s ease both;
}
.onb-card:nth-child(1) { animation-delay: 0.05s; }
.onb-card:nth-child(2) { animation-delay: 0.12s; }
.onb-card:nth-child(3) { animation-delay: 0.19s; }
.onb-card:nth-child(4) { animation-delay: 0.26s; }
.onb-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(14, 28, 44, 0.16);
}
.onb-buy { border-top-color: var(--coral); }
.onb-sell { border-top-color: var(--amber); }
.onb-auction { border-top-color: var(--sky); }
.onb-service { border-top-color: #267c4d; }
.onb-card-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
}
.onb-buy .onb-card-icon { background: #fff1ec; color: var(--coral); }
.onb-sell .onb-card-icon { background: #fff8e8; color: #b9840f; }
.onb-auction .onb-card-icon { background: #e9f4fb; color: var(--sky); }
.onb-service .onb-card-icon { background: #eaf6ef; color: #267c4d; }
.onb-card-icon svg { width: 1.5rem; height: 1.5rem; }
.onb-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}
.onb-card-hint { font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.onb-skip {
  display: inline-block;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.onb-skip:hover { color: var(--sky); }

.onb-reveal {
  position: relative;
  margin-top: 1rem;
  padding: 3rem 1.5rem;
  overflow: hidden;
}
.onb-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.onb-confetti-piece {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 12px;
  opacity: 0.95;
  animation-name: onbConfettiFall;
  animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
  animation-fill-mode: forwards;
}
@keyframes onbConfettiFall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--drift), 340px) rotate(340deg); opacity: 0; }
}
.onb-reveal-card {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
  padding: 2.25rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(14, 28, 44, 0.18);
  animation: onbPop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
@keyframes onbPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.onb-reveal-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.onb-reveal-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  color: var(--navy);
  margin: 0 0 0.6rem;
  line-height: 1.12;
}
.onb-reveal-note { color: var(--muted); margin: 0 0 1.5rem; font-size: 0.96rem; }
.onb-reveal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
.onb-glow-coral { border-top: 4px solid var(--coral); }
.onb-glow-amber { border-top: 4px solid var(--amber); }
.onb-glow-sky { border-top: 4px solid var(--sky); }
.onb-glow-leaf { border-top: 4px solid #267c4d; }
@media (prefers-reduced-motion: reduce) {
  .onb-confetti-piece { animation: none; opacity: 0; }
  .onb-reveal-card { animation: none; }
  .onb-card { animation: none; }
}

.hero-market .hero-lead {
  margin: 1rem 0 1.35rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36ch;
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  animation: rise 0.7s ease 0.2s both;
}
.hero-market .hero-actions {
  animation: rise 0.7s ease 0.28s both;
}
.hero-market .btn {
  box-shadow: 0 8px 24px rgba(255, 77, 46, 0.35);
}
.hero-market .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

/* Pulse strip (stats BELOW hero fold) */
.pulse-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  animation: rise 0.55s ease 0.1s both;
}
@media (max-width: 720px) {
  .pulse-strip { grid-template-columns: 1fr; }
}
.pulse-item {
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  box-shadow: var(--shadow);
}
.pulse-item.hot { border-left-color: var(--coral); background: #fff6f3; }
.pulse-item.hot.amber { border-left-color: var(--amber); background: #fffaf0; }
.pulse-item.hot.sky { border-left-color: var(--sky); background: #f2f8fc; }
.pulse-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.pulse-item strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 800;
}

.hero-lead {
  margin: 0.9rem 0 1.25rem;
  color: var(--muted);
  max-width: 42ch;
  font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.explain-block,
.play-block,
.costs-block,
.auction-explain {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.explain-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--navy);
  max-width: 22ch;
  line-height: 1.1;
}
.explain-foot { margin: 1rem 0 0; }
.explain-foot a { color: var(--sky); font-weight: 700; text-decoration: none; }

.explain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
.explain-grid.three { grid-template-columns: repeat(3, 1fr); }
.explain-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) {
  .explain-grid, .explain-grid.three, .explain-grid.two { grid-template-columns: 1fr; }
}
.explain-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}
.explain-grid h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--navy);
}
.explain-grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.explain-icon {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.6rem;
  border-radius: 999px;
  background: #fff1ec;
  color: var(--coral);
}
.explain-icon svg { width: 1.25rem; height: 1.25rem; }

.play-steps {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
}
.play-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.play-steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--coral);
  grid-row: span 2;
  align-self: center;
  width: 2rem;
}
.play-steps strong {
  font-family: var(--font-display);
  color: var(--navy);
}
.play-steps span { color: var(--muted); font-size: 0.92rem; grid-column: 2; }

/* Landings: 5 cards en fila (menos scroll vertical) */
.play-steps.play-steps-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}
.play-steps.play-steps-row li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  grid-template-columns: none;
  padding: 0.95rem 0.8rem 1.05rem;
  min-height: 100%;
}
.play-steps.play-steps-row li::before {
  grid-row: auto;
  align-self: flex-start;
  width: auto;
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.15rem;
}
.play-steps.play-steps-row strong {
  font-size: 0.95rem;
  line-height: 1.15;
}
.play-steps.play-steps-row span {
  grid-column: auto;
  font-size: 0.8rem;
  line-height: 1.35;
}
@media (max-width: 1099px) and (min-width: 721px) {
  .play-steps.play-steps-row {
    grid-template-columns: repeat(5, minmax(148px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .play-steps.play-steps-row li {
    scroll-snap-align: start;
    min-width: 148px;
  }
}
@media (max-width: 720px) {
  .play-steps.play-steps-row {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
  .play-steps.play-steps-row li {
    min-width: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
  }
  .play-steps.play-steps-row li::before {
    grid-row: span 2;
    align-self: center;
    width: 2rem;
    font-size: 1.2rem;
    margin-bottom: 0;
  }
  .play-steps.play-steps-row span { grid-column: 2; font-size: 0.92rem; }
}

.urgency-band {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  padding: 1.85rem 1.75rem;
  margin: 2rem 0;
  background:
    linear-gradient(135deg, #0e1c2c 0%, #17324a 55%, #1f4060 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.urgency-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 20px, var(--amber) 20px 40px);
}
@media (max-width: 800px) { .urgency-band { grid-template-columns: 1fr; } }
.urgency-band .eyebrow { color: var(--amber); }
.urgency-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 0.6rem;
  line-height: 1.15;
  max-width: 18ch;
}
.urgency-band p { color: rgba(255,255,255,0.78); margin: 0; }
.urgency-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
  align-content: center;
}
.urgency-list li {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
}

.costs-table {
  margin-top: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.costs-row {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 1.2fr;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}
.costs-row:last-child { border-bottom: 0; }
.costs-row.head {
  background: var(--paper);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.costs-row strong {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.05rem;
}
@media (max-width: 640px) {
  .costs-row { grid-template-columns: 1fr 1fr; }
  .costs-row span:last-child { grid-column: 1 / -1; }
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.85rem 1.75rem;
  margin: 2.5rem 0 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--coral);
  box-shadow: var(--shadow);
}
.cta-band.tight { justify-content: flex-start; margin-top: 1.5rem; }
.cta-band h2 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  color: var(--navy);
}
.cta-band p { margin: 0; color: var(--muted); }
.btn-ghost.dark {
  color: var(--navy) !important;
  border-color: var(--line) !important;
  background: var(--paper) !important;
}

/* Product cards premium */
.catalog-grid { /* gap lo define .grid / media */ }
.item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}
.item-place { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.item-seller {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.item-seller strong { color: var(--navy); font-weight: 700; }
.product-seller {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.product-seller strong { color: var(--navy); }
.item-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.15rem;
}
.price-note { font-size: 0.75rem; color: var(--muted); }
.item-cta {
  margin-top: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral);
}
.item-body-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.item-cta-btn {
  display: block;
  width: calc(100% - 1.8rem);
  margin: 0.15rem 0.9rem 0.95rem;
  padding: 0.65rem 0.75rem;
  border: 0;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 90, 54, 0.28);
}
a.item-cta-btn { color: #fff; }
.item-cta-btn:hover { filter: brightness(1.05); }
.item-cta-btn.is-disabled {
  background: #c5ced8;
  color: #5a6a7a;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}
.item.is-auction .item-cta-btn:not(.is-disabled) {
  background: var(--sky);
  box-shadow: 0 8px 18px rgba(56, 132, 196, 0.28);
}
.item-fomo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  background: linear-gradient(transparent, rgba(18,38,58,0.82));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.item-fomo.is-empty {
  opacity: 0.72;
  font-weight: 600;
}
.fomo-live-tag {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
}
.item.is-reserved { outline: 2px solid #ffc9b8; }
.badge-sale {
  background: var(--coral);
  color: #fff;
}
.badge-auction {
  background: #1a6b9a;
  color: #fff;
}
.badge-service {
  background: #267c4d;
  color: #fff;
}
.badge-boost {
  background: var(--amber);
  color: var(--amber-ink);
}
.badge-warn { background: #ffd0c4; color: var(--coral-ink); }

/* Guía — base page hero (toc/guide styles refinados al final del archivo) */
.page-hero {
  padding: 1.5rem 0 1rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0.35rem 0;
  letter-spacing: -0.03em;
  color: var(--navy);
  max-width: 14ch;
  line-height: 0.98;
}
.page-lead {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.callout {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: #fff1ec;
  border-left: 4px solid var(--coral);
  color: var(--navy);
  font-weight: 600;
}

.section-head .eyebrow { margin-bottom: 0.25rem; }
.section-head a { color: var(--sky); font-weight: 700; text-decoration: none; }

/* —— Buttons —— */
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--coral);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.2rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-sm { padding: 0.45rem 0.8rem; font-size: 0.78rem; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.hero-actions .btn-ghost { color: #fff; }
.shell > .btn-ghost,
.panel .btn-ghost,
.role-box .btn-ghost,
.form .btn-ghost,
.nav .btn-ghost {
  color: var(--navy);
  border-color: var(--line);
  background: var(--white);
}
.btn-coin {
  background: linear-gradient(135deg, var(--amber), #ffc94d);
  color: var(--amber-ink);
  width: 100%;
}

/* —— Flash / tips —— */
.flash {
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--sky);
  background: var(--white);
  box-shadow: var(--shadow);
}
.flash-error { border-color: var(--danger); }
.flash-success { border-color: var(--ok); }
.flash-credits {
  border-color: var(--amber);
  background: #fff9e8;
}

.toast-stack {
  position: fixed;
  top: 5.25rem;
  right: 1rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(22rem, calc(100vw - 1.5rem));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left-width: 4px;
  box-shadow: 0 12px 28px rgba(14, 28, 44, 0.14);
  animation: toastIn 0.35s ease both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.toast p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--navy);
  font-weight: 600;
}
.toast-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}
.verify-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.65rem 1.25rem;
  background: #fff9e8;
  border-bottom: 1px solid #f0d48a;
  color: var(--amber-ink);
  font-size: 0.88rem;
  text-align: center;
}
.verify-banner a {
  color: var(--coral-ink);
  font-weight: 700;
  text-decoration: underline;
}
.toast-success { border-left-color: var(--ok); }
.toast-error { border-left-color: var(--danger); }
.toast-credits { border-left-color: var(--amber); background: #fffaf0; }
.toast.is-out {
  opacity: 0;
  transform: translateX(0.75rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(1rem); }
  to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 720px) {
  .toast-stack {
    top: auto;
    bottom: 1rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}

.hint-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  margin-bottom: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.hint-strip strong { color: var(--navy); }

/* —— Catalog —— */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.section-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.panel { padding: 0.5rem 0 1.75rem; }
.sale-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.sale-card .item {
  height: 100%;
}
.sale-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.sale-actions .btn-sm {
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
}
.sale-actions .status-chip {
  font-size: 0.68rem;
}
.inline-form { display: inline; margin: 0; }
.publish-mode-box .publish-mode-option { margin-bottom: 0.55rem; }
.replace-box {
  margin-top: 0.75rem;
  padding: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.replace-item em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.85rem;
}
.status-paused { background: #eef2f6; color: var(--muted); }

.cat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.55rem, 1fr));
  gap: 0.45rem;
  width: 100%;
  padding: 0.85rem 0 0.35rem;
  margin: 0.35rem 0 0.35rem;
  box-sizing: border-box;
}
.cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem;
  min-width: 0;
  width: 100%;
  padding: 0.5rem 0.25rem 0.45rem;
  text-decoration: none;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
  animation: rise 0.4s ease both;
  animation-delay: calc(var(--cat-i, 0) * 0.035s);
}
.cat-chip:hover {
  border-color: #c8d2dc;
  transform: translateY(-1px);
}
.cat-chip.on {
  border-color: var(--coral);
  background: #fff7f3;
}
.cat-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--navy);
  flex-shrink: 0;
}
.cat-chip.on .cat-icon {
  background: #ffe6dc;
  color: var(--coral);
}
.cat-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.cat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0.1rem;
}

@media (max-width: 720px) {
  .cat-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    padding-top: 0.65rem;
  }
  .cat-chip {
    padding: 0.45rem 0.15rem 0.4rem;
  }
  .cat-icon {
    width: 2rem;
    height: 2rem;
  }
  .cat-label {
    font-size: 0.62rem;
  }
}

@media (min-width: 1100px) {
  .cat-strip {
    grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
    gap: 0.5rem;
  }
  .cat-icon {
    width: 2.35rem;
    height: 2.35rem;
  }
  .cat-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  .cat-label {
    font-size: 0.72rem;
    white-space: normal;
  }
}

/* Product cards: siempre 2 cols en mobile; más en desktop */
.grid,
.catalog-grid,
.sales-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .grid,
  .catalog-grid,
  .sales-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 1100px) {
  .grid,
  .catalog-grid,
  .sales-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.15rem;
  }
}

.item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: rise 0.45s ease both;
  position: relative;
}
.item:hover {
  transform: translateY(-5px);
  border-color: #b8c7d6;
  box-shadow: 0 18px 40px rgba(14, 28, 44, 0.14);
}
.item-media {
  position: relative;
  background: #cfd9e4;
  overflow: hidden;
}
.item-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #cfd9e4;
}
.item-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.item-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.item-slide img,
.item-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.item:hover .item-slide.is-active img { transform: scale(1.04); }
.item-gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 28, 44, 0.18);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.item-media:hover .item-gal-nav,
.item-media:focus-within .item-gal-nav { opacity: 1; }
.item-gal-nav.prev { left: 0.45rem; }
.item-gal-nav.next { right: 0.45rem; }
.item-gal-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.35rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  pointer-events: none;
}
.item-gal-dot {
  pointer-events: auto;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.item-gal-dot.is-active { background: #fff; transform: scale(1.15); }
.badge-gallery {
  background: rgba(14, 28, 44, 0.78) !important;
  color: #fff !important;
}
.item-body {
  padding: 0.85rem 0.9rem 1rem;
  display: grid;
  gap: 0.25rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
}
.item-body:hover .item-cta { text-decoration: underline; }
.item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.item .price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
}
.item .meta { color: var(--muted); font-size: 0.82rem; }

@media (max-width: 639px) {
  .item-body {
    padding: 0.55rem 0.55rem 0.65rem;
    gap: 0.15rem;
  }
  .item h3 {
    font-size: 0.82rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .item .price { font-size: 0.95rem; }
  .item-seller { font-size: 0.7rem; }
  .item-place,
  .type-tag,
  .price-note { font-size: 0.65rem; }
  .item-cta-btn {
    width: calc(100% - 1.1rem);
    margin: 0 0.55rem 0.55rem;
    padding: 0.5rem 0.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }
  .badge-row {
    top: 0.35rem;
    left: 0.35rem;
    gap: 0.2rem;
  }
  .item-gal-nav {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 1rem;
  }
}

.badge-row {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  z-index: 2;
}
.badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--navy);
  background: var(--amber);
  padding: 0.2rem 0.45rem;
}
.badge-warn { background: #ffd0c4; color: var(--coral-ink); }
.type-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* —— Forms —— */
.form {
  display: grid;
  gap: 0.9rem;
  max-width: 640px;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
label { display: grid; gap: 0.35rem; font-size: 0.88rem; color: var(--muted); font-weight: 600; }
input, select, textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.75rem 0.85rem;
  font: inherit;
  border-radius: var(--radius);
}
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.balance {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 800;
  margin: 0.2rem 0 1rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.balance span { color: var(--amber-ink); }
.packages { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.ledger { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: var(--white); }
.ledger th, .ledger td {
  text-align: left;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--line);
}
.pos { color: var(--ok); font-weight: 700; }
.neg { color: var(--danger); font-weight: 700; }

.stepper { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.step {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.step.on { border-color: var(--navy); color: var(--navy); background: #e8eef5; }

.product-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1rem;
}
@media (max-width: 800px) { .product-layout { grid-template-columns: 1fr; } }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #dde5ee; }
.gallery-thumbs { display: flex; gap: 0.4rem; margin-top: 0.4rem; overflow-x: auto; }
.gallery-thumbs img { width: 72px; height: 72px; object-fit: cover; }

.tabs { display: flex; gap: 0.4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tabs a {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}
.tabs .active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 1.25rem 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  background: rgba(255,255,255,0.55);
}
.site-footer a { color: var(--navy-2); font-weight: 600; text-decoration: none; }
.site-footer a:hover { color: var(--sky); text-decoration: underline; }
.footer-grid {
  max-width: var(--shell, 1120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
}
.footer-about .brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 0.4rem;
}
.footer-about .brand span { color: var(--coral); }
.footer-about p:last-child { margin: 0; max-width: 42ch; line-height: 1.5; }
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.15rem;
}
.footer-legal {
  max-width: var(--shell, 1120px);
  margin: 1.75rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.muted { color: var(--muted); }
.stack { display: grid; gap: 0.75rem; }
.hidden { display: none !important; }

.role-box {
  border: 1px solid var(--line);
  padding: 1rem;
  background: var(--paper);
}
.role-box h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
}

.rules-panel, .rules-panel.compact { display: none; } /* reglas van en hint-strip */

/* —— Tarjetas de precio (solicitar-web y similares) —— */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.6rem 1.5rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.price-card.featured {
  border: 2px solid var(--coral);
  box-shadow: 0 18px 40px rgba(204, 48, 24, 0.14);
}
.price-ribbon {
  position: absolute;
  top: -0.7rem;
  left: 1.4rem;
  background: var(--coral);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
}
.price-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0.2rem 0 0;
}
.price-card-tagline {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.price-big-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.2rem;
}
.price-big {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.price-big-suffix { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.price-installment {
  font-size: 0.85rem;
  color: var(--coral-ink);
  font-weight: 700;
  background: #fff1ec;
  display: inline-block;
  padding: 0.3rem 0.6rem;
  align-self: flex-start;
}
.price-features {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.87rem;
  color: var(--ink);
}
.price-features svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--ok);
}
.price-card-note {
  margin: 0.3rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}
.price-coin-note {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--muted);
}

.spend-matrix {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.spend-row {
  display: grid;
  grid-template-columns: 1.2fr auto 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.88rem;
  color: var(--muted);
}
.spend-row strong { color: var(--navy); font-family: var(--font-display); }
.spend-row em { font-style: normal; text-align: right; font-size: 0.8rem; }

.fomo-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.8rem;
  background: #fff1ec;
  border: 1px solid #ffc9b8;
  font-size: 0.92rem;
}
.fomo-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--coral);
  animation: fomoPulse 1.4s ease infinite;
}
.countdown { font-family: var(--font-display); color: var(--coral); font-variant-numeric: tabular-nums; font-weight: 800; }

.fab-publish {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--coral);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(255, 90, 54, 0.35);
}

/* —— Barra inferior tipo app (solo mobile) —— */
.bottom-tabbar {
  display: none;
}
@media (max-width: 720px) {
  body { padding-bottom: calc(4.1rem + env(safe-area-inset-bottom, 0px)); }
  .bottom-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 18px rgba(18, 38, 58, 0.08);
  }
  .bt-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    position: relative;
    appearance: none;
    background: none;
    border: 0;
    font: inherit;
    color: var(--muted);
    text-decoration: none;
    padding: 0.3rem 0.1rem;
    cursor: pointer;
  }
  .bt-tab svg { width: 1.4rem; height: 1.4rem; display: block; }
  .bt-tab span:not(.nav-msg-badge) {
    font-size: 0.62rem;
    font-weight: 700;
  }
  .bt-tab.on { color: var(--coral); }
  .bt-tab .nav-msg-badge {
    position: absolute;
    top: -0.1rem;
    right: 22%;
    margin-left: 0;
  }
  /* El FAB de publicar sube arriba de la barra inferior */
  .fab-publish { bottom: calc(4.1rem + env(safe-area-inset-bottom, 0px) + 0.75rem); }
}

/* —— Modal monedas —— */
.credits-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.credits-overlay.is-open { display: flex; }
.credits-overlay[hidden] { display: none !important; }
.credits-overlay.is-open[hidden] { display: flex !important; }
.credits-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 38, 58, 0.45);
  backdrop-filter: blur(8px);
}
.credits-modal {
  position: relative;
  width: min(560px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem 1.35rem 1.35rem;
  animation: popIn 0.28s ease both;
  box-shadow: 0 24px 60px rgba(18, 38, 58, 0.2);
}
.credits-close {
  position: absolute;
  top: 0.55rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
}
.credits-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 800;
}
.credits-modal h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  margin: 0.35rem 0 0.5rem;
  color: var(--navy);
}
.credits-lead { margin: 0 0 1rem; color: var(--muted); }
.credits-balance-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  padding: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.credits-balance-row span { display: block; font-size: 0.75rem; color: var(--muted); }
.credits-balance-row strong { font-family: var(--font-display); font-size: 1.35rem; color: #9a6b00; }
.credits-balance-row strong.need { color: var(--coral); }
.credits-packages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 520px) { .credits-packages { grid-template-columns: 1fr; } }
.pack-card {
  position: relative;
  display: grid;
  gap: 0.3rem;
  padding: 1rem 0.9rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
}
.pack-card.recommended {
  border-color: var(--coral);
  background: #fff7f4;
}
.pack-tag {
  position: absolute;
  top: -0.55rem;
  left: 0.75rem;
  background: var(--coral);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
}
.pack-name { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.pack-coins {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.pack-price { font-weight: 700; }
.pack-hint { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.35rem; }
.credits-fine { margin: 1rem 0 0; font-size: 0.78rem; color: var(--muted); text-align: center; }
.credits-glow { display: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fomoPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 46, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 77, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 46, 0); }
}
@keyframes awningSlide {
  from { background-position: 0 0; }
  to { background-position: 112px 0; }
}
@keyframes glowDrift {
  from { transform: translate(0, 0) scale(1); opacity: 0.85; }
  to { transform: translate(-6%, 4%) scale(1.08); opacity: 1; }
}

.packages.pack-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .packages.pack-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero-market { min-height: 0; }
  .hub-hero { min-height: min(82vh, 600px); }
  /* Ya viven en la barra inferior de app: no los dupliques arriba */
  .topbar .nav > a[href*="wallet"],
  .topbar .nav #nav-messages-link,
  .topbar .nav > a[href*="dashboard"],
  .topbar .nav [data-open-login],
  .topbar .nav > a[href*="register"] {
    display: none;
  }
  /* Subastas solo vive abajo cuando NO hay sesión (tab de invitado);
     con sesión, la barra inferior no tiene ese tab, así que se queda arriba. */
  body[data-user-balance="-1"] .topbar .nav > a[href*="subastas"] {
    display: none;
  }
}

/* —— Hub doors + landings —— */
.door-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 0.25rem 0 1.5rem;
  animation: rise 0.65s ease 0.1s both;
}
.door-grid-compact {
  margin: 1rem 0 1.75rem;
}
.role-hub {
  margin: 2.5rem 0 1.5rem;
  padding-top: 0.5rem;
}
.role-faq {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}
.wallet-faq {
  margin: 1.5rem 0 2rem;
  grid-template-columns: 1fr;
}
@media (max-width: 900px) {
  .role-faq { grid-template-columns: 1fr; }
}
.role-faq-col h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.role-faq-col details {
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: 0.5rem;
  padding: 0.75rem 0.9rem;
}
.role-faq-col summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}
.role-faq-col summary::-webkit-details-marker { display: none; }
.role-faq-col summary::after {
  content: "+";
  float: right;
  color: var(--coral);
  font-weight: 800;
}
.role-faq-col details[open] summary::after { content: "–"; }
.role-faq-col details p {
  margin: 0.55rem 0 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
@media (max-width: 860px) {
  .door-grid { grid-template-columns: 1fr; }
}
.door {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.4rem 1.25rem 1.25rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.door::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--coral);
}
.door-sell::before { background: var(--amber); }
.door-auction::before { background: var(--sky); }
.door:hover {
  transform: translateY(-5px);
  border-color: var(--navy);
  box-shadow: 0 18px 40px rgba(14, 28, 44, 0.12);
}
.door-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(14, 28, 44, 0.28);
}
.door-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.door strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.door-copy {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  flex: 1;
}
.door-cta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral);
  margin-top: 0.45rem;
}
.door-sell .door-cta { color: #a07800; }
.door-auction .door-cta { color: var(--sky); }

.hub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.hub-meta a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.hub-meta a:hover { color: var(--coral); }

.landing-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 1.35rem;
  padding: 0.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.landing-nav a {
  padding: 0.55rem 1rem;
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.15s ease, color 0.15s ease;
}
.landing-nav a.on {
  background: var(--navy);
  color: #fff;
}
.landing-nav a:hover:not(.on) { color: var(--navy); background: var(--paper); }

.empty-state {
  padding: 2rem 1.25rem;
  background: var(--white);
  border: 1px dashed var(--line);
  text-align: center;
}
.empty-state p { margin: 0 0 0.5rem; }
.empty-state .hero-actions {
  justify-content: center;
  margin-top: 1rem;
}
.empty-auction { padding: 1.5rem 0; }
.empty-auction p { margin: 0 0 0.35rem; }

.subhead {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 1.35rem 0 0.75rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* Catalog card polish */
.item-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 28, 44, 0.15));
  pointer-events: none;
}
.item:nth-child(1) { animation-delay: 0.02s; }
.item:nth-child(2) { animation-delay: 0.06s; }
.item:nth-child(3) { animation-delay: 0.1s; }
.item:nth-child(4) { animation-delay: 0.14s; }
.item:nth-child(5) { animation-delay: 0.18s; }
.item:nth-child(6) { animation-delay: 0.22s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* —— Product stage —— */
.product-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1.5rem;
  margin: 1.25rem 0 2rem;
  animation: rise 0.5s ease both;
}
@media (max-width: 860px) {
  .product-stage { grid-template-columns: 1fr; }
}
.product-gallery {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.gallery-main {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #cfd9e4;
  position: relative;
  cursor: zoom-in;
}
.gallery-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 18px, var(--amber) 18px 36px);
  z-index: 1;
}
.product-stage.is-auction .gallery-main::before {
  background: repeating-linear-gradient(90deg, var(--sky) 0 18px, var(--navy) 18px 36px);
}
.gallery-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.gallery-thumbs {
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem;
  overflow-x: auto;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.gallery-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
}
.gallery-thumb.is-active {
  border-color: var(--coral);
  opacity: 1;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-hint {
  margin: 0;
  padding: 0.45rem 0.7rem 0.65rem;
  font-size: 0.8rem;
}

/* Lightbox */
.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 22, 0.86);
  backdrop-filter: blur(2px);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 980px);
  max-height: 92vh;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem;
  padding: 2.5rem 0.5rem 1rem;
}
.lightbox-figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.lightbox-img {
  max-width: min(92vw, 900px);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #111;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.lightbox-counter {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lightbox-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav:disabled {
  opacity: 0.25;
  cursor: default;
}
body.lightbox-open { overflow: hidden; }
@media (max-width: 640px) {
  .lightbox-dialog {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    padding-top: 3rem;
  }
  .lightbox-nav.prev { order: 2; }
  .lightbox-figure { order: 1; }
  .lightbox-nav.next { order: 3; }
  .item-gal-nav { opacity: 1; }
}

.product-info { gap: 0.75rem; }
.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.status-chip {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  background: #e8eef5;
  color: var(--navy);
}
.status-active { background: #dff5ea; color: #0f6b45; }
.status-reserved_primary,
.status-reserved_secondary { background: #fff1ec; color: var(--coral-ink); }
.status-sold { background: #eceff3; color: var(--muted); }
.status-pending { background: #fff1ec; color: var(--coral-ink); }
.status-accepted { background: #dff5ea; color: #0f6b45; }
.status-rejected,
.status-buyer_no_show,
.status-seller_no_show,
.status-expired_no_claim,
.status-cancelled { background: #eceff3; color: var(--muted); }
.status-completed { background: #dff5ea; color: #0f6b45; }

.product-place {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.product-price {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  margin: 0;
  color: var(--navy);
}
.product-price span {
  display: inline-block;
  margin-left: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0;
}
.product-desc {
  color: var(--ink);
  line-height: 1.55;
}
.meta-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.detail-block h3,
.form-subhead {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
}
.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.detail-list li {
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.detail-list span { color: var(--muted); font-size: 0.88rem; }

.action-box {
  padding: 1.15rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.55rem;
}
.action-box.seller-box { border-left-color: var(--amber); }
.action-box.auction-box { border-left-color: var(--sky); }
.action-box.interest-box { border-left-color: var(--navy); }
.action-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
}
.action-box h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.action-folds {
  display: grid;
  gap: 0.65rem;
}
.action-fold {
  padding: 0;
  gap: 0;
}
.action-fold-cta {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.1rem;
  cursor: pointer;
  user-select: none;
}
.action-fold-cta::-webkit-details-marker { display: none; }
.action-fold-cta .action-kicker {
  grid-column: 1;
  grid-row: 1;
}
.action-fold-title {
  grid-column: 1;
  grid-row: 2;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.action-fold-chevron {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  position: relative;
}
.action-fold-chevron::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.2s ease;
}
.action-fold[open] .action-fold-chevron::before {
  transform: rotate(225deg) translate(-1px, -1px);
}
.action-fold[open] .action-fold-cta {
  border-bottom: 1px solid var(--line);
}
.action-fold-body {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 1.1rem 1.1rem;
  animation: action-fold-in 0.22s ease;
}
.action-fold:not([open]) .action-fold-body { display: none; }
@keyframes action-fold-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.action-fold:hover {
  border-color: #b8c7d6;
}
.action-fold .action-fold-cta:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: -2px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.queue-list { display: grid; gap: 0.4rem; margin-top: 0.35rem; }
.queue-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}
.balance-hint { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }
.inline-check { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.inline-check input { width: auto; }
.trade-offer-card {
  display: grid;
  gap: 0.4rem;
  padding: 0.65rem 0.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.trade-offer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.trade-photo-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.trade-photo-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--white);
}
.trade-inflight { display: grid; gap: 0.5rem; margin-top: 0.35rem; }
.trade-inflight .compact-form { margin-top: 0.35rem; }
.rating-summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}
.rating-summary-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.rating-summary-card strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
@media (max-width: 520px) { .rating-summary-row { grid-template-columns: 1fr; } }
.compact-form {
  max-width: 100%;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.report-form { margin-top: 0.25rem; }

/* —— Auth —— */
.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  margin: 1.25rem 0 2.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: rise 0.5s ease both;
  min-height: min(70vh, 640px);
}
@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { min-height: 180px; }
}
.auth-panel {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-panel .brand-mark {
  color: var(--navy);
  text-shadow: none;
  margin-bottom: 0.5rem;
}
.auth-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 0.98;
}
.auth-panel .page-lead { margin: 0 0 1.25rem; }
.form-auth {
  max-width: 100%;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.auth-switch a {
  color: var(--coral);
  font-weight: 700;
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }
.check-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.65rem;
}
.check-row input {
  width: auto;
  margin-top: 0.2rem;
}
.check-row a { color: var(--sky); font-weight: 700; }
.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.auth-aside {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  background: linear-gradient(155deg, #0a1520 0%, #17324a 55%, #1f4060 100%);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 2rem 1.75rem;
  overflow: hidden;
}
@media (max-width: 860px) {
  .auth-aside { position: static; top: auto; }
}
.auth-aside.sell {
  background: linear-gradient(155deg, #0c1610 0%, #143024 45%, #1e4a34 100%);
}
.auth-aside::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 22px, #0a1520 22px 44px);
}
.auth-aside.sell::before {
  background: repeating-linear-gradient(90deg, var(--amber) 0 22px, #0c1610 22px 44px);
}
.auth-aside-inner { position: relative; z-index: 1; }
.auth-aside .eyebrow { color: var(--amber); }
.auth-aside h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0.35rem 0 0.65rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 14ch;
}
.auth-aside p { margin: 0; color: rgba(255,255,255,0.78); max-width: 28ch; }
.auth-aside p.callout {
  color: var(--navy);
  max-width: none;
  margin-top: 1rem;
}

/* —— Publish —— */
.publish-hero .balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(180deg, #fff8e1, #ffe8a3);
  border: 1px solid #f0d48a;
  color: var(--amber-ink);
  font-weight: 700;
  font-size: 0.92rem;
}
.balance-chip a {
  margin-left: 0.35rem;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.form-publish {
  max-width: 720px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  gap: 1rem;
}
.form-block {
  margin: 0;
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.85rem;
}
.btn-publish { width: 100%; max-width: 720px; }

/* —— Panel / wallet —— */
.panel-config {
  margin: 0 0 1.5rem;
}
.panel-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (min-width: 720px) {
  .panel-config-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}
.panel-config-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.dash-sell .panel-config-card { border-left-color: var(--amber); }
.panel-config-card:hover {
  transform: translateY(-2px);
  border-color: #c8d2dc;
}
.panel-config-card strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.panel-config-card span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}
.loyalty-card-compact .loyalty-card-head h2 {
  font-size: 1.35rem;
}
.loyalty-pitch {
  margin: 0.4rem 0 0.35rem;
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--navy);
  font-weight: 600;
}
.loyalty-spent-line { margin: 0.25rem 0 0; }
.loyalty-why {
  margin: 1rem 0 0;
  padding: 0.85rem 0.95rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.loyalty-why-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--navy);
}
.loyalty-why-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.loyalty-why-list li { margin-bottom: 0.35rem; }
.loyalty-why-list strong { color: var(--navy); }
.loyalty-how {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.loyalty-how li { margin-bottom: 0.4rem; }
.loyalty-hook {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.loyalty-side-label {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
}
.dash-sell .loyalty-side-label { color: #a04b08; }
.loyalty-details {
  margin-top: 0.85rem;
}
.loyalty-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}
.loyalty-details[open] summary {
  margin-bottom: 0.75rem;
}

.panel-hero { padding-bottom: 0.5rem; }
.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
}
@media (max-width: 720px) {
  .panel-stats { grid-template-columns: 1fr; }
}
.panel-stat {
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  box-shadow: var(--shadow);
}
.panel-stat span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.panel-stat strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.panel-stat strong em {
  font-style: normal;
  color: var(--amber-ink);
  font-size: 0.85em;
}
.panel-stat > em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.table-link {
  color: var(--coral);
  font-weight: 700;
  text-decoration: none;
}
.table-link:hover { text-decoration: underline; }

.wallet-hero .balance {
  margin-top: 0.5rem;
}

.campaign-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.campaign-grid .btn { text-transform: none; letter-spacing: 0.02em; }

.geo-filters {
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  box-shadow: var(--shadow);
}
.geo-filters-head { margin-bottom: 0.75rem; }
.geo-filters-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}
.help-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.help-tip-btn {
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  cursor: help;
  display: grid;
  place-items: center;
  text-transform: none;
  letter-spacing: 0;
}
.help-tip-btn:hover,
.help-tip-btn:focus-visible,
.help-tip.is-open .help-tip-btn {
  border-color: var(--coral);
  color: var(--coral);
  background: #fff7f3;
}
.help-tip-btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.help-tip-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  z-index: 40;
  width: min(16.5rem, 72vw);
  padding: 0.65rem 0.75rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 10px 28px rgba(14, 28, 44, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(0.25rem);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.help-tip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--navy);
}
.help-tip:hover .help-tip-bubble,
.help-tip:focus-within .help-tip-bubble,
.help-tip.is-open .help-tip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 720px) {
  .help-tip-bubble {
    left: 0;
    transform: translateX(0) translateY(0.25rem);
    width: min(18rem, calc(100vw - 2.5rem));
  }
  .help-tip-bubble::after {
    left: 0.65rem;
    transform: none;
  }
  .help-tip.is-open .help-tip-bubble {
    transform: translateX(0) translateY(0);
  }
}
.catalog-search-row {
  margin-bottom: 0.85rem;
}
.catalog-search-label {
  display: block;
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.catalog-search-field {
  position: relative;
  display: block;
  margin-top: 0.35rem;
}
.catalog-search-field input[type="search"] {
  width: 100%;
  margin: 0;
  padding: 0.75rem 2.4rem 0.75rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  font: inherit;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.catalog-search-field input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.catalog-search-clear {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.catalog-search-clear:hover { color: var(--ink); }
.geo-filters-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
}
@media (max-width: 900px) {
  .geo-filters-row { grid-template-columns: 1fr 1fr; }
  .geo-filters-row .btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .geo-filters-row { grid-template-columns: 1fr; }
}
.geo-filters label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.geo-filters select {
  margin-top: 0.35rem;
  background: var(--paper);
}
.catalog-results.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.shell { padding-top: 1.25rem; }
.shell:has(.bleed) { padding-top: 0; }
.shell:has(.bleed) > .flash { margin-top: 1rem; }

/* —— Guía / Legal —— */
.guide-hero,
.legal-hero {
  padding-top: 1.75rem;
}
.guide-hero h1,
.legal-hero h1 {
  max-width: 16ch;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.75rem;
  padding: 0.45rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: sticky;
  top: var(--toc-top, 64px);
  z-index: 39;
}
.toc a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  color: var(--navy);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.toc a:hover {
  background: var(--navy);
  color: #fff;
}
.toc a.active {
  border-bottom-color: var(--coral);
  color: var(--coral);
}
.toc a.toc-exit { margin-left: auto; }

.guide-section,
.legal-block {
  position: relative;
  margin: 0 0 1.75rem;
  padding: 1.5rem 1.25rem 1.5rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  box-shadow: var(--shadow);
  scroll-margin-top: 5rem;
}
.guide-section:nth-of-type(odd),
.legal-block:nth-of-type(odd) {
  border-left-color: var(--coral);
}
.guide-section:nth-of-type(3n),
.legal-block:nth-of-type(3n) {
  border-left-color: var(--amber);
}
.guide-section:nth-of-type(4n),
.legal-block:nth-of-type(4n) {
  border-left-color: var(--sky);
}

.guide-num {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(14, 28, 44, 0.28);
}

.guide-section h2,
.legal-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.1;
  max-width: 22ch;
}
.guide-section > p,
.legal-block > p {
  margin: 0 0 0.85rem;
  color: var(--ink);
  max-width: 62ch;
}
.guide-link {
  margin: 1rem 0 0 !important;
}
.guide-link a {
  color: var(--coral);
  font-weight: 800;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.guide-link a:hover { text-decoration: underline; }

.guide-bullets {
  color: var(--muted);
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
}
.guide-bullets li { margin-bottom: 0.45rem; }

.legal-doc {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Override older bare guide-section rules when stacked */
.guide-section .explain-grid,
.guide-section .play-steps,
.guide-section .costs-table {
  margin-top: 1rem;
}

/* Report icon + modals login/report */
.product-tools {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.35rem;
}
.report-icon-btn {
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(198, 40, 40, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.report-icon-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.report-overlay,
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.report-overlay.is-open,
.login-overlay.is-open { display: flex; }
.report-overlay[hidden],
.login-overlay[hidden] { display: none !important; }
.report-overlay.is-open[hidden],
.login-overlay.is-open[hidden] { display: flex !important; }
.report-backdrop,
.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 38, 58, 0.5);
  backdrop-filter: blur(8px);
}
.report-modal,
.login-modal {
  position: relative;
  width: min(440px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem 1.35rem 1.35rem;
  animation: popIn 0.28s ease both;
  box-shadow: 0 24px 60px rgba(18, 38, 58, 0.2);
  display: grid;
  gap: 0.65rem;
}
.report-modal h2,
.login-modal h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
}
body.modal-open { overflow: hidden; }

/* Modal apartar + switch de pago */
.reserve-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.reserve-overlay.is-open { display: flex; }
.reserve-overlay[hidden] { display: none !important; }
.reserve-overlay.is-open[hidden] { display: flex !important; }
.reserve-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 38, 58, 0.5);
  backdrop-filter: blur(8px);
}
.reserve-modal {
  position: relative;
  width: min(420px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem 1.35rem 1.25rem;
  animation: popIn 0.28s ease both;
  box-shadow: 0 24px 60px rgba(18, 38, 58, 0.2);
  display: grid;
  gap: 0.75rem;
}
.reserve-modal h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
}
.reserve-product-name {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
}
.pay-switch {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.pay-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pay-switch-ui {
  flex: 0 0 auto;
  width: 3.1rem;
  height: 1.85rem;
  border-radius: 999px;
  background: #c5ced8;
  position: relative;
  transition: background 0.2s ease;
}
.pay-switch-ui::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transition: transform 0.2s ease;
}
.pay-switch input:checked + .pay-switch-ui {
  background: var(--coral);
}
.pay-switch input:checked + .pay-switch-ui::after {
  transform: translateX(1.25rem);
}
.pay-switch-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.pay-switch-copy strong {
  font-size: 0.95rem;
  color: var(--navy);
}
.pay-switch-copy em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}
.reserve-confirm-form .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.reserve-detail-link {
  text-align: center;
  font-size: 0.85rem;
}

/* Chat (polling) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.chat-stage {
  display: grid;
  gap: 0.85rem;
  max-width: 720px;
  margin: 1rem auto 2rem;
}
.chat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  justify-content: space-between;
}
.chat-head h1 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
}
.chat-thread-list {
  display: grid;
  gap: 0.55rem;
  max-width: 640px;
}
.chat-thread-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  align-items: start;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.chat-thread-row.is-unread {
  border-left: 4px solid var(--coral);
  background: #fff7f3;
}
.chat-thread-main {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.chat-thread-row strong { color: var(--navy); }
.chat-thread-row span { color: var(--muted); font-size: 0.9rem; }
.chat-preview {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  color: var(--navy);
  line-height: 1.35;
}
.chat-thread-row.is-unread .chat-preview { font-weight: 600; }
.chat-unread-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--coral);
  vertical-align: middle;
  margin-left: 0.2rem;
}
.chat-thread-row em { font-style: normal; font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.nav-msg-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}
.nav-msg-badge.hidden { display: none; }

.notif-wrap { position: relative; }
#notif-bell-btn {
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
#notif-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.5rem;
  margin-left: 0;
}
.notif-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  width: min(320px, 90vw);
  max-height: 70vh;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.6rem;
  z-index: 60;
}
.notif-dropdown.hidden { display: none; }
@media (max-width: 480px) {
  .notif-dropdown.mobile-fixed {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-height: 60vh;
  }
}

.field-hint.name-ok { color: #2f9e57; font-weight: 600; }
.field-hint.name-taken { color: var(--coral); font-weight: 600; }
.name-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.name-suggestions.hidden { display: none; }
.name-suggestion-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.name-suggestion-chip:hover { border-color: var(--coral); color: var(--coral); }

.pw-strength {
  display: block;
  height: 0.3rem;
  background: var(--paper);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.4rem 0 0.15rem;
}
.pw-strength-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--line);
  transition: width 0.2s ease, background 0.2s ease;
}
.pw-strength-bar.pw-weak { background: var(--coral); }
.pw-strength-bar.pw-medium { background: var(--amber); }
.pw-strength-bar.pw-strong { background: #2f9e57; }

.cat-menu-wrap { position: relative; }
#cat-menu-btn { display: inline-flex; align-items: center; gap: 0.3rem; }
.cat-menu-caret { font-size: 0.65rem; }
.cat-menu-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 0.6rem);
  width: min(30rem, 90vw);
  max-height: 75vh;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.6rem;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.15rem;
}
.cat-menu-dropdown.hidden { display: none; }
.cat-menu-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: calc(var(--radius) - 4px);
  text-decoration: none;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
}
.cat-menu-dropdown a:hover { background: var(--paper); }
.cat-menu-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.cat-menu-icon svg { width: 1.1rem; height: 1.1rem; }
@media (max-width: 560px) {
  .cat-menu-dropdown { grid-template-columns: 1fr; width: min(20rem, 85vw); }
}
.notif-empty {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.6rem;
  margin: 0;
}
.notif-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.notif-item a, .notif-item > strong {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: calc(var(--radius) - 4px);
  text-decoration: none;
  color: var(--navy);
}
.notif-item a:hover { background: var(--paper); }
.notif-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.15rem;
}
.notif-item.unread a, .notif-item.unread > strong { background: rgba(255, 77, 46, 0.08); }
.chat-log {
  min-height: 280px;
  max-height: 55vh;
  overflow-y: auto;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.chat-bubble {
  max-width: 85%;
  padding: 0.65rem 0.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  align-self: flex-start;
}
.chat-bubble.is-mine {
  align-self: flex-end;
  background: #e8f3fb;
  border-color: #b7d4ea;
}
.chat-bubble p { margin: 0; white-space: pre-wrap; }
.chat-bubble time {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.chat-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: end;
}
.chat-composer textarea {
  width: 100%;
  resize: vertical;
  min-height: 3rem;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--white);
}
@media (max-width: 560px) {
  .chat-composer { grid-template-columns: 1fr; }
}

/* Loyalty ladder */
.loyalty-card {
  margin: 0 0 1.25rem;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}
.loyalty-card-head h2 {
  margin: 0.2rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
}
.loyalty-progress-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.loyalty-bar {
  height: 0.65rem;
  background: #e6edf4;
  overflow: hidden;
}
.loyalty-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c47a3a, var(--amber));
}
.loyalty-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
@media (max-width: 800px) {
  .loyalty-levels { grid-template-columns: 1fr; }
}
.loyalty-level {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.loyalty-level.is-current {
  border-color: var(--amber);
  background: #fff8ef;
  box-shadow: inset 0 0 0 1px rgba(196, 122, 58, 0.25);
}
.loyalty-level header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.45rem;
}
.loyalty-level header strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.loyalty-level header em {
  width: 100%;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}
.loyalty-you {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a5a2b;
  background: #f3e0c8;
  padding: 0.15rem 0.4rem;
}
.loyalty-level ul {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--navy-2);
  font-size: 0.86rem;
}
.loyalty-level li { margin-bottom: 0.25rem; }
.tier-silver { color: #5a6b7a; }
.tier-gold { color: #875d00; }

.role-dual-lead {
  display: none;
}
.role-dual-lead strong { color: var(--navy); }
.loyalty-next-hint {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: var(--navy-2);
}
.loyalty-next-hint a { color: var(--coral); font-weight: 700; }
