/* AROMI Resort & Beachwear — Brand Book Master DEFINITIVE v1.0 (10 Sep 2026)
   Palette: Sand / Champagne / Ivory / Taupe / Blue Gray / Deep Ocean.
   O limpia (sin destello). Dir 03 commercial. */

:root {
  /* Locked Brand Book palette */
  --sand: #D9C3A8;
  --champagne: #EADCC8;
  --ivory: #FBF6F1;
  --taupe: #A89686;
  --blue-gray: #8CA4B3;
  --deep-ocean: #2F4B5B;

  /* Legacy aliases → locked palette (do not reintroduce Rose Sand / Chocolate) */
  --rose-sand: #D9C3A8; /* = Sand */
  --cream-ivory: #FBF6F1; /* = Ivory */
  --warm-sand: #EADCC8; /* = Champagne */
  --soft-taupe: #A89686; /* = Taupe */
  --deep-chocolate: #2F4B5B; /* = Deep Ocean */

  /* Semantic tokens */
  --bg: #FBF6F1;
  --bg-soft: #EADCC8;
  --bg-elevated: #FFFFFF;
  --text: #2F4B5B;
  --text-muted: #8CA4B3;
  --accent: #D9C3A8;
  --accent-hover: #C4AE93;
  --accent-soft: rgba(217, 195, 168, 0.28);
  --accent-ink: #2F4B5B;
  --border: rgba(47, 75, 91, 0.10);
  --border-strong: rgba(168, 150, 134, 0.45);
  --shadow: 0 8px 28px rgba(47, 75, 91, 0.06);
  --shadow-hover: 0 14px 36px rgba(47, 75, 91, 0.10);
  --header-bg: rgba(251, 246, 241, 0.92);
  --footer-bg: #EADCC8;
  --wa-sticky-bg: rgba(251, 246, 241, 0.96);
  --hero-overlay: linear-gradient(
    180deg,
    rgba(47, 75, 91, 0.04) 0%,
    rgba(47, 75, 91, 0.22) 46%,
    rgba(47, 75, 91, 0.58) 100%
  );
  --thumb-bg: #EADCC8;
  --price-accent: #2F4B5B;
  --focus: #D9C3A8;
  --line: #A89686;

  --radius: 16px;
  --radius-sm: 12px;
  --pill: 999px;
  --header-h: 86px;
  --wa-sticky-h: 0px;
  --max: 1180px;
  --font-ui: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-display: "Cinzel", "Bodoni Moda", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  gap: 1.15rem;
  padding: 0.55rem 0;
}
.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}
.brand img.logo-full {
  height: auto;
  width: auto;
  max-height: 58px;
  max-width: min(200px, 46vw);
  display: block;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: normal;
}
.brand-sello,
.brand img.wordmark,
.nav-sello { display: none !important; }
.nav {
  justify-self: center;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text);
  padding: 0.65rem 0.35rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  bottom: 0.35rem;
  height: 1.5px;
  background: var(--sand);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}
.header-cta { justify-self: end; }

/* Buttons — Sand / Deep Ocean */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.55rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--deep-ocean);
  color: var(--ivory);
  border-color: var(--deep-ocean);
}
.btn-primary:hover {
  background: #243a47;
  border-color: #243a47;
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--soft-taupe);
}
.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--sand);
  color: var(--text);
}
.btn-wa {
  background: var(--sand);
  color: var(--deep-ocean);
  border-color: var(--sand);
  box-shadow: 0 6px 18px rgba(217, 195, 168, 0.38);
}
.btn-wa:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--deep-ocean);
  box-shadow: 0 8px 22px rgba(217, 195, 168, 0.48);
}
.btn-lg {
  min-height: 52px;
  padding: 1rem 1.75rem;
  font-size: 0.92rem;
}
.btn-block { width: 100%; }

.wa-sticky { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: clamp(64vh, 72vh, 780px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--thumb-bg);
  border-radius: 0 0 28px 28px;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 3.5rem 0 3.75rem;
  color: #fff;
  max-width: 560px;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.85rem;
  display: inline-flex;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--pill);
  backdrop-filter: blur(8px);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 6.5vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: 0.04em;
  margin: 0 0 0.85rem;
  text-transform: none;
}
.hero .hero-tagline {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 1.05rem;
  font-style: italic;
  opacity: 0.95;
  margin: 0 0 0.65rem;
  letter-spacing: 0.01em;
}
.hero p {
  margin: 0 0 1.65rem;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero .btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}
.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.20);
  color: #fff;
  border-color: #fff;
}
.hero .btn-wa {
  background: var(--sand);
  color: var(--deep-ocean);
  border-color: var(--sand);
}

/* Sections */
.section { padding: 4rem 0; }
.section--sand { background: var(--warm-sand); }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2.1rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 3.8vw, 2rem);
  margin: 0;
  letter-spacing: 0.06em;
}
.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 42ch;
  font-size: 1rem;
}
.section-link {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--soft-taupe);
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.section-link:hover { color: var(--deep-ocean); }

/* Category cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.cat-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 148px;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--sand);
}
.cat-card span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
}
.cat-card small {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Story */
.story {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}
.story .story-logo {
  display: block;
  margin: 0 auto 1.35rem;
  height: auto;
  width: min(240px, 72%);
  max-height: 160px;
  object-fit: contain;
  background: transparent;
}
.story h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.story p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}
.story .story-tag {
  font-style: italic;
  color: var(--soft-taupe);
  margin-bottom: 0.85rem;
  font-size: 1.08rem;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.15rem;
}
.filters::-webkit-scrollbar { display: none; }
.filter-pill {
  appearance: none;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.filter-pill:hover {
  border-color: var(--sand);
  background: var(--accent-soft);
}
.filter-pill.is-active {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--deep-ocean);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.55rem 0.95rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--bg-elevated);
  border-radius: calc(var(--radius) + 2px);
  padding: 0.6rem 0.6rem 1.05rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.product-card .thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--thumb-bg);
  border-radius: var(--radius);
}
.product-card .thumb img,
.product-card .thumb .thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.product-card:hover .thumb img,
.product-card:hover .thumb .thumb-video {
  transform: scale(1.04);
}
.product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 0.25rem;
}
.product-meta .cat {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-gray);
  font-weight: 600;
}
.product-meta .name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.03em;
}
.product-meta .price {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--price-accent);
  margin-top: 0.2rem;
}

/* IG strip */
.ig-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.ig-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--warm-sand);
  overflow: hidden;
  border: 1px solid var(--border);
}
.ig-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.ig-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--soft-taupe);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem;
}

/* WA band */
.wa-band {
  text-align: center;
  padding: 3rem 0;
}
.wa-band h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  letter-spacing: 0.05em;
  margin: 0 0 0.65rem;
}
.wa-band p {
  margin: 0 0 1.35rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin-inline: auto;
}

/* Page title */
.page-hero {
  padding: 2.25rem 0 0.4rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4.5vw, 2.3rem);
  margin: 0 0 0.45rem;
  letter-spacing: 0.06em;
}
.page-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Ficha */
.ficha {
  display: grid;
  gap: 1.75rem;
  padding: 1.75rem 0 3.5rem;
}
.ficha-gallery { display: flex; flex-direction: column; }
.ficha-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--thumb-bg);
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}
.ficha-stage img,
.ficha-stage .ficha-video,
.ficha-gallery > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.ficha-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.ficha-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--bg-elevated);
  width: 76px;
  height: 96px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(47, 75, 91, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.ficha-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ficha-thumb.is-active,
.ficha-thumb:hover {
  border-color: var(--sand);
  box-shadow: 0 0 0 1px rgba(217, 195, 168, 0.4), 0 6px 16px rgba(47, 75, 91, 0.07);
  transform: translateY(-1px);
}
.ficha-gallery-hint {
  margin: 0.85rem 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.ficha-info {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.45rem 1.25rem 1.55rem;
  box-shadow: var(--shadow);
}
.ficha-info .cat {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-gray);
  margin: 0 0 0.4rem;
  font-weight: 600;
}
.ficha-info h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 4.2vw, 2.05rem);
  margin: 0 0 0.35rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
}
.ficha-price {
  font-family: var(--font-ui);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--price-accent);
}
.ficha-desc {
  color: var(--text-muted);
  margin: 0 0 1.35rem;
  max-width: 42ch;
  font-size: 0.98rem;
  line-height: 1.5;
}
.field-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--text);
}
.field-label .field-hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
}
.size-selector {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}
.size-selector input { position: absolute; opacity: 0; pointer-events: none; }
.size-selector label {
  min-width: 64px;
  min-height: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.size-selector input:checked + label,
.size-selector label:hover {
  border-color: var(--sand);
  background: var(--accent-soft);
  color: var(--text);
}
.ficha-notes {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.55rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.ficha-notes strong {
  color: var(--text);
  font-weight: 600;
}
.wa-note {
  margin-top: 0.85rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.ficha-info .btn-wa.btn-lg {
  min-height: 56px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.75rem 0 2.25rem;
  background: var(--footer-bg);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  align-items: center;
  text-align: center;
}
.footer-brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
  text-align: center;
}
.footer-brand-lockup img {
  height: auto;
  width: min(200px, 58%);
  max-height: 128px;
  object-fit: contain;
  margin-inline: auto;
  background: transparent;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--sand);
}
.footer-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
}
.footer-note {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: color-mix(in srgb, var(--text-muted) 70%, transparent);
}
.empty-state {
  display: none;
  padding: 2.75rem 1rem;
  text-align: center;
  color: var(--text-muted);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  grid-column: 1 / -1;
}
.empty-state.is-visible { display: block; }

.price-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin: 1rem 0 0.25rem;
  padding: 1rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text);
  box-shadow: var(--shadow);
}
.price-strip strong {
  font-weight: 700;
  font-size: 0.82rem;
  margin-right: 0.2rem;
}
.price-dot { color: var(--sand); font-weight: 700; }
.price-strip-note {
  flex-basis: 100%;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.page-hero .price-strip { margin-top: 1.15rem; }

/* Desktop */
@media (min-width: 768px) {
  :root { --header-h: 96px; --wa-sticky-h: 0px; }
  .brand img.logo-full { max-height: 68px; max-width: 230px; height: auto; }
  .cat-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
  .cat-card { min-height: 160px; }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.65rem 1.15rem;
  }
  .product-card { padding: 0.65rem 0.65rem 1.05rem; }
  .product-meta .name { font-size: 1.05rem; }
  .product-meta .price { font-size: 1.15rem; }
  .ig-strip { grid-template-columns: repeat(6, 1fr); gap: 0.75rem; }
  .ficha {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: start;
    padding-top: 2.5rem;
  }
  .ficha-info { padding: 1.75rem 1.55rem 1.85rem; }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
  }
  .footer-brand-lockup { align-items: flex-start; text-align: left; }
  .footer-meta { text-align: left; }
  .hero { border-radius: 0 0 36px 36px; }
  .hero-content { padding-bottom: 4.75rem; }
  .wa-sticky { display: none !important; }
  .header-cta .btn {
    min-height: 42px;
    padding: 0.6rem 1.2rem;
    font-size: 0.82rem;
  }
  .section { padding: 4.75rem 0; }
  .filters { overflow: visible; }
  .story .story-logo { max-height: 150px; width: min(260px, 40%); }
}

@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.85rem 1.35rem;
  }
  .header-inner { gap: 1.75rem; }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --wa-sticky-h: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  body {
    padding-bottom: calc(var(--wa-sticky-h) + 0.5rem);
  }
  .header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav";
    padding: 0.7rem 0 0.45rem;
    gap: 0.35rem;
  }
  .brand {
    grid-area: brand;
    justify-self: center;
    width: 100%;
    justify-content: center;
    flex-direction: column;
    gap: 0;
  }
  .brand img.logo-full {
    display: block;
    height: auto;
    width: auto;
    max-height: 72px;
    max-width: min(210px, 62vw);
    background: transparent;
  }
  .brand-sello { display: none !important; }
  .header-cta { display: none; }
  .nav {
    grid-area: nav;
    justify-self: center;
    width: 100%;
    justify-content: center;
    padding-bottom: 0.25rem;
    gap: 1.75rem;
  }
  .nav a { font-size: 0.88rem; }
  .hero {
    min-height: 68vh;
    border-radius: 0 0 24px 24px;
  }
  .hero-content { padding: 2.6rem 0 2.9rem; }
  .hero-actions {
    width: 100%;
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    flex: none;
    min-height: 50px;
  }
  .btn-lg { width: 100%; }
  .section { padding: 3.1rem 0; }
  .product-grid { gap: 1.1rem 0.7rem; }
  .product-meta .price { font-size: 1.12rem; }
  .ficha-info { padding: 1.25rem 1.05rem 1.35rem; }
  .ficha-price { font-size: 1.65rem; }
  .story .story-logo { max-height: 118px; }
  .footer-brand-lockup img { max-height: 96px; width: min(190px, 62%); }

  .wa-sticky {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: var(--wa-sticky-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -12px 36px rgba(47, 75, 91, 0.09);
  }
  .wa-sticky .btn {
    width: 100%;
    min-height: 54px;
    font-size: 0.92rem;
    font-weight: 700;
  }
  .site-footer { padding-bottom: 1.35rem; }
}

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


/* Precio solo en leyenda de foto */
.thumb {
  position: relative;
}
.photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.7rem 0.8rem 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(transparent, rgba(47, 75, 91, 0.78));
  pointer-events: none;
}
.product-meta .price { display: none !important; }
.ficha-price { display: none !important; }
.price-strip { display: none !important; }
.ficha-gallery .photo-caption {
  position: relative;
  background: transparent;
  color: var(--deep-ocean, #2F4B5B);
  padding: 0.75rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}


.section-cta {
  margin-top: 2.5rem;
  text-align: center;
}


.product-meta .blurb {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted, #8CA4B3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 720px) {
  .product-meta .blurb {
    -webkit-line-clamp: 2;
    font-size: 0.78rem;
  }
}
.ficha-desc {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 36rem;
}

/* ========== Store upgrade: cart · checkout · trust (24 Sep 2026) ========== */
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--deep-ocean);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.cart-link:hover { background: var(--accent-soft); }
.cart-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--deep-ocean);
  color: var(--ivory);
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-badge[hidden] { display: none !important; }

.btn-sm {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
}
.btn-block { width: 100%; }
.product-card-link { display: flex; flex-direction: column; gap: 0.8rem; color: inherit; }
.product-card-actions {
  padding: 0 0.25rem;
  margin-top: auto;
}
.product-card-actions .btn { width: 100%; }
.btn-add-cart.is-added {
  background: var(--blue-gray);
  border-color: var(--blue-gray);
  color: var(--ivory);
}

.status-badge {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--taupe);
  background: var(--champagne);
  border-radius: var(--pill);
  border: 1px solid var(--border);
}
.status-badge[hidden] { display: none !important; }

.ficha-actions {
  display: grid;
  gap: 0.65rem;
}
.ficha-actions .btn-block { width: 100%; }

/* Cart page */
.cart-layout {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 3rem;
}
.cart-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.cart-empty p { color: var(--text-muted); margin: 0 0 1.25rem; }
.cart-list { display: grid; gap: 0.85rem; }
.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem 0.85rem;
  align-items: center;
  padding: 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.cart-line-thumb {
  width: 72px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--thumb-bg);
}
.cart-line-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.cart-line-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.cart-line-info strong {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.03em;
  font-size: 0.98rem;
}
.cart-line-meta, .cart-line-price { font-size: 0.82rem; color: var(--text-muted); }
.cart-line-qty {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
}
.qty-btn:hover { border-color: var(--sand); background: var(--accent-soft); }
.qty-val { min-width: 1.5ch; text-align: center; font-weight: 600; }
.cart-line-total {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-weight: 700;
  color: var(--price-accent);
  align-self: center;
}
.cart-remove {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  border: 0;
  background: transparent;
  color: var(--taupe);
  font-size: 0.95rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.cart-remove:hover { background: var(--accent-soft); color: var(--deep-ocean); }
.cart-summary {
  padding: 1.35rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.85rem;
  height: fit-content;
}
.cart-summary h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: 0.04em;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.05rem;
}
.cart-summary-note { margin: 0; font-size: 0.82rem; color: var(--text-muted); }

@media (min-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
  .cart-empty { grid-column: 1 / -1; }
  .cart-line {
    grid-template-columns: 80px 1fr auto auto;
  }
  .cart-line-qty { grid-column: auto; }
  .cart-line-total { grid-column: auto; grid-row: auto; }
}

/* Checkout */
.checkout-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--taupe);
}
.checkout-steps li.is-done { color: var(--blue-gray); }
.checkout-steps li.is-current { color: var(--deep-ocean); }
.checkout-layout {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 3rem;
}
.checkout-form { display: grid; gap: 1.25rem; }
.checkout-block {
  margin: 0;
  padding: 1.25rem 1.15rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}
.checkout-block legend {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0 0.35rem;
  font-size: 1.05rem;
}
.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.field input,
.field textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  min-height: 48px;
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--sand);
  outline-offset: 1px;
  border-color: var(--sand);
}
.field-title { display: block; margin-bottom: 0.45rem; font-weight: 600; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; font-weight: 400; }
.radio-row label { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }

.pay-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.pay-tab {
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--pill);
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
}
.pay-tab.is-active {
  background: var(--deep-ocean);
  border-color: var(--deep-ocean);
  color: var(--ivory);
}
.pay-tab--soon {
  opacity: 0.55;
  cursor: not-allowed;
}
.pay-panel { display: grid; gap: 0.55rem; }
.pay-qr-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  border: 1.5px dashed var(--taupe);
  background: linear-gradient(145deg, var(--champagne), var(--ivory));
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--taupe);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pay-qr-placeholder small { display: block; margin-top: 0.25rem; font-size: 0.68rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
.pay-number-line, .pay-amount-line { margin: 0; font-size: 1.02rem; }
.pay-hint { margin: 0; font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }
.pay-hint.muted, .muted { color: var(--text-muted); }
.pay-soon {
  padding: 1rem;
  background: var(--champagne);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.pay-soon p { margin: 0.5rem 0 0.85rem; color: var(--text); font-size: 0.92rem; }
.checkout-trust {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.checkout-aside {
  padding: 1.35rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: fit-content;
  display: grid;
  gap: 0.85rem;
}
.checkout-aside h2 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
}
.checkout-review {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
}
.checkout-review li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr 300px; align-items: start; }
}

/* Pedido tracking */
.pedido-layout { max-width: 640px; padding-bottom: 3rem; }
.pedido-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}
.pedido-search .field { flex: 1; min-width: 180px; margin: 0; }
.pedido-empty { color: var(--text-muted); }
.pedido-result {
  padding: 1.5rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.35rem;
}
.pedido-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0.2rem 0 0.45rem;
  font-size: 1.75rem;
}
.track-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.track-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--taupe);
}
.track-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--taupe);
  background: transparent;
  flex-shrink: 0;
}
.track-step.is-done { color: var(--blue-gray); }
.track-step.is-done .track-dot {
  background: var(--blue-gray);
  border-color: var(--blue-gray);
}
.track-step.is-current { color: var(--deep-ocean); }
.track-step.is-current .track-dot {
  background: var(--sand);
  border-color: var(--deep-ocean);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.pedido-items-block h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.pedido-items-block ul { margin: 0; padding-left: 1.1rem; color: var(--text-muted); }
.pedido-wa-box {
  padding: 1.1rem;
  background: var(--champagne);
  border-radius: var(--radius-sm);
  text-align: center;
}
.pedido-wa-box p { margin: 0 0 0.85rem; }

/* Trust / prose / contact */
.prose { max-width: 42rem; padding-bottom: 3rem; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 1.35rem;
  margin: 1.75rem 0 0.65rem;
}
.prose p, .prose li { color: var(--text); line-height: 1.6; }
.prose ul { padding-left: 1.2rem; margin: 0.5rem 0 1rem; list-style: disc; }
.trust-band { text-align: center; max-width: 40rem; margin-inline: auto; }
.trust-band h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.trust-list {
  text-align: left;
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem auto;
  max-width: 36rem;
  padding: 0;
  list-style: none;
}
.trust-list li {
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.92rem;
}
.trust-links { color: var(--text-muted); font-size: 0.9rem; }
.trust-links a { text-decoration: underline; text-underline-offset: 3px; }

.contact-grid {
  display: grid;
  gap: 1.15rem;
  padding-bottom: 3rem;
}
.contact-card {
  padding: 1.45rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.55rem;
}
.contact-card h2 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
}
.contact-big {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--deep-ocean);
  margin: 0;
  word-break: break-word;
}
.contact-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 500;
}
.footer-nav a:hover { color: var(--deep-ocean); text-decoration: underline; text-underline-offset: 3px; }
.footer-trust {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
}
.footer-meta a { text-decoration: underline; text-underline-offset: 2px; }
.section-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--deep-ocean);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .header-cta .btn-wa { display: none; }
  .nav { gap: 0.85rem; }
  .nav a { font-size: 0.8rem; padding: 0.5rem 0.2rem; }
}

/* Transferencia Interbank + copy */
.pay-transfer { display: grid; gap: 0.75rem; }
.pay-bank-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin: 0;
  font-size: 0.95rem;
}
.pay-bank-line span { color: var(--text-muted, #8CA4B3); font-weight: 500; }
.pay-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  background: var(--bg, #FBF6F1);
  border: 1px solid var(--border, rgba(47,75,91,0.1));
  border-radius: var(--radius-sm, 12px);
}
.pay-copy-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #8CA4B3);
  margin-bottom: 0.2rem;
}
.pay-copy-value {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  word-break: break-all;
  color: var(--text, #2F4B5B);
}
.btn.is-copied,
[data-copy].is-copied {
  background: var(--blue-gray, #8CA4B3);
  border-color: var(--blue-gray, #8CA4B3);
  color: #fff;
}
.pay-tab--soon { display: none; } /* retired */


/* Ficha qty + mobile buy bar */
.ficha-qty {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.35rem 0 0.85rem;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.qty-input {
  width: 3.2rem;
  height: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ficha-buy-bar { display: none; }

@media (max-width: 767px) {
  .ficha-buy-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--wa-sticky-h, 0px);
    z-index: 40;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem 0.9rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(251, 246, 241, 0.97);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(47, 72, 88, 0.08);
  }
  .ficha-buy-bar .btn {
    flex: 1;
    margin: 0;
  }
  .ficha-buy-bar .qty-control-compact {
    flex-shrink: 0;
  }
  /* Space for sticky buy bar above WA sticky */
  body:has([data-ficha]) {
    --ficha-buy-h: 64px;
  }
  body:has([data-ficha]) main {
    padding-bottom: calc(var(--wa-sticky-h) + var(--ficha-buy-h, 64px) + 0.75rem);
  }
  body:has([data-ficha]) .wa-sticky {
    /* keep WA below buy bar visually? buy bar sits above WA via bottom: var(--wa-sticky-h) */
  }
}

/* ---------- Sonido del mar toggle ---------- */
.sound-toggle {
  --sound-offset: 0px;
  position: fixed;
  left: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 210;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 40px;
  padding: 0 0.95rem 0 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--pill);
  background: rgba(251, 246, 241, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--deep-ocean);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(47, 75, 91, 0.10);
  cursor: pointer;
  opacity: 0.88;
  transition: opacity .25s ease, background-color .25s ease, box-shadow .25s ease, transform .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.sound-toggle:hover { opacity: 1; background: var(--champagne); box-shadow: 0 10px 26px rgba(47, 75, 91, 0.14); }
.sound-toggle:focus-visible { outline: 2px solid var(--deep-ocean); outline-offset: 3px; opacity: 1; }
.sound-toggle.is-playing { opacity: 1; background: var(--champagne); border-color: var(--sand); }
.sound-icon { display: inline-flex; line-height: 0; }
.sound-icon-off { transition: opacity .2s ease; }
.sound-toggle.is-playing .sound-icon-off { opacity: 0; }
.sound-label { line-height: 1; padding-top: 1px; }
.sound-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.sound-bars i {
  display: block;
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: var(--deep-ocean);
  transform-origin: bottom;
  transform: scaleY(0.3);
  animation: sound-bar 1.6s ease-in-out infinite;
}
.sound-bars i:nth-child(2) { animation-delay: -0.4s; animation-duration: 1.9s; }
.sound-bars i:nth-child(3) { animation-delay: -0.9s; animation-duration: 1.4s; }
.sound-bars i:nth-child(4) { animation-delay: -1.2s; animation-duration: 2.1s; }
.sound-toggle.is-playing .sound-bars { display: inline-flex; }
@keyframes sound-bar {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .sound-toggle { transition: none; }
  .sound-bars i { animation: none; transform: scaleY(0.65); }
  .sound-bars i:nth-child(2) { transform: scaleY(1); }
  .sound-bars i:nth-child(3) { transform: scaleY(0.45); }
}
@media (max-width: 767px) {
  /* Sits just above the sticky WhatsApp bar (and ficha buy bar); offset measured in JS */
  .sound-toggle {
    left: 0.75rem;
    bottom: calc(var(--sound-offset, var(--wa-sticky-h, 0px)) + 0.6rem);
    height: 34px;
    padding: 0 0.75rem 0 0.62rem;
    gap: 0.38rem;
    font-size: 0.66rem;
    box-shadow: 0 4px 14px rgba(47, 75, 91, 0.10);
  }
  .sound-icon svg { width: 16px; height: 16px; }
}
@media print { .sound-toggle { display: none !important; } }

/* ===== Stock por talla (tallas agotadas · últimas tallas) ===== */
.size-selector label { position: relative; flex-direction: column; gap: 0.1rem; }
.size-selector label .size-name { line-height: 1; }
.size-selector label.is-soldout {
  cursor: not-allowed;
  color: var(--taupe);
  background: transparent;
  border-style: dashed;
  border-color: rgba(168, 150, 134, 0.5);
  opacity: 0.85;
}
.size-selector label.is-soldout .size-name { text-decoration: line-through; text-decoration-thickness: 1px; }
.size-selector label.is-soldout .size-soldout {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
  line-height: 1;
}
.size-selector label.is-soldout:hover { border-color: rgba(168, 150, 134, 0.5); background: transparent; color: var(--taupe); }
.size-selector input:disabled + label { pointer-events: none; }
.size-selector label { height: auto; min-height: 50px; }
.btn:disabled, .btn[aria-disabled="true"] {
  cursor: not-allowed;
  background: var(--champagne);
  border-color: var(--champagne);
  color: var(--taupe);
  box-shadow: none;
  transform: none;
}
.ficha-qty[hidden], [data-ficha-buy][hidden], [data-ficha-buy-bar][hidden] { display: none !important; }
.stock-tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  padding: 0.28rem 0.6rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep-ocean);
  background: rgba(251, 246, 241, 0.92);
  border: 1px solid rgba(168, 150, 134, 0.35);
  border-radius: var(--pill);
  pointer-events: none;
}
.stock-tag--out { color: var(--taupe); }
.cart-notice {
  margin: 0 0 1.2rem;
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  color: var(--deep-ocean);
  background: var(--champagne);
  border: 1px solid rgba(168, 150, 134, 0.35);
  border-radius: var(--radius-sm);
}
@media (max-width: 640px) {
  .stock-tag { top: 0.5rem; left: 0.5rem; padding: 0.22rem 0.5rem; font-size: 0.56rem; }
}

/* ===== Tope de stock (cantidades) ===== */
.stock-notice {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--taupe);
  letter-spacing: 0.01em;
}
.stock-notice[hidden] { display: none; }
.qty-btn.is-max { opacity: 0.4; cursor: not-allowed; }
.stock-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 200;
  max-width: min(92vw, 420px);
  padding: 0.75rem 1.1rem;
  font-size: 0.84rem;
  line-height: 1.4;
  text-align: center;
  color: var(--ivory);
  background: var(--deep-ocean);
  border-radius: var(--pill);
  box-shadow: 0 10px 30px rgba(47, 75, 91, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.stock-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) {
  .stock-toast { bottom: 165px; }
}

/* ===== Selector de 5 tallas (XS–XL): rejilla uniforme, sin saltos de línea ===== */
.size-selector {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 400px;
}
.size-selector label { min-width: 0; padding: 0 2px; }
@media (max-width: 480px) {
  .size-selector { gap: 0.4rem; max-width: none; }
  .size-selector label.is-soldout .size-soldout { font-size: 0.5rem; letter-spacing: 0.03em; }
}
