/* ─────────────────────────────────────────────────────────────
   La Gran Vitrina — capa de interfaz.
   Usa los tokens de tokens.css (navy estructura, naranja acción,
   papel cálido, Bricolage + Inter, esquinas apenas redondeadas).
   ───────────────────────────────────────────────────────────── */

:root { --gutter: 24px; --header-shadow: 0 10px 24px -20px rgba(20,24,58,.45); }
@media (max-width: 767px) { :root { --gutter: 16px; } }

html { scroll-behavior: smooth; scroll-padding-top: 140px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; } }
body { overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
ul[role="list"], ol { list-style: none; margin: 0; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.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; }
:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 2px; box-shadow: none; }
a { text-decoration-thickness: 1.5px; }

.wrap { max-width: var(--container-max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.page { padding-top: 20px; padding-bottom: 8px; }
.narrow { max-width: 680px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--navy-900); color: var(--paper-0); border-radius: var(--radius-m); font-weight: 600; text-decoration: none; transition: top var(--dur-base) var(--ease-out); }
.skip-link:focus { top: 12px; color: var(--paper-0); }

/* ── Icono ── */
.icon { display: inline-block; flex: none; background-color: currentColor; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }

/* ── Tipografía ── */
.h-display { font-size: clamp(40px, 3.2vw + 16px, 60px); line-height: 1.02; font-weight: 800; letter-spacing: var(--tracking-display); }
.h-page { font-size: clamp(32px, 2vw + 20px, 44px); line-height: 1.06; font-weight: 800; letter-spacing: var(--tracking-display); }
.h-section { font-size: clamp(24px, 1vw + 16px, 30px); line-height: 1.12; font-weight: 800; margin-top: 6px; }
.eyebrow { font-family: var(--font-sans); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--text-muted); }
.eyebrow--accent { color: var(--text-accent); }

/* ── Botón ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control-h-m); padding: 0 18px; border: 1.5px solid transparent; border-radius: var(--radius-m); font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn--s { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn--l { min-height: var(--control-h-l); padding: 0 24px; font-size: 16px; }
.btn--full { width: 100%; }
.btn--primary { background: var(--action-primary); color: var(--text-on-accent); }
.btn--primary:hover { background: var(--action-primary-hover); color: var(--text-on-accent); }
.btn--primary:active { background: var(--action-primary-press); }
.btn--secondary { background: var(--navy-900); color: var(--paper-0); }
.btn--secondary:hover { background: var(--navy-800); color: var(--paper-0); }
.btn--outline { background: transparent; color: var(--text-strong); border-color: var(--navy-900); }
.btn--outline:hover { background: var(--navy-50); color: var(--text-strong); }
.btn--ghost { background: transparent; color: var(--text-strong); }
.btn--ghost:hover { background: var(--navy-50); color: var(--text-strong); }
.btn--done { background: var(--paper-0); color: var(--navy-900); border-color: var(--navy-900); }
.btn:disabled { cursor: not-allowed; background: var(--paper-100); color: var(--paper-500); border-color: var(--paper-200); transform: none; }
.btn .btn__icon-r { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn__icon-r { transform: translateX(2px); }
@media (pointer: coarse) { .btn--s { min-height: 44px; } }

.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-m); background: transparent; color: var(--text-strong); cursor: pointer; transition: background-color var(--dur-fast); }
.icon-btn:hover { background: var(--navy-50); }
.icon-btn__badge { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--orange-500); color: var(--navy-900); font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--paper-0); }

.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--text-strong); text-decoration: underline; text-decoration-color: var(--orange-500); text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: pointer; }
.link-btn:hover { color: var(--orange-700); }
.link-btn--muted { color: var(--text-muted); font-weight: 500; text-decoration-color: var(--paper-300); }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--text-strong); text-decoration: none; white-space: nowrap; }
.arrow-link .icon { transition: transform var(--dur-base) var(--ease-out); }
.arrow-link:hover { color: var(--orange-700); }
.arrow-link:hover .icon { transform: translateX(3px); }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 14px; color: var(--text-muted); text-decoration: none; }
.back-link:hover { color: var(--text-strong); }

/* ── Badge, precio, chip ── */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-s); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.badge--neutral { background: var(--paper-0); color: var(--navy-700); box-shadow: inset 0 0 0 1px var(--border-default); }
.badge--accent { background: var(--orange-500); color: var(--navy-900); }
.price { display: inline-flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; font-variant-numeric: tabular-nums; }
.price__now { font-size: 19px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.01em; }
.price__was { font-size: 14px; color: var(--text-subtle); }
.price--l .price__now { font-size: 32px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
.price--l .price__was { font-size: 17px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 4px 0 12px; border: 1.5px solid var(--navy-900); border-radius: var(--radius-m); background: var(--paper-0); font-size: 14px; font-weight: 500; color: var(--text-strong); animation: fade-in var(--dur-base) var(--ease-out); }
.chip__x { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: var(--radius-s); background: none; cursor: pointer; color: var(--text-muted); }
.chip__x:hover { background: var(--navy-50); color: var(--text-strong); }

/* ── Imagen de producto ── */
.pimg { position: relative; display: grid; place-items: center; width: 100%; overflow: hidden; background: var(--surface-photo); }
.pimg--square { aspect-ratio: 1 / 1; }
.pimg--wide { aspect-ratio: 4 / 3; }
.pimg img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(20,24,58,.16)); transition: transform var(--dur-slow) var(--ease-out); }
.pimg--empty::after { content: ""; position: absolute; left: 50%; bottom: 24%; width: 30%; height: 7%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(20,24,58,.10), transparent); }
.pimg__mark { position: relative; z-index: 1; display: grid; place-items: center; width: 30%; aspect-ratio: 1; margin-top: -6%; color: var(--navy-200); }
.pimg__mark .icon { width: 100% !important; height: 100% !important; }
.pimg--navy { background: var(--navy-800); }
.pimg--navy .pimg__mark { color: var(--navy-600); }
.pimg--navy.pimg--empty::after { background: radial-gradient(closest-side, rgba(0,0,0,.28), transparent); }

/* ── Encabezado del sitio ── */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper-0); border-bottom: 1px solid var(--border-subtle); transition: box-shadow var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.site-header.is-scrolled { box-shadow: var(--header-shadow); transform: translateY(calc(-1 * var(--infobar-h, 30px))); }
.infobar { background: var(--navy-900); color: var(--navy-200); font-size: 12px; }
.infobar__list { display: flex; justify-content: center; gap: 28px; height: 30px; align-items: center; margin: 0 auto; list-style: none; }
.infobar__list li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.infobar__list .icon { color: var(--orange-400); }
.masthead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px; padding-top: 14px; padding-bottom: 10px; }
.masthead__logo { display: flex; border-radius: var(--radius-s); }
.masthead__logo img { height: 40px; width: auto; }
.masthead__actions { display: flex; align-items: center; gap: 4px; }
.catnav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav a { position: relative; display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--text-strong); text-decoration: none; white-space: nowrap; }
.catnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange-500); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out); }
.catnav a:hover::after, .catnav a[aria-current="page"]::after { transform: scaleX(1); }
.catnav a[aria-current="page"] { font-weight: 600; }
.catnav__sep { width: 1px; height: 18px; background: var(--border-default); flex: none; }
.catnav__accent { color: var(--text-accent) !important; font-weight: 600 !important; }

/* Búsqueda */
.search { position: relative; justify-self: center; width: 100%; max-width: 560px; }
.search__field { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 5px 0 14px; background: var(--paper-50); border: 1.5px solid var(--border-default); border-radius: var(--radius-m); transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.search__field:hover { border-color: var(--paper-400); }
.search__field:focus-within { background: var(--paper-0); border-color: var(--navy-900); }
.search__field:focus-within:has(input:focus-visible) { outline: 2px solid var(--orange-500); outline-offset: 2px; }
.search__icon { color: var(--text-muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text-strong); }
.search input::placeholder { color: var(--text-subtle); }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--radius-s); background: none; color: var(--text-muted); cursor: pointer; }
.search__clear:hover { background: var(--navy-50); }
.search__submit { height: 34px; padding: 0 14px; border: 0; border-radius: var(--radius-s); background: var(--navy-900); color: var(--paper-0); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color var(--dur-fast); }
.search__submit:hover { background: var(--navy-800); }
.search__panel { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 6px); padding: 6px; background: var(--paper-0); border: 1px solid var(--border-subtle); border-radius: var(--radius-m); box-shadow: var(--shadow-3); animation: drop-in var(--dur-base) var(--ease-out); }
.search__panel ul { list-style: none; margin: 0; padding: 0; }
.search__group { padding: 8px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--text-muted); }
.search__opt { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: var(--radius-s); cursor: pointer; }
.search__opt.is-active, .search__all.is-active { background: var(--navy-50); }
.search__thumb { width: 44px; flex: none; border-radius: var(--radius-s); }
.search__opt-text { display: flex; flex-direction: column; min-width: 0; }
.search__opt-title { font-size: 15px; font-weight: 500; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search__opt-meta { font-size: 13px; color: var(--text-muted); }
.search__all { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding: 12px 10px; border-top: 1px solid var(--border-subtle); border-radius: 0 0 var(--radius-s) var(--radius-s); font-size: 14px; font-weight: 600; color: var(--text-strong); cursor: pointer; }
.search__none { padding: 14px 12px; }
.search__none-title { font-weight: 600; color: var(--text-strong); }
.search__none-text { margin-top: 2px; font-size: 14px; color: var(--text-muted); }
.search__none-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.search__none-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1.5px solid var(--border-default); border-radius: var(--radius-m); font-size: 14px; font-weight: 500; color: var(--text-strong); text-decoration: none; }
.search__none-links a:hover { border-color: var(--navy-900); }

/* Header del checkout */
.checkout-header { border-bottom: 1px solid var(--border-subtle); background: var(--paper-0); }
.checkout-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.checkout-header img { height: 36px; width: auto; }
.checkout-header__secure { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }

/* ── Home ── */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(32px, 4vw, 64px); padding-bottom: clamp(40px, 5vw, 72px); }
.hero__copy { max-width: 520px; }
.hero__copy .h-display { margin-top: 14px; }
.hero__lead { margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--text-body); max-width: 460px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.hero__feature { display: block; text-decoration: none; color: inherit; border-radius: var(--radius-m); }
.hero__image { border-radius: var(--radius-m) var(--radius-m) 0 0; }
.hero__image img { width: 80%; height: 80%; }
.hero__feature:hover .hero__image img { transform: scale(1.02); }
.hero__caption { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 16px 0 0; border-top: 3px solid var(--navy-900); }
.hero__caption-eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--text-muted); }
.hero__caption-title { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; color: var(--text-strong); }
.hero__feature:hover .hero__caption-title { text-decoration: underline; text-decoration-color: var(--orange-500); text-underline-offset: 3px; }
.hero__caption-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; flex: none; }
.hero__caption-eta { font-size: 13px; color: var(--text-muted); }

.section { margin-top: clamp(48px, 6vw, 80px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.space-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.coll-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* Tarjetas de espacio y colección */
.space-card, .coll-tile { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius-m); text-decoration: none; color: inherit; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.space-card { background: var(--surface-photo); border-bottom: 3px solid var(--navy-900); }
.coll-tile { background: var(--navy-900); border-bottom: 3px solid var(--orange-500); }
.space-card__foot, .coll-tile__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 4px 18px 18px; }
.space-card__name, .coll-tile__name { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--text-strong); }
.coll-tile__name { color: var(--paper-0); margin-top: 6px; }
.space-card__count, .coll-tile__count { display: block; margin-top: 4px; font-size: 13px; color: var(--text-muted); }
.coll-tile__count { color: var(--navy-300); }
.coll-tile .eyebrow--accent { color: var(--orange-300); }
.space-card__arrow, .coll-tile__arrow { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--radius-m); background: var(--navy-900); color: var(--paper-0); transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base), transform var(--dur-base) var(--ease-out); }
.coll-tile__arrow { background: var(--paper-0); color: var(--navy-900); }
@media (hover: hover) {
  .space-card:hover, .coll-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
  .space-card:hover { border-bottom-color: var(--orange-500); }
  .space-card:hover .space-card__arrow, .coll-tile:hover .coll-tile__arrow { background: var(--orange-500); color: var(--navy-900); transform: translateX(2px); }
}

/* Nota de envío */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface-navy-soft); border-radius: var(--radius-m); }
.note__icon { color: var(--navy-900); margin-top: 1px; }
.note__title { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.note__detail { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── Tarjeta de producto ── */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.pgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pgrid > li { display: flex; min-width: 0; }
.pcard { position: relative; display: flex; flex-direction: column; width: 100%; background: var(--surface-card); border: 1px solid var(--border-subtle); border-bottom: 3px solid var(--border-shelf); border-radius: var(--radius-m); overflow: hidden; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.pcard__media { position: relative; }
.pcard__badge { position: absolute; top: 10px; left: 10px; z-index: 1; }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 14px 14px 14px; }
.pcard__title { font-family: var(--font-sans); font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--text-strong); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard__link { color: inherit; text-decoration: none; }
.pcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard__link:focus-visible { outline: none; }
.pcard:has(.pcard__link:focus-visible) { outline: 2px solid var(--orange-500); outline-offset: 2px; }
.pcard__reason { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.pcard__meta { display: flex; flex-direction: column; gap: 3px; margin-top: auto; padding-top: 12px; }
.pcard__eta { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.pcard__cta { position: relative; z-index: 2; margin-top: 12px; }
.pcard.is-soldout .pimg { opacity: .55; }
.pcard.is-soldout .price__now { color: var(--text-muted); }
@media (hover: hover) {
  .pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-bottom-color: var(--orange-500); }
  .pcard:hover .pimg img { transform: scale(1.03); }
  .pcard.is-soldout:hover { border-bottom-color: var(--border-shelf); }
}

/* ── Migas y listado ── */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--text-strong); text-decoration: underline; text-decoration-color: var(--orange-500); }
.crumbs [aria-current] { color: var(--text-strong); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.crumbs__sep { color: var(--text-subtle); }

.listing__head { margin: 14px 0 20px; }
.listing__head .h-page { margin-top: 6px; }
.listing__blurb { margin-top: 10px; font-size: 16px; color: var(--text-muted); max-width: 560px; }
.space-tabs { display: flex; gap: 8px; margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.space-tabs::-webkit-scrollbar { display: none; }
.space-tabs a { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--border-default); border-radius: var(--radius-m); font-size: 14px; font-weight: 500; color: var(--text-strong); text-decoration: none; transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.space-tabs a:hover { border-color: var(--navy-900); }
.space-tabs a[aria-current="page"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--paper-0); }
.listing__layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.listing__aside { position: sticky; top: 150px; display: grid; gap: 18px; }
.filters { display: grid; gap: 24px; }
.filter { display: grid; gap: 12px; }
.filter__legend { margin-bottom: 12px; font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--text-muted); padding: 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; min-height: 44px; }
.toolbar__count { font-size: 14px; color: var(--text-muted); }
.toolbar__count strong { color: var(--text-strong); }
.toolbar__sort { flex-direction: row !important; align-items: center; gap: 10px !important; }
.toolbar__sort .field__label { margin: 0; white-space: nowrap; font-weight: 500; color: var(--text-muted); }
.toolbar__sort .select__control { min-width: 170px; }
.toolbar__filter-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--navy-900); border-radius: var(--radius-m); background: var(--paper-0); font-size: 15px; font-weight: 600; color: var(--text-strong); cursor: pointer; }
.toolbar__badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--orange-500); color: var(--navy-900); font-size: 12px; font-weight: 700; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.listing__none { border: 1px solid var(--border-subtle); border-radius: var(--radius-m); }
.fade-swap { animation: fade-in var(--dur-base) var(--ease-out); }
.sheet-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; }

/* ── Controles de formulario ── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 13px; font-weight: 600; color: var(--text-strong); }
.field__control { width: 100%; height: var(--control-h-m); padding: 0 14px; border: 1.5px solid var(--border-default); border-radius: var(--radius-m); background: var(--paper-0); font: inherit; font-size: 16px; color: var(--text-strong); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.field__control::placeholder { color: var(--text-subtle); }
.field__control:hover { border-color: var(--paper-400); }
.field__control:focus { outline: none; border-color: var(--navy-900); box-shadow: var(--focus-ring); }
.field__control.is-invalid { border-color: var(--status-danger); }
.field__control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(199,48,47,.2); }
.field__msg { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-muted); }
.field__msg.is-error { color: var(--status-danger); font-weight: 500; }
.select { position: relative; display: flex; }
.select__control { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select__icon { position: absolute; right: 12px; top: 50%; margin-top: -9px; color: var(--text-muted); pointer-events: none; }

.check, .switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 36px; font-size: 15px; color: var(--text-body); cursor: pointer; }
.check.is-disabled, .switch.is-disabled { opacity: .5; cursor: not-allowed; }
.check__input, .switch__input, .radio-card__input, .radio-list__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.check__box { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border: 1.5px solid var(--paper-400); border-radius: var(--radius-xs); background: var(--paper-0); color: transparent; transition: background-color var(--dur-fast), border-color var(--dur-fast); }
.check__input:checked + .check__box { background: var(--navy-900); border-color: var(--navy-900); color: var(--paper-0); }
.check__input:focus-visible + .check__box, .switch__input:focus-visible + .switch__track, .radio-list__input:focus-visible + .radio-list__dot { outline: 2px solid var(--orange-500); outline-offset: 2px; }
.check:hover .check__box { border-color: var(--navy-900); }
.switch__track { position: relative; width: 40px; height: 24px; flex: none; border-radius: 999px; background: var(--paper-300); transition: background-color var(--dur-base) var(--ease-out); }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: var(--paper-0); box-shadow: var(--shadow-1); transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base); }
.switch__input:checked + .switch__track { background: var(--navy-900); }
.switch__input:checked + .switch__track .switch__thumb { transform: translateX(16px); background: var(--orange-500); }

.radio-list { display: grid; gap: 2px; }
.radio-list__item { position: relative; display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 15px; color: var(--text-body); cursor: pointer; }
.radio-list__dot { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border: 1.5px solid var(--paper-400); border-radius: 999px; background: var(--paper-0); transition: border-color var(--dur-fast); }
.radio-list__dot::after { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--orange-500); transform: scale(0); transition: transform var(--dur-fast) var(--ease-out); }
.radio-list__input:checked + .radio-list__dot { border-color: var(--navy-900); }
.radio-list__input:checked + .radio-list__dot::after { transform: scale(1); }
.radio-list__item:hover .radio-list__dot { border-color: var(--navy-900); }

.radio-cards { display: grid; gap: 8px; }
.radio-card { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 16px; border: 1.5px solid var(--border-default); border-radius: var(--radius-m); background: var(--paper-0); cursor: pointer; transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.radio-card:hover { border-color: var(--paper-400); }
.radio-card.is-on { border-color: var(--navy-900); background: var(--navy-50); }
.radio-card:has(.radio-card__input:focus-visible) { outline: 2px solid var(--orange-500); outline-offset: 2px; }
.radio-card__dot { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border: 1.5px solid var(--paper-400); border-radius: 999px; background: var(--paper-0); }
.radio-card__dot::after { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--orange-500); transform: scale(0); transition: transform var(--dur-fast) var(--ease-out); }
.radio-card.is-on .radio-card__dot { border-color: var(--navy-900); }
.radio-card.is-on .radio-card__dot::after { transform: scale(1); }
.radio-card__text { flex: 1; min-width: 0; }
.radio-card__label { display: block; font-size: 15px; font-weight: 600; color: var(--text-strong); }
.radio-card__desc { display: block; margin-top: 2px; font-size: 13px; color: var(--text-muted); }
.radio-card__aside { font-size: 15px; font-weight: 600; color: var(--text-strong); }

.qty { display: inline-flex; align-items: center; height: 44px; border: 1.5px solid var(--border-default); border-radius: var(--radius-m); background: var(--paper-0); flex: none; }
.qty--l { height: var(--control-h-l); }
.qty--s { height: 38px; }
.qty__btn { display: grid; place-items: center; width: 44px; height: 100%; border: 0; background: none; color: var(--text-strong); cursor: pointer; border-radius: var(--radius-m); transition: background-color var(--dur-fast); }
.qty--s .qty__btn { width: 36px; }
.qty__btn:hover:not(:disabled) { background: var(--navy-50); }
.qty__btn:disabled { color: var(--paper-300); cursor: not-allowed; }
.qty__value { min-width: 28px; text-align: center; font-size: 15px; font-weight: 600; color: var(--text-strong); }
@media (pointer: coarse) { .qty--s { height: 44px; } .qty--s .qty__btn { width: 44px; } }

/* ── Ficha de producto ── */
.product__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); margin-top: 14px; align-items: start; }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.gallery--single { display: block; }
.gallery__main { border-radius: var(--radius-m); border-bottom: 3px solid var(--navy-900); }
.gallery__thumbs { display: grid; gap: 8px; align-content: start; }
.gallery__thumb { padding: 0; border: 1.5px solid transparent; border-radius: var(--radius-s); background: none; cursor: pointer; overflow: hidden; transition: border-color var(--dur-fast); }
.gallery__thumb.is-on { border-color: var(--navy-900); }
.gallery__thumb:hover { border-color: var(--paper-400); }
.gallery__stage { min-width: 0; }
.gallery__strip { display: grid; }
.gallery__strip > .gallery__main { grid-area: 1 / 1; opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
.gallery__strip > .gallery__main.is-on { opacity: 1; }
.gallery__dots { display: none; }

.buybox { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 16px; }
.buybox__tags { display: flex; align-items: center; gap: 10px; }
.buybox__space { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
.buybox__space:hover { color: var(--text-strong); }
.buybox__title { font-size: clamp(30px, 1.6vw + 18px, 40px); line-height: 1.08; font-weight: 800; letter-spacing: var(--tracking-display); }
.buybox__reason { font-size: 18px; line-height: 1.5; color: var(--text-body); margin-top: -4px; }
.buybox__facts { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); font-size: 15px; color: var(--text-body); }
.buybox__facts li { display: flex; align-items: flex-start; gap: 10px; }
.buybox__facts .icon { color: var(--green-600); margin-top: 2px; }
.buybox__facts strong { color: var(--text-strong); }
.buybox__fact-note { display: block; font-size: 13px; color: var(--text-muted); }
.buybox__buy { display: flex; gap: 10px; }
.buybox__buy .btn.is-added { background: var(--navy-900); color: var(--paper-0); }
.buybox__soldout p { margin-top: 10px; font-size: 14px; color: var(--text-muted); }
.buybox__help { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); }

.details { margin-top: clamp(40px, 5vw, 64px); max-width: 760px; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border-subtle); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__tab { position: relative; flex: none; min-height: 48px; padding: 0; border: 0; background: none; font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--text-muted); cursor: pointer; white-space: nowrap; transition: color var(--dur-fast); }
.tabs__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--orange-500); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out); }
.tabs__tab:hover { color: var(--text-strong); }
.tabs__tab.is-on { color: var(--text-strong); }
.tabs__tab.is-on::after { transform: scaleX(1); }
.details__panel { padding: 24px 0 8px; font-size: 16px; line-height: 1.55; color: var(--text-body); animation: fade-in var(--dur-base) var(--ease-out); }
.details__panel:focus-visible { outline-offset: 6px; }
.ticks { display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks__mark { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 999px; margin-top: -1px; }
.ticks__mark--yes { background: var(--green-100); color: var(--green-600); }
.ticks__mark--no { background: var(--red-100); color: var(--red-600); }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { padding: 12px 0; border-bottom: 1px solid var(--border-subtle); text-align: left; vertical-align: top; }
.specs th { font-weight: 400; color: var(--text-muted); width: 45%; }
.specs td { font-weight: 600; color: var(--text-strong); text-align: right; }
.shipinfo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.shipinfo h3 { font-size: 18px; margin-bottom: 6px; }
.related { margin-top: clamp(40px, 5vw, 64px); }

/* ── Panel lateral / hoja inferior ── */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer.is-open { pointer-events: auto; }
.drawer__scrim { position: absolute; inset: 0; background: var(--overlay-scrim); opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; display: flex; flex-direction: column; background: var(--paper-0); box-shadow: var(--shadow-3); transition: transform var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur-slow); visibility: hidden; }
.drawer.is-open .drawer__panel { visibility: visible; transition: transform var(--dur-slow) var(--ease-out); }
.drawer--right .drawer__panel { top: 0; right: 0; bottom: 0; width: 440px; max-width: 100%; transform: translateX(100%); }
.drawer--bottom .drawer__panel { left: 0; right: 0; bottom: 0; max-height: 88dvh; border-radius: var(--radius-l) var(--radius-l) 0 0; transform: translateY(100%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--border-subtle); }
.drawer__title { font-size: 22px; font-weight: 800; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px; }
.drawer--bottom .drawer__body { display: grid; gap: 24px; padding: 20px 24px; align-content: start; }
.drawer__foot { padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-subtle); background: var(--paper-50); }

.cart-lines li + li { border-top: 1px solid var(--border-subtle); }
.cart-line { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 16px 0; animation: fade-in var(--dur-base) var(--ease-out); }
.cart-line__img .pimg { border-radius: var(--radius-s); }
.cart-line__body { display: grid; gap: 6px; align-content: start; }
.cart-line__top { display: flex; justify-content: space-between; gap: 10px; }
.cart-line__title { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--text-strong); text-decoration: none; }
.cart-line__title:hover { text-decoration: underline; text-decoration-color: var(--orange-500); }
.cart-line__price { font-size: 15px; font-weight: 700; color: var(--text-strong); white-space: nowrap; }
.cart-line__eta { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-muted); }
.cart-line__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.cart-sum { display: grid; gap: 12px; }
.cart-sum__note { font-size: 12px; color: var(--text-muted); text-align: center; }
.totals { display: grid; gap: 6px; margin: 0; font-size: 14px; color: var(--text-body); }
.totals > div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt, .totals dd { margin: 0; }
.totals__note { color: var(--text-muted); font-size: 12px; }
.totals__total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border-subtle); font-size: 18px; font-weight: 700; color: var(--text-strong); }

/* ── Aviso ── */
.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 380px; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 12px; background: var(--paper-0); border: 1px solid var(--border-subtle); border-bottom: 3px solid var(--navy-900); border-radius: var(--radius-m); box-shadow: var(--shadow-3); pointer-events: auto; animation: toast-in var(--dur-slow) var(--ease-out); }
.toast__thumb { width: 56px; flex: none; border-radius: var(--radius-s); }
.toast__body { flex: 1; min-width: 0; }
.toast__title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-strong); }
.toast__ok { color: var(--green-600); }
.toast__detail { margin-top: 2px; font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast__action { margin-top: 6px; padding: 0; min-height: 28px; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--text-strong); text-decoration: underline; text-decoration-color: var(--orange-500); text-underline-offset: 3px; cursor: pointer; }
.toast__close { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: var(--radius-s); background: none; color: var(--text-muted); cursor: pointer; }
.toast__close:hover { background: var(--navy-50); }

/* ── Estado vacío ── */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 56px 24px; }
.empty--compact { padding: 40px 20px; }
.empty__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: var(--radius-m); background: var(--surface-photo); border-bottom: 3px solid var(--navy-900); color: var(--navy-900); }
.empty__title { margin-top: 6px; font-size: 22px; font-weight: 700; }
.empty__text { max-width: 400px; font-size: 15px; color: var(--text-muted); }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }

/* ── Checkout ── */
.checkout__head { margin-bottom: 8px; }
.checkout__head .h-page { margin-top: 8px; }
.checkout__sub { margin-top: 6px; font-size: 15px; color: var(--text-muted); }
.steps { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.steps__item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.steps__item + .steps__item::before { content: ""; width: 28px; height: 1.5px; background: var(--border-default); margin-right: 2px; }
.steps__item.is-done + .steps__item::before { background: var(--navy-900); }
.steps__dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-s); border: 1.5px solid var(--border-default); font-size: 13px; font-weight: 700; background: var(--paper-0); }
.steps__item.is-done .steps__dot { background: var(--navy-900); border-color: var(--navy-900); color: var(--paper-0); }
.steps__item.is-current { color: var(--text-strong); font-weight: 600; }
.steps__item.is-current .steps__dot { border-color: var(--orange-500); background: var(--orange-500); color: var(--navy-900); }
.checkout__layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 8px; }
.co-sec { display: grid; gap: 14px; padding: 28px 0; border-bottom: 1px solid var(--border-subtle); }
.co-sec__title { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; }
.co-sec__n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-s); background: var(--navy-900); color: var(--paper-0); font-family: var(--font-sans); font-size: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-submit { display: grid; gap: 14px; padding-top: 24px; }
.demo-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--paper-50); border: 1px dashed var(--paper-400); border-radius: var(--radius-m); font-size: 13px; line-height: 1.45; color: var(--text-body); }
.demo-note .icon { color: var(--navy-500); margin-top: 1px; }
.summary { position: sticky; top: 24px; display: grid; gap: 16px; padding: 24px; background: var(--paper-50); border: 1px solid var(--border-subtle); border-bottom: 3px solid var(--navy-900); border-radius: var(--radius-m); margin-top: 28px; }
.summary__lines { display: grid; gap: 12px; }
.summary__lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.summary__thumb { position: relative; }
.summary__thumb .pimg { border-radius: var(--radius-s); background: var(--paper-200); }
.summary__qty { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--navy-900); color: var(--paper-0); font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.summary__name { font-weight: 600; color: var(--text-strong); line-height: 1.3; }
.summary .totals { padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.summary-toggle { margin: 16px 0 0; border: 1px solid var(--border-subtle); border-bottom: 3px solid var(--navy-900); border-radius: var(--radius-m); background: var(--paper-50); }
.summary-toggle summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px; font-size: 15px; font-weight: 600; color: var(--text-strong); cursor: pointer; list-style: none; }
.summary-toggle summary::-webkit-details-marker { display: none; }
.summary-toggle summary span { display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; text-decoration-color: var(--orange-500); text-underline-offset: 3px; }
.summary-toggle[open] summary { border-bottom: 1px solid var(--border-subtle); }
.summary-toggle__body { display: grid; gap: 16px; padding: 16px; }
.done__card { display: grid; margin-top: 8px; border: 1px solid var(--border-subtle); border-bottom: 3px solid var(--navy-900); border-radius: var(--radius-m); }
.done__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 14px; }
.done__row + .done__row { border-top: 1px solid var(--border-subtle); }
.done__total { font-size: 16px; color: var(--text-strong); }
.done .demo-note { margin-top: 16px; }

/* ── Ayuda ── */
.help__layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; margin-top: 20px; align-items: start; }
.help__nav { position: sticky; top: 150px; display: grid; gap: 2px; }
.help__nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-left: 3px solid transparent; font-size: 15px; color: var(--text-muted); text-decoration: none; }
.help__nav a:hover { color: var(--text-strong); background: var(--paper-50); }
.help__nav a[aria-current="page"] { border-left-color: var(--orange-500); color: var(--text-strong); font-weight: 600; background: var(--paper-50); }
.help__body { max-width: 680px; }
.help__body .h-page { margin-top: 6px; }
.prose { display: grid; gap: 16px; margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--text-body); }
.faq dt { margin-top: 18px; font-weight: 700; color: var(--text-strong); }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 4px 0 0; }
.help__contact { margin-top: 40px; padding: 24px; background: var(--surface-navy-soft); border-radius: var(--radius-m); }
.help__contact-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-strong); }
.help__contact p + p { margin-top: 4px; color: var(--text-muted); }
.help__contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ── Footer ── */
.site-footer { margin-top: var(--space-20); background: var(--navy-900); color: var(--paper-0); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.site-footer__brand img { height: 44px; width: auto; }
.site-footer__brand p { margin-top: 16px; max-width: 280px; font-size: 14px; color: var(--navy-300); }
.site-footer__h { margin-bottom: 10px; font-family: var(--font-sans); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--navy-300); }
.site-footer ul { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.site-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--paper-0); text-decoration: none; }
.site-footer a:hover { color: var(--orange-300); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:focus-visible { outline-color: var(--orange-400); }
.site-footer__muted { color: var(--navy-300); min-height: 28px; display: flex; align-items: center; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid var(--navy-700); font-size: 12px; color: var(--navy-300); }

/* ── Movimiento ── */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.js-reveal [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal [data-reveal] { opacity: 1; transform: none; } }

/* ═════════════════ Responsive ═════════════════ */

/* ≤1279: escritorio compacto */
@media (max-width: 1279px) {
  .masthead { gap: 24px; }
}

/* ≤1023: tablet */
@media (max-width: 1023px) {
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing__layout { grid-template-columns: 196px minmax(0, 1fr); gap: 28px; }
  .infobar__list li:nth-child(3) { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .checkout__layout { grid-template-columns: minmax(0, 1fr); }
}

/* ≤959: checkout en una columna (el resumen pasa a ser colapsable) */
@media (max-width: 959px) {
  .checkout__layout { gap: 0; }
}

/* ≤899: listado con hoja de filtros, ficha en una columna */
@media (max-width: 899px) {
  .listing__layout { grid-template-columns: minmax(0, 1fr); }
  .listing__aside { display: none; }
  .toolbar__filter-btn { display: inline-flex; }
  .toolbar__sort { display: none !important; }
  .toolbar { flex-direction: row-reverse; }
  .pgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product__top { grid-template-columns: minmax(0, 1fr); }
  .buybox { position: static; }
  .help__layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .help__nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border-subtle); }
  .help__nav a { flex: none; border-left: 0; border-bottom: 3px solid transparent; background: none !important; }
  .help__nav a[aria-current="page"] { border-bottom-color: var(--orange-500); }
}

/* ≤767: móvil */
@media (max-width: 767px) {
  .infobar__list { justify-content: center; }
  .infobar__list li:nth-child(n+2) { display: none; }
  .masthead { grid-template-columns: auto 1fr; grid-template-areas: "logo actions" "search search"; gap: 10px 12px; padding-top: 10px; }
  .masthead__logo { grid-area: logo; }
  .masthead__logo img { height: 34px; }
  .masthead__actions { grid-area: actions; justify-self: end; }
  .search { grid-area: search; max-width: none; }
  .search__submit { display: none; }
  .search__field { height: 44px; }
  .catnav ul { gap: 20px; }
  .site-header.is-scrolled { transform: translateY(calc(-1 * var(--infobar-h, 30px))); }

  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 24px; }
  .hero__lead { font-size: 17px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .section-head { align-items: flex-end; }
  .space-grid, .coll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .space-card__foot, .coll-tile__foot { padding: 2px 12px 12px; }
  .space-card__name, .coll-tile__name { font-size: 18px; }
  .space-card__arrow, .coll-tile__arrow { width: 32px; height: 32px; }
  .coll-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .coll-grid > li:last-child:nth-child(odd) .pimg--wide { aspect-ratio: 16 / 7; }
  .pgrid, .pgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard__body { padding: 10px 10px 10px; }
  .pcard__title { font-size: 14px; }
  .pcard__reason { font-size: 12px; -webkit-line-clamp: 2; }
  .pcard__eta { font-size: 11.5px; }
  .pcard__cta .btn__label { font-size: 13px; }
  .pcard__cta .icon { display: none; }
  .price__now { font-size: 17px; }
  .notes { grid-template-columns: minmax(0, 1fr); }

  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery__thumbs { display: none; }
  .gallery__strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-m); }
  .gallery__strip::-webkit-scrollbar { display: none; }
  .gallery__strip > .gallery__main { flex: 0 0 100%; opacity: 1; scroll-snap-align: start; }
  .gallery__dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
  .gallery__dots span { width: 6px; height: 6px; border-radius: 999px; background: var(--paper-300); transition: width var(--dur-base) var(--ease-out), background-color var(--dur-base); }
  .gallery__dots span.is-on { width: 18px; background: var(--navy-900); }
  .buybox__reason { font-size: 17px; }
  .shipinfo { grid-template-columns: minmax(0, 1fr); }
  .tabs { gap: 20px; }
  .tabs__tab { font-size: 16px; }

  .form-row { grid-template-columns: minmax(0, 1fr); }
  .steps__label { font-size: 13px; }
  .steps__item + .steps__item::before { width: 16px; }
  .co-sec__title { font-size: 20px; }
  .drawer--right .drawer__panel { width: 100%; }
  .drawer__head { padding-left: 16px; }
  .drawer__body { padding-left: 16px; padding-right: 16px; }
  .drawer--bottom .drawer__body { padding: 16px; }
  .drawer__foot { padding-left: 16px; padding-right: 16px; }
  .toast-region { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: auto; max-width: none; }

  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 40px; }
  .site-footer__base { flex-direction: column; }
}

/* ≤430: teléfonos */
@media (max-width: 430px) {
  .masthead__logo img { height: 32px; }
  .pcard__reason { display: none; }
  .pcard__title { min-height: 2.6em; }
  .space-card__count, .coll-tile__count { font-size: 12px; }
  .buybox__buy { flex-direction: column; }
  .buybox__buy .qty { align-self: flex-start; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr); }
  .hero__caption { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero__caption-meta { align-items: flex-start; text-align: left; flex-direction: row; align-items: baseline; gap: 10px; }
}

/* ── Versión Django (plantillas del servidor) ── */
.contents { display: contents; }
.js .js-hide { display: none !important; }
[hidden] { display: none !important; }
.qty__input { width: 40px; height: 100%; border: 0; background: none; font: inherit; font-weight: 600; text-align: center; color: var(--text-strong); -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus-visible { outline: 2px solid var(--orange-500); outline-offset: -2px; }
.steps__dot { text-decoration: none; color: inherit; }
a.steps__dot:hover { background: var(--navy-800); }
.cart-page .h-page { margin: 8px 0 16px; }
.cart-page__box { border: 1px solid var(--border-subtle); border-bottom: 3px solid var(--navy-900); border-radius: var(--radius-m); }
.cart-page__box .drawer__body { padding: 8px 20px; }
.cart-page__box .drawer__foot { padding: 16px 20px; }
.toolbar__sort .select__control { min-width: 170px; }
.listing__aside form { display: grid; gap: 18px; }
.summary-toggle { display: none; }
@media (max-width: 959px) {
  .summary { display: none; }
  .summary-toggle { display: block; }
}
