/* ==========================================================================
   ZetaWeb Ecommerce — estilos de la tienda (mobile-first)
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-family: var(--f-display); font-weight: 700; letter-spacing: .01em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 3.5vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--c-accent-bright); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--c-accent); color: #fff; }
.mono { font-family: var(--f-mono); font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--c-muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--c-accent); color: #fff; padding: 10px 14px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 8px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.section { padding-block: 40px; }
.section--tight { padding-block: 24px; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section__title { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2rem); text-transform: uppercase; }
.section__title::after { content: ''; display: block; width: 56px; height: 4px; margin-top: 8px; background: linear-gradient(90deg, var(--c-brand-blue) 0 50%, var(--c-accent-bright) 50% 100%); border-radius: 2px; }
.section__link { font-weight: 600; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 28px; height: 28px; }
.icon--xl { width: 56px; height: 56px; stroke-width: 1.5; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--c-surface); --btn-fg: var(--c-text); --btn-border: var(--c-line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1.5px solid var(--btn-border); border-radius: var(--radius-sm);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s;
  user-select: none;
}
.btn:hover { color: var(--btn-fg); border-color: var(--c-ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .55; cursor: not-allowed; transform: none; }
.btn--primary { --btn-bg: var(--c-accent); --btn-fg: #fff; --btn-border: var(--c-accent); box-shadow: 0 2px 0 var(--c-accent-hover); }
.btn--primary:hover { --btn-bg: var(--c-accent-hover); border-color: var(--c-accent-hover); }
.btn--dark { --btn-bg: var(--c-ink); --btn-fg: #fff; --btn-border: var(--c-ink); }
.btn--dark:hover { --btn-bg: var(--c-steel-2); }
.btn--ghost { --btn-bg: transparent; --btn-border: transparent; --btn-fg: var(--c-text); }
.btn--ghost:hover { --btn-bg: rgb(0 0 0 / .05); border-color: transparent; }
.btn--danger { --btn-bg: var(--c-surface); --btn-fg: var(--c-danger); --btn-border: #f0b8b8; }
.btn--danger:hover { --btn-bg: var(--c-danger-soft); border-color: var(--c-danger); }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 1.15rem; }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn--icon { padding: 0; width: 44px; min-width: 44px; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ''; position: absolute; width: 20px; height: 20px; border: 2.5px solid currentColor; border-color: var(--btn-fg) transparent var(--btn-fg) transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-done { --btn-bg: var(--c-success); --btn-border: var(--c-success); box-shadow: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn { background: none; border: 0; padding: 0; color: var(--c-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: .9rem; font-weight: 600; }
.field__label .opt { font-weight: 400; color: var(--c-muted); }
.field__hint { font-size: .82rem; color: var(--c-muted); }
.field__error { font-size: .85rem; color: var(--c-danger); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--c-line-strong); border-radius: var(--radius-sm);
  background: var(--c-surface); font-size: 16px; /* evita el zoom en iOS */
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235d6470' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #aeb5be; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-ink); box-shadow: 0 0 0 3px rgb(21 24 29 / .12); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--c-danger); background: #fffafa; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--c-accent); }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) {
  .form-grid { grid-template-columns: repeat(6, 1fr); }
  .form-grid > .col-2 { grid-column: span 2; }
  .form-grid > .col-3 { grid-column: span 3; }
  .form-grid > .col-4 { grid-column: span 4; }
  .form-grid > .col-6 { grid-column: span 6; }
}

/* ---------- Badges, etiquetas, stock y precios ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: var(--radius-sm); font-family: var(--f-display); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; background: var(--c-ink); color: #fff; }
.badge--sale { background: var(--c-accent); }
.badge--condition { background: var(--c-steel-2); }
.badge--sold { background: #6b7280; }
.badge--reserved { background: var(--c-warning); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--c-line-strong); border-radius: 999px; font-size: .85rem; background: var(--c-surface); }
.tag--used, .tag--refurbished { border-color: #e7c9a8; background: var(--c-warning-soft); color: #7a3d06; }
.tag--new { border-color: #b7e0c5; background: var(--c-success-soft); color: #0f5a2b; }

.price { font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; line-height: 1; color: var(--c-text); letter-spacing: .01em; }
.price--lg { font-size: 2.3rem; }
.price-old { color: var(--c-muted); font-size: .95rem; }
.price-note { color: var(--c-muted); font-size: .85rem; }
.price-block { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }

.stock { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .85rem; font-weight: 600; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.stock--in { color: var(--c-success); }
.stock--low { color: var(--c-warning); }
.stock--reserved { color: var(--c-warning); }
.stock--sold { color: var(--c-muted); }

/* ---------- Avisos ---------- */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--c-line); background: var(--c-surface-2); font-size: .93rem; margin: 0; }
.notice .icon { margin-top: 2px; }
.notice--error { background: var(--c-danger-soft); border-color: #f3c0c0; color: #8c1c1c; }
.notice--success { background: var(--c-success-soft); border-color: #b7e0c5; color: #0f5a2b; }
.notice--warning { background: var(--c-warning-soft); border-color: #f2d6a5; color: #7a3d06; }
.notice--info { background: var(--c-info-soft); border-color: #c7d5fb; color: #1e3a8a; }
.notice--muted { color: var(--c-muted); }
.notice ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------- Topbar + Header ---------- */
.site-header-slot { min-height: var(--header-h); background: var(--c-ink); }
.topbar { background: #0c0e11; color: var(--c-on-dark-muted); font-size: .8rem; }
.topbar__inner { display: flex; justify-content: center; gap: 28px; min-height: 32px; align-items: center; overflow: hidden; }
.topbar__item { display: none; align-items: center; gap: 6px; white-space: nowrap; }
.topbar__item:first-child { display: inline-flex; }
.topbar__item .icon { width: 15px; height: 15px; color: var(--c-accent-bright); }
@media (min-width: 760px) { .topbar__item { display: inline-flex; } }

.header { position: sticky; top: 0; z-index: 50; background: var(--c-ink); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .06); }
.header__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'brand actions' 'search search'; align-items: center; gap: 8px 12px; padding-block: 8px 12px; }
.header__brand { grid-area: brand; display: flex; align-items: center; gap: 2px; min-width: 0; }
.header__menu-btn { color: #fff; margin-left: -10px; }
.header__menu-btn:hover { background: rgb(255 255 255 / .08); color: #fff; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.logo:hover { color: #fff; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text { display: flex; flex-direction: column; min-width: 0; line-height: 1; }
.logo__name { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo__tagline { display: none; font-size: .72rem; color: var(--c-on-dark-muted); margin-top: 3px; white-space: nowrap; }
.header__actions { grid-area: actions; display: flex; align-items: center; gap: 4px; justify-self: end; }
.header__action { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 44px; min-height: 44px; padding: 4px 8px; border: 0; border-radius: var(--radius-sm); background: none; color: #fff; text-decoration: none; font-size: .7rem; }
.header__action:hover { background: rgb(255 255 255 / .08); color: #fff; }
.header__action .icon { width: 24px; height: 24px; }
.header__action-label { display: none; }
.cart-count { position: absolute; top: 2px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--c-accent-bright); color: #111; font-size: .75rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.header__search { grid-area: search; }

.search { position: relative; display: flex; }
.search__input { width: 100%; min-height: 46px; padding: 10px 52px 10px 16px; border: 2px solid transparent; border-radius: var(--radius-sm); background: #fff; font-size: 16px; color: var(--c-text); }
.search__input::placeholder { color: #7a818c; }
.search__input:focus { outline: none; border-color: var(--c-accent-bright); }
.search__btn { position: absolute; right: 3px; top: 3px; bottom: 3px; width: 44px; border: 0; border-radius: 3px; background: var(--c-accent); color: #fff; display: grid; place-items: center; }
.search__btn:hover { background: var(--c-accent-hover); }
.search__suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: #fff; color: var(--c-text); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; max-height: min(70vh, 480px); overflow-y: auto; }
.suggest__item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--c-line); }
.suggest__item:hover, .suggest__item.is-active { background: var(--c-surface-2); color: inherit; }
.suggest__item img { width: 48px; height: 36px; object-fit: cover; border-radius: 3px; background: var(--c-bg); }
.suggest__name { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.suggest__meta { font-size: .8rem; color: var(--c-muted); }
.suggest__price { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; }
.suggest__all { display: block; padding: 12px 14px; font-weight: 600; text-align: center; background: var(--c-surface-2); }
.suggest__empty { padding: 16px; color: var(--c-muted); font-size: .92rem; }

.catnav { background: var(--c-steel); border-top: 1px solid rgb(255 255 255 / .06); display: none; }
.catnav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.catnav__list::-webkit-scrollbar { display: none; }
.catnav__link { display: block; padding: 11px 14px; color: var(--c-on-dark); text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; border-bottom: 3px solid transparent; }
.catnav__link:hover, .catnav__link[aria-current='page'] { color: #fff; border-bottom-color: var(--c-accent-bright); }

@media (min-width: 960px) {
  .header__bar { grid-template-columns: auto minmax(320px, 1fr) auto; grid-template-areas: 'brand search actions'; gap: 32px; padding-block: 14px; }
  .header__menu-btn { display: none; }
  .logo__tagline { display: block; }
  .logo__mark { width: 40px; height: 40px; }
  .logo__name { font-size: 1.55rem; }
  .header__action-label { display: block; }
  .catnav { display: block; }
}

/* Menú móvil (drawer) */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgb(10 12 15 / .55); opacity: 0; transition: opacity .2s; }
.drawer-backdrop.is-open { opacity: 1; }
.drawer { position: fixed; top: 0; bottom: 0; z-index: 100; width: min(420px, 92vw); background: var(--c-surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transition: transform .25s ease; }
.drawer--left { left: 0; transform: translateX(-100%); }
.drawer--right { right: 0; transform: translateX(100%); }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--c-line); }
.drawer__title { margin: 0; font-size: 1.4rem; text-transform: uppercase; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; overscroll-behavior: contain; }
.drawer__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); background: var(--c-surface-2); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; font-weight: 600; }
.menu-list__group { margin: 20px 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 700; }
body.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--c-ink); color: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(ellipse 50% 70% at 10% 0%, rgb(0 123 249 / .28), transparent 60%),
  radial-gradient(ellipse 50% 80% at 95% 30%, rgb(245 18 42 / .25), transparent 60%),
  repeating-linear-gradient(135deg, rgb(255 255 255 / .025) 0 2px, transparent 2px 14px); }
.hero__inner { position: relative; display: grid; gap: 28px; padding-block: 40px 48px; }
.hero__stats { display: grid; grid-template-columns: 1fr; gap: 8px; }
.hero__stat { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; padding: 12px 16px; border: 1px solid rgb(255 255 255 / .1); border-radius: var(--radius); background: rgb(255 255 255 / .04); }
.hero__stat .icon { grid-row: span 2; color: var(--c-accent-bright); width: 28px; height: 28px; }
.hero__stat strong { display: block; font-family: var(--f-display); font-size: 1.1rem; letter-spacing: .03em; text-transform: uppercase; }
.hero__stat span { font-size: .8rem; color: var(--c-on-dark-muted); }
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.4fr 1fr; align-items: center; padding-block: 72px; }
  .hero__stats { gap: 12px; }
  .hero__stat { padding: 18px 20px; }
}

/* ---------- Categorías ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 108px; padding: 14px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.cat-tile:hover { border-color: var(--c-ink); color: var(--c-text); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-tile__name { font-family: var(--f-display); font-size: 1.2rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; position: relative; }
.cat-tile__count { font-size: .8rem; color: var(--c-muted); position: relative; }
.cat-tile__icon { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; color: var(--c-accent); opacity: .9; }
.cat-tile__logo { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.cat-tile--image { color: #fff; border: 0; min-height: 132px; }
.cat-tile--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-tile--image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(10 12 15 / .85), rgb(10 12 15 / .1) 70%); }
.cat-tile--image .cat-tile__name, .cat-tile--image .cat-tile__count { z-index: 1; color: #fff; }
.cat-tile--image:hover { color: #fff; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Tarjetas de producto ---------- */
.grid { display: grid; gap: 12px; }
.grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .catalog .grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .catalog .grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { position: relative; display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .18s, border-color .18s, transform .18s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--c-line-strong); }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: #eef0f3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__badges { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.card__body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 10px 12px 12px; }
.card__meta { margin: 0; font-size: .74rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__title { margin: 0; font-family: var(--f-body); font-size: .92rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card__title a { color: var(--c-text); text-decoration: none; }
.card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; } /* toda la tarjeta es clicable */
.card__title a:hover { color: var(--c-accent); }
.card__ref { margin: 0; font-size: .78rem; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.card__add { position: relative; z-index: 2; }
.card .stock { font-size: .78rem; }
.card--unavailable .card__media img { filter: grayscale(.7); opacity: .75; }
.card--unavailable .price { color: var(--c-muted); }
@media (min-width: 720px) {
  .card__body { padding: 12px 14px 14px; }
  .card__title { font-size: .98rem; }
}

/* Esqueletos de carga */
.skeleton, .card--skeleton .card__media, .sk-line { background: linear-gradient(90deg, #eceef1 0%, #f6f7f9 50%, #eceef1 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius-sm); }
.sk-line { height: 12px; margin: 6px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Bloques informativos (envío, GLS, pagos) ---------- */
.benefits { display: grid; gap: 12px; grid-template-columns: 1fr; }
.benefit { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 18px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.benefit__icon { grid-row: span 2; width: 48px; height: 48px; border-radius: var(--radius); display: grid; place-items: center; background: var(--c-accent-soft); color: var(--c-accent); }
.benefit__icon .icon { width: 26px; height: 26px; }
.benefit__title { margin: 0; font-size: 1.15rem; text-transform: uppercase; }
.benefit__text { margin: 0; font-size: .9rem; color: var(--c-muted); }
@media (min-width: 720px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .benefits { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: 24px; align-items: center; }
.info-band { background: var(--c-surface); border-block: 1px solid var(--c-line); }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(step); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--c-ink); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; }
.steps strong { display: block; }
.steps span { color: var(--c-muted); font-size: .92rem; }
.payment-logos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.payment-logo { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border: 1px solid var(--c-line-strong); border-radius: var(--radius-sm); background: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .02em; color: #2a2f36; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }

.cta-band { background: var(--c-accent); color: #fff; border-radius: var(--radius-lg); padding: 28px 24px; display: grid; gap: 16px; align-items: center; }
.cta-band h2 { margin: 0; text-transform: uppercase; }
.cta-band p { margin: 0; opacity: .92; }
.cta-band .btn { --btn-bg: #fff; --btn-fg: var(--c-accent); --btn-border: #fff; box-shadow: none; }
@media (min-width: 760px) { .cta-band { grid-template-columns: 1fr auto; padding: 32px 40px; } }

/* ---------- Migas de pan y cabeceras de página ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0; padding: 0; list-style: none; font-size: .85rem; color: var(--c-muted); }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--c-line-strong); }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-accent); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--c-text); max-width: 60vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-head { margin: 8px 0 20px; }
.page-head__title { margin: 0 0 4px; text-transform: uppercase; }
.page-head__lead { color: var(--c-muted); margin: 0; max-width: 760px; }

/* ---------- Catálogo ---------- */
.catalog { display: grid; gap: 20px; padding-bottom: 48px; }
.catalog__results { min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.toolbar__count { font-size: .92rem; color: var(--c-muted); }
.toolbar__count strong { color: var(--c-text); }
.toolbar__actions { display: flex; gap: 8px; align-items: center; }
.toolbar .select { min-height: 42px; width: auto; font-size: 15px; padding-block: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 999px; background: var(--c-ink); color: #fff; font-size: .82rem; border: 0; }
.chip .icon { width: 14px; height: 14px; }
.chip--clear { background: transparent; color: var(--c-accent); text-decoration: underline; padding-left: 4px; }
.filters-btn { display: inline-flex; }

.filters { display: none; }
.filters.is-drawer { display: block; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.filter-group:first-child { padding-top: 0; }
.filter-group__title { margin: 0 0 10px; font-family: var(--f-display); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 260px; overflow-y: auto; }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: var(--radius-sm); cursor: pointer; font-size: .93rem; }
.filter-option:hover { background: var(--c-surface-2); }
.filter-option input { width: 18px; height: 18px; accent-color: var(--c-accent); margin: 0; }
.filter-option__count { margin-left: auto; color: var(--c-muted); font-size: .8rem; }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.price-range .input { min-height: 42px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: .93rem; font-weight: 500; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 12px; background: var(--c-line-strong); position: relative; transition: background .15s; flex: none; margin: 0; cursor: pointer; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: var(--shadow-sm); }
.switch input:checked { background: var(--c-accent); }
.switch input:checked::after { transform: translateX(18px); }

@media (min-width: 1024px) {
  .catalog { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
  .filters { display: block; position: sticky; top: calc(var(--header-h) - 20px); align-self: start; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 18px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
  .filters-btn { display: none; }
}
.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 0 8px; }
.load-more__info { font-size: .88rem; color: var(--c-muted); }
.progress { width: 220px; height: 4px; border-radius: 2px; background: var(--c-line); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--c-accent); }

.empty, .empty-state { text-align: center; padding: 48px 16px; color: var(--c-muted); }
.empty-state { padding-block: 72px; }
.empty-state .icon { margin: 0 auto 16px; color: var(--c-line-strong); }
.empty-state h1, .empty-state h2 { color: var(--c-text); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

/* ---------- Página de producto ---------- */
.product-page { padding-bottom: 96px; }
.product { display: grid; gap: 24px; }
.gallery { min-width: 0; }
.gallery__main { position: relative; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery__thumb { flex: none; width: 76px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--c-accent); }
.product__info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.product__meta { margin: 0; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.product__title { margin: 0; font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.08; }
.product__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.product__condition-notes { display: flex; gap: 8px; margin: 0; padding: 10px 12px; background: var(--c-warning-soft); border-radius: var(--radius-sm); font-size: .9rem; color: #6b3605; }
.product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 14px 0; border-block: 1px solid var(--c-line); }
.product__buy { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.trust-list { list-style: none; margin: 4px 0 0; padding: 14px 16px; display: grid; gap: 10px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); font-size: .9rem; }
.trust-list li { display: flex; gap: 10px; align-items: flex-start; }
.trust-list .icon { color: var(--c-accent); margin-top: 1px; }
.product__help { font-size: .92rem; }
.help-box { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; border: 1px dashed var(--c-line-strong); border-radius: var(--radius); }
.product__details { display: grid; gap: 16px; margin-top: 28px; }
.panel { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.panel__title { font-size: 1.3rem; text-transform: uppercase; margin-bottom: 12px; }
.prose { overflow-wrap: anywhere; }
.prose p:last-child { margin-bottom: 0; }
.hint { font-size: .85rem; color: var(--c-muted); margin: 12px 0 0; }
.specs { margin: 0; display: grid; }
.specs > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--c-line); font-size: .93rem; }
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--c-muted); }
.specs dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--c-line-strong); border-radius: var(--radius-sm); background: #fff; height: 52px; }
.qty__btn { width: 44px; border: 0; background: none; font-size: 1.3rem; font-weight: 600; color: var(--c-text); }
.qty__btn:hover { background: var(--c-surface-2); }
.qty__btn:disabled { color: var(--c-line-strong); cursor: not-allowed; }
.qty__input { width: 46px; border: 0; text-align: center; font-weight: 700; font-size: 16px; -moz-appearance: textfield; background: transparent; }
.qty__input::-webkit-inner-spin-button, .qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 40px; }
.qty--sm .qty__btn { width: 36px; font-size: 1.1rem; }
.qty--sm .qty__input { width: 36px; }

.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--c-surface); border-top: 1px solid var(--c-line); box-shadow: 0 -6px 20px rgb(16 24 40 / .08); }
.buy-bar__price { display: flex; flex-direction: column; min-width: 0; }
.buy-bar__name { font-size: .78rem; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 960px) {
  .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .gallery { position: sticky; top: calc(var(--header-h) - 16px); }
  .product__details { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .product__details > .panel:first-child { grid-row: span 2; }
  .buy-bar { display: none !important; }
  .product-page { padding-bottom: 48px; }
}

/* Visor de imagen */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgb(8 9 11 / .94); display: grid; place-items: center; padding: 16px; }
.lightbox img { max-height: 90vh; width: auto; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__close { position: absolute; top: 12px; right: 12px; color: #fff; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; background: rgb(255 255 255 / .1); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox .btn--ghost:hover { background: rgb(255 255 255 / .15); color: #fff; }

/* ---------- Carrito ---------- */
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.cart-line__img { width: 76px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: var(--c-bg); object-fit: cover; border: 1px solid var(--c-line); }
.cart-line__info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-line__name { font-weight: 600; font-size: .93rem; line-height: 1.3; color: var(--c-text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-line__name:hover { color: var(--c-accent); }
.cart-line__meta { font-size: .8rem; color: var(--c-muted); }
.cart-line__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.cart-line__price { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; }
.cart-line__remove { color: var(--c-muted); font-size: .82rem; display: inline-flex; gap: 4px; align-items: center; background: none; border: 0; padding: 6px 0; }
.cart-line__remove:hover { color: var(--c-danger); }
.cart-line__warning { font-size: .82rem; color: var(--c-danger); font-weight: 500; }
.cart-line.is-unavailable { opacity: .7; }
@media (min-width: 720px) {
  .cart-page .cart-line { grid-template-columns: 110px 1fr; gap: 18px; padding: 18px 0; }
  .cart-page .cart-line__img { width: 110px; }
}

.free-ship { padding: 12px 14px; border-radius: var(--radius); background: var(--c-accent-soft); font-size: .88rem; }
.free-ship--done { background: var(--c-success-soft); color: #0f5a2b; }
.free-ship__bar { height: 6px; margin-top: 8px; border-radius: 3px; background: rgb(212 12 37 / .15); overflow: hidden; }
.free-ship__bar > span { display: block; height: 100%; background: var(--c-accent); border-radius: 3px; transition: width .3s; }

.summary { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.summary__title { margin: 0; font-size: 1.35rem; text-transform: uppercase; }
.summary__rows { margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.summary__rows > div { display: flex; justify-content: space-between; gap: 12px; }
.summary__rows dt { color: var(--c-muted); }
.summary__rows dd { margin: 0; font-weight: 600; text-align: right; }
.summary__total { padding-top: 12px; border-top: 1px solid var(--c-line); align-items: baseline; }
.summary__total dt { color: var(--c-text) !important; font-weight: 700; }
.summary__total dd { font-family: var(--f-display); font-size: 1.8rem; font-weight: 700; }
.summary__note { font-size: .8rem; color: var(--c-muted); margin: 0; text-align: center; }
.secure-note { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: .82rem; color: var(--c-muted); margin: 0; }
.secure-note .icon { width: 16px; height: 16px; color: var(--c-success); }

.cart-layout, .checkout-layout { display: grid; gap: 24px; padding-bottom: 48px; }
.cart-layout > *, .checkout-layout > * { min-width: 0; }
@media (min-width: 960px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: start; }
  .sticky-col { position: sticky; top: calc(var(--header-h) - 16px); }
}

/* ---------- Checkout ---------- */
.checkout-steps { display: flex; gap: 6px; list-style: none; margin: 16px 0 20px; padding: 0; font-size: .82rem; color: var(--c-muted); overflow-x: auto; }
.checkout-steps li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.checkout-steps li:not(:last-child)::after { content: ''; width: 18px; height: 1px; background: var(--c-line-strong); margin-left: 6px; }
.checkout-steps .is-current { color: var(--c-text); font-weight: 700; }
.checkout-steps .is-done { color: var(--c-success); }
.step-num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--c-line); color: var(--c-text); font-size: .75rem; font-weight: 700; }
.is-current .step-num { background: var(--c-ink); color: #fff; }
.is-done .step-num { background: var(--c-success); color: #fff; }
.form-section { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.form-section__title { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; text-transform: uppercase; margin: 0 0 16px; }
.form-section__title .step-num { width: 28px; height: 28px; font-size: .95rem; background: var(--c-ink); color: #fff; }
.shipping-option { display: flex; gap: 12px; align-items: center; padding: 14px; border: 2px solid var(--c-accent); border-radius: var(--radius); background: var(--c-accent-soft); }
.shipping-option__logo { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; background: #fff; border: 1px solid var(--c-line); padding: 6px 10px; border-radius: var(--radius-sm); letter-spacing: .04em; color: #172d7a; }
.shipping-option__info { flex: 1; font-size: .9rem; }
.shipping-option__info strong { display: block; font-size: 1rem; }
.shipping-option__price { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; }
.summary-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); font-weight: 600; margin-bottom: 16px; }
.summary-toggle .price { font-size: 1.3rem; }
.summary-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.summary-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: .88rem; }
.summary-item__img { position: relative; }
.summary-item__img img { width: 56px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--c-line); background: var(--c-bg); }
.summary-item__qty { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--c-steel-2); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.summary-item__name { line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.summary-item__price { font-weight: 600; white-space: nowrap; }
.legal-small { font-size: .8rem; color: var(--c-muted); }
@media (min-width: 960px) { .summary-toggle { display: none; } }

/* ---------- Pedido ---------- */
.order-hero { text-align: center; padding: 32px 16px 24px; }
.order-hero__icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--c-success-soft); color: var(--c-success); }
.order-hero__icon .icon { width: 38px; height: 38px; stroke-width: 2.5; }
.order-hero__icon--pending { background: var(--c-warning-soft); color: var(--c-warning); }
.order-hero__icon--error { background: var(--c-danger-soft); color: var(--c-danger); }
.order-number { display: inline-block; font-family: var(--f-mono); font-size: 1rem; padding: 6px 12px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-sm); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.timeline li { position: relative; text-align: center; font-size: .78rem; color: var(--c-muted); padding-top: 34px; }
.timeline li::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--c-line); border: 3px solid var(--c-surface); box-shadow: 0 0 0 1px var(--c-line); z-index: 1; }
.timeline li::after { content: ''; position: absolute; top: 12px; left: -50%; right: 50%; height: 3px; background: var(--c-line); }
.timeline li:first-child::after { display: none; }
.timeline li.is-done { color: var(--c-text); font-weight: 600; }
.timeline li.is-done::before { background: var(--c-success); box-shadow: 0 0 0 1px var(--c-success); }
.timeline li.is-done::after { background: var(--c-success); }
.tracking-box { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--c-info-soft); border: 1px solid #c7d5fb; }
.tracking-box .mono { font-size: 1.1rem; font-weight: 600; }

/* ---------- Páginas de texto y contacto ---------- */
.legal { padding-block: 8px 56px; }
.legal h1 { text-transform: uppercase; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; text-transform: uppercase; }
.legal h3 { font-family: var(--f-body); font-size: 1.02rem; font-weight: 700; margin-top: 1.4em; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--c-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--c-surface-2); }
.legal .updated { color: var(--c-muted); font-size: .88rem; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.legal-nav a { display: inline-block; padding: 6px 12px; border: 1px solid var(--c-line-strong); border-radius: 999px; font-size: .85rem; text-decoration: none; color: var(--c-text); background: var(--c-surface); }
.legal-nav a:hover, .legal-nav a[aria-current='page'] { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }
.contact-grid { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-text); text-decoration: none; }
.contact-card:hover { border-color: var(--c-ink); color: var(--c-text); }
.contact-card strong { display: block; }
.contact-card span { color: var(--c-muted); font-size: .9rem; word-break: break-word; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.card-form { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; display: grid; gap: 16px; }

/* ---------- Footer ---------- */
.footer { margin-top: auto; background: var(--c-ink); color: var(--c-on-dark-muted); font-size: .9rem; }
.footer__top { display: grid; gap: 28px; padding-block: 40px 28px; }
.footer__brand p { margin: 12px 0 0; max-width: 340px; }
.footer__title { margin: 0 0 12px; color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--c-on-dark); text-decoration: none; }
.footer a:hover { color: var(--c-accent-bright); text-decoration: underline; }
.footer__contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer__contact .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--c-accent-bright); }
.footer__bottom { display: flex; flex-direction: column; gap: 12px; padding-block: 18px 24px; border-top: 1px solid rgb(255 255 255 / .08); font-size: .8rem; }
.footer .payment-logo { background: rgb(255 255 255 / .95); border: 0; }
@media (min-width: 720px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Toasts y modal ---------- */
.toasts { position: fixed; z-index: 300; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--c-ink); color: #fff; box-shadow: var(--shadow-lg); font-size: .92rem; pointer-events: auto; animation: toast-in .2s ease; }
.toast--error { background: #8c1c1c; }
.toast--success .icon { color: #6ee7a0; }
.toast a { color: var(--c-accent-bright); font-weight: 700; margin-left: auto; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@media (min-width: 960px) { .toasts { left: auto; right: 24px; transform: none; top: calc(var(--header-h) + 12px); bottom: auto; } }

.modal { border: 0; padding: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 48px); color: var(--c-text); }
.modal::backdrop { background: rgb(10 12 15 / .55); }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--c-line); }
.modal__title { margin: 0; font-size: 1.35rem; text-transform: uppercase; }
.modal__body { padding: 20px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--c-line); background: var(--c-surface-2); flex-wrap: wrap; }

.whatsapp-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 35; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #1fa855; color: #fff; box-shadow: var(--shadow-lg); }
.whatsapp-fab:hover { color: #fff; background: #168a45; }
.whatsapp-fab .icon { width: 28px; height: 28px; }
body[data-page='product'] .whatsapp-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { body[data-page='product'] .whatsapp-fab { bottom: 24px; } .whatsapp-fab { right: 24px; bottom: 24px; } }
body[data-page='checkout'] .whatsapp-fab, body[data-page='cart'] .whatsapp-fab { display: none; }
.missing-data { background: #fff3cd; color: #7a4b00; padding: 0 4px; border-radius: 3px; font-weight: 600; }
p > .icon, .muted > .icon { display: inline-block; vertical-align: -3px; }
.cta-band .btn { white-space: normal; text-align: center; }
.toolbar__actions { min-width: 0; max-width: 100%; }
.toolbar .select { min-width: 0; max-width: min(240px, 58vw); text-overflow: ellipsis; }

/* Logotipo en imagen (settings/store.logoUrl) */
.logo__img { display: block; height: 40px; width: auto; max-width: 62vw; }
@media (min-width: 960px) { .logo__img { height: 48px; } }
.footer .logo__img { height: 44px; }
/* Póster de marca: en móvil va arriba a todo el ancho y se funde con el fondo; en escritorio, a la derecha */
.hero__visual { order: -1; margin: -40px calc(-1 * var(--gutter)) -8px; }
.hero__visual img { display: block; width: 100%; height: auto; max-width: 560px; margin-inline: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
@media (min-width: 960px) {
  .hero__visual { order: 0; margin: 0; }
  .hero__visual img { max-width: 480px;
    --fade-x: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    --fade-y: linear-gradient(180deg, transparent, #000 10%, #000 78%, transparent);
    -webkit-mask-image: var(--fade-x), var(--fade-y); -webkit-mask-composite: source-in;
    mask-image: var(--fade-x), var(--fade-y); mask-composite: intersect; }
}
/* Encabezado del buscador: solo en escritorio, donde el póster va al lado */
.hero__search-title { display: none; }
@media (min-width: 960px) {
  .hero__search-title { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 3.2vw, 2.8rem); text-transform: uppercase; line-height: 1; margin-bottom: 20px; }
  .hero__search-title em { font-style: normal; color: var(--c-accent-bright); }
}
.hero__stats--row { margin-top: 28px; }
@media (min-width: 960px) { .hero__stats--row { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Fondo de neón en las zonas de productos (portada, catálogo y categorías) ---------- */
/* Capa fija en un pseudo-elemento: funciona también en iOS (que ignora background-attachment: fixed).
   Cabecera, portada, pie y bandas blancas tienen fondo propio y la tapan. */
body:is([data-page='home'], [data-page='catalog']) { isolation: isolate; background: #010206; }
body:is([data-page='home'], [data-page='catalog'])::before { content: ''; position: fixed; inset: 0; z-index: -1; background: url('/assets/img/brand/hero-bg.webp') center / cover no-repeat; }
:is([data-page='home'], [data-page='catalog']) main :is(.section:not(.info-band) .section__title, .page-head__title, .breadcrumbs [aria-current], .toolbar__count strong, .empty-state :is(h1, h2)) { color: #fff; }
:is([data-page='home'], [data-page='catalog']) main :is(.breadcrumbs ol, .breadcrumbs a, .page-head__lead, .toolbar__count, .load-more__info, .empty) { color: var(--c-on-dark-muted); }
:is([data-page='home'], [data-page='catalog']) main :is(.section:not(.info-band) .section__link, .breadcrumbs a:hover) { color: var(--c-accent-bright); }
