/* ============================================================
   Caribbean Xpress — main.css
   Sistema de diseño segun DESIGN.md: negro real + dorado como
   unico acento funcional, flash coral como unico acento emocional.
   ============================================================ */

:root {
  --ink: oklch(14% 0.006 80);
  --surface: oklch(19% 0.008 80);
  --surface-raised: oklch(24% 0.009 80);
  --paper: oklch(98% 0.002 80);
  --paper-dim: oklch(94% 0.004 80);
  --text-on-dark: oklch(97% 0.002 80);
  --text-on-light: oklch(18% 0.008 80);
  --muted-on-dark: oklch(72% 0.01 80);
  --muted-on-light: oklch(46% 0.012 80);
  --gold: oklch(78% 0.16 83);
  --gold-deep: oklch(66% 0.15 80);
  --gold-tint: oklch(90% 0.05 83);
  --flash: oklch(70% 0.17 27);
  --border-on-dark: oklch(97% 0.002 80 / 0.12);
  --border-on-light: oklch(18% 0.008 80 / 0.1);

  --font-display: 'Clash Display', 'Archivo Black', sans-serif;
  --font-body: 'Switzer', -apple-system, BlinkMacSystemFont, sans-serif;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  --rounded-sm: 6px;
  --rounded-md: 10px;
  --rounded-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --z-nav: 100;
  --z-nav-scrim: 90;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-on-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

.skip-link {
  position: fixed; top: -100%; left: var(--space-sm);
  background: var(--gold); color: var(--ink);
  padding: 12px 20px; border-radius: var(--rounded-sm);
  font-weight: 600; z-index: 300;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--space-sm); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Typography roles ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--text-on-dark);
}
.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--text-on-light);
}
.body-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-on-light);
  max-width: 60ch;
}

.section { padding: var(--space-2xl) var(--space-lg); }
.section-head { max-width: 640px; margin-bottom: var(--space-lg); }
.section-head .body-text { margin-top: var(--space-xs); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.9375rem;
  padding: 16px 28px;
  border-radius: var(--rounded-sm);
  border: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--gold-deep); }
.btn-primary.btn-added { background: var(--paper-dim); color: var(--text-on-light); border: 1px solid var(--border-on-light); }
.btn-primary.btn-added:hover, .btn-primary.btn-added:focus-visible { background: var(--paper); }
.btn-ghost { background: transparent; color: var(--text-on-dark); border: 1px solid var(--border-on-dark); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: oklch(97% 0.002 80 / 0.08); border-color: oklch(97% 0.002 80 / 0.35); }
.btn-ghost-dark { background: transparent; color: var(--ink); border: 1px solid var(--border-on-light); padding: 15px 27px; }
.btn-ghost-dark:hover, .btn-ghost-dark:focus-visible { background: var(--paper-dim); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--ink);
  border-bottom: 1px solid var(--border-on-dark);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 18px var(--space-lg);
  display: flex; align-items: center; gap: var(--space-lg);
}
.wordmark {
  display: flex; align-items: center;
  margin-right: auto;
}
.wordmark--footer { margin-right: 0; }
/* .wordmark delante para ganarle a .woocommerce-page img { height: auto }
   en carrito/checkout (el logo salía a 396px de ancho). */
.wordmark .logo-mark { height: 42px; width: auto; display: block; }
.wordmark .logo-full { height: 64px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: var(--space-md); }
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--muted-on-dark);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text-on-dark); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-links > li > a { white-space: nowrap; }
/* 7 entradas desde que entraron Calzado y Suplementos: entre tablet y
   escritorio angosto se compacta para no partir el menú en dos líneas. */
@media (min-width: 901px) and (max-width: 1200px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.8125rem; }
}

/* ---------- Submenú de categoría (Camisetas, Accesorios) ---------- */
.has-dropdown { position: relative; }
.nav-caret {
  display: inline-block; margin-left: 5px;
  vertical-align: -1px;
  opacity: 0.55;
  transition: transform 0.2s var(--ease);
}
.has-dropdown:hover .nav-caret, .has-dropdown:focus-within .nav-caret { transform: translateY(1px); opacity: 0.9; }
.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 200px;
  margin-top: var(--space-xs);
  padding: 8px;
  background: var(--surface-raised);
  border-radius: var(--rounded-sm);
  box-shadow: 0 12px 32px oklch(14% 0.006 80 / 0.35);
  opacity: 0; visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: calc(var(--z-nav) + 1);
}
.has-dropdown:hover .nav-dropdown, .has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: none;
}
.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--muted-on-dark);
  border-radius: 4px;
  white-space: nowrap;
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible {
  color: var(--gold);
  background: oklch(97% 0.002 80 / 0.06);
}

.nav-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  color: var(--text-on-dark);
  border-radius: var(--rounded-sm);
  transition: background-color 0.2s var(--ease);
}
.icon-btn:hover { background: oklch(97% 0.002 80 / 0.08); }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 3px;
  background: var(--gold); color: var(--ink);
  border-radius: var(--rounded-pill);
  font-size: 0.625rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 10px; margin: -10px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-on-dark); margin: 5px auto;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0;
  background: oklch(14% 0.006 80 / 0.6);
  z-index: var(--z-nav-scrim);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.nav-scrim.open { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .nav-inner { gap: var(--space-xs); }
  .nav-toggle { display: block; order: -1; }
  .wordmark { margin-right: auto; margin-left: 0; }
  .wordmark .logo-mark { height: 34px; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(82vw, 340px);
    background: var(--ink);
    border-left: 1px solid var(--border-on-dark);
    flex-direction: column; align-items: flex-start;
    gap: 0;
    padding: 96px var(--space-lg) var(--space-lg);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 95;
  }
  .nav.menu-open .nav-links { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; width: 100%;
    padding: 16px 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--border-on-dark);
  }
  .nav-links a::after { display: none; }

  .nav-dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none;
    background: none;
    margin-top: 0;
    padding: 0 0 8px;
  }
  .nav-dropdown a {
    padding: 10px 0 10px var(--space-md);
    font-size: 0.9375rem;
    color: var(--muted-on-dark);
    border-bottom: none;
  }
  .nav-caret { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex; align-items: flex-end;
  background: var(--ink);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 20%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, oklch(14% 0.006 80 / 0.94) 0%, oklch(14% 0.006 80 / 0.35) 55%, oklch(14% 0.006 80 / 0.55) 100%),
    linear-gradient(90deg, oklch(14% 0.006 80 / 0.75) 0%, oklch(14% 0.006 80 / 0.1) 60%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 800px;
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
}
.hero-body {
  font-size: 1.0625rem; line-height: 1.65;
  color: var(--muted-on-dark);
  max-width: 48ch;
  margin-top: var(--space-sm);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-on-light);
  border-bottom: 1px solid var(--border-on-light);
}
.trust-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--paper);
  padding: var(--space-md) var(--space-sm);
}
.trust-icon { flex: none; color: var(--gold-deep); margin-top: 2px; }
.trust-title { font-weight: 600; font-size: 0.9375rem; margin-bottom: 2px; }
.trust-text { font-size: 0.8125rem; color: var(--muted-on-light); line-height: 1.4; }

@media (max-width: 900px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .trust-strip { grid-template-columns: 1fr; }
}

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.product-hero { padding: var(--space-xl) var(--space-lg) 0; }
.product-breadcrumb { margin-bottom: var(--space-lg); }
.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.product-swatch--lg {
  border-radius: var(--rounded-md);
  border-bottom: none;
}
.product-swatch--lg .product-swatch-note { font-size: 0.8125rem; padding: 8px 16px; }

/* Galería de la ficha: el cliente sube varias fotos por referencia.
   Carrusel con scroll-snap (deslizar en móvil) + miniaturas para saltar. */
.cx-gallery { position: relative; min-width: 0; }
.cx-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: var(--rounded-md);
  background: var(--paper);
  overscroll-behavior-x: contain;
}
.cx-gallery-track::-webkit-scrollbar { display: none; }
.cx-gallery-slide {
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 4/5;
  scroll-snap-align: start;
  display: flex; align-items: center; justify-content: center;
}
/* contain y no cover: hay fotos horizontales (gorras premium) y verticales,
   y ninguna debe salir recortada en la ficha. */
.cx-gallery-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cx-gallery-count {
  position: absolute; top: 12px; right: 12px;
  font-size: 0.75rem; font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  background: oklch(14% 0.006 80 / 0.72);
  color: var(--text-on-dark);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.cx-gallery-thumbs {
  display: flex; gap: var(--space-xs);
  margin-top: var(--space-xs);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.cx-gallery-thumbs::-webkit-scrollbar { display: none; }
.cx-gallery-thumb {
  flex: 0 0 72px;
  aspect-ratio: 4/5;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--rounded-sm);
  background: var(--paper);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cx-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-gallery-thumb:hover { opacity: 1; }
.cx-gallery-thumb.is-active { opacity: 1; border-color: var(--ink); }
.cx-gallery-thumb:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 600px) {
  .cx-gallery-thumb { flex-basis: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-gallery-track { scroll-behavior: auto; }
}

.product-panel { padding-top: var(--space-xs); }
.product-panel .headline { margin-bottom: var(--space-sm); }
.product-price--lg {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: var(--space-xs);
}
.product-urgency { font-size: 0.8125rem; color: var(--text-on-light); font-weight: 600; margin-bottom: var(--space-md); }
.info-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-md); }
.info-chip {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: var(--rounded-pill);
  border: 1px solid var(--border-on-light);
  color: var(--text-on-light);
}
/* --gold-deep sobre --paper/--gold-tint no llega a 4.5:1 en texto chico
   (medido: 2.99:1 y 2.35:1) -- texto en --ink, el dorado queda solo en el borde. */
.info-chip--stock { border-color: var(--gold-deep); color: var(--ink); background: var(--gold-tint); }
.info-chip--shipping { border-color: var(--muted-on-light); color: var(--text-on-light); background: transparent; }

.product-description { font-size: 1rem; line-height: 1.6; color: var(--muted-on-light); max-width: 52ch; margin-bottom: var(--space-lg); }

.product-details { margin-bottom: var(--space-lg); }
.product-details-row {
  display: flex; gap: var(--space-md);
  padding: 10px 0;
  border-top: 1px solid var(--border-on-light);
}
.product-details-row:last-child { border-bottom: 1px solid var(--border-on-light); }
.product-details-row dt { flex: 0 0 120px; font-size: 0.8125rem; color: var(--muted-on-light); margin: 0; }
.product-details-row dd { flex: 1; font-size: 0.875rem; font-weight: 600; color: var(--text-on-light); margin: 0; }

.product-cta-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-xs); }
.btn-cta-main { width: 100%; justify-content: center; }
.product-wa-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--muted-on-light);
  margin-bottom: var(--space-md);
  transition: color 0.2s var(--ease);
}
.product-wa-link:hover, .product-wa-link:focus-visible { color: var(--text-on-light); }

.product-micro-trust {
  display: flex; flex-wrap: wrap; gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.product-micro-trust li {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--muted-on-light);
}
.product-micro-trust svg { flex: none; color: var(--gold-deep); }

.product-payments {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-on-light);
  margin-bottom: var(--space-md);
}
.product-payments .payment-label { color: var(--muted-on-light); }
.product-payments .payment-list li { border-color: var(--border-on-light); color: var(--text-on-light); }

.product-sku { font-size: 0.8125rem; color: var(--muted-on-light); }

.related-section { padding-top: var(--space-xl); }

@media (max-width: 900px) {
  .product-hero-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}
@media (max-width: 900px) {
  .product-hero { padding: var(--space-xl) var(--space-md) 0; }
}

/* ============================================================
   CARRITO / CHECKOUT
   ============================================================ */
.cart-hero { padding: var(--space-xl) var(--space-lg) var(--space-lg); }
.cart-hero .headline { margin-top: var(--space-sm); }

.cart-layout, .checkout-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
  align-items: start;
}
.cart-items { display: flex; flex-direction: column; }
.cart-line {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--border-on-light);
}
.cart-items .cart-line:last-child { border-bottom: 1px solid var(--border-on-light); }
.cart-line-swatch {
  width: 56px; height: 56px; flex: none;
  border-radius: var(--rounded-sm);
  background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%);
  border: 1px solid var(--border-on-light);
}
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name { font-weight: 600; font-size: 0.9375rem; }
.cart-line-color { font-size: 0.8125rem; color: var(--muted-on-light); margin-top: 2px; }
.cart-line-price { font-weight: 700; font-size: 0.9375rem; white-space: nowrap; }
.cart-line-remove {
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600;
  color: var(--muted-on-light);
  background: none; border: none; cursor: pointer;
  padding: 6px 10px;
  transition: color 0.2s var(--ease);
}
.cart-line-remove:hover, .cart-line-remove:focus-visible { color: var(--text-on-light); }

.cart-empty, .checkout-empty { padding: var(--space-xl) 0; color: var(--muted-on-light); font-size: 0.9375rem; }
.cart-empty a, .checkout-empty a { color: var(--gold-deep); font-weight: 600; border-bottom: 1px solid currentColor; }

.cart-summary, .checkout-summary {
  background: var(--paper-dim);
  border-radius: var(--rounded-md);
  padding: var(--space-md);
  position: sticky; top: calc(var(--space-lg) + 60px);
}
.cart-summary-label { font-size: 0.8125rem; color: var(--muted-on-light); }
.cart-summary-total { font-family: var(--font-display); font-weight: 600; font-size: 2rem; margin: 4px 0 var(--space-sm); }
.cart-summary-note { font-size: 0.8125rem; color: var(--muted-on-light); margin-top: var(--space-sm); }
.cart-checkout-btn { width: 100%; justify-content: center; margin-top: var(--space-md); }

/* Checkout form */
.checkout-form-col { display: flex; flex-direction: column; gap: var(--space-md); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label, .form-label {
  font-size: 0.8125rem; font-weight: 600; color: var(--text-on-light);
}
.form-group input {
  font-family: var(--font-body); font-size: 0.9375rem;
  padding: 14px 16px;
  border: 1px solid var(--border-on-light);
  border-radius: var(--rounded-sm);
  background: var(--paper);
  color: var(--text-on-light);
}
.form-group input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-hint { font-size: 0.75rem; color: var(--muted-on-light); }
.form-error { font-size: 0.75rem; color: var(--text-on-light); font-weight: 600; }
.checkout-submit { width: 100%; justify-content: center; margin-top: var(--space-sm); }

.checkout-items { display: flex; flex-direction: column; gap: 8px; margin: var(--space-sm) 0; }
.checkout-summary-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.checkout-summary-total {
  font-weight: 700; font-size: 1.0625rem;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-on-light);
}

.checkout-confirm {
  max-width: 52ch;
  padding: var(--space-xl) 0;
}
.checkout-confirm .headline { margin-bottom: var(--space-sm); }
.checkout-confirm .body-text { margin-bottom: var(--space-lg); }

@media (max-width: 900px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .checkout-summary { position: static; }
  .cart-hero, .checkout-section { padding-left: var(--space-md); padding-right: var(--space-md); }
}

/* ============================================================
   CATEGORY PAGE HEADER
   ============================================================ */
.category-header {
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
}
.category-breadcrumb {
  font-size: 0.8125rem; color: var(--muted-on-light);
  margin-bottom: var(--space-sm);
}
.category-breadcrumb a { color: var(--muted-on-light); transition: color 0.2s var(--ease); }
.category-breadcrumb a:hover, .category-breadcrumb a:focus-visible { color: var(--text-on-light); }
.category-header .body-text { margin-top: var(--space-xs); }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  padding: 0 var(--space-lg) var(--space-lg);
  border-bottom: 1px solid var(--border-on-light);
}
.subcat-links {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding-top: var(--space-lg); padding-bottom: var(--space-sm);
}
.subcat-links .filter-chip { text-decoration: none; }
.subcat-links .filter-chip:hover, .subcat-links .filter-chip:focus-visible {
  border-color: var(--text-on-light);
}

.filter-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding-bottom: var(--space-lg);
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem; font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--rounded-sm);
  border: 1px solid var(--border-on-light);
  background: var(--paper);
  color: var(--text-on-light);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.filter-chip:hover { border-color: var(--text-on-light); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--text-on-dark); }
.filter-chip .filter-count {
  font-size: 0.6875rem; font-weight: 700;
  color: var(--muted-on-light);
}
.filter-chip.is-active .filter-count { color: var(--muted-on-dark); }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-section { padding-top: var(--space-lg); }
.product-section-note {
  font-size: 0.8125rem; color: var(--muted-on-light);
  max-width: 60ch; margin-bottom: var(--space-lg);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
}
.product-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--rounded-md);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.product-card:hover {
  box-shadow: 0 10px 28px oklch(14% 0.006 80 / 0.14);
  transform: translateY(-2px);
}
.product-card-link { display: flex; flex-direction: column; color: inherit; }
.product-swatch {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%);
  border-bottom: 1px solid var(--border-on-light);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
/* Foto real de producto: llena el mismo marco 4/5 que el swatch de color,
   así una tarjeta con foto y una sin foto (todavia "Foto proximamente")
   ocupan exactamente el mismo espacio en la grilla. */
.product-swatch--photo { background: var(--paper); }
.product-swatch--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Empaques (suplementos, accesorios): foto de producto sobre blanco, se
   muestra completa en vez de recortarla como las prendas. */
.product-card--packshot .product-swatch--photo { background: #fff; }
.product-card--packshot .product-swatch--photo img { object-fit: contain; padding: 12%; }
.product-swatch-note {
  font-size: 0.6875rem; font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--rounded-pill);
  background: oklch(98% 0.002 80 / 0.82);
  color: var(--text-on-light);
}
.product-stock {
  position: absolute; top: 10px; left: 10px;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: var(--rounded-pill);
  background: var(--gold-tint); color: var(--gold-deep);
}
.product-quick-add {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--border-on-light);
  color: var(--text-on-light);
  font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.product-quick-add:hover, .product-quick-add:focus-visible { background: var(--ink); color: var(--text-on-dark); border-color: var(--ink); }
.product-quick-add.is-added { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.product-info { padding: var(--space-sm); }
.product-name {
  font-family: var(--font-body); font-weight: 600; font-size: 1.0625rem;
  line-height: 1.3; margin-bottom: 4px;
}
.product-color { font-size: 0.8125rem; color: var(--muted-on-light); }
.product-price { font-weight: 700; font-size: 1.125rem; color: var(--text-on-light); margin-top: 8px; }

.product-empty {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  color: var(--muted-on-light);
  font-size: 0.9375rem;
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-header, .filter-bar { padding-left: var(--space-md); padding-right: var(--space-md); }
}

/* ============================================================
   CATEGORIES
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: var(--space-sm);
}
.category-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: var(--rounded-md);
  overflow: hidden;
  box-shadow: none;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.category-card:not(.category-card--placeholder):hover {
  box-shadow: 0 10px 28px oklch(14% 0.006 80 / 0.14);
  transform: translateY(-2px);
}
.category-card img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.category-card:hover img { transform: scale(1.04); }

.category-card--lg {
  grid-column: span 2; grid-row: span 2;
}
.category-card--lg img { aspect-ratio: 4/5; height: 100%; }

.category-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--ink);
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--rounded-pill);
}
.category-badge--soon { background: var(--paper); color: var(--text-on-light); border: 1px solid var(--border-on-light); }

.category-info { padding: var(--space-sm) var(--space-sm) var(--space-md); }
.category-name { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; margin-bottom: 4px; }
.category-card--lg .category-name { font-size: 1.5rem; }
.category-desc { font-size: 0.875rem; color: var(--muted-on-light); line-height: 1.45; }
.category-price { font-weight: 700; font-size: 1rem; color: var(--text-on-light); margin-top: 8px; }

.category-card--soon img { filter: grayscale(45%); opacity: 0.75; }

.category-card--placeholder {
  align-items: center; justify-content: center;
  text-align: center;
  border: 1px dashed var(--border-on-light);
  background: var(--paper-dim);
  padding: var(--space-lg) var(--space-sm);
}
.category-placeholder-mark {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-tint); color: var(--gold-deep);
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  margin: 0 auto var(--space-sm);
}
.category-card--placeholder .category-info { padding: 0; }
.placeholder-notify {
  display: inline-block; margin-top: var(--space-xs);
  font-size: 0.8125rem; font-weight: 600;
  color: var(--gold-deep);
  border-bottom: 1px solid currentColor;
  transition: color 0.2s var(--ease);
}
.placeholder-notify:hover, .placeholder-notify:focus-visible { color: var(--gold); }

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .category-card--lg { grid-column: span 2; grid-row: span 1; }
  .category-card--lg img { aspect-ratio: 16/9; }
}
@media (max-width: 560px) {
  .category-grid { grid-template-columns: 1fr; }
  .category-card--lg { grid-column: span 1; }
}

/* ============================================================
   WHY SECTION
   ============================================================ */
.why { background: var(--paper-dim); }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}
.why-list { display: flex; flex-direction: column; }
.why-list li {
  display: flex; align-items: flex-start; gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-on-light);
}
.why-list li:last-child { border-bottom: 1px solid var(--border-on-light); }
.why-icon { flex: none; color: var(--gold-deep); margin-top: 3px; }
.why-list p { font-size: 1rem; line-height: 1.55; color: var(--text-on-light); max-width: 52ch; }

@media (max-width: 900px) {
  .why-inner { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* ============================================================
   CATALOG BAND
   ============================================================ */
.catalog-band {
  background: var(--ink);
  padding: var(--space-xl) var(--space-lg);
  display: flex; flex-direction: column;
  gap: var(--space-lg);
}
.catalog-band-top {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: var(--space-lg);
}
.catalog-band-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  line-height: 1.2;
  color: var(--text-on-dark);
  max-width: 46ch;
  letter-spacing: -0.01em;
}
.catalog-band-num { color: var(--gold); }

.catalog-band-payments {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-on-dark);
}
.payment-label { font-size: 0.875rem; font-weight: 600; color: var(--muted-on-dark); }
.payment-list { display: flex; flex-wrap: wrap; gap: 10px; }
.payment-list li {
  font-size: 0.8125rem; font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--rounded-pill);
  border: 1px solid var(--border-on-dark);
  color: var(--text-on-dark);
}

/* ============================================================
   SOCIAL CTA
   ============================================================ */
.social-cta-inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: var(--space-lg);
}
.social-cta-inner .body-text { margin-top: var(--space-xs); }
.social-cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.social-cta-actions .btn { display: inline-flex; align-items: center; gap: 10px; }

.newsletter-row {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-on-light);
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: var(--space-md);
}
.newsletter-heading { font-weight: 600; font-size: 1rem; color: var(--text-on-light); }
.newsletter-text { font-size: 0.875rem; color: var(--muted-on-light); margin-top: 2px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  font-family: var(--font-body); font-size: 0.9375rem;
  padding: 14px 18px;
  border: 1px solid var(--border-on-light);
  border-radius: var(--rounded-sm);
  background: var(--paper);
  color: var(--text-on-light);
  min-width: 240px;
}
.newsletter-form input[type="email"]::placeholder { color: var(--muted-on-light); }
.newsletter-form input[type="email"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 560px) {
  .newsletter-form { flex-direction: column; align-items: stretch; width: 100%; }
  .newsletter-form input[type="email"] { min-width: 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--muted-on-dark); }
.footer-inner {
  max-width: 1320px; margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-lg);
}
.footer-tagline { font-size: 0.875rem; margin-top: var(--space-sm); max-width: 32ch; line-height: 1.5; }
.footer-heading {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-on-dark); margin-bottom: var(--space-sm);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.875rem; transition: color 0.2s var(--ease); }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border-on-dark);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  font-size: 0.8125rem;
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE: sections
   ============================================================ */
@media (max-width: 900px) {
  .section { padding: var(--space-xl) var(--space-md); }
  .hero-content { padding: var(--space-xl) var(--space-md) var(--space-lg); }
  .catalog-band, .nav-inner { padding-left: var(--space-md); padding-right: var(--space-md); }
}

/* ============================================================
   MOTION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal-init { opacity: 0; transform: translateY(16px); }
  .reveal-init.in-view {
    animation: reveal-rise 0.6s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 70ms);
  }
}
@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .category-card img, .category-card { transition: none; }
}

/* ============================================================
   WOOCOMMERCE CHECKOUT — vestido con el sistema de diseño real.
   El formulario/tabla/botones son de WooCommerce (funcionales,
   AJAX, Mercado Pago se engancha aquí solo); esto es piel visual.
   ============================================================ */
.woocommerce-checkout-section {
  font-family: var(--font-body);
  color: var(--text-on-light);
}

.woocommerce-checkout-section .woocommerce-notices-wrapper:empty { display: none; }

.woocommerce-checkout-section .woocommerce-info,
.woocommerce-checkout-section .woocommerce-error,
.woocommerce-checkout-section .woocommerce-message {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 14px 18px;
  border-radius: var(--rounded-sm);
  background: var(--paper-dim);
  border: 1px solid var(--border-on-light);
  font-size: 0.9375rem;
}
.woocommerce-checkout-section .woocommerce-error { border-color: var(--flash); color: var(--text-on-light); }

.woocommerce-checkout-section .woocommerce-form-coupon-toggle { margin-bottom: var(--space-md); }
.woocommerce-checkout-section .showcoupon { color: var(--gold-deep); font-weight: 600; border-bottom: 1px solid currentColor; }
.woocommerce-checkout-section .checkout_coupon { display: flex; gap: 10px; max-width: 420px; margin-bottom: var(--space-md); }
.woocommerce-checkout-section .checkout_coupon .form-row { flex: 1; margin: 0; }
.woocommerce-checkout-section .checkout_coupon .button { flex: none; }

.woocommerce-checkout-section .col2-set {
  display: block;
  width: 100% !important;
}
.woocommerce-checkout-section .col2-set::after,
.woocommerce-checkout-section .col2-set::before { content: none !important; }
.woocommerce-checkout-section .col-1,
.woocommerce-checkout-section .col-2 {
  float: none !important;
  width: 100% !important;
  min-width: 0;
}
.woocommerce-checkout-section .col-2 { margin-top: var(--space-md); }

.woocommerce-checkout-section #ship-to-different-address label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600;
  color: var(--text-on-light); cursor: pointer;
}
.woocommerce-checkout-section #ship-to-different-address input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold); }

.woocommerce-checkout-section h3,
.woocommerce-checkout-section #order_review_heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-sm);
}

.woocommerce-checkout-section .form-row { margin-bottom: var(--space-sm); }
.woocommerce-checkout-section .form-row label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-on-light);
  margin-bottom: 6px;
}
.woocommerce-checkout-section .form-row .required { color: var(--flash); text-decoration: none; }
.woocommerce-checkout-section .form-row.woocommerce-invalid input,
.woocommerce-checkout-section .form-row.woocommerce-invalid select { border-color: var(--flash); }

.woocommerce-checkout-section input[type="text"],
.woocommerce-checkout-section input[type="email"],
.woocommerce-checkout-section input[type="tel"],
.woocommerce-checkout-section input[type="password"],
.woocommerce-checkout-section textarea,
.woocommerce-checkout-section select,
.woocommerce-checkout-section .select2-selection {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 13px 14px;
  border-radius: var(--rounded-sm);
  border: 1px solid var(--border-on-light);
  background: var(--paper);
  color: var(--text-on-light);
}
.woocommerce-checkout-section input:focus-visible,
.woocommerce-checkout-section select:focus-visible,
.woocommerce-checkout-section textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.woocommerce-checkout-section .select2-container { width: 100% !important; }
.woocommerce-checkout-section .select2-selection { display: flex; align-items: center; height: auto; }
.woocommerce-checkout-section .select2-selection__arrow { top: 10px !important; }

.woocommerce-checkout-section #order_review {
  background: var(--paper-dim);
  border-radius: var(--rounded-md);
  padding: var(--space-md);
  position: sticky;
  top: var(--space-md);
}

.woocommerce-checkout-section table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}
.woocommerce-checkout-section table.shop_table th,
.woocommerce-checkout-section table.shop_table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-on-light);
  text-align: left;
}
.woocommerce-checkout-section table.shop_table thead th { color: var(--muted-on-light); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.woocommerce-checkout-section table.shop_table .product-name { font-weight: 600; }
.woocommerce-checkout-section table.shop_table .order-total th,
.woocommerce-checkout-section table.shop_table .order-total td {
  border-bottom: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  padding-top: var(--space-sm);
}
.woocommerce-checkout-section table.shop_table .woocommerce-Price-amount { font-weight: inherit; }

.woocommerce-checkout-section #shipping_method { list-style: none; margin: 0; padding: 0; }
.woocommerce-checkout-section #shipping_method li { margin-bottom: 8px; }
.woocommerce-checkout-section #shipping_method label { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 500; text-transform: none; letter-spacing: normal; color: var(--text-on-light); cursor: pointer; }
.woocommerce-checkout-section #shipping_method input[type="radio"] { accent-color: var(--gold); width: 16px; height: 16px; }

.woocommerce-checkout-section ul.wc_payment_methods {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  border-radius: var(--rounded-md);
  overflow: hidden;
  border: 1px solid var(--border-on-light);
}
.woocommerce-checkout-section ul.wc_payment_methods li.wc_payment_method {
  background: var(--paper);
  border-bottom: 1px solid var(--border-on-light);
  padding: 14px 16px;
}
.woocommerce-checkout-section ul.wc_payment_methods li.wc_payment_method:last-child { border-bottom: none; }
.woocommerce-checkout-section ul.wc_payment_methods label { font-weight: 600; font-size: 0.9375rem; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.woocommerce-checkout-section ul.wc_payment_methods input[type="radio"] { accent-color: var(--gold); width: 16px; height: 16px; }
.woocommerce-checkout-section ul.wc_payment_methods img { height: 20px; margin-left: 6px; vertical-align: middle; }
.woocommerce-checkout-section .payment_box {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--paper-dim);
  border-radius: var(--rounded-sm);
  font-size: 0.875rem;
  color: var(--muted-on-light);
}
.woocommerce-checkout-section .payment_box p:last-child { margin-bottom: 0; }

/* Método de pago: el radio y su nombre en la misma línea. */
.woocommerce-checkout-section ul.wc_payment_methods label { display: inline-flex; vertical-align: middle; margin-left: 6px; }

/* Mercado Pago: el plugin mete un bloque publicitario de ~320px que en celular
   empuja el botón "Realizar el pedido" fuera de la pantalla. Se dejan solo los
   íconos de medios de pago y el aviso de que se redirige a Mercado Pago. */
.woocommerce-checkout-section .mp-checkout-pro-benefits-title,
.woocommerce-checkout-section .mp-checkout-pro-benefits { display: none !important; }
.woocommerce-checkout-section .mp-checkout-pro-payment-methods { margin-top: 0; }

.woocommerce-checkout-section .woocommerce-terms-and-conditions-wrapper { font-size: 0.8125rem; color: var(--muted-on-light); margin-bottom: var(--space-sm); }

.woocommerce-checkout-section #place_order,
.woocommerce-checkout-section .button.alt {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 28px;
  border: none;
  border-radius: var(--rounded-sm);
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.woocommerce-checkout-section #place_order:hover,
.woocommerce-checkout-section #place_order:focus-visible { background: var(--gold-deep); }
.woocommerce-checkout-section #place_order.disabled { opacity: 0.6; cursor: not-allowed; }

.woocommerce-checkout-section .blockUI.blockOverlay { border-radius: var(--rounded-md); }

@media (max-width: 900px) {
  .woocommerce-checkout-section .col2-set { grid-template-columns: 1fr; gap: var(--space-md); }
  .woocommerce-checkout-section #order_review { position: static; }
}
