/* ============================================================
   SOPHIARIS — Custom Apparel
   Sistema de diseño 2026. Negro 70 · Blanco 20 · Dorado 10.
   Sin framework. Un solo acento. Radio 2px.
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --gold:      #C99A1F;
  --gold-2:    #A97812;
  --gold-3:    #E4BE5B;

  --bg:        #0A0A0A;
  --bg-2:      #0E0E0E;
  --bg-3:      #141414;
  --panel:     #111111;
  --ink:       #FAFAF8;
  --ink-2:     #9C978E;
  --ink-3:     #6E6A64;
  --rule:      #232323;
  --rule-2:    #2E2E2E;
  --overlay:   rgba(10, 10, 10, .68);
  --on-gold:   #0A0A0A;

  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 18px 48px -24px rgba(0,0,0,.9);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);

  --display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --body:    "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r:    2px;
  /* Alto común de todos los controles: inputs, selects y botones encajan. */
  --control-h: 46px;
  --control-h-sm: 40px;
  --wrap: 1280px;
  --pad:  clamp(18px, 4vw, 40px);
  --sec:  clamp(64px, 8vw, 128px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

:root[data-theme="light"] {
  --bg:        #FAFAF8;
  --bg-2:      #FFFFFF;
  --bg-3:      #F1EFE9;
  --panel:     #FFFFFF;
  --ink:       #0A0A0A;
  --ink-2:     #605B54;
  --ink-3:     #8A857D;
  --rule:      #E3DFD6;
  --rule-2:    #D5D0C5;
  --overlay:   rgba(250, 250, 248, .58);
  --gold:      #A97812;
  --gold-2:    #8C6210;
  --gold-3:    #C99A1F;
  --on-gold:   #FFFFFF;

  --shadow:    0 1px 2px rgba(20,18,14,.05), 0 18px 44px -26px rgba(20,18,14,.28);
  --shadow-sm: 0 1px 2px rgba(20,18,14,.06);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* `clip` en vez de `hidden`: recorta el desborde lateral sin romper position: sticky. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .3s var(--ease), color .3s var(--ease);
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, figure, dl, dd, blockquote { margin: 0; }
/* min-width: 0 anula el `min-inline-size: min-content` que Chrome aplica a
   los fieldset y que impide que su contenido con scroll se encoja. */
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.01em;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r);
}

::selection { background: var(--gold); color: var(--on-gold); }

.sr, .skip {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 999;
  width: auto; height: auto; clip: auto; margin: 0;
  padding: 10px 16px; background: var(--gold); color: var(--on-gold);
}

/* ── UTILIDADES ─────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.sec { padding-block: var(--sec); }
.sec--tight { padding-block: clamp(40px, 5vw, 72px); }
.sec--tint { background: var(--bg-2); border-block: 1px solid var(--rule); }

.eyebrow {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow svg { flex: none; }

.sec__head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 62ch; }
.sec__head--split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; max-width: none; flex-wrap: wrap;
}
.sec__title {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}

.muted { color: var(--ink-2); }
.nowrap { white-space: nowrap; }

/* ── BOTONES ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: var(--control-h); padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .4; pointer-events: none; }

.btn--gold    { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); }

.btn--outline { border-color: var(--rule-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn--ghost   { border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { color: var(--gold); }

.btn--lg    { min-height: 54px; padding: 0 32px; font-size: .84rem; }
.btn--sm    { min-height: var(--control-h-sm); padding: 0 16px; font-size: .72rem; }
.btn--block { display: flex; width: 100%; }
.btn--icon  { width: var(--control-h); min-height: var(--control-h); padding: 0; border: 1px solid var(--rule-2); border-radius: var(--r); }
.btn--icon:hover { border-color: var(--gold); color: var(--gold); }

.link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); cursor: pointer;
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.link:hover { gap: 12px; }
.link--muted  { color: var(--ink-2); }
.link--muted:hover { color: var(--ink); }
.link--danger { color: #C4553F; }

/* ── BARRA SUPERIOR ─────────────────────────────────────── */
.strip {
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--ink-2);
}
.strip__in {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; min-height: 38px; flex-wrap: nowrap;
}
.strip span { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; white-space: nowrap; }
.strip svg { color: var(--gold); flex-shrink: 0; }
@media (max-width: 860px) {
  .strip { font-size: .75rem; letter-spacing: .02em; }
  .strip__in {
    justify-content: flex-start; gap: 24px; min-height: 38px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }
  .strip__in::-webkit-scrollbar { display: none; }
  .strip span { scroll-snap-align: start; }
}

/* ── CABECERA ───────────────────────────────────────────── */
.head {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .25s var(--ease);
}
.head.is-stuck { box-shadow: var(--shadow-sm); }

.head__in {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 28px);
  min-height: 76px;
}

.head__burger { display: none; padding: 6px; cursor: pointer; color: var(--ink); }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--display);
  font-size: 1.32rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.brand__tag {
  font-size: .54rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold); margin-top: 4px;
}
.brand--sm img { width: 30px; height: 30px; }
.brand--sm .brand__name { font-size: 1rem; }
.brand--sm i { font-style: normal; color: var(--gold); }

.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); margin-left: 10px; }
.nav > a, .nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 0;
  font-size: .78rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); cursor: pointer;
  transition: color .2s var(--ease);
}
.nav > a::after, .nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .28s var(--ease);
}
.nav > a:hover, .nav__link:hover, .nav > a.is-active { color: var(--ink); }
.nav > a:hover::after, .nav__link:hover::after, .nav > a.is-active::after { width: 100%; }

.nav__drop { position: relative; }
.nav__panel {
  position: absolute; top: calc(100% + 14px); left: -14px; z-index: 70;
  min-width: 230px; padding: 10px;
  background: var(--panel); border: 1px solid var(--rule);
  border-radius: var(--r); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__panel--right { left: auto; right: -10px; }
.nav__drop.is-open .nav__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__panel a {
  display: block; padding: 9px 12px; border-radius: var(--r);
  font-size: .84rem; color: var(--ink-2);
  transition: background .18s, color .18s;
}
.nav__panel a:hover { background: var(--bg-3); color: var(--gold); }
.nav__who {
  display: block; padding: 8px 12px 12px;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid var(--rule); margin-bottom: 6px;
}

.head__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.search { position: relative; display: flex; align-items: center; }
.search input {
  /* Ancho suficiente para el marcador completo; crece con la ventana. */
  width: clamp(230px, 24vw, 340px);
  height: var(--control-h-sm);
  padding: 0 42px 0 14px;
  background: var(--bg-3); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--r);
  font-family: var(--body); font-size: .84rem; font-weight: 300;
  text-overflow: ellipsis;
}
.search input:focus { background: var(--bg-2); }
.search button {
  position: absolute; right: 0; top: 0;
  width: 40px; height: var(--control-h-sm);
  display: grid; place-items: center;
  color: var(--ink-2); cursor: pointer;
}
.search button:hover { color: var(--gold); }
.search--block { width: 100%; margin-bottom: 22px; }
.search--block input { width: 100%; height: var(--control-h); }
.search--block button { height: var(--control-h); }

.ico {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid transparent; border-radius: var(--r);
  color: var(--ink-2); cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.ico:hover { color: var(--gold); border-color: var(--rule); }
.ico__lang { font-size: .72rem; font-weight: 500; letter-spacing: .1em; }

.ico__moon { display: none; }
:root[data-theme="dark"] .ico__sun  { display: none; }
:root[data-theme="dark"] .ico__moon { display: inline-flex; }

.badge {
  position: absolute; top: 1px; right: 0;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--gold); color: var(--on-gold);
  border-radius: 999px;
  font-size: .62rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.badge[hidden] { display: none; }

@media (max-width: 1080px) { .search { display: none; } }
@media (max-width: 980px) {
  .nav { display: none; }
  .head__burger { display: inline-flex; }
  .brand { margin-inline: auto 0; }
  .head__in { min-height: 66px; }
}
@media (max-width: 620px) {
  .head__in { gap: 6px; min-height: 60px; }
  .brand img { width: 34px; height: 34px; }
  .brand__name { font-size: 1.02rem; letter-spacing: .11em; }
  .brand__tag { font-size: .46rem; letter-spacing: .24em; margin-top: 3px; }
  .head__actions { gap: 0; }
  .head__actions .ico { width: 34px; height: 34px; }
  .ico--lang { display: none; }   /* sigue disponible en el menú lateral */
}

/* ── MENÚ MÓVIL ─────────────────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.drawer__panel {
  position: absolute; inset-block: 0; left: 0;
  width: min(340px, 88vw); padding: 22px;
  background: var(--bg); border-right: 1px solid var(--rule);
  display: flex; flex-direction: column;
  overflow-y: auto;
  animation: slideIn .3s var(--ease);
}
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }

.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  padding: 13px 0; border-bottom: 1px solid var(--rule);
  font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.drawer__nav a:hover { color: var(--gold); }
.drawer__sub { padding-left: 14px !important; font-size: .8rem !important; text-transform: none !important; }
.drawer__label {
  padding: 16px 0 6px;
  font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.drawer__social { margin-top: 18px; }
.drawer__social-row { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.drawer__social-row a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--rule); border-radius: var(--r); color: var(--ink-2);
  transition: color .2s, border-color .2s, transform .2s;
}
.drawer__social-row a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }

.drawer__foot { display: flex; gap: 10px; margin-top: auto; padding-top: 24px; }

/* ── PORTADA ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 900px);
  display: grid; align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  transform: scale(1.06);
  animation: slowZoom 22s ease-out forwards;
}
@keyframes slowZoom { to { transform: scale(1); } }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,.94) 0%, rgba(10,10,10,.80) 34%, rgba(10,10,10,.30) 62%, rgba(10,10,10,.20) 100%),
    linear-gradient(180deg, rgba(10,10,10,.62) 0%, rgba(10,10,10,.34) 45%, rgba(10,10,10,.88) 100%),
    radial-gradient(120% 90% at 12% 42%, rgba(201,154,31,.12), transparent 58%);
}
:root[data-theme="light"] .hero__veil {
  background: linear-gradient(90deg, rgba(250,250,248,.94) 0%, rgba(250,250,248,.82) 24%, rgba(250,250,248,.64) 40%, rgba(250,250,248,.16) 57%, transparent 72%);
}
.hero__in { position: relative; z-index: 2; padding-block: 100px 120px; }
.hero__title {
  margin-top: 20px;
  font-size: clamp(2.9rem, 8vw, 6.2rem);
  font-weight: 300;
  letter-spacing: -.02em;
  max-width: 15ch;
}
.hero__text { margin-top: 22px; max-width: 52ch; color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.12rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 26px;
  margin-top: 52px; padding-top: 26px;
  border-top: 1px solid var(--rule);
  font-size: .74rem; letter-spacing: .08em; color: var(--ink-2);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { color: var(--gold); }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; z-index: 2;
  transform: translateX(-50%);
  font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ── CINTA ──────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  background: var(--gold);
  color: var(--on-gold);
  border-block: 1px solid var(--gold-2);
}
.marquee__track {
  display: flex; align-items: center; gap: 26px;
  padding-block: 12px;
  white-space: nowrap;
  animation: slide 42s linear infinite;
  font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
}
.marquee__dot { opacity: .55; font-size: .55rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── VALORES ────────────────────────────────────────────── */
.values { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { padding: clamp(28px, 3.5vw, 44px); background: var(--bg); }
.value__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 20px;
  border: 1px solid var(--rule-2); border-radius: 50%;
  color: var(--gold);
}
.value h3 { font-size: 1.5rem; margin-bottom: 10px; }
.value p  { color: var(--ink-2); font-size: .94rem; }

/* ── COLECCIONES ────────────────────────────────────────── */
.cats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .cats { grid-template-columns: repeat(4, 1fr); } }

.cat {
  position: relative; overflow: hidden;
  border: 1px solid var(--rule); border-radius: var(--r);
  min-height: clamp(280px, 30vw, 420px);
  display: flex; align-items: flex-end;
}
.cat img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), filter .5s var(--ease);
  filter: grayscale(.25) contrast(1.02);
}
.cat::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.05) 20%, rgba(10,10,10,.86) 100%);
}
.cat:hover img { transform: scale(1.07); filter: grayscale(0); }
.cat__body { position: relative; z-index: 2; padding: 24px; color: #FAFAF8; }
.cat__body h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); }
.cat__body p  { margin: 8px 0 14px; font-size: .86rem; color: rgba(250,250,248,.72); max-width: 34ch; }
.cat__link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-3);
  transition: gap .22s var(--ease);
}
.cat:hover .cat__link { gap: 13px; }

/* ── FICHA DE PRODUCTO (tarjeta) ────────────────────────── */
.grid { display: grid; gap: clamp(14px, 2vw, 26px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.grid--3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1080px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card { display: flex; flex-direction: column; height: 100%; }
.card__media {
  position: relative; display: block; overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--rule); border-radius: var(--r);
  aspect-ratio: 4 / 5;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 5px 10px;
  background: var(--gold); color: var(--on-gold);
  border-radius: var(--r);
  font-size: .58rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.card__hover {
  position: absolute; inset-inline: 10px; bottom: 10px; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border: 1px solid var(--rule-2); border-radius: var(--r);
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transform: translateY(8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.card:hover .card__hover { opacity: 1; transform: translateY(0); }
@media (hover: none) { .card__hover { display: none; } }

.card__body { padding-top: 16px; display: flex; flex-direction: column; flex: 1; }
.card__name { font-size: 1.22rem; }
.card__name a:hover { color: var(--gold); }
.card__short { margin-top: 7px; font-size: .84rem; color: var(--ink-2); flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.card__price { font-size: 1.02rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.card__price s { margin-left: 7px; font-size: .82rem; font-weight: 300; color: var(--ink-3); }

/* ── SPLIT (media + texto) ──────────────────────────────── */
.split { display: grid; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split__media { position: relative; min-height: 340px; overflow: hidden; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.92) contrast(1.06) brightness(.92); }
.split__body { display: grid; align-items: center; background: var(--bg-2); border-block: 1px solid var(--rule); }
.split__inner { padding: clamp(38px, 6vw, 92px); max-width: 60ch; }
.split__title { margin-top: 16px; font-size: clamp(1.9rem, 3.4vw, 3rem); }
.split__text { margin-top: 16px; color: var(--ink-2); }

.ticks { margin: 26px 0 32px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 11px; font-size: .88rem; color: var(--ink-2); }
.ticks svg { flex: none; margin-top: 3px; color: var(--gold); }

/* ── PROCESO ────────────────────────────────────────────── */
.steps { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: clamp(26px, 3vw, 40px); background: var(--bg-2); }
.step__n {
  display: block; margin-bottom: 18px;
  font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--gold);
}
.step h3 { font-size: 1.32rem; margin-bottom: 9px; }
.step p  { font-size: .88rem; color: var(--ink-2); }

/* ── BANDA CON IMAGEN ───────────────────────────────────── */
.band, .news, .notfound { position: relative; overflow: hidden; }
/* Sin background-attachment: fixed — provoca repintados costosos al desplazar.
   El efecto de profundidad se consigue con la escala y el velo. */
.band__bg, .news__bg, .notfound__bg, .page-head__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.02);
  will-change: auto;
}
.band__veil, .news__veil, .notfound__veil, .page-head__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.86), rgba(10,10,10,.74));
}
:root[data-theme="light"] .notfound__veil,
:root[data-theme="light"] .page-head__veil {
  background: linear-gradient(180deg, rgba(10,10,10,.64), rgba(10,10,10,.55));
}
:root[data-theme="light"] :is(.band__veil, .news__veil) {
  background: linear-gradient(180deg, rgba(10,10,10,.64), rgba(10,10,10,.55));
}
:root[data-theme="light"] :is(.band__title, .news__title, .band__text, .news__text) {
  color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
:root[data-theme="light"] .band .eyebrow { color: #E4BE5B; }
:root[data-theme="light"] .page-head:not(.page-head--image) {
  background: linear-gradient(90deg, rgba(10,10,10,.76), rgba(10,10,10,.48)), url('../img/bg/rack-gold.jpg') center 42% / cover;
}
:root[data-theme="light"] :is(.page-head__title, .page-head__lead, .notfound__in .hero__title, .notfound__in .hero__text) {
  color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
:root[data-theme="light"] :is(.page-head, .notfound) .eyebrow { color: #E4BE5B; }
:root[data-theme="light"] .notfound .btn--outline { color: #fff; border-color: rgba(255,255,255,.6); }

.band__in {
  position: relative; z-index: 2;
  padding-block: clamp(70px, 9vw, 130px);
  max-width: 72ch;
}
.band__title { margin-top: 16px; font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
.band__text  { margin: 16px 0 28px; color: var(--ink-2); }
.band__in .btn { margin-top: 28px; }

/* ── NEWSLETTER ─────────────────────────────────────────── */
.news__in { position: relative; z-index: 2; padding-block: clamp(64px, 8vw, 110px); text-align: center; }
.news__title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.news__text  { margin: 14px auto 30px; max-width: 48ch; color: var(--ink-2); }
.news__form  { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.news__form { align-items: stretch; }
.news__form input { width: min(340px, 100%); height: var(--control-h); }

/* ── TESTIMONIOS ────────────────────────────────────────── */
.quotes { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { padding: clamp(28px, 3.4vw, 42px); background: var(--bg); }
.quote__stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 18px; }
.quote blockquote {
  margin: 0;
  font-family: var(--display); font-size: 1.32rem; font-style: italic; line-height: 1.42;
}
.quote figcaption {
  margin-top: 18px;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}

/* ── CABECERAS DE PÁGINA ────────────────────────────────── */
.page-head { position: relative; border-bottom: 1px solid var(--rule); overflow: hidden; }
.page-head__in { position: relative; z-index: 2; padding-block: clamp(48px, 7vw, 96px); max-width: 68ch; }
.page-head--image .page-head__in { padding-block: clamp(72px, 9vw, 132px); }
.page-head--tall .page-head__in { padding-block: clamp(96px, 12vw, 180px); }
.page-head__title { margin-top: 16px; font-size: clamp(2.1rem, 5vw, 3.8rem); font-weight: 300; }
.page-head__lead  { margin-top: 16px; color: var(--ink-2); max-width: 56ch; }

.crumbs {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding-block: 22px;
  font-size: .74rem; letter-spacing: .08em; color: var(--ink-3);
}
.crumbs a:hover { color: var(--gold); }

/* ── CATÁLOGO ───────────────────────────────────────────── */
.shop { display: grid; gap: clamp(24px, 3vw, 48px); }
@media (min-width: 980px) { .shop { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.shop__aside { display: grid; gap: 22px; }
@media (min-width: 980px) { .shop__aside { position: sticky; top: 100px; } }
.shop__count { margin-bottom: 22px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

.filters { padding: 22px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--bg-2); }
.filters__title {
  margin-bottom: 20px;
  font-family: var(--body); font-size: .7rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.filters__list { display: grid; gap: 3px; }
.filters__list a {
  display: block; padding: 7px 10px; border-radius: var(--r);
  font-size: .86rem; color: var(--ink-2);
}
.filters__list a:hover { background: var(--bg-3); color: var(--ink); }
.filters__list a.is-active { background: var(--bg-3); color: var(--gold); }
.filters .btn { margin-top: 4px; }
.filters .link { margin-top: 12px; }

.promo { position: relative; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r); min-height: 260px; display: flex; align-items: flex-end; }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.2), rgba(10,10,10,.9)); }
.promo__body { position: relative; z-index: 2; padding: 20px; color: #FAFAF8; }
.promo__body h3 { margin: 8px 0 14px; font-size: 1.3rem; }

/* Los hijos de una rejilla no deben estirar su columna por su ancho mínimo. */
.cz > *, .shop > *, .cart > *, .checkout > *, .contact > *,
.account > *, .success > *, .pd > *, .grid > * { min-width: 0; }

/* ── CAMPOS ─────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field__label {
  display: block; margin-bottom: 8px;
  font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2);
}
.field__label i { font-style: normal; color: var(--ink-3); text-transform: none; letter-spacing: .04em; }

/* Un <input> sin type es de texto: sin incluirlo se quedaba con el estilo del navegador. */
input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
input[type="password"], input[type="number"], input[type="url"], input[type="date"], select, textarea {
  width: 100%; height: var(--control-h); padding: 0 14px;
  background: var(--bg-2); color: var(--ink);
  border: 1px solid var(--rule-2); border-radius: var(--r);
  font-family: var(--body); font-size: .92rem; font-weight: 300;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
textarea { height: auto; min-height: 96px; padding: 13px 14px; resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent);
}
input[type="file"] { height: auto; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.grid-2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.checks { display: flex; gap: 22px; margin-bottom: 22px; flex-wrap: wrap; font-size: .88rem; color: var(--ink-2); }
.checks label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* ── DETALLE DE PRODUCTO ────────────────────────────────── */
.pd { display: grid; gap: clamp(28px, 4vw, 64px); padding-bottom: var(--sec); }
@media (min-width: 900px) { .pd { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } }

.pd__figure { position: relative; margin: 0; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--bg-3); }
.pd__figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.pd__strip {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 14px; padding: 14px 16px;
  border: 1px solid var(--rule); border-radius: var(--r);
  font-size: .72rem; letter-spacing: .06em; color: var(--ink-2);
}
.pd__strip span { display: inline-flex; align-items: center; gap: 7px; }
.pd__strip svg { color: var(--gold); }

@media (min-width: 900px) { .pd__info { position: sticky; top: 100px; } }
.pd__title { margin-top: 14px; font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 300; }
.pd__short { margin-top: 14px; color: var(--ink-2); }
.pd__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
.pd__price strong { font-size: 1.9rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.pd__price s { color: var(--ink-3); }
.pd__price em {
  font-style: normal; padding: 4px 9px;
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  color: var(--gold); border-radius: var(--r);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
}
.pd__form { margin-top: 22px; }
.opt { margin-bottom: 22px; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch > span {
  display: block; width: 34px; height: 34px;
  background: var(--sw); border: 1px solid var(--rule-2); border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--bg);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.swatch em { display: none; }
.swatch input:checked + span { border-color: var(--gold); box-shadow: inset 0 0 0 3px var(--bg), 0 0 0 1px var(--gold); }
.swatch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { position: relative; cursor: pointer; }
.size input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.size > span {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 46px; padding: 10px 14px; justify-content: center;
  border: 1px solid var(--rule-2); border-radius: var(--r);
  font-size: .8rem; letter-spacing: .08em; color: var(--ink-2);
  transition: border-color .2s, color .2s, background .2s;
}
.size > span i { font-style: normal; color: var(--gold); font-size: .7rem; }
.size:hover > span { border-color: var(--ink-3); color: var(--ink); }
.size input:checked + span { border-color: var(--gold); color: var(--gold); background: color-mix(in srgb, var(--gold) 9%, transparent); }
.sizes--wide .size > span { min-width: auto; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule-2); border-radius: var(--r); }
.qty { height: var(--control-h); }
.qty button { width: 40px; height: 100%; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; transition: color .2s; }
.qty button:hover { color: var(--gold); }
.qty input {
  width: 46px; height: 100%; padding: 0; text-align: center;
  background: none; border: 0; border-radius: 0; color: var(--ink);
  font-family: var(--body); font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.qty input:focus { box-shadow: none; background: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: var(--control-h-sm); }
.qty--sm button { width: 34px; }
.qty--sm input { width: 38px; font-size: .88rem; }

.pd__buy { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.pd__buy .btn { flex: 1; min-width: 200px; }
.pd__stock { margin-top: 12px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.pd__custom {
  display: flex; align-items: center; gap: 12px;
  margin-top: 24px; padding: 16px 18px;
  border: 1px dashed var(--rule-2); border-radius: var(--r);
  font-size: .86rem; color: var(--ink-2);
  transition: border-color .2s, color .2s;
}
.pd__custom span { flex: 1; }
.pd__custom svg:first-child { color: var(--gold); }
.pd__custom:hover { border-color: var(--gold); color: var(--ink); }

.pd__sku { margin-top: 20px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pd__sku span { color: var(--ink-2); }

/* ── ACORDEÓN ───────────────────────────────────────────── */
.acc { margin-top: 30px; border-top: 1px solid var(--rule); }
.acc__item { border-bottom: 1px solid var(--rule); }
.acc__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 17px 0; cursor: pointer; text-align: left;
  font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink);
}
.acc__head svg { flex: none; color: var(--gold); transition: transform .3s var(--ease); }
.acc__head[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.acc__head[aria-expanded="true"] + .acc__body { grid-template-rows: 1fr; }
.acc__body > * { overflow: hidden; }
.acc__body p { padding-bottom: 18px; font-size: .9rem; color: var(--ink-2); }

/* ── PERSONALIZADOR ─────────────────────────────────────── */
.cz { display: grid; gap: clamp(24px, 3vw, 52px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .cz { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
@media (min-width: 980px) { .cz__preview { position: sticky; top: 100px; } }

.cz__stage {
  position: relative; overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--rule); border-radius: var(--r);
}
.cz__stage img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.cz__art {
  position: absolute; left: 50%; top: 38%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 34%; aspect-ratio: 4/5;
  border: 1px dashed rgba(201,154,31,.75);
  border-radius: 2px;
  padding: 8px; text-align: center;
  transition: all .35s var(--ease);
}
.cz__art span {
  font-family: var(--display); font-size: clamp(.7rem, 1.6vw, 1.1rem);
  letter-spacing: .1em; color: #FAFAF8; text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
  word-break: break-word;
}
.cz__art[data-place="back"]   { top: 40%; width: 44%; }
.cz__art[data-place="pocket"] { left: 36%; top: 30%; width: 13%; }
.cz__art[data-place="sleeve"] { left: 19%; top: 27%; width: 11%; }
.cz__hint { display: flex; gap: 8px; margin-top: 12px; font-size: .74rem; color: var(--ink-3); }
.cz__hint svg { flex: none; margin-top: 3px; color: var(--gold); }

.cz__garments { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.cz__garment { flex: none; cursor: pointer; position: relative; }
.cz__garment input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cz__garment-box {
  display: flex; flex-direction: column; gap: 6px; width: 110px; padding: 8px;
  border: 1px solid var(--rule-2); border-radius: var(--r);
  transition: border-color .2s;
}
.cz__garment-box img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); }
.cz__garment-box em { font-style: normal; font-size: .7rem; line-height: 1.3; color: var(--ink-2); }
.cz__garment-box b  { font-size: .78rem; font-weight: 500; color: var(--gold); }
.cz__garment input:checked + .cz__garment-box { border-color: var(--gold); }

.cz__cards { display: grid; gap: 10px; }
@media (min-width: 560px) { .cz__cards { grid-template-columns: repeat(2, 1fr); } }
.cz__card { position: relative; cursor: pointer; }
.cz__card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cz__card-box {
  display: block; height: 100%; padding: 15px;
  border: 1px solid var(--rule-2); border-radius: var(--r);
  transition: border-color .2s, background .2s;
}
.cz__card-box b  { display: block; font-size: .88rem; font-weight: 500; }
.cz__card-box em { display: block; margin: 6px 0 10px; font-style: normal; font-size: .74rem; color: var(--ink-2); }
.cz__card-box i  { font-style: normal; font-size: .74rem; color: var(--gold); }
.cz__card input:checked + .cz__card-box { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }

.cz__summary { margin-top: 8px; padding: 22px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--bg-2); }
.cz__summary h3 { font-family: var(--body); font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.cz__summary dl { display: grid; gap: 10px; margin-bottom: 20px; }
.cz__summary dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cz__summary dt { font-size: .84rem; color: var(--ink-2); }
.cz__summary dd { margin: 0; font-variant-numeric: tabular-nums; }
.cz__total { padding-top: 12px; border-top: 1px solid var(--rule); font-size: 1.15rem; }
.cz__total dt { color: var(--ink) !important; font-size: .96rem !important; }
.cz__total dd { color: var(--gold); font-weight: 500; }

.cz__help { margin-top: 18px; padding: 20px; border: 1px dashed var(--rule-2); border-radius: var(--r); }
.cz__help h4 { font-family: var(--display); font-size: 1.24rem; margin-bottom: 8px; }
.cz__help p  { font-size: .86rem; color: var(--ink-2); margin-bottom: 14px; }

/* ── CARRITO ────────────────────────────────────────────── */
.cart { display: grid; gap: clamp(24px, 3vw, 48px); }
@media (min-width: 980px) { .cart { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }

.cart__progress { margin-bottom: 22px; }
.cart__progress p { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-2); }
.cart__progress svg { color: var(--gold); }
.cart__progress .is-ok { color: var(--gold); }
.cart__bar { margin-top: 10px; height: 2px; background: var(--rule); border-radius: 999px; overflow: hidden; }
.cart__bar span { display: block; height: 100%; background: var(--gold); transition: width .5s var(--ease); }

.line {
  display: grid; align-items: center; gap: 14px;
  grid-template-columns: 84px 1fr auto;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
}
@media (min-width: 760px) { .line { grid-template-columns: 96px 1fr auto auto 40px; } }
.line.is-going { opacity: .35; }
.line__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--rule); border-radius: var(--r); }
.line__body h3 { font-size: 1.14rem; }
.line__body h3 a:hover { color: var(--gold); }
.line__opts { margin-top: 7px; display: grid; gap: 2px; font-size: .74rem; color: var(--ink-3); }
.line__opts span { color: var(--ink-2); }
.line__unit { margin-top: 8px; font-size: .84rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.line__total { font-size: 1.02rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line__del { padding: 8px; color: var(--ink-3); cursor: pointer; transition: color .2s; }
.line__del:hover { color: #C4553F; }
@media (max-width: 759px) {
  .line__qty, .line__total { grid-column: 2 / -1; }
  .line__del { position: relative; }
}

.cart__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; flex-wrap: wrap; }

.card-panel {
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--r);
}
.card-panel + .card-panel { margin-top: 20px; }
@media (min-width: 980px) { .sticky { position: sticky; top: 100px; } }

.side__title {
  margin-bottom: 18px;
  font-family: var(--body); font-size: .7rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.side__list { display: grid; gap: 12px; margin-bottom: 20px; }
.side__list li { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--ink-2); }
.side__list svg { flex: none; margin-top: 4px; color: var(--gold); }
.side__list a:hover { color: var(--gold); }
.side__hours { margin: 18px 0; font-size: .84rem; color: var(--ink-2); }

.side__social { display: grid; gap: 8px; }
.side__social a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border: 1px solid var(--rule); border-radius: var(--r);
  font-size: .86rem; color: var(--ink-2);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.side__social a:hover {
  color: var(--gold); border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 7%, transparent);
  transform: translateX(3px);
}
.side__social svg { flex: none; color: var(--gold); }
.side__social span { letter-spacing: .06em; }
.side__social i { margin-left: auto; font-style: normal; font-size: .76rem; color: var(--ink-3); }

.totals { display: grid; gap: 11px; margin-bottom: 20px; }
.totals > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.totals dt { font-size: .86rem; color: var(--ink-2); }
.totals dd { margin: 0; font-size: .92rem; font-variant-numeric: tabular-nums; }
.totals .is-off dd { color: var(--gold); }
.totals__grand { padding-top: 13px; margin-top: 4px; border-top: 1px solid var(--rule); }
.totals__grand dt { font-size: .96rem !important; color: var(--ink) !important; }
.totals__grand dd { font-size: 1.34rem; color: var(--gold); }

.coupon { margin-bottom: 20px; }
.coupon__row { display: flex; gap: 8px; align-items: stretch; }
.coupon__row input { flex: 1; min-width: 0; }
.coupon__row .btn { flex: none; white-space: nowrap; }
.coupon__on { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid var(--gold); border-radius: var(--r); }
.coupon__on span { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; letter-spacing: .1em; color: var(--gold); }

.mini { display: grid; gap: 14px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.mini li { display: flex; align-items: center; gap: 12px; }
.mini img { width: 48px; height: 60px; object-fit: cover; border: 1px solid var(--rule); border-radius: var(--r); flex: none; }
.mini div { flex: 1; min-width: 0; }
.mini p { font-size: .86rem; }
.mini span { display: block; font-size: .74rem; color: var(--ink-3); }
.mini__opts { color: var(--ink-3) !important; font-size: .68rem !important; }
.mini b { font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── CHECKOUT ───────────────────────────────────────────── */
.checkout { display: grid; gap: clamp(22px, 3vw, 44px); }
@media (min-width: 980px) { .checkout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
.checkout__main { display: grid; gap: 20px; }

.pays { display: grid; gap: 10px; }
.pay { position: relative; cursor: pointer; }
.pay input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pay__box { display: block; padding: 15px 17px; border: 1px solid var(--rule-2); border-radius: var(--r); transition: border-color .2s, background .2s; }
.pay__box b  { display: block; font-size: .9rem; font-weight: 500; }
.pay__box em { display: block; margin-top: 5px; font-style: normal; font-size: .78rem; color: var(--ink-2); }
.pay input:checked + .pay__box { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }

.success { display: grid; gap: 22px; }
@media (min-width: 900px) { .success { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
.success .btn + .btn { margin-top: 10px; }

/* ── AUTENTICACIÓN ──────────────────────────────────────── */
.auth { display: grid; min-height: calc(100vh - 76px); }
@media (min-width: 900px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth__media { position: relative; display: none; overflow: hidden; }
@media (min-width: 900px) { .auth__media { display: block; } }
.auth__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); }
.auth__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.35), rgba(10,10,10,.9)); }
.auth__quote { position: absolute; z-index: 2; inset-inline: 48px; bottom: 48px; color: #FAFAF8; }
.auth__quote p { font-family: var(--display); font-size: 2.1rem; line-height: 1.14; }
.auth__quote span { display: block; margin-top: 14px; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-3); }

.auth__panel { display: grid; place-items: center; padding: clamp(32px, 6vw, 72px) var(--pad); }
.auth__form { width: min(420px, 100%); }
.auth__title { margin-top: 14px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.auth__lead { margin: 12px 0 30px; color: var(--ink-2); font-size: .92rem; }
.auth__swap { margin-top: 22px; font-size: .86rem; color: var(--ink-2); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── CUENTA / TABLAS ────────────────────────────────────── */
.account { display: grid; gap: 22px; }
@media (min-width: 900px) { .account { grid-template-columns: 320px minmax(0, 1fr); align-items: start; } }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table th {
  padding: 0 14px 12px; text-align: left;
  font-size: .64rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 1px solid var(--rule);
}
.table td { padding: 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table td form { display: inline-block; margin-left: 12px; }
.thumb { width: 44px; height: 54px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--rule); }

.pill {
  display: inline-block; padding: 4px 10px;
  border: 1px solid var(--rule-2); border-radius: 999px;
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.pill--confirmed, .pill--production { border-color: var(--gold); color: var(--gold); }
.pill--shipped, .pill--delivered { border-color: #4E8A63; color: #6FAE85; }
.pill--cancelled { border-color: #8A4E4E; color: #C4553F; }

/* ── POLÍTICAS ──────────────────────────────────────────── */
.policies { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.policy { display: flex; gap: 20px; padding: clamp(24px, 3vw, 40px); background: var(--bg); }
.policy h2 { font-size: 1.5rem; margin-bottom: 10px; }
.policy p  { color: var(--ink-2); font-size: .92rem; max-width: 72ch; }
.policy .value__ico { margin-bottom: 0; flex: none; }

/* ── PROSA ──────────────────────────────────────────────── */
.prose-split { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 900px) { .prose-split { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.prose-split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--rule); border-radius: var(--r); filter: grayscale(.85) contrast(1.05); }
.prose { display: grid; gap: 20px; }
.prose p { color: var(--ink-2); font-size: clamp(.98rem, 1.2vw, 1.08rem); }
.prose p:first-child { color: var(--ink); font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.34; }

.stats { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: clamp(26px, 3vw, 44px); background: var(--bg-2); text-align: center; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 400; color: var(--gold); }
.stat span { display: block; margin-top: 8px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* ── CONTACTO ───────────────────────────────────────────── */
.contact { display: grid; gap: clamp(22px, 3vw, 44px); }
@media (min-width: 980px) { .contact { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }

/* ── PAGINACIÓN / VACÍO ─────────────────────────────────── */
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 48px; flex-wrap: wrap; }
.pager__step { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.pager__step:hover { color: var(--gold); }
.pager__step.is-off { opacity: .35; }
.pager__nums { display: flex; gap: 5px; }
.pager__num {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--rule); border-radius: var(--r);
  font-size: .84rem; font-variant-numeric: tabular-nums; color: var(--ink-2);
}
.pager__num:hover { border-color: var(--gold); color: var(--gold); }
.pager__num.is-active { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }

.empty { display: grid; place-items: center; gap: 14px; padding: clamp(48px, 8vw, 100px) 20px; text-align: center; border: 1px dashed var(--rule-2); border-radius: var(--r); }
.empty svg { color: var(--ink-3); }
.empty p { color: var(--ink-2); }
.empty--lg h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* ── ALERTAS Y AVISOS ───────────────────────────────────── */
.alert {
  display: flex; align-items: center; gap: 11px;
  margin-top: 20px; padding: 14px 18px;
  border: 1px solid var(--rule-2); border-left: 2px solid var(--gold);
  border-radius: var(--r); background: var(--bg-2);
  font-size: .88rem;
}
.alert--error { border-left-color: #C4553F; }
.alert svg { flex: none; color: var(--gold); }
.alert--error svg { color: #C4553F; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 300;
  transform: translate(-50%, 20px);
  padding: 13px 22px;
  background: var(--gold); color: var(--on-gold);
  border-radius: var(--r); box-shadow: var(--shadow);
  font-size: .82rem; letter-spacing: .08em;
  opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  background: #1FA855; color: #fff;
  border-radius: 50%; box-shadow: var(--shadow);
  transition: transform .22s var(--ease);
}
.wa:hover { transform: scale(1.07); }

/* ── PIE ────────────────────────────────────────────────── */
.foot { position: relative; background: var(--bg-2); border-top: 1px solid var(--rule); overflow: hidden; }
.foot__bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 62%);
}
.foot__in {
  position: relative; z-index: 2;
  display: grid; gap: 36px;
  padding-block: clamp(48px, 6vw, 80px);
}
@media (min-width: 860px) { .foot__in { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; } }

.foot__brand img { width: 74px; height: 74px; object-fit: contain; }
.foot__pitch { margin: 18px 0 22px; font-size: .86rem; color: var(--ink-2); max-width: 42ch; }
.foot__social { display: flex; gap: 8px; }
.foot__social a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--rule); border-radius: var(--r); color: var(--ink-2);
  transition: color .2s, border-color .2s;
}
.foot__social a:hover { color: var(--gold); border-color: var(--gold); }

.foot__col { display: grid; gap: 11px; align-content: start; }
.foot__title {
  font-family: var(--body); font-size: .66rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 4px;
}
.foot__col a, .foot__col span { font-size: .86rem; color: var(--ink-2); }
.foot__col a:hover { color: var(--gold); }

.foot__bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding-block: 20px; border-top: 1px solid var(--rule);
  font-size: .72rem; letter-spacing: .06em; color: var(--ink-3);
}

/* ── FIRMA COMPACTA (barra inferior) ────────────────────── */
.tst-dev {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .72rem; letter-spacing: .06em; color: var(--ink-3);
  transition: color .2s var(--ease);
}
.tst-dev strong { font-weight: 500; color: var(--ink-2); transition: color .2s var(--ease); }
.tst-dev:hover, .tst-dev:hover strong { color: var(--gold); }
.tst-dev__logo { width: 22px; height: 22px; object-fit: contain; opacity: .8; transition: opacity .2s var(--ease); }
.tst-dev:hover .tst-dev__logo { opacity: 1; }

/* Una variante del monograma por tema. */
.tst-dev__logo--dark { display: none; }
:root[data-theme="light"] .tst-dev__logo--light { display: none; }
:root[data-theme="light"] .tst-dev__logo--dark  { display: block; }

/* ── FRANJA DE FIRMA TST SOLUTIONS ──────────────────────── */
/* Banda oscura fija en ambos temas: separa el sitio del cliente de la firma
   de quien lo construyó, sin depender de los tokens de tema. */
.tst {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 5vw, 76px);
  background: #08080A;
  color: #E9E7E2;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

/* Halo dorado tenue en la esquina, del mismo lenguaje que el resto del sitio. */
.tst::before {
  content: "";
  position: absolute;
  inset: -40% 55% 40% -10%;
  background: radial-gradient(closest-side, rgba(201, 154, 31, .20), transparent 70%);
  pointer-events: none;
}

.tst__inner { position: relative; z-index: 1; }

.tst__principal { display: grid; gap: clamp(28px, 3.5vw, 60px); }
@media (min-width: 860px) {
  .tst__principal { grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); align-items: start; }
}

.tst__marca { display: flex; align-items: center; gap: 16px; color: inherit; }
.tst__logo {
  width: 76px; height: 76px; flex: none; object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45));
  transition: transform .28s var(--ease);
}
.tst__marca:hover .tst__logo { transform: scale(1.05); }

.tst__marca-texto { display: grid; gap: 3px; }
.tst__etiqueta {
  font-size: .64rem; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-3);
}
.tst__nombre { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; color: #FFFFFF; }
.tst__lema { font-size: .74rem; font-style: italic; color: #9A968E; }

.tst__titulo { font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: #FFFFFF; }
.tst__texto { margin-top: 14px; max-width: 60ch; font-size: .92rem; line-height: 1.7; color: #ADA89F; }

.tst__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
/* Los botones viven sobre fondo oscuro fijo: no pueden heredar los tokens del tema. */
.tst__fantasma { color: #E9E7E2; border-color: rgba(255, 255, 255, .28); }
.tst__fantasma:hover { color: var(--gold-3); border-color: var(--gold-3); background: rgba(201, 154, 31, .08); }

.tst__contacto {
  display: flex; flex-wrap: wrap; gap: 12px 30px;
  margin-top: 26px; font-size: .84rem;
}
.tst__contacto a, .tst__contacto span {
  display: inline-flex; align-items: center; gap: 8px;
  color: #ADA89F; transition: color .2s var(--ease);
}
.tst__contacto svg { flex: none; color: var(--gold-3); }
.tst__contacto a:hover { color: var(--gold-3); }

@media (max-width: 560px) {
  .tst__acciones .btn { width: 100%; }
  .tst__logo { width: 60px; height: 60px; }
}

/* ── PANEL ADMIN ────────────────────────────────────────── */
.admin { background: var(--bg-3); }
.ahead { background: var(--bg); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 60; }
.ahead__in {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  max-width: 1400px; margin-inline: auto; padding: 14px var(--pad);
}
.anav { display: flex; gap: 20px; flex-wrap: wrap; }
.anav a { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.anav a:hover, .anav a.is-active { color: var(--gold); }
.ahead__side { display: flex; align-items: center; gap: 16px; margin-left: auto; }

.amain { padding-block: 32px 64px; }
.awrap { max-width: 1400px; margin-inline: auto; padding-inline: var(--pad); }
.atitle { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 26px; }
.atitle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.atitle-row .atitle { margin-bottom: 0; }

.kpis { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-bottom: 24px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 22px; background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--r); }
.kpi .value__ico { width: 36px; height: 36px; margin-bottom: 14px; }
.kpi strong { display: block; font-family: var(--display); font-size: 2.1rem; font-weight: 400; }
.kpi span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

.afoot { margin-top: 40px; padding-block: 18px; background: var(--bg); border-top: 1px solid var(--rule); }
.afoot__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  font-size: .72rem; letter-spacing: .06em; color: var(--ink-3);
}

.atitle-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* Los KPI son enlaces a su sección. */
a.kpi { display: block; transition: border-color .2s var(--ease), transform .12s var(--ease); }
a.kpi:hover { border-color: var(--gold); }
a.kpi:active { transform: translateY(1px); }

.hint { margin-top: 7px; font-size: .74rem; line-height: 1.5; color: var(--ink-3); }
.hint code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; }

/* ── CAMPO DE IMAGEN DEL PANEL ──────────────────────────── */
.upload__row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.upload__preview {
  flex: none; width: 96px; aspect-ratio: 4/5;
  border: 1px solid var(--rule-2); border-radius: var(--r);
  overflow: hidden; background: var(--bg-3);
}
.upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.upload__body { flex: 1; min-width: 220px; }
.upload__body input[type="file"] {
  width: 100%; padding: 11px 12px;
  background: var(--bg-2); color: var(--ink-2);
  border: 1px dashed var(--rule-2); border-radius: var(--r);
  font-family: var(--body); font-size: .82rem; cursor: pointer;
}
.upload__body input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 6px 14px;
  background: var(--bg-3); color: var(--ink);
  border: 1px solid var(--rule-2); border-radius: var(--r);
  font-family: var(--body); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer;
}
.upload__body input[type="file"]::file-selector-button:hover { border-color: var(--gold); color: var(--gold); }
.upload__body input[type="file"]:hover { border-color: var(--gold); }
.upload__path { overflow-wrap: anywhere; }

/* ── CONTABILIDAD E INVENTARIO ──────────────────────────── */
@media (min-width: 1100px) { .kpis--4 { grid-template-columns: repeat(4, 1fr); } }

/* El balance se colorea: verde si queda a favor, rojo si no. */
.kpi--up   strong { color: var(--ok, #4FA57A); }
.kpi--down strong { color: #C4553F; }
.is-up   { color: var(--ok, #4FA57A); }
.is-down { color: #C4553F; }

.period { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.period .field { margin-bottom: 0; }
.period input, .period select { min-width: 170px; }

/* Barras comparativas: sin librerías, el ancho lo calcula el servidor. */
.bars { display: grid; gap: 12px; }
.bars__row { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 12px; }
.bars__label { font-size: .74rem; letter-spacing: .06em; color: var(--ink-3); }
.bars__track { display: grid; gap: 3px; min-width: 0; }
.bars__bar { display: block; height: 8px; border-radius: 2px; min-width: 2px; transition: width .5s var(--ease); }
.bars__bar--in  { background: var(--gold); }
.bars__bar--out { background: var(--rule-2); }
.bars__value { font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars--thin .bars__row { grid-template-columns: 110px 1fr auto; }
.bars--thin .bars__track { gap: 0; }

.bars__key { display: flex; gap: 18px; margin-top: 16px; font-size: .72rem; color: var(--ink-3); }
.bars__key span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.dot--in  { background: var(--gold); }
.dot--out { background: var(--rule-2); }

/* Costo editable en la propia tabla de inventario. */
.inline-cost { display: inline-flex; align-items: center; gap: 6px; }
.inline-cost input { width: 88px; height: var(--control-h-sm); text-align: right; font-size: .84rem; }

.moves { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.move {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center;
  gap: 12px; padding: 11px 13px; background: var(--bg-2);
}
.move__qty {
  font-variant-numeric: tabular-nums; font-size: .88rem; font-weight: 500;
  text-align: center; color: var(--ink-3);
}
.move--in  .move__qty { color: var(--ok, #4FA57A); }
.move--out .move__qty { color: #C4553F; }
.move__body { min-width: 0; display: grid; gap: 2px; }
.move__body strong { font-size: .84rem; font-weight: 400; overflow-wrap: anywhere; }
.move__body em { font-style: normal; font-size: .7rem; color: var(--ink-3); }
.move__after {
  font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--ink-2);
  padding-left: 10px; border-left: 1px solid var(--rule);
}

.cz__cards--2 { grid-template-columns: repeat(2, 1fr); }

.msgs { display: grid; gap: 1px; background: var(--rule); }
.msg { padding: 18px; background: var(--bg-2); }
.msg header { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; margin-bottom: 8px; font-size: .82rem; }
.msg header form { margin-left: auto; }
.msg__subject { font-weight: 500; margin-bottom: 6px; }
.msg p { font-size: .9rem; color: var(--ink-2); }

/* ── PROVEEDORES ────────────────────────────────────────── */
.period .field--grow { flex: 1 1 280px; }
.period .field--grow input { width: 100%; min-width: 0; }
.kpi strong small { margin-left: 2px; font-size: 1rem; color: var(--ink-3); }

/* Un proveedor inactivo se atenúa, pero sus acciones siguen legibles. */
.table tr.is-off td { opacity: .55; }
.table tr.is-off td:last-child { opacity: 1; }
.sup-name { font-weight: 500; color: var(--ink); }
.sup-name:hover { color: var(--gold); }
.sup-name + .pill { margin-left: 8px; vertical-align: middle; }

.sup-quick { display: inline-flex; gap: 6px; margin-top: 6px; }
.sup-quick a {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid var(--rule); border-radius: var(--r); color: var(--ink-2);
  transition: color .2s, border-color .2s;
}
.sup-quick a:hover { color: var(--gold); border-color: var(--gold); }

.stars { display: inline-flex; gap: 1px; color: var(--rule-2); white-space: nowrap; vertical-align: middle; }
.stars i { display: inline-flex; font-style: normal; }
.stars .is-on { color: var(--gold); }

.sup-form { display: grid; gap: 20px; }
@media (min-width: 1100px) { .sup-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.sup-col { display: grid; gap: 20px; min-width: 0; }
.sup-col .card-panel + .card-panel { margin-top: 0; }
.sup-hint { margin: -8px 0 18px; }
.sup-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sup-form__foot .checks { margin-bottom: 0; }

.sup-head { display: grid; gap: 6px; }
.sup-head .link { justify-self: start; }
.sup-head .atitle { margin: 0; }
.sup-head__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.sup-layout { display: grid; gap: 22px; }
@media (min-width: 1000px) { .sup-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.sup-layout > * { min-width: 0; }
.sup-aside { display: grid; gap: 20px; }
.sup-aside .card-panel + .card-panel { margin-top: 0; }

.sup-contact { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; font-size: .95rem; }
.sup-contact svg { flex: none; color: var(--gold); }
.sup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.facts > div {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--rule);
}
.facts > div:last-child { border-bottom: 0; }
.facts dt { padding-top: 3px; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 0; font-size: .86rem; color: var(--ink-2); overflow-wrap: anywhere; }
.facts dd a:hover { color: var(--gold); }
.sup-account { font-variant-numeric: tabular-nums; letter-spacing: .04em; }

.sup-notes { font-size: .88rem; line-height: 1.6; color: var(--ink-2); }
.sup-delete { justify-self: start; }
.sup-delete button { display: inline-flex; align-items: center; gap: 8px; }

.ref-link { font-size: .78rem; color: var(--gold); }
.ref-link:hover { text-decoration: underline; }

/* ── ANIMACIÓN DE ENTRADA ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── 404 ────────────────────────────────────────────────── */
.notfound { display: grid; place-items: center; min-height: 70vh; text-align: center; }
.notfound__in { position: relative; z-index: 2; padding-block: 100px; display: grid; justify-items: center; gap: 4px; }
.notfound__in .hero__text { margin-inline: auto; }
.notfound__in .hero__cta { justify-content: center; }

/* ── Sigue tu pedido ─────────────────────────────────────── */
.track { display: grid; gap: clamp(22px, 3vw, 36px); }
@media (min-width: 900px) { .track { grid-template-columns: 380px minmax(0, 1fr); align-items: start; } }
.track__form { display: grid; gap: 14px; }
.track__error { margin: 0; padding: 12px 14px; border: 1px solid rgba(214, 90, 70, .45); border-radius: 12px; color: #e9937f; background: rgba(214, 90, 70, .08); font-size: .92rem; }
.track__help { margin: 0; color: var(--ink-2); font-size: .86rem; }
.track__help a { color: var(--gold); text-decoration: underline; }
.track__head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.track__head span { display: block; color: var(--ink-3); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.track__head strong { display: block; margin-top: 4px; font-size: 1rem; overflow-wrap: anywhere; }
@media (max-width: 520px) { .track__head { grid-template-columns: 1fr 1fr; } .track__head > div:first-child { grid-column: 1 / -1; } }

/* Línea de tiempo del pedido (seguimiento y confirmación) */
.otl { list-style: none; margin: 0 0 18px; padding: 0; }
.otl__step { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding-bottom: 20px; color: var(--ink-3); }
.otl__step:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--rule); }
.otl__step.is-done:not(:last-child)::before { background: var(--gold); }
.otl__dot { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--rule); border-radius: 50%; color: var(--on-gold); background: var(--bg-2); }
.otl__step.is-done .otl__dot { border-color: var(--gold); background: var(--gold); }
.otl__step.is-current .otl__dot { box-shadow: 0 0 0 5px rgba(201, 154, 31, .22); }
.otl__step.is-stopped .otl__dot { border-color: #c2553f; background: #c2553f; color: #fff; }
.otl__step.is-done { color: var(--ink); }
.otl__body strong { display: block; padding-top: 4px; font-weight: 600; }
.otl__body small { color: var(--ink-3); font-size: .78rem; }
.otl__body p { margin: 4px 0 0; color: var(--ink-2); font-size: .9rem; }
.otl__note { padding: 8px 12px; border-left: 3px solid var(--gold); border-radius: 6px; background: var(--bg-3); color: var(--ink) !important; }
@media (min-width: 900px) { .success__track { grid-column: 1; } }

/* Panel · cambio de estado del pedido */
.order-status-form { display: grid; gap: 12px; margin-bottom: 12px; }
.order-status-form__check { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .9rem; }

/* Panel · detalle del pedido: productos y seguimiento anchos; cliente y estado al lado. */
@media (min-width: 900px) {
  .order-admin { grid-template-columns: minmax(0, 1fr) 380px; }
  .order-admin > .card-panel:first-child { grid-column: 1; grid-row: 1; }
  .order-admin > aside.card-panel { grid-column: 2; grid-row: 1 / span 2; }
  .order-admin > .card-panel:last-child:not(aside) { grid-column: 1; grid-row: 2; }
}

/* Ingreso con Google y Facebook, y enlace de recuperación */
.social-login { display: grid; gap: 10px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 18px; border: 1px solid var(--line, #e2ded6); border-radius: 999px; color: #1f1f1f; background: #fff; font-weight: 600; font-size: .92rem; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.social-btn:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-1px); }
.social-btn--facebook { color: #fff; background: #1877f2; border-color: #1877f2; }
.social-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; color: var(--ink-2); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.social-divider::before, .social-divider::after { content: ""; flex: 1; height: 1px; background: var(--line, #e2ded6); }
.auth__forgot { margin: -6px 0 18px; text-align: right; font-size: .85rem; }

/* Cuenta: la inicial del cliente en un círculo, como en las redes sociales. */
.nav__avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #14110b; background: linear-gradient(135deg, var(--gold-3, #e7c77a), var(--gold, #b8891c)); font-weight: 700; font-size: .82rem; }

/* ── VISITAS PÚBLICAS (dashboard del panel, solo `sistema`) ─ */
.vs {
  --vs-gold-text: var(--gold);
  --vs-text: var(--ink);
  --vs-dim: var(--ink-2);
  --vs-track: var(--rule);
  --vs-cream: #F3EBDC;
  margin: 8px 0 28px; padding: clamp(20px, 2.6vw, 34px);
  background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--r);
  border-top: 2px solid var(--gold);
  color: var(--vs-text);
}
.vs { color-scheme: dark; }
:root[data-theme="light"] .vs { --vs-gold-text: var(--gold-2); --vs-cream: #FBF6EC; color-scheme: light; }
.vs__sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.vs__tnum, .vs__num, .vs__n { font-variant-numeric: tabular-nums lining-nums; }
.vs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.vs__eyebrow { margin: 0 0 6px; font-size: .68rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--vs-gold-text); }
.vs__title { margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 500; line-height: 1.05; }
.vs__scope { margin: 0; padding-bottom: 4px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--vs-dim); border-bottom: 1px solid var(--rule-2); }

/* Libro mayor: celdas separadas por filetes de 1px, sin tarjetas sueltas. */
.vs__ledger { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 0 22px; background: var(--rule); border: 1px solid var(--rule); }
.vs__cell { display: flex; flex-direction: column; min-width: 0; padding: 18px 20px 16px; background: var(--bg-2); }
.vs__cell dt { font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--vs-dim); }
.vs__cell dd { display: flex; flex-direction: column; flex: 1; margin: 0; }
.vs__num { display: block; margin: 8px 0 6px; font-family: var(--display); font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 500; line-height: 1; color: var(--vs-text); overflow-wrap: anywhere; }
.vs__note { margin-top: auto; font-size: .76rem; color: var(--vs-dim); }
.vs__cell--lead { background: var(--vs-cream); }
.vs__cell--lead dt { color: #6B4A0B; }
.vs__cell--lead .vs__num { color: #0A0A0A; font-size: clamp(2.4rem, 3.8vw, 3.1rem); }
.vs__cell--lead .vs__note { color: #4F4A43; }
.vs__cell--lead .vs__num::after { content: ""; display: block; width: 36px; height: 2px; margin-top: 10px; background: #A97812; }

.vs__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.vs__panel { min-width: 0; padding: clamp(18px, 2vw, 24px); background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r); }
:root[data-theme="light"] .vs__panel { background: #FFFFFF; }
.vs__panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 18px; }
.vs__panel-head h3 { margin: 0; font-family: var(--display); font-size: 1.45rem; font-weight: 500; }
.vs__panel-head p { margin: 0; font-size: .8rem; color: var(--vs-dim); }
.vs__panel-head strong { color: var(--vs-text); font-weight: 500; }
.vs__muted { color: var(--vs-dim); font-size: .86rem; }

.vs__chart { margin: 0; }
.vs__plot { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; }
.vs__y { position: relative; min-width: 1.6rem; height: 210px; font-size: .7rem; color: var(--vs-dim); text-align: right; }
.vs__y span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.vs__y span:nth-child(1) { top: 0; } .vs__y span:nth-child(2) { top: 50%; } .vs__y span:nth-child(3) { top: 100%; }
.vs__area { position: relative; height: 210px; }
.vs__rules i { position: absolute; left: 0; right: 0; border-top: 1px solid var(--rule); }
.vs__rules i:nth-child(1) { top: 0; } .vs__rules i:nth-child(2) { top: 50%; }
.vs__rules i:nth-child(3) { top: 100%; border-top-color: var(--ink-3); }
.vs__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vs__fill { fill: var(--gold); opacity: .14; }
.vs__line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.vs__points { position: absolute; inset: 0; display: flex; margin: 0; padding: 0; list-style: none; }
.vs__pt { position: relative; flex: 1 1 0; min-width: 0; }
.vs__dot { position: absolute; left: 50%; width: 9px; height: 9px; margin: 0 0 -4.5px -4.5px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); opacity: 0; transition: opacity .15s var(--ease); }
.vs__pt.is-peak .vs__dot, .vs__pt.is-today .vs__dot, .vs__pt:hover .vs__dot { opacity: 1; }
.vs__pt.is-today .vs__dot { background: var(--gold); }
.vs__pt:hover::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed var(--rule-2); }
.vs__tip {
  position: absolute; z-index: 3; bottom: calc(100% + 8px); left: 50%; display: none; flex-direction: column; gap: 1px;
  min-width: max-content; padding: 8px 11px; background: #0A0A0A; color: #FAFAF8; border: 1px solid #C99A1F; border-radius: var(--r);
  font-size: .74rem; line-height: 1.35; transform: translateX(-50%); pointer-events: none;
}
.vs__tip strong { color: #E4BE5B; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: .66rem; }
.vs__pt.tip-end .vs__tip { left: auto; right: 0; transform: none; }
.vs__pt.tip-start .vs__tip { left: 0; transform: none; }
.vs__pt:hover .vs__tip { display: flex; }
.vs__flat { position: absolute; left: 50%; top: 50%; margin: 0; padding: 6px 14px; background: var(--bg-2); border: 1px solid var(--rule-2); font-family: var(--display); font-style: italic; font-size: 1.05rem; line-height: 1.3; text-align: center; color: var(--vs-dim); transform: translate(-50%, -50%); width: max-content; max-width: calc(100% - 16px); }
.vs__x { display: flex; grid-column: 2; margin-top: 8px; font-size: .68rem; letter-spacing: .04em; color: var(--vs-dim); }
.vs__x span { display: flex; flex: 1 1 0; justify-content: center; min-width: 0; white-space: nowrap; visibility: hidden; }
.vs__x span.is-shown { visibility: visible; }
.vs__x span.is-today { justify-content: flex-end; color: var(--vs-gold-text); font-weight: 500; }

.vs__chart figcaption { margin-top: 14px; }
.vs__more summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 0;
  font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--vs-gold-text);
  cursor: pointer; list-style: none;
}
.vs__more summary::-webkit-details-marker { display: none; }
.vs__more summary::after { content: "+"; font-size: 1rem; line-height: 1; letter-spacing: 0; }
.vs__more[open] summary::after { content: "–"; }
.vs__more summary:hover { color: var(--vs-text); }
.vs summary:focus-visible, .vs__table:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.vs__table { max-height: 280px; margin-top: 8px; overflow: auto; border: 1px solid var(--rule); }
.vs__table table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.vs__table th, .vs__table td { padding: 8px 12px; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; color: var(--vs-text); white-space: nowrap; }
.vs__table thead th { position: sticky; top: 0; background: var(--bg-3); color: var(--vs-dim); font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.vs__table .vs__n { text-align: right; }
.vs__table thead th { white-space: normal; vertical-align: bottom; }
.vs__table tbody tr:last-child > * { border-bottom: 0; }

.vs__index { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.vs__index li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 12px; align-items: start; }
.vs__rank { font-family: var(--display); font-size: 1.35rem; line-height: 1.1; color: var(--vs-gold-text); }
.vs__entry { min-width: 0; }
.vs__entry-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vs__entry-name { min-width: 0; font-size: .92rem; font-weight: 500; color: var(--vs-text); overflow-wrap: anywhere; }
.vs__entry-value { flex: none; font-size: .92rem; font-weight: 500; color: var(--vs-text); white-space: nowrap; }
.vs__entry-value small { margin-left: 4px; font-size: .74rem; font-weight: 400; color: var(--vs-dim); }
.vs__route { display: block; margin-top: 1px; font: .72rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--vs-dim); overflow-wrap: anywhere; }
.vs__meter { display: block; height: 3px; margin-top: 7px; background: var(--vs-track); }
.vs__meter span { display: block; height: 100%; background: var(--gold); }

.vs__state { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--rule-2); font-size: .86rem; line-height: 1.5; color: var(--vs-dim); }
.vs__state p { margin: 0; }
.vs__state-title { margin-bottom: 4px !important; font-family: var(--display); font-size: 1.25rem; line-height: 1.2; color: var(--vs-text); }
.vs__state-ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--rule-2); border-radius: 50%; color: var(--vs-gold-text); }
.vs__state--empty { border-style: dashed; }
.vs__state--error { border-color: #C4553F; }
.vs__state--error .vs__state-ico { border-color: #C4553F; color: #E07A62; }
:root[data-theme="light"] .vs__state--error .vs__state-ico { color: #A8412C; }

.vs__method { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule); }
.vs__method ul { display: grid; gap: 6px; max-width: 80ch; margin: 6px 0 0; padding-left: 18px; font-size: .84rem; line-height: 1.55; color: var(--vs-dim); }

@media (min-width: 1101px) {
  .vs__y, .vs__area { height: 290px; }
  .vs__index { gap: 12px; }
  .vs__entry { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: 16px; align-items: center; }
  .vs__entry-line { grid-column: 1 / -1; }
  .vs__meter { margin-top: 0; }
}
@media (max-width: 1100px) {
  .vs__ledger { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vs__cell--lead { grid-column: 1 / -1; }
  .vs__grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .vs__ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs__cell { padding: 14px 14px 12px; }
  .vs__y, .vs__area { height: 170px; }
  .vs__table th, .vs__table td { padding: 8px 9px; }
}
@media (max-width: 400px) {
  .vs { padding: 16px 14px; }
  .vs__panel { padding: 16px 12px; }
  .vs__entry-line { flex-direction: column; gap: 2px; }
  .vs__dot { width: 7px; height: 7px; margin: 0 0 -3.5px -3.5px; }
}
@media (forced-colors: active) {
  .vs__line { stroke: CanvasText; } .vs__meter span { background: CanvasText; }
}
@media (prefers-reduced-motion: reduce) { .vs__dot { transition: none; } }
