/* =========================================================
   YOUNG — Design system
   Minimal streetwear boutique. Black / white / red / grays.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,500;0,600;0,700;0,800;0,900;1,900&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --black: #0b0b0c;
  --near-black: #151516;
  --ink: #111112;
  --ink-soft: #3a3a3d;
  --gray-900: #1a1a1c;
  --gray-700: #4a4a4e;
  --gray-500: #7a7a80;
  --gray-300: #c7c7cc;
  --gray-200: #e4e4e7;
  --gray-100: #f2f2f4;
  --gray-50: #f8f8f9;
  --white: #ffffff;
  --red: #e2101f;
  --red-dark: #b60d19;
  --red-tint: #fdeaec;

  --bg: var(--white);
  --text: var(--ink);
  --text-mute: var(--gray-700);
  --line: var(--gray-200);

  --font-display: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-full: 999px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0);
  --dur-fast: 0.18s;
  --dur-med: 0.34s;
  --dur-slow: 0.6s;

  --shadow-sm: 0 1px 2px rgba(11, 11, 12, 0.06), 0 1px 1px rgba(11, 11, 12, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 11, 12, 0.1), 0 2px 6px rgba(11, 11, 12, 0.06);
  --shadow-lg: 0 24px 64px rgba(11, 11, 12, 0.18), 0 4px 12px rgba(11, 11, 12, 0.08);

  --container: 1360px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  animation: bodyForceVisible 0.01s 1.1s forwards;
}
body.is-ready { opacity: 1; }
@keyframes bodyForceVisible { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  body { transition: none; animation: none; opacity: 1; }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.06;
}

::selection { background: var(--black); color: var(--white); }

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}
.section {
  padding-block: clamp(56px, 8vw, 112px);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: clamp(28px, 4vw, 48px);
  flex-wrap: wrap;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}
.section-sub {
  color: var(--text-mute);
  max-width: 46ch;
  font-size: 1rem;
}
.text-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease), gap var(--dur-fast) var(--ease);
}
.text-link:hover { color: var(--red); gap: 10px; }
.text-link svg { width: 14px; height: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding-inline: 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  border: 1px solid transparent;
}
.btn:active { transform: scale(0.97); }
.btn[hidden] { display: none; } /* .btn ya fija display:inline-flex, que sin esto le gana a [hidden] */
.btn-sm { height: 42px; padding-inline: 20px; font-size: 0.78rem; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--red); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost-light:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-whatsapp { background: #0f7a35; color: var(--white); }
.btn-whatsapp:hover { background: #0c5f29; }

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  position: relative;
}
.icon-btn:hover { background: var(--gray-100); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .count {
  position: absolute;
  top: 1px;
  right: 1px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 3px;
  transform: scale(0);
  transition: transform var(--dur-fast) var(--ease);
}
.icon-btn .count.is-visible { transform: scale(1); }
.icon-btn.is-bumping { animation: iconBump 0.42s var(--ease); }
@keyframes iconBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .icon-btn.is-bumping { animation: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
@supports not (backdrop-filter: blur(1px)) {
  .nav { background: var(--white); }
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  transition: transform var(--dur-fast) var(--ease);
}
.brand:hover .brand-logo { transform: scale(1.05); }
.footer-brand .brand-logo { height: 48px; }
.brand-logo-fallback {
  display: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.footer-brand .brand-logo-fallback { color: var(--white); font-size: 1.35rem; }

/* Logo de texto (reemplaza la imagen en menú y pie): itálica + estrella roja, nítido en cualquier tamaño. */
.wordmark {
  position: relative;
  display: inline-block;
  padding-top: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--black);
  transform: skewX(-6deg);
  transition: transform var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.wordmark-star {
  position: absolute;
  left: -1px;
  top: -2px;
  width: 15px;
  height: 15px;
  fill: var(--red);
  transition: transform var(--dur-fast) var(--ease);
}
.wordmark-dot { color: var(--red); }
.brand:hover .wordmark { transform: skewX(-6deg) translateY(-1px); }
.brand:hover .wordmark-star { transform: rotate(72deg) scale(1.15); }
.footer-brand .wordmark { color: var(--white); font-size: 2.1rem; }
.footer-brand .wordmark-star { width: 17px; height: 17px; }
@media (max-width: 480px) { .wordmark { font-size: 1.6rem; } }

.nav-links {
  display: none;
  align-items: center;
  gap: var(--sp-6);
}
.nav-links > a,
.nav-links > .nav-item-dropdown > a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  position: relative;
  padding-block: 4px;
  display: inline-flex;
  align-items: center;
}
.nav-links > a::after,
.nav-links > .nav-item-dropdown > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-med) var(--ease);
}
.nav-links > a:hover::after,
.nav-links > a[aria-current="page"]::after,
.nav-links > .nav-item-dropdown > a:hover::after,
.nav-links > .nav-item-dropdown > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links > a[aria-current="page"],
.nav-links > .nav-item-dropdown > a[aria-current="page"] { color: var(--red); }

.nav-item-dropdown { position: relative; }
.nav-item-dropdown > a::after { content: ""; }
.nav-dropdown-caret {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dur-fast) var(--ease);
}
.nav-item-dropdown:hover .nav-dropdown-caret,
.nav-item-dropdown.is-open .nav-dropdown-caret,
.nav-item-dropdown:focus-within .nav-dropdown-caret { transform: translateY(1px) rotate(225deg); }

.nav-dropdown-panel {
  /* top padding (not `top` offset) acts as an invisible hover bridge —
     without it, the mouse leaves the hoverable area while crossing the
     visual gap and the menu collapses before it reaches an item. */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 440px;
  padding-top: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease);
  z-index: 70;
}
.nav-item-dropdown:hover .nav-dropdown-panel,
.nav-item-dropdown.is-open .nav-dropdown-panel,
.nav-item-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
}
.nav-dropdown-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-4);
  transform: translateY(-8px);
  transition: transform var(--dur-med) var(--ease);
}
.nav-item-dropdown:hover .nav-dropdown-card,
.nav-item-dropdown.is-open .nav-dropdown-card,
.nav-item-dropdown:focus-within .nav-dropdown-card {
  transform: translateY(0);
}
.nav-dropdown-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.nav-dropdown-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-dropdown-feature:hover { border-color: var(--black); background: var(--gray-50); }
.nav-dropdown-feature svg { width: 26px; height: 26px; color: var(--red); flex-shrink: 0; }
.nav-dropdown-feature span { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; }
.nav-dropdown-viewall-feature svg { color: var(--black); }

.nav-actions { display: flex; align-items: center; gap: 2px; }
.nav-search-inline {
  display: none;
  align-items: center;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding-inline: 14px;
  height: 40px;
  width: 200px;
  transition: width var(--dur-med) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-search-inline:focus-within { width: 260px; background: var(--gray-200); }
.nav-search-inline svg { width: 16px; height: 16px; color: var(--gray-500); flex-shrink: 0; }
.nav-search-inline input {
  border: 0;
  background: transparent;
  padding-left: 8px;
  width: 100%;
  font-size: 0.86rem;
}
.nav-search-inline input:focus { outline: none; }

.nav-burger {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-burger svg { width: 22px; height: 22px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-search-inline { display: flex; }
  .nav-burger { display: none; }
}

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--white);
  z-index: 55;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu-inner { padding: var(--sp-6) clamp(20px, 6vw, 40px) var(--sp-9); }
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.mobile-menu .mobile-search { margin-bottom: var(--sp-6); }
.mobile-menu .mobile-contact { margin-top: var(--sp-7); display: flex; flex-direction: column; gap: var(--sp-3); }
@media (min-width: 900px) {
  .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--sp-6);
}
@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
}
.hero-mascot-wrap { display: flex; justify-content: center; }
.hero-mascot-card {
  position: relative;
  width: min(230px, 62vw);
}
@media (min-width: 760px) {
  .hero-mascot-card { width: min(600px, 108%); }
}
.hero-mascot-card {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  animation: mascotFloat 6s ease-in-out infinite;
}
.hero-mascot-media {
  width: 94%;
  height: 94%;
  position: relative;
  z-index: 1;
  cursor: grab;
  touch-action: none;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-mascot-media.is-interacting { transition: none; }
.hero-mascot-media:active { cursor: grabbing; }
.hero-mascot-media img,
.hero-mascot-media canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.hero-mascot-shadow {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  width: 46%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 75%);
  z-index: 0;
}
@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mascot-card { animation: none; }
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)" opacity="0.35"/></svg>');
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(96px, 13vw, 150px) clamp(64px, 8vw, 96px);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: var(--sp-5);
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.hero-title {
  font-size: clamp(2rem, 4.4vw + 0.4rem, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-line { display: block; }
.hero-line--accent {
  margin-top: 0.5em;
  font-size: 0.5em;
  letter-spacing: 0.06em;
  color: var(--red);
}
.hero-sub {
  margin-top: var(--sp-5);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--gray-300);
  max-width: 46ch;
}
.hero-actions {
  margin-top: var(--sp-7);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.hero-scroll-cue {
  position: absolute;
  bottom: clamp(20px, 3vw, 40px);
  left: clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-300);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}
.hero-scroll-cue svg { width: 14px; height: 14px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue svg { animation: none; }
}
@media (max-width: 759px) {
  .hero-scroll-cue { display: none; }
}

/* ---------- Hero slider ---------- */
.hero-slider { min-height: calc(100svh - 68px); } /* 68px = alto del header, así el hero + controles entran en la primera pantalla */
.hero-slides { position: relative; z-index: 2; width: 100%; display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0s linear 0.8s;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s var(--ease), visibility 0s;
}
.hero-slide .hero-inner { width: 100%; }
.hero-slide .hero-copy { transform: translateX(-18px); transition: transform 1s var(--ease); }
.hero-slide .hero-visual { transform: translateX(18px); transition: transform 1s var(--ease); }
.hero-slide.is-active .hero-copy,
.hero-slide.is-active .hero-visual { transform: none; }
.hero-slide .btn-primary { height: 56px; padding-inline: 36px; font-size: 0.92rem; }
.hero-visual { display: flex; justify-content: center; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.hero-bg--intro {
  background: radial-gradient(60% 70% at 78% 55%, rgba(226, 16, 31, 0.28) 0%, rgba(226, 16, 31, 0) 70%);
}
.hero-bgword {
  position: absolute;
  right: -2vw;
  bottom: -3vw;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(8rem, 27vw, 26rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  user-select: none;
}
.hero-bg--products {
  background:
    radial-gradient(50% 60% at 15% 90%, rgba(226, 16, 31, 0.22) 0%, rgba(226, 16, 31, 0) 70%),
    linear-gradient(135deg, #0b0b0c 55%, #161618 100%);
}
.hero-bg--promo {
  background: linear-gradient(135deg, #0b0b0c 0%, #0b0b0c 100%);
}
.hero-bg--promo::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 46%;
  background: #161618;
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-6); }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding-inline: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.hero-tag span { color: var(--red); }
.hero-tag:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* slide 2 — colage de productos */
.hero-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: min(360px, 100%);
}
@media (min-width: 760px) {
  .hero-collage { width: min(520px, 100%); gap: 16px; }
  .hero-collage .hero-tile:nth-child(even) { transform: translateY(32px); }
}
.hero-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-900);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color var(--dur-med) var(--ease);
}
@media (min-width: 760px) {
  .hero-tile { aspect-ratio: 4 / 5; }
}
.hero-tile:hover { border-color: rgba(255, 255, 255, 0.45); }
.hero-tile__media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hero-tile__media .product-icon-svg { color: var(--gray-300); }
.hero-tile__info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 12px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-tile__cat { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-300); font-weight: 700; }
.hero-tile__name { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; line-height: 1.2; }
.hero-tile__price { font-size: 0.8rem; color: var(--white); }

.hero-tile__badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--red); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: 0.6rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: var(--radius-sm);
}
.hero-tile--empty { grid-column: 1 / -1; aspect-ratio: auto; min-height: 160px; }
.hero-tile--empty .hero-tile__info { position: static; background: none; padding: 20px; height: 100%; justify-content: center; }

/* slide 3 — información útil (envíos, cambios, pagos) */
.hero-info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; width: min(460px, 100%); }
.hero-info__item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}
.hero-info__icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.hero-info__icon svg { width: 22px; height: 22px; }
.hero-info__text { display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; color: var(--gray-300); line-height: 1.4; }
.hero-info__text strong { font-family: var(--font-display); font-size: 1rem; color: var(--white); }
.hero-info__extra { color: var(--white); font-weight: 700; }
.hero-info__extra[hidden] { display: none; }
@media (max-width: 759px) {
  .hero-info { gap: 8px; }
  .hero-info__item { padding: 10px 12px; gap: 10px; }
  .hero-info__icon { width: 34px; height: 34px; }
  .hero-info__icon svg { width: 18px; height: 18px; }
  .hero-info__text { font-size: 0.78rem; }
  .hero-info__text strong { font-size: 0.88rem; }
}

/* slide 3 — novedad / promoción */
.hero-feature { padding: 0 14px 14px 0; }
.hero-feature-frame {
  position: relative;
  display: block;
  width: min(300px, 72vw);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 12px 12px 0 var(--red);
}
@media (min-width: 760px) {
  .hero-feature-frame { width: min(420px, 82%); box-shadow: 18px 18px 0 var(--red); }
}
.hero-feature-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-feature-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
}
.hero-feature-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 14px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

@media (max-width: 759px) {
  .hero-slider .hero-inner { padding-block: 32px 72px; }
  .hero-slider .hero-grid { gap: var(--sp-5); }
  .hero-slider .hero-sub { margin-top: var(--sp-3); }
  .hero-slider .hero-actions { margin-top: var(--sp-5); }
  .hero-slider .hero-tags { margin-top: var(--sp-4); }
  .hero-slider .hero-mascot-card { width: min(170px, 44vw); }
  .hero-slider .hero-collage { width: min(290px, 100%); }
  .hero-slider .hero-tile__info { padding: 24px 8px 8px; }
  .hero-slider .hero-tile__name { font-size: 0.72rem; }
  .hero-slider .hero-tile__price { font-size: 0.7rem; }
  .hero-slider .hero-tile__cat { font-size: 0.55rem; }
  .hero-slider .hero-feature-frame { width: min(230px, 62vw); aspect-ratio: 1; }
}

/* controles */
.hero-controls {
  position: absolute;
  z-index: 3;
  bottom: clamp(20px, 3vw, 40px);
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
@media (min-width: 760px) {
  .hero-controls { left: auto; right: clamp(20px, 4vw, 56px); }
}
.hero-arrow {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.hero-arrow svg { width: 16px; height: 16px; }
.hero-arrow:hover { background: var(--white); color: var(--black); }
@media (min-width: 760px) {
  .hero-arrow { display: inline-flex; }
}
.hero-dots { display: flex; gap: 4px; }
.hero-dot {
  height: 24px;
  padding: 0 3px;
  display: flex;
  align-items: center;
}
.hero-dot span {
  position: relative;
  display: block;
  width: 10px; height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
  transition: width 0.4s var(--ease);
}
.hero-dot.is-active span { width: 36px; }
.hero-dot.is-active span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform-origin: left;
  animation: heroDot var(--hero-interval, 4s) linear forwards;
}
.hero-slider.is-static .hero-dot.is-active span::after { animation: none; }
@keyframes heroDot {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active { transition: opacity 0.2s linear; }
  .hero-slide .hero-copy, .hero-slide .hero-visual { transform: none; transition: none; }
  .hero-collage .hero-tile:nth-child(even) { transform: none; }
}

/* ---------- Product grid & card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 28px);
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--gray-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-med) var(--ease);
}
.product-card:hover .product-card__media { border-color: var(--gray-500); }
.product-icon-svg {
  width: 46%;
  height: 46%;
  color: var(--gray-700);
  transition: transform var(--dur-slow) var(--ease), color var(--dur-med) var(--ease);
}
.product-card:hover .product-icon-svg { transform: scale(1.08) translateY(-2px); color: var(--black); }

/* Foto real de producto (cargada desde el panel de admin) — mismo lugar que
   ocupaba el ícono de línea, en cualquier contenedor (card, ficha, carrito). */
.product-photo { width: 100%; height: 100%; object-fit: cover; }

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  background: var(--black);
  color: var(--white);
  z-index: 2;
}
.product-card__badge--sale { background: var(--red); }
.product-card__badge--nuevo { background: var(--white); color: var(--black); border: 1px solid var(--black); }

.wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.wishlist-btn:hover { transform: scale(1.08); }
.wishlist-btn svg { width: 17px; height: 17px; color: var(--black); transition: color var(--dur-fast) var(--ease); }
.wishlist-btn[aria-pressed="true"] svg { color: var(--red); fill: var(--red); }

.product-card__body { padding-top: var(--sp-3); }
.product-card__category {
  font-size: 0.72rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.product-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 6px;
}
.product-card__name a:hover { color: var(--red); }
.product-card__price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: var(--sp-3); }
.product-card__price { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.product-card__price--sale { color: var(--red); }
.product-card__compare { font-size: 0.82rem; color: var(--gray-500); text-decoration: line-through; }

.btn-add-cart {
  width: 100%;
  height: 42px;
  border: 1px solid var(--black);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.btn-add-cart:hover { background: var(--black); color: var(--white); }
.btn-add-cart.is-added { background: var(--red); border-color: var(--red); color: var(--white); }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6) var(--sp-5);
}
@media (min-width: 900px) { .benefits-grid { grid-template-columns: repeat(4, 1fr); } }
.benefit-item { display: flex; flex-direction: column; gap: var(--sp-2); }
.benefit-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--red);
}
.benefit-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.benefit-desc { font-size: 0.88rem; color: var(--text-mute); }

.section-dark {
  background: var(--black);
  color: var(--white);
}
.section-dark .section-sub { color: var(--gray-300); }

/* ---------- Social proof (real customer stories) ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
@media (min-width: 640px) { .story-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); } }

.story-card { display: flex; flex-direction: column; margin: 0; min-width: 0; }
.story-card__media {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-900);
}
.story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.story-card__fallback {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gray-500);
  background: var(--gray-50);
}
.story-card__fallback svg { width: 42px; height: 42px; color: var(--gray-300); }
.story-card__fallback span { font-size: 0.78rem; }
.story-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(11, 11, 12, 0.55);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
}
.story-card__badge svg { width: 13px; height: 13px; flex-shrink: 0; }
.story-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
}
.story-card__user { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.story-card__product { font-size: 0.8rem; color: var(--text-mute); }
@media (max-width: 639px) {
  .story-card figcaption { flex-direction: column; align-items: flex-start; gap: 2px; }
  .story-card__user { font-size: 0.78rem; overflow-wrap: anywhere; }
  .story-card__product { font-size: 0.74rem; }
  .story-card__badge { top: 8px; left: 8px; padding: 4px 8px; font-size: 0.6rem; }
}

/* ---------- Reseñas de clientes ---------- */
.reviews { margin-top: var(--sp-9); }
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.reviews-title { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.reviews-summary { margin-top: 6px; font-size: 0.9rem; color: var(--text-mute); }
.reviews-summary .stars { color: var(--red); letter-spacing: 2px; margin-right: 6px; }
.reviews-grid { column-count: 2; column-gap: 12px; }
@media (min-width: 900px) { .reviews-grid { column-count: 3; column-gap: 20px; } }
.review-card {
  break-inside: avoid;
  margin: 0 0 12px;
  background: var(--gray-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
@media (min-width: 900px) { .review-card { margin-bottom: 20px; } }
.review-card__photo { display: block; width: 100%; height: auto; }
.review-card__body { padding: 12px 12px 14px; }
@media (min-width: 900px) { .review-card__body { padding: 16px 18px 18px; } }
.review-card__name { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; word-break: break-word; }
.review-card__date { font-size: 0.72rem; color: var(--gray-500); margin-top: 2px; }
.review-card__stars { margin-top: 6px; font-size: 0.85rem; letter-spacing: 1px; color: var(--red); }
.review-card__stars .off { color: var(--gray-300); }
.review-card__text { margin-top: 8px; font-size: 0.85rem; line-height: 1.45; overflow-wrap: anywhere; }
@media (min-width: 900px) { .review-card__text { font-size: 0.95rem; } }
.reviews-empty { color: var(--text-mute); font-size: 0.95rem; }
.reviews-empty[hidden], .reviews-summary[hidden] { display: none; }

.review-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(11, 11, 12, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--sp-5) var(--sp-4);
  overflow-y: auto;
}
.review-overlay[hidden] { display: none; }
.review-modal { width: 100%; max-width: 460px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin-block: auto; }
.review-modal__head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.review-modal__head h2 { font-size: 1.15rem; }
.review-form { padding: var(--sp-5); }
.review-form [data-review-fields] { display: flex; flex-direction: column; gap: var(--sp-4); }
.review-form [hidden] { display: none; }
.review-label { font-size: 0.82rem; font-weight: 600; font-family: var(--font-display); }
.review-stars-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; align-self: flex-start; }
.review-stars-input input { position: absolute; opacity: 0; pointer-events: none; }
.review-form .review-stars-input label { font-size: 2rem; line-height: 1; cursor: pointer; color: var(--gray-300); padding: 2px; transition: color var(--dur-fast) var(--ease); }
.review-form .review-stars-input input:checked ~ label,
.review-form .review-stars-input label:hover,
.review-form .review-stars-input label:hover ~ label { color: var(--red); }
.review-stars-input input:focus-visible + label { outline: 2px solid var(--black); outline-offset: 2px; }
.review-photo-pick { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding-inline: 18px; border: 1px dashed var(--gray-500); border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; cursor: pointer; align-self: flex-start; }
.review-photo-pick:hover { border-color: var(--black); }
.review-photo-preview { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.review-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.review-note { font-size: 0.76rem; color: var(--text-mute); text-align: center; }
.review-success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); padding-block: var(--sp-5); }
.review-success[hidden] { display: none; }

/* ---------- Instagram / novedades ---------- */
.ig-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.btn-instagram {
  background: linear-gradient(45deg, #feda75 0%, #fa7e1e 26%, #d62976 50%, #962fbf 76%, #4f5bd5 100%);
  color: var(--white);
}
.btn-instagram:hover {
  filter: brightness(1.08) saturate(1.1);
  box-shadow: var(--shadow-md);
}

/* ---------- WhatsApp CTA band ---------- */
.wa-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
  background: var(--gray-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
}
.wa-band h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); max-width: 26ch; }
.wa-band p { color: var(--text-mute); margin-top: 6px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: var(--gray-300);
  padding-block: var(--sp-8) var(--sp-6);
}
.footer-grid {
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
}
.footer-brand .brand-word { color: var(--white); }
.footer-tagline { margin-top: var(--sp-3); max-width: 32ch; font-size: 0.9rem; }
.footer-social { display: flex; gap: 10px; margin-top: var(--sp-5); }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.footer-social a:hover { background: var(--red); border-color: var(--red); }
.footer-social svg { width: 17px; height: 17px; }
.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: var(--sp-4);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* ---------- Breadcrumb / page header ---------- */
.page-header {
  padding-block: clamp(40px, 6vw, 64px) var(--sp-6);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-mute);
  margin-bottom: var(--sp-4);
}
.breadcrumb a:hover { color: var(--red); }
.page-title { font-size: clamp(1.8rem, 4vw, 2.8rem); }

/* ---------- Catalog toolbar ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-6);
  position: sticky;
  top: var(--nav-h);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  z-index: 20;
}
.toolbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  height: 44px;
  padding-inline: 16px;
  flex: 1 1 220px;
  max-width: 340px;
}
.toolbar-search svg { width: 16px; height: 16px; color: var(--gray-500); flex-shrink: 0; }
.toolbar-search input { border: 0; background: transparent; width: 100%; font-size: 0.9rem; }
.toolbar-search input:focus { outline: none; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; flex: 2 1 320px; }
.chip {
  height: 38px;
  padding-inline: 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--black); }
.chip[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }

.chip-subrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: -12px;
  margin-bottom: var(--sp-5);
  padding-left: 2px;
}
.chip-subrow-label { font-size: 0.78rem; color: var(--text-mute); margin-right: 2px; }
.chip-sub {
  height: 32px;
  padding-inline: 13px;
  font-size: 0.76rem;
  background: var(--gray-50);
}
.chip-sub[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); }

.toolbar-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.toolbar-sort label { font-size: 0.8rem; color: var(--text-mute); white-space: nowrap; }
.select {
  height: 42px;
  padding-inline: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.86rem;
  font-family: var(--font-body);
}
.result-count { font-size: 0.84rem; color: var(--text-mute); margin-bottom: var(--sp-5); }
.empty-state {
  display: none;
  text-align: center;
  padding-block: var(--sp-9);
  color: var(--text-mute);
}
.empty-state.is-visible { display: block; }
.empty-state h3 { font-family: var(--font-display); color: var(--black); margin-bottom: 8px; }

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  padding-block: clamp(32px, 5vw, 56px);
}
@media (min-width: 900px) {
  .product-detail { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-8); }
}
.pd-gallery-main {
  aspect-ratio: 4 / 5;
  background: var(--gray-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.pd-gallery-main .product-icon-svg { width: 42%; height: 42%; color: var(--gray-700); }
.pd-gallery-main video.product-photo { display: block; background: var(--black); }

.pd-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pd-thumb {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  transition: border-color var(--dur-fast) var(--ease);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { border-color: var(--gray-500); }
.pd-thumb.is-active { border-color: var(--black); border-width: 2px; }
.pd-thumb-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--black); color: var(--white);
  font-size: 0.9rem;
}
.pd-gallery-caption {
  margin-top: 12px;
  font-size: 0.76rem;
  color: var(--gray-500);
  text-align: center;
}

.pd-category { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); font-weight: 700; margin-bottom: 8px; }
.pd-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: var(--sp-3); }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: var(--sp-5); }
.pd-price { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; }
.pd-price--sale { color: var(--red); }
.pd-compare { font-size: 1.05rem; color: var(--gray-500); text-decoration: line-through; }
.pd-desc { color: var(--text-mute); margin-bottom: var(--sp-6); max-width: 52ch; }

.pd-block { margin-bottom: var(--sp-6); }
.pd-label { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--sp-3); display: flex; justify-content: space-between; }
.size-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.size-opt {
  min-width: 46px;
  height: 46px;
  padding-inline: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.size-opt:hover { border-color: var(--black); }
.size-opt[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.size-hint { font-size: 0.78rem; color: var(--red); margin-top: 8px; display: none; }
.size-hint.is-visible { display: block; }

.pd-actions { display: flex; gap: 10px; align-items: stretch; margin-bottom: var(--sp-6); }
.qty-control {
  display: flex; align-items: center; border: 1px solid var(--black); border-radius: var(--radius-sm);
}
.qty-control button { width: 44px; height: 50px; font-size: 1.1rem; font-weight: 700; }
.qty-control button:hover { background: var(--gray-100); }
.qty-control span { width: 36px; text-align: center; font-family: var(--font-display); font-weight: 700; }

.pd-detail-list { display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; color: var(--text-mute); }
.pd-detail-list li { display: flex; gap: 8px; align-items: baseline; }
.pd-detail-list li::before { content: "—"; color: var(--red); flex-shrink: 0; }

.pd-trust { display: flex; flex-direction: column; gap: 10px; padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.pd-trust-item { display: flex; gap: 10px; align-items: center; font-size: 0.85rem; color: var(--text-mute); }
.pd-trust-item svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }

/* ---------- Cart / Wishlist drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 12, 0.5);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease);
}
.overlay.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--white);
  z-index: 90;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease);
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 1.15rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--sp-5); }
.drawer-foot { padding: var(--sp-5); border-top: 1px solid var(--line); }

.cart-empty, .wishlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  padding-block: var(--sp-8);
  color: var(--text-mute);
}
.cart-empty svg, .wishlist-empty svg { width: 40px; height: 40px; color: var(--gray-300); }
.empty-mascot { width: 84px; height: auto; opacity: 0.9; }

.cart-line {
  display: flex;
  gap: 14px;
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.cart-line__media {
  width: 78px; height: 90px;
  background: var(--gray-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cart-line__media .product-icon-svg { width: 55%; height: 55%; color: var(--gray-700); }
.cart-line__info { flex: 1; min-width: 0; }
.cart-line__name { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.cart-line__meta { font-size: 0.78rem; color: var(--text-mute); margin-bottom: 8px; }
.cart-line__row { display: flex; align-items: center; justify-content: space-between; }
.cart-line__price { font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; }
.cart-line__remove { font-size: 0.76rem; color: var(--gray-500); text-decoration: underline; }
.cart-line__remove:hover { color: var(--red); }
.mini-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.mini-qty button { width: 26px; height: 26px; font-size: 0.9rem; }
.mini-qty span { width: 22px; text-align: center; font-size: 0.8rem; font-weight: 600; }

.cart-totals-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 6px; color: var(--text-mute); }
.cart-totals-row.is-total { color: var(--black); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; margin-block: 10px; }
.cart-note { font-size: 0.76rem; color: var(--text-mute); margin-top: 10px; text-align: center; }

.wishlist-line {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.wishlist-line__media {
  width: 64px; height: 74px;
  background: var(--gray-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wishlist-line__media .product-icon-svg { width: 55%; height: 55%; color: var(--gray-700); }
.wishlist-line__info { flex: 1; min-width: 0; }
.wishlist-line__name { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; margin-bottom: 4px; }
.wishlist-line__price { font-size: 0.84rem; color: var(--text-mute); margin-bottom: 8px; }
.wishlist-line__actions { display: flex; gap: 14px; }
.wishlist-line__actions button { font-size: 0.76rem; font-weight: 600; text-decoration: underline; }
.wishlist-line__actions button:hover { color: var(--red); }

/* ---------- Toast ---------- */
.toast-stack {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--black);
  color: var(--white);
  font-size: 0.86rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; }

/* ---------- Forms (contact) ---------- */
.form-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; font-family: var(--font-display); }
.field input, .field textarea, .field select {
  height: 50px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--dur-fast) var(--ease);
}
.field textarea { height: 140px; padding-block: 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--black); }
.field-full { grid-column: 1 / -1; }
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--gray-50);
  border: 1px solid var(--line);
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  margin-top: var(--sp-4);
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; }

/* ---------- About page ---------- */
.about-hero {
  background: var(--gray-50);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(56px, 8vw, 96px);
}
.about-hero-grid { display: grid; gap: var(--sp-7); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .about-hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.mascot-frame {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.mascot-frame img { width: 78%; height: 78%; object-fit: contain; }
.mascot-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-mute);
  text-align: center;
  padding: var(--sp-5);
}
.mascot-fallback svg { width: 64px; height: 64px; color: var(--gray-300); }
.mascot-fallback span { font-size: 0.78rem; max-width: 22ch; }

.values-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
@media (min-width: 760px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card { padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--radius-md); }
.value-card svg { width: 26px; height: 26px; color: var(--red); margin-bottom: var(--sp-3); }
.value-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-card p { font-size: 0.88rem; color: var(--text-mute); }

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-year { font-family: var(--font-display); font-weight: 800; color: var(--red); }
.timeline-text h4 { font-size: 1rem; margin-bottom: 4px; }
.timeline-text p { font-size: 0.88rem; color: var(--text-mute); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: var(--sp-8); grid-template-columns: 1fr; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.contact-card {
  display: flex;
  gap: 14px;
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-4);
  transition: border-color var(--dur-fast) var(--ease);
}
.contact-card:hover { border-color: var(--black); }
.contact-card svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; }
.contact-card h3 { font-size: 0.98rem; margin-bottom: 3px; }
.contact-card p { font-size: 0.85rem; color: var(--text-mute); }

/* ---------- Checkout ---------- */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin-bottom: var(--sp-7);
  flex-wrap: wrap;
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-500);
}
.checkout-step + .checkout-step::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--line);
  margin-inline: var(--sp-5);
}
.checkout-step__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.checkout-step.is-active { color: var(--black); }
.checkout-step.is-active .checkout-step__num { background: var(--black); border-color: var(--black); color: var(--white); }
.checkout-step.is-done { color: var(--black); }
.checkout-step.is-done .checkout-step__num { background: var(--red); border-color: var(--red); color: var(--white); }

.checkout-grid { display: grid; gap: var(--sp-7); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .checkout-grid { grid-template-columns: 1.4fr 1fr; } }

.checkout-panel[hidden] { display: none; }

.checkout-empty { text-align: center; padding-block: var(--sp-7); }
.checkout-empty p { color: var(--text-mute); margin-bottom: var(--sp-4); }

.checkout-actions { display: flex; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-6); }
.checkout-actions[hidden] { display: none; }
.checkout-actions .btn { flex: 1; }

.checkout-error {
  background: var(--gray-50);
  border: 1px solid var(--red);
  color: var(--red);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-top: var(--sp-4);
}
.checkout-error[hidden] { display: none; }
.shipping-options { border: 0; padding: 0; margin: var(--sp-6) 0 0; display: flex; flex-direction: column; gap: 10px; }
.shipping-options[hidden] { display: none; }
.shipping-options legend { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 10px; padding: 0; }
.shipping-options__list { display: flex; flex-direction: column; gap: 10px; }
.shipping-option__price { font-weight: 700; color: var(--gray-700); margin-left: 6px; }
.shipping-option__zone { margin-top: 10px; height: 44px; width: 100%; max-width: 360px; padding-inline: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font-size: 0.9rem; }
.field-hint { display: block; font-size: 0.76rem; color: var(--text-mute); margin-top: 4px; }
.coupon-box { margin-top: var(--sp-5); }
.coupon-box label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.coupon-box__row { display: flex; gap: 8px; }
.coupon-box__row input { flex: 1; min-width: 0; height: 48px; padding-inline: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-transform: uppercase; font-size: 0.95rem; }
.coupon-box__row .btn { height: 48px; flex-shrink: 0; }
.coupon-box__msg { font-size: 0.82rem; margin-top: 6px; color: var(--red); }
.coupon-box__msg.is-ok { color: #17633a; font-weight: 700; }
.coupon-box__msg[hidden], .cart-totals-row[hidden] { display: none; }
.cart-totals-row--discount span:last-child { color: #17633a; font-weight: 700; }

.payment-methods { display: flex; flex-direction: column; gap: var(--sp-3); }
.payment-method {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.payment-method:hover { border-color: var(--gray-300); }
.payment-method.is-selected { border-color: var(--black); background: var(--gray-50); }
.payment-method input[type="radio"] { margin-top: 3px; accent-color: var(--black); flex-shrink: 0; }
.payment-method__title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; display: block; }
.payment-method__desc { font-size: 0.82rem; color: var(--text-mute); display: block; margin-top: 2px; }

.payment-detail {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  background: var(--gray-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
}
.payment-detail[hidden] { display: none; }
.payment-detail p { margin-bottom: 8px; }
.bank-info-row { display: flex; justify-content: space-between; gap: var(--sp-4); padding-block: 6px; border-bottom: 1px dashed var(--line); font-family: var(--font-display); font-size: 0.88rem; }
.bank-info-row:last-child { border-bottom: none; }
.bank-info-pending { color: var(--gray-500); font-style: italic; font-size: 0.85rem; }

.checkout-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  position: sticky;
  top: 100px;
}
.checkout-summary h2 { font-size: 1.05rem; margin-bottom: var(--sp-4); }
.checkout-summary-empty { color: var(--text-mute); font-size: 0.88rem; }

.checkout-result {
  max-width: 480px;
  margin-inline: auto;
  text-align: center;
  padding-block: var(--sp-8);
}
.checkout-result__icon {
  width: 64px;
  height: 64px;
  margin-inline: auto var(--sp-5);
  margin-bottom: var(--sp-5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkout-result__icon svg { width: 30px; height: 30px; }
.checkout-result__icon.is-success { background: var(--black); color: var(--white); }
.checkout-result__icon.is-pending { background: var(--gray-100); color: var(--gray-700); }
.checkout-result__icon.is-error { background: var(--red); color: var(--white); }
.checkout-result__title { font-size: 1.5rem; margin-bottom: var(--sp-3); }
.checkout-result__text { color: var(--text-mute); margin-bottom: var(--sp-4); }
.checkout-result__order { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; margin-bottom: var(--sp-5); }
.checkout-result__bank { margin-bottom: var(--sp-6); text-align: left; }
.checkout-result__bank .bank-info-row { font-size: 0.92rem; }
.checkout-result__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-split] { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.32s; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  background: var(--black);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* body scroll lock when a drawer is open */
body.no-scroll { overflow: hidden; }

/* ---------- Floating WhatsApp button (persistent across the site) ---------- */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #0f7a35;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 55;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 20px 40px rgba(15, 122, 53, 0.4); }
.wa-fab svg { width: 28px; height: 28px; }
@media (max-width: 639px) {
  .wa-fab { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .wa-fab svg { width: 25px; height: 25px; }
}

/* ---------- Stock (C2): variantes agotadas, avisos y badge "Agotado" ---------- */
.size-opt:disabled,
.size-opt.is-soldout { color: var(--gray-500); border-style: dashed; text-decoration: line-through; cursor: not-allowed; opacity: 0.55; }
.size-opt:disabled:hover,
.size-opt.is-soldout:hover { border-color: var(--line); }
.stock-note { font-size: 0.82rem; font-weight: 700; color: var(--red); margin: 0 0 12px; }
.stock-note[hidden] { display: none; }
.btn[disabled]:not(.btn-add-cart) { cursor: not-allowed; }
.btn-add-cart:disabled { opacity: 0.5; cursor: not-allowed; background: var(--white); color: var(--gray-500); }
.btn-add-cart:disabled:hover { background: var(--white); color: var(--gray-500); }
.product-card__badge--soldout { background: var(--gray-700); color: var(--white); }
.product-card--soldout img.product-photo,
.product-card--soldout .product-icon-svg { opacity: 0.5; }
.cart-line__stock { font-size: 0.78rem; font-weight: 700; color: var(--red); margin-bottom: 6px; }
.toast.is-error svg { color: var(--red); }
.toast.is-error { border-left: 3px solid var(--red); }

/* ---------- Ficha de producto inexistente / no publicada (C3) ---------- */
.pd-notfound { text-align: center; padding-block: var(--sp-9, 72px); }
.pd-notfound[hidden] { display: none; }
.pd-notfound__title { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 12px; }
.pd-notfound p { color: var(--text-mute); margin-bottom: 20px; }

/* =====================================================================
   C4 — experiencia de compra en celular y tablet
   ===================================================================== */

/* La fila "Refinar" respeta el atributo hidden (antes se veía siempre, aun con "Todos"). */
.chip-subrow[hidden] { display: none; }

/* Enlace "Elegir talle" de las tarjetas con varias opciones: mismo aspecto que el botón. */
a.btn-add-cart { display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--black); background: transparent; }
a.btn-add-cart:hover { background: var(--black); color: var(--white); }

/* Línea del carrito de un producto que ya no está disponible. */
.cart-line--missing .cart-line__media { background: var(--gray-100); border-radius: var(--radius-sm); min-height: 72px; }
.cart-line--missing .cart-line__name { color: var(--gray-500); }

/* Ficha de producto: la columna ya no se agranda con su contenido. Antes el contenido (botones en una sola
   fila) la estiraba a ~420px en una pantalla de 375px: botón cortado, corazón fuera de pantalla y textos cortados. */
.product-detail { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .product-detail { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--sp-6); }
}
@media (min-width: 900px) {
  .product-detail { gap: var(--sp-8); }
}
.pd-actions { flex-wrap: wrap; }
.pd-actions .btn-primary { flex: 1 1 180px; min-width: 0; }
@media (max-width: 1100px) {
  /* cantidad y favoritos arriba, "Agregar al carrito" a todo el ancho abajo */
  .pd-actions .qty-control { order: 1; }
  .pd-actions .icon-btn { order: 2; margin-left: auto; }
  .pd-actions .btn-primary { order: 3; flex-basis: 100%; }
}

@media (max-width: 639px) {
  /* Ficha: menos aire arriba para que título y precio queden en la primera pantalla. */
  .product-detail { padding-block: 16px 32px; gap: 20px; }
  .pd-thumb { width: 56px; height: 56px; }

  /* Catálogo: filtros compactos. Búsqueda y orden en una fila, categorías en una fila deslizable,
     y la barra deja de quedarse fija (ocupaba un tercio de la pantalla mientras se hacía scroll). */
  .toolbar { position: static; gap: 10px; padding-block: 14px; margin-bottom: var(--sp-4); }
  .toolbar-search { order: 1; flex: 1 1 0; min-width: 0; max-width: none; }
  .toolbar-sort { order: 2; flex: 0 0 auto; margin-left: 0; position: relative; }
  .toolbar-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .toolbar-sort .select { width: 150px; max-width: 42vw; }
  .toolbar-search input, .select { font-size: 16px; } /* 16px evita el zoom automático de iOS al tocar el campo */
  .chip-row { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(-1 * clamp(20px, 4vw, 56px)); padding-inline: clamp(20px, 4vw, 56px); }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; height: 40px; }
  .chip-subrow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: -4px;
    margin-inline: calc(-1 * clamp(20px, 4vw, 56px)); padding-inline: clamp(20px, 4vw, 56px); }
  .chip-subrow::-webkit-scrollbar { display: none; }
  .chip-subrow-label { flex: 0 0 auto; }
  .chip-sub { flex: 0 0 auto; height: 36px; }

  /* Checkout: los tres pasos caben en una sola fila (antes se partían en dos con las líneas sueltas). */
  .checkout-steps { flex-wrap: nowrap; justify-content: space-between; margin-bottom: var(--sp-6); }
  .checkout-step { gap: 6px; font-size: 0.8rem; white-space: nowrap; }
  .checkout-step + .checkout-step { flex: 1 1 0; min-width: 0; }
  .checkout-step + .checkout-step::before { flex: 1 1 auto; width: auto; min-width: 8px; margin-inline: 8px; }
}

/* Objetivos táctiles y textos mínimos en pantallas chicas. */
@media (max-width: 759px) {
  .wishlist-btn { width: 40px; height: 40px; }
  .hero-dot { height: 32px; padding: 0 5px; }
  .footer-links { gap: 2px; }
  .footer-links a, .footer-links span { padding-block: 6px; }
  .hero-slider .hero-tile__cat { font-size: 0.62rem; }
}

/* Carritos y favoritos cerrados: fuera de pantalla de verdad (sin sombra asomando por el borde derecho
   y sin que el teclado o el lector de pantalla entren en ellos). */
.drawer { visibility: hidden; box-shadow: none; transition: transform var(--dur-med) var(--ease), visibility 0s linear var(--dur-med); }
.drawer.is-open { visibility: visible; box-shadow: var(--shadow-lg); transition: transform var(--dur-med) var(--ease), visibility 0s; }

/* Botón para ajustar el carrito al stock disponible (checkout). */
.stock-fix { margin-top: 12px; }

/* =====================================================================
   Barra fija de compra en la ficha (celular y tablet)
   ===================================================================== */
:root { --buybar-h: 70px; }
.pd-buybar { display: none; }
.pd-buybar s { font-size: 0.72rem; font-weight: 500; color: var(--gray-500); margin-left: 4px; }
@media (max-width: 1023px) {
  .pd-buybar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 56; /* sobre el botón de WhatsApp (55); debajo del menú (70), el fondo oscuro (80) y el carrito (90) */
    padding: 10px clamp(16px, 4vw, 56px) calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(11, 11, 12, 0.08);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform var(--dur-med) var(--ease), visibility 0s linear var(--dur-med);
  }
  .pd-buybar.is-visible { transform: none; visibility: visible; transition: transform var(--dur-med) var(--ease), visibility 0s; }
  /* El precio nunca se recorta: la columna toma el ancho que necesita (hasta 46 %) y el botón se achica. */
  .pd-buybar__info { display: flex; flex-direction: column; flex: 0 0 auto; max-width: 46%; min-width: 0; line-height: 1.15; }
  .pd-buybar__price { font-family: var(--font-display); font-weight: 800; font-size: clamp(1rem, 4.4vw, 1.15rem); white-space: nowrap; }
  .pd-buybar__hint { font-size: 0.72rem; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pd-buybar__btn { flex: 1 1 0; max-width: 280px; margin-left: auto; height: 48px; min-width: 0; padding-inline: 12px; }

  /* Para que la barra no tape nada: el pie queda con espacio debajo, y el botón de WhatsApp y los avisos
     se corren por encima de la barra mientras está visible. */
  body.has-buybar-page .footer { padding-bottom: calc(var(--sp-6) + var(--buybar-h)); }
  .wa-fab { transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), bottom var(--dur-med) var(--ease); }
  body.has-buybar .wa-fab { bottom: calc(var(--buybar-h) + 14px + env(safe-area-inset-bottom, 0px)); }
  body.has-buybar .toast-stack { bottom: calc(var(--buybar-h) + 14px + env(safe-area-inset-bottom, 0px)); }
  body.no-scroll .pd-buybar { visibility: hidden; } /* con el carrito o el menú abiertos, la barra no está */
}
@media (max-width: 419px) {
  .pd-buybar s { display: none; } /* en pantallas angostas la barra muestra solo el precio vigente */
}
@media (prefers-reduced-motion: reduce) {
  .pd-buybar, .pd-buybar.is-visible { transition: none; }
}

/* ---------------- ventana "dejá tu mail" ---------------- */
.nl-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(11, 11, 12, 0.6);
  opacity: 0; transition: opacity 0.25s ease;
}
.nl-overlay.is-open { opacity: 1; }
.nl-card {
  position: relative; width: 100%; max-width: 420px;
  background: var(--white, #fff); color: var(--black);
  border-radius: 14px; padding: 34px 28px 22px;
  border-top: 4px solid var(--red);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(12px); transition: transform 0.25s ease;
  text-align: center;
}
.nl-overlay.is-open .nl-card { transform: translateY(0); }
.nl-close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #777;
}
.nl-close:hover { color: var(--black); }
.nl-kicker { font: 700 0.72rem/1 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin: 0 0 10px; }
.nl-title { font: italic 900 1.7rem/1.05 var(--font-display); letter-spacing: -0.03em; margin: 0 0 10px; }
.nl-text { font-size: 0.95rem; color: #555; margin: 0 0 18px; }
.nl-form { display: flex; flex-direction: column; gap: 10px; }
.nl-input {
  width: 100%; padding: 13px 14px; font-size: 16px;
  border: 1.5px solid #d6d6d6; border-radius: 8px; background: #fff; color: var(--black);
}
.nl-input:focus { outline: none; border-color: var(--black); }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-submit { width: 100%; justify-content: center; }
.nl-msg { min-height: 1.2em; margin: 10px 0 0; font-size: 0.9rem; }
.nl-msg.is-error { color: var(--red); }
.nl-msg.is-ok { color: #157a3c; font-weight: 600; }
.nl-skip { margin-top: 6px; background: none; border: 0; color: #888; font-size: 0.85rem; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .nl-overlay, .nl-card { transition: none; } }
