/*! PaqEx CSS bundle (28 archivos). Generado por tools/build.mjs; no editar a mano. */
/* =============================================================
   PaqEx · Design Tokens (CSS Custom Properties)
   Premium Mobile-First · Temporada BLACK FRIDAY
   Rojo vibrante · Negro carbón · Blanco · Amarillo neón
   ============================================================= */

:root {
  /* Paleta Black Friday */
  --color-bg: #f7f6f4;
  --color-surface: #ffffff;
  --color-surface-alt: #f1efec;
  --color-text: #141414;
  --color-text-muted: #6b6560;
  --color-primary: #e11d2e;
  --color-primary-dark: #b3121f;
  --color-primary-soft: #ffe4e6;
  --color-price: #d41126;
  --color-secondary: #141414;
  --color-action: #ffe600;
  --color-action-dark: #f5d000;
  --color-action-soft: #fff9c2;
  --color-action-ink: #8a6d00;
  --color-accent: #ffd400;
  --color-accent-dark: #8a6d00;
  --color-danger: #e11d2e;
  --color-success: #15803d;
  --color-border: #e7e3de;
  --color-border-strong: #cfc8c0;

  /* Gradiente de marca (rojo → carbón) */
  --grad-brand: linear-gradient(135deg, #e11d2e 0%, #b3121f 55%, #141414 100%);

  /* Tipografía */
  --font-base: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Espaciado */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  /* Radios */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 999px;

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.08), 0 8px 10px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 2px rgba(20, 20, 20, 0.06), 0 10px 28px rgba(20, 20, 20, 0.07);
  --shadow-card-hover: 0 4px 8px rgba(20, 20, 20, 0.06), 0 22px 44px rgba(20, 20, 20, 0.14);

  /* Layout */
  --header-h: 60px;
  --max-w: 1480px;
  --gutter: clamp(1rem, 3.2vw, 2.5rem);

  /* Transiciones y z-index */
  --t-fast: 150ms ease;
  --t-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --z-dropdown: 100;
  --z-bottom-nav: 200;
  --z-drawer: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* Accesibilidad */
  --focus-ring: 0 0 0 3px rgba(225, 29, 46, 0.32);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* =============================================================
   PaqEx · Reset / Base
   ============================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* clip (no crea contenedor de scroll) mantiene funcionando position: sticky
     del banner Black Friday, el header y los tabs. hidden queda como fallback. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-x: clip;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

h1, h2, h3, h4, p, figure, ul, ol {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* =============================================================
   PaqEx · Layout: Header / Navegación
   ============================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-dropdown);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  height: var(--header-h);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: var(--color-text);
  white-space: nowrap;
}

.logo span {
  color: var(--color-primary);
}

.logo::after {
  content: "OFERTAS";
  margin-left: 7px;
  padding: 3px 5px;
  border-radius: 4px;
  background: #ffe600;
  color: #141414;
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  transform: rotate(-2deg);
}

.search-bar {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 42px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--sp-2) var(--sp-4);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  position: relative;
}

.search-bar > svg {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.search-bar:focus-within {
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.12);
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: var(--text-sm);
}

/* Panel de sugerencias de búsqueda */
.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  z-index: var(--z-dropdown);
  max-height: 70vh;
  overflow-y: auto;
}

.search-suggest__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  text-align: left;
  transition: background var(--t-fast);
}

.search-suggest__item:hover,
.search-suggest__item:focus-visible {
  background: var(--color-surface-alt);
}

.search-suggest__img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--color-surface-alt);
}

.search-suggest__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.search-suggest__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggest__cat {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.search-suggest__price {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.search-suggest__empty {
  padding: var(--sp-4);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--sp-2);
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--color-text);
  transition: background var(--t-fast), transform var(--t-fast), color var(--t-fast);
}

.header-actions .icon-btn {
  background: #141414;
  color: #fff;
  box-shadow: 0 6px 14px rgba(20, 20, 20, 0.18);
}

.icon-btn:hover {
  background: var(--color-surface-alt);
  transform: translateY(-1px);
}

.header-actions .icon-btn:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

.cart-count {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: var(--weight-bold);
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  border: 2px solid #141414;
  transition: transform var(--t-fast);
}

.cart-count.pop {
  animation: pop 300ms ease;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Tabs de categoría (scroll horizontal en móvil) */
.category-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(247, 246, 244, 0.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(20, 20, 20, 0.06);
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  white-space: nowrap;
  transition: all var(--t-fast);
}

.tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.tab[aria-selected="true"] {
  background: #141414;
  border-color: #141414;
  color: #ffe600;
  box-shadow: 0 6px 14px rgba(20, 20, 20, 0.18);
}

@media (max-width: 640px) {
  .search-bar input::placeholder {
    font-size: var(--text-xs);
  }

  .logo::after {
    display: none;
  }
}

@media (max-width: 360px) {
  .header-inner {
    gap: var(--sp-2);
    padding-inline: var(--sp-3);
  }

  .logo {
    font-size: var(--text-lg);
  }

  .search-bar {
    padding: var(--sp-2) var(--sp-3);
  }
}
/* =============================================================
   PaqEx · Layout: Catálogo / Grid
   ============================================================= */

main {
  min-height: 60vh;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-10) var(--gutter) var(--sp-5);
  max-width: var(--max-w);
  margin-inline: auto;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-title h2::before {
  content: "BLACK FRIDAY · 3º A MITAD";
  display: block;
  margin-bottom: 4px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--color-primary);
}

.section-title .count {
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.product-grid {
  display: grid;
  /* minmax(0, 1fr) evita que el contenido de la tarjeta ensanche la columna. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 var(--gutter) var(--sp-16);
  max-width: var(--max-w);
  margin-inline: auto;
  align-items: stretch;
}

.grid-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  padding: var(--sp-16) var(--sp-4);
}

.load-more {
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter) var(--sp-12);
}

.load-more[hidden] {
  display: none;
}

#load-more-count {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  opacity: 0.8;
}

/* Barra de estado / esqueleto */
.skeleton {
  background: linear-gradient(100deg, var(--color-surface-alt) 40%, var(--color-surface) 50%, var(--color-surface-alt) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }
}
/* =============================================================
   PaqEx · Layout: Footer
   ============================================================= */

.site-footer {
  background: var(--color-text);
  color: #cfd2e3;
  margin-top: var(--sp-8);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--sp-10) var(--gutter) var(--sp-6);
  display: grid;
  gap: var(--sp-8);
}

.footer-brand h3 {
  color: #fff;
  margin-bottom: var(--sp-2);
}

.footer-brand p {
  font-size: var(--text-sm);
  max-width: 34ch;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
}

.footer-links h4 {
  color: #fff;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
}

.footer-links ul {
  display: grid;
  gap: var(--sp-2);
  font-size: var(--text-sm);
}

.footer-links a {
  color: #cfd2e3;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--sp-4);
  font-size: var(--text-xs);
  color: #8b90a5;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: space-between;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* =============================================================
   PaqEx · Componentes: Botones y badges
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  font-weight: 700;
  border-radius: 10px;
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--text-sm);
  border: 1px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: linear-gradient(135deg, #e11d2e 0%, #b3121f 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(225, 29, 46, 0.24);
}

.btn--primary:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 12px 24px rgba(225, 29, 46, 0.34);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--ghost:hover:not(:disabled) {
  background: var(--color-primary-soft);
}

.btn--dark {
  background: var(--color-text);
  color: #fff;
}

.btn--dark:hover:not(:disabled) {
  background: #2a2a2a;
}

.btn--success {
  background: var(--color-action);
  color: #141414;
  box-shadow: 0 8px 20px rgba(255, 230, 0, 0.28);
}

.btn--success:hover:not(:disabled) {
  background: var(--color-action-dark);
  box-shadow: 0 12px 26px rgba(255, 230, 0, 0.4);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-xs);
}

.btn--lg {
  min-height: 52px;
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--text-base);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.badge--sale {
  background: var(--color-danger);
  color: #fff;
}

.badge--stock {
  background: var(--color-success);
  color: #fff;
}

.badge--out {
  background: var(--color-text);
  color: #fff;
}

/* Precio con precio original tachado */
.price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.price__now {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-price);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.price__before {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  opacity: 0.75;
  text-decoration: line-through;
}

.price__discount {
  font-size: var(--text-xs);
  color: var(--color-success);
  font-weight: var(--weight-semibold);
}
/* =============================================================
   PaqEx · Componentes: Tarjeta de producto
   Tarjeta premium Black Friday: superficie blanca, etiqueta OFERTA,
   pago contra entrega visible y botón Comprar táctil (48px).
   La imagen y el título llevan al PDP; el botón agrega al carrito.
   ============================================================= */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  animation: card-in 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: auto 390px;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:focus-within {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.card-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

/* --- Imagen del producto --- */
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--color-surface-alt);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.card-media picture {
  display: contents;
}

.card-media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* Etiqueta de campaña: protagonista, arriba a la izquierda. */
.card-offer-tag {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 2;
  display: grid;
  gap: 1px;
  padding: 6px 9px 5px;
  border-radius: 7px;
  background: linear-gradient(135deg, #e11d2e 0%, #b3121f 100%);
  color: #fff;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(179, 18, 31, 0.38);
  pointer-events: none;
}

.card-offer-tag b {
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.card-offer-tag small {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffe600;
}

.card-media__badges {
  position: absolute;
  top: auto;
  bottom: var(--sp-2);
  left: var(--sp-2);
  display: flex;
  flex-direction: row;
  gap: var(--sp-1);
  z-index: 2;
  pointer-events: none;
}

.card-video-badge {
  top: auto;
  right: var(--sp-2);
  bottom: var(--sp-2);
}

/* --- Información --- */
.card-info {
  display: grid;
  gap: var(--sp-1);
  padding: 0 3px;
}

.card-title {
  font-size: 0.875rem;
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.45em;
  transition: color var(--t-fast);
}

.card-main:hover .card-title {
  color: var(--color-primary);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  font-size: 0.6875rem;
  color: var(--color-text-muted);
}

.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  color: var(--color-text);
}

.card-rating::before {
  content: "★";
  color: #f59e0b;
  font-size: 0.875rem;
  line-height: 1;
}

.card-sold {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta svg,
.product-card .stars svg {
  width: 14px !important;
  height: 14px !important;
  color: #f59e0b !important;
  fill: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

/* --- Jerarquía de precio --- */
.product-card .price {
  gap: 5px;
  align-items: baseline;
  margin-top: 1px;
}

.product-card .price__now {
  font-size: clamp(1.3rem, 4.5vw, 1.55rem);
  font-weight: 900;
  color: var(--color-price);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.product-card .price__before {
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3af;
  opacity: 1;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.product-card .price__off {
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1.25;
}

/* --- Pago contra entrega / envío --- */
.card-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.card-cod {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 6px;
  background: #141414;
  color: #ffe600;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.card-ship {
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.25;
}

/* --- Botón Comprar (objetivo táctil mínimo 48px) --- */
.card-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 48px;
  margin-top: var(--sp-2);
  padding: 0 var(--sp-3);
  border-radius: 10px;
  background: linear-gradient(135deg, #e11d2e 0%, #b3121f 100%);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 7px 16px rgba(225, 29, 46, 0.24);
  transition: transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}

.card-buy__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-buy:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(225, 29, 46, 0.34);
}

.card-buy:active:not(:disabled) {
  transform: scale(0.98);
}

.card-buy:focus-visible {
  outline: 3px solid #141414;
  outline-offset: 2px;
  box-shadow: none;
}

.card-buy:disabled {
  background: #d8d3ce;
  color: #6b6560;
  box-shadow: none;
  cursor: not-allowed;
}

.product-card.is-out .card-media__img {
  filter: grayscale(1);
  opacity: 0.7;
}

.out-of-stock {
  filter: grayscale(1);
  opacity: 0.6;
  pointer-events: none;
}

.stock-tag {
  font-size: var(--text-xs);
  color: var(--color-danger);
  font-weight: var(--weight-medium);
}

.stock-tag.is-ok {
  color: var(--color-success);
}

/* --- Desktop: micro-interacciones elegantes --- */
@media (hover: hover) and (min-width: 720px) {
  .product-card:hover {
    transform: translateY(-5px);
    border-color: #e9c9cc;
    box-shadow: var(--shadow-card-hover);
  }
}

@media (max-width: 719px) {
  .product-card {
    padding: 8px;
    border-radius: 16px;
  }

  .card-title {
    font-size: 0.8125rem;
  }

  .product-card .price__now {
    font-size: 1.3rem;
  }

  .card-cod,
  .card-ship {
    padding: 3px 6px;
    font-size: 0.6rem;
  }

  .card-buy {
    font-size: 0.875rem;
  }
}
/* =============================================================
   PaqEx · Componentes: Cart Drawer (carrito lateral)
   ============================================================= */

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 100vw);
  height: 100dvh;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform var(--t-base);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--color-border);
}

.drawer__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-4) var(--sp-5);
  display: grid;
  align-content: start;
  gap: var(--sp-4);
}

.drawer__empty {
  text-align: center;
  color: var(--color-text-muted);
  padding-block: var(--sp-12);
}

.drawer__empty svg {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sp-4);
  opacity: 0.5;
}

.drawer__footer {
  border-top: 1px solid var(--color-border);
  padding: var(--sp-4) var(--sp-5);
  display: grid;
  gap: var(--sp-3);
}

.drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
}

.drawer__envio-note {
  font-size: var(--text-xs);
  color: var(--color-success);
  font-weight: var(--weight-medium);
}

/* Item del carrito */
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--sp-3);
  align-items: start;
  animation: card-in 250ms ease both;
}

.cart-item__img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
}

.cart-item__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1.3;
}

.cart-item__price {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  margin-top: var(--sp-1);
}

.cart-item__price-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.cart-item__price-row .cart-item__price {
  margin-top: var(--sp-1);
}

.cart-item__save {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-success);
  background: var(--color-action-soft);
  padding: 1px var(--sp-2);
  border-radius: var(--radius-full);
  white-space: nowrap;
  margin-top: var(--sp-1);
}

.cart-item__upsell {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-primary-dark);
  margin-top: var(--sp-1);
}

.cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 2px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
}

.qty-btn:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.cart-item__qty .qty {
  min-width: 20px;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.cart-item__remove {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  padding: var(--sp-1);
  border-radius: var(--radius-sm);
}

.cart-item__remove:hover {
  color: var(--color-danger);
  background: #fef2f2;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 16, 40, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
  z-index: var(--z-drawer);
}

.overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
.coupon {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-surface-alt);
}

.coupon__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.coupon__form {
  display: flex;
  gap: var(--sp-2);
}

.coupon__input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: var(--sp-3);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-base);
  text-transform: uppercase;
}

.coupon__input::placeholder {
  color: var(--color-text-muted);
  text-transform: none;
}

.coupon__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

.coupon__apply {
  flex: 0 0 auto;
  min-height: 44px;
}

.coupon__msg {
  font-size: var(--text-xs);
  line-height: 1.4;
}

.coupon__msg:empty {
  display: none;
}

.coupon__msg.is-error {
  color: var(--color-danger);
}

.coupon__msg.is-success {
  color: var(--color-success);
}

.coupon__applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1px solid var(--color-action-soft);
  border-radius: var(--radius-sm);
  background: var(--color-action-soft);
}

.coupon__info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.coupon__code {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-action-ink);
  overflow-wrap: anywhere;
}

.coupon__vendor {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.coupon__discount {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-action-ink);
}

.coupon__remove {
  flex: 0 0 auto;
  min-height: 36px;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.coupon__remove:hover {
  border-color: var(--color-danger);
  color: var(--color-danger);
}
/* =============================================================
   PaqEx · Componentes: Modal de Checkout (COD)
   ============================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 40, 0.55);
}

.modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform var(--t-base);
}

.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
}

.modal__header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 1;
}

.modal__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

.modal__body {
  padding: var(--sp-5);
  display: grid;
  gap: var(--sp-5);
}

.modal__close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  font-size: var(--text-lg);
  color: var(--color-text);
}

.modal__close:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* Resumen del pedido dentro del modal */
.checkout-summary {
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  padding: var(--sp-4);
  display: grid;
  gap: var(--sp-2);
}

.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.checkout-summary__row strong {
  color: var(--color-text);
}

.checkout-summary__row--total {
  border-top: 1px dashed var(--color-border);
  padding-top: var(--sp-3);
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: var(--weight-bold);
}

/* Body scroll lock */
html.no-scroll {
  overflow: hidden;
}

/* Nota de entrega */
.delivery-note {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  background: var(--color-primary-soft);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  color: var(--color-primary-dark);
}

.delivery-note svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .modal__panel {
    max-height: 100dvh;
    border-radius: 0;
  }

  .modal__header {
    border-radius: 0;
  }
}
/* =============================================================
   PaqEx · Componentes: Formularios + validación
   ============================================================= */

.form {
  display: grid;
  gap: var(--sp-4);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form__group {
  display: grid;
  gap: 6px;
}

.form__group--full {
  grid-column: 1 / -1;
}

.form__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.form__label .req {
  color: var(--color-danger);
}

.form__field {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form__field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

.form__field.is-invalid {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form__field:disabled,
.form__field[readonly] {
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
}

select.form__field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 6.6 8 10l3.4-3.4-.9-.9L8 8.2 5.5 5.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-3) center;
  padding-right: var(--sp-8);
}

textarea.form__field {
  resize: vertical;
  min-height: 76px;
}

.form__error {
  display: none;
  font-size: var(--text-xs);
  color: var(--color-danger);
}

.form__group.is-invalid .form__error {
  display: block;
}

.form__hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Mensaje de error general (submit) */
.form__alert {
  display: none;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--color-danger);
}

.form__alert.is-visible {
  display: block;
}

/* Radio de método de pago (solo COD) */
.pay-method {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.pay-method:hover {
  border-color: var(--color-primary);
}

.pay-method.is-selected {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.pay-method input {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
}

.pay-method__body strong {
  display: block;
  font-size: var(--text-sm);
}

.pay-method__body span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 480px) {
  .form__grid {
    grid-template-columns: 1fr;
  }

  .form__group--full {
    grid-column: auto;
  }
}
/* =============================================================
   PaqEx · Componentes: Toast / Feedback
   ============================================================= */

.toast {
  position: fixed;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: var(--color-text);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-toast);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  max-width: calc(100vw - var(--sp-8));
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast--success {
  background: var(--color-success);
}

.toast--error {
  background: var(--color-danger);
}

/* Banderas de país en el selector (opcional, se evita para peso) */
/* =============================================================
   PaqEx · Componentes: Página de Detalle de Producto (PDP)
   Mobile-First. Layout: galería arriba, panel de compra después,
   reseñas abajo. En desktop: galería | panel en dos columnas.
   ============================================================= */

.pdp {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--sp-4) var(--gutter) var(--sp-12);
  display: grid;
  gap: var(--sp-6);
  animation: card-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-primary);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs__sep {
  opacity: 0.5;
}

.breadcrumbs__current {
  color: var(--color-text);
  font-weight: var(--weight-medium);
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Galería ---------- */
.pdp__layout {
  display: grid;
  gap: var(--sp-6);
}

.pdp__gallery {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
}

/* Miniaturas (columna izquierda en desktop, fila arriba en móvil) */
.pdp__thumbs {
  display: flex;
  flex-direction: row;
  gap: var(--sp-2);
  order: 1;
  grid-column: 1 / -1;
  overflow-x: auto;
  padding-bottom: var(--sp-1);
  scrollbar-width: thin;
}

.pdp__thumb {
  flex: 0 0 auto;
  width: 58px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-border);
  overflow: hidden;
  padding: 0;
  background: var(--color-surface-alt);
  transition: border-color var(--t-fast), transform var(--t-fast);
}

.pdp__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.pdp__thumb:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.pdp__thumb[aria-current="true"] {
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

/* Imagen principal + viewport de zoom */
.pdp__main-media {
  position: relative;
  grid-column: 1 / -1;
  order: 2;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  cursor: zoom-in;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  transform-origin: center;
}

.pdp__main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  transform: scale(1);
  transition: transform var(--t-base);
  will-change: transform, filter;
  user-select: none;
  -webkit-user-drag: none;
}

/* Brillo que acompaña el tilt 3D */
.pdp__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--t-base);
}

.pdp__main-media:hover .pdp__shine {
  opacity: 1;
}

/* Zoom activo (desktop: hover) */
.pdp__main-media.is-zoomed .pdp__main-img {
  transform: scale(2.3);
}

.pdp__main-media.is-zoomed {
  cursor: zoom-out;
}

.pdp__zoom-hint {
  position: absolute;
  right: var(--sp-2);
  bottom: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.85);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: 1;
  backdrop-filter: blur(4px);
}

/* ---------- Precios de mayoreo (descuento por cantidad) ---------- */
.pdp__volume {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--color-primary-soft);
  border-radius: var(--radius);
  border: 1px solid var(--color-primary-soft);
}

.pdp__volume-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-primary-dark);
  letter-spacing: 0.02em;
}

.pdp__volume-rows {
  display: grid;
  gap: var(--sp-1);
}

.volume-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-sm);
  transition: background var(--t-fast);
}

.volume-row.is-active {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.volume-row__label {
  flex: 1;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
}

.volume-row__price {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.volume-row__save {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-success);
  background: var(--color-action-soft);
  padding: 1px var(--sp-2);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pdp__volume-upsell {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-primary-dark);
  margin: var(--sp-1) 0 0;
}

/* ---------- Panel de compra ---------- */
.pdp__buy-panel {
  display: grid;
  gap: var(--sp-3);
  align-content: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.pdp__title {
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.pdp__rating-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.pdp__rating-line .pdp__rating-value {
  color: var(--color-text);
  font-weight: var(--weight-semibold);
}

.pdp__separator {
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

.pdp__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.pdp__price-now {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.pdp__price-before {
  font-size: var(--text-lg);
  color: #9ca3af;
  opacity: 1;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.pdp__price-off {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  font-size: var(--text-sm);
  color: var(--color-primary-dark);
  font-weight: 800;
}

.pdp__taxes-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Estado de stock dinámico */
.pdp__stock {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}

.pdp__stock::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-success);
}

.pdp__stock.is-low::before {
  background: var(--color-accent);
}

.pdp__stock.is-low {
  color: var(--color-accent-dark);
}

.pdp__stock.is-out {
  color: var(--color-danger);
}

.pdp__stock.is-out::before {
  background: var(--color-danger);
}

.pdp__desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Selector de cantidad */
.pdp__qty {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.pdp__qty-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
}

.pdp__stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--color-surface);
}

.pdp__stepper button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  transition: background var(--t-fast), color var(--t-fast);
}

.pdp__stepper button:hover:not(:disabled) {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.pdp__stepper button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pdp__stepper input {
  width: 52px;
  height: 40px;
  border: 0;
  text-align: center;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  -moz-appearance: textfield;
  appearance: textfield;
  background: transparent;
}

.pdp__stepper input::-webkit-outer-spin-button,
.pdp__stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pdp__meta {
  display: grid;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--color-border);
}

.pdp__meta-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* ---------- Badges de Confianza (COD) ---------- */
.pdp__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: var(--sp-3);
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  border: 1px solid #fde68a;
  border-radius: var(--radius);
}

.pdp__trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
}

.pdp__trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.28);
  flex-shrink: 0;
}

.pdp__trust-icon svg {
  width: 22px;
  height: 22px;
}

.pdp__trust-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  color: #92400e;
}

/* ---------- Línea de Tiempo de Entrega ---------- */
.pdp__timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: var(--sp-2) 0 0;
}

/* Línea conectora que une el centro del primer y último punto. */
.pdp__timeline::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 16.666%;
  right: 16.666%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-action) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-full);
}

.pdp__timeline-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
}

.pdp__timeline-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px var(--color-surface);
  flex-shrink: 0;
}

.pdp__timeline-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pdp__timeline-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

.pdp__timeline-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* ---------- Rich Content (Descripción Extendida) ---------- */
.pdp__rich {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.pdp__rich-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

.pdp__rich-head-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--color-action-ink);
  background: var(--color-action-soft);
  flex-shrink: 0;
}

.pdp__rich-head-icon svg {
  width: 16px;
  height: 16px;
}

.pdp__rich-body {
  display: grid;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.pdp__rich-body h3,
.pdp__rich-body h4,
.pdp__rich-body h5 {
  color: var(--color-text);
  line-height: 1.25;
  margin: 0;
}

.pdp__rich-body h3 { font-size: var(--text-lg); }
.pdp__rich-body h4 { font-size: var(--text-base); }
.pdp__rich-body h5 { font-size: var(--text-sm); }

.pdp__rich-body p {
  margin: 0;
}

.pdp__rich-body ul,
.pdp__rich-body ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}

.pdp__rich-body li {
  position: relative;
  padding-left: var(--sp-6);
}

/* Lista con icono de "check" (verde) */
.pdp__rich-body ul > li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: var(--weight-bold);
  color: var(--color-action-ink);
  background: var(--color-action-soft);
}

/* Lista numerada simple */
.pdp__rich-body ol {
  counter-reset: rich-li;
}

.pdp__rich-body ol > li {
  counter-increment: rich-li;
}

.pdp__rich-body ol > li::before {
  content: counter(rich-li);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: var(--weight-bold);
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
}

.pdp__rich-body strong,
.pdp__rich-body b {
  color: var(--color-text);
  font-weight: var(--weight-semibold);
}

/* Texto resaltado */
.pdp__rich-body .highlight {
  padding: var(--sp-2) var(--sp-3);
  background: var(--color-primary-soft);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text);
  font-weight: var(--weight-medium);
}

.pdp__rich-body a {
  color: var(--color-primary);
  font-weight: var(--weight-medium);
}

.pdp__rich-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ---------- Responsive: desktop ---------- */
@media (min-width: 768px) {
  .pdp__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--sp-8);
    align-items: start;
  }

  /* Miniaturas a la izquierda, principal al lado */
  .pdp__gallery {
    grid-template-columns: 84px 1fr;
    gap: var(--sp-3);
  }

  .pdp__thumbs {
    order: 0;
    grid-column: 1;
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
    max-height: 560px;
  }

  .pdp__thumb {
    width: 100%;
  }

  .pdp__main-media {
    grid-column: 2;
    order: 0;
  }

  .pdp__buy-panel {
    position: sticky;
    top: calc(var(--header-h) + var(--topbar-h) + var(--sp-4));
  }

  .pdp__price-now {
    font-size: var(--text-3xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdp__main-img {
    transition: none;
  }
}

/* ---------- Visor Lightbox (imagen a pantalla completa, móvil) ---------- */
.pdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Botón cerrar: siempre visible en la esquina superior derecha */
.pdp-lightbox__close {
  position: absolute;
  top: calc(var(--sp-3) + env(safe-area-inset-top));
  right: calc(var(--sp-3) + env(safe-area-inset-right));
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pdp-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Contenedor scrolleable: permite pan con un dedo y pinch-zoom con dos */
.pdp-lightbox__viewport {
  width: 100%;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
}

.pdp-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}
/* =============================================================
   PaqEx · Componentes: Reseñas (Reviews)
   Promedio con estrellas SVG (relleno parcial vía clip) +
   histograma de distribución + lista de reseñas estáticas.
   ============================================================= */

.reviews {
  display: grid;
  gap: var(--sp-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.reviews__title {
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
}

/* ---------- Resumen del promedio ---------- */
.reviews__summary {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--color-border);
}

.reviews__score {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.reviews__score-value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: 1;
}

.reviews__score-value small {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: var(--weight-normal);
}

.reviews__score-meta {
  display: grid;
  gap: var(--sp-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- Estrellas con relleno parcial ---------- */
.stars {
  position: relative;
  display: inline-flex;
  line-height: 0;
}

.stars__track {
  display: inline-flex;
  gap: 2px;
}

.stars__fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- Histograma ---------- */
.reviews__histogram {
  display: grid;
  gap: var(--sp-1);
}

.reviews__hist-row {
  display: grid;
  grid-template-columns: 3ch 1fr 3ch;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.reviews__hist-track {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  overflow: hidden;
}

.reviews__hist-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  animation: card-in 400ms ease both;
}

.reviews__hist-n {
  text-align: right;
}

/* ---------- Lista de reseñas ---------- */
.reviews__list {
  display: grid;
  gap: var(--sp-5);
}

.review {
  display: grid;
  gap: var(--sp-2);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--color-border);
}

.review:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.review__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.review__author {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.review__avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
}

.review__verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--color-success);
  font-weight: var(--weight-medium);
}

.review__date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.review__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}

.review__comment {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
}

/* ---------- Paginación (5 reseñas por página) ---------- */
.reviews__pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}

.reviews__page {
  min-width: 44px;
  height: 44px;
  padding: 0 var(--sp-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.reviews__page:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.reviews__page.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.reviews__page:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

@media (min-width: 768px) {
  .reviews {
    padding: var(--sp-8);
  }

  .reviews__summary {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-8);
  }

  .reviews__histogram {
    flex: 1;
    max-width: 380px;
  }
}

/* ---------- Formulario de reseña ---------- */
.review-form-wrap {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--color-border);
}

.review-form {
  display: grid;
  gap: var(--sp-4);
}

.review-form__title {
  font-size: var(--text-lg);
  margin: 0;
}

.review-form__stars {
  display: flex;
  gap: var(--sp-1);
}

.review-form__star {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 0;
  transition: transform 120ms ease;
}

.review-form__star:hover {
  transform: scale(1.15);
}

.review-form__star:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.review-form__grid {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .review-form__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.review-form__field {
  display: grid;
  gap: var(--sp-2);
}

.review-form__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.review-form textarea {
  resize: vertical;
  min-height: 84px;
}

.review-form__msg {
  font-size: var(--text-sm);
  margin: 0;
}

.review-form__msg.is-error {
  color: var(--color-danger);
}

.review-form__msg.is-success {
  color: var(--color-success);
}
/* =============================================================
   PaqEx · Componente: Promo banner (configurado desde el admin)
   Barra superior inyectada dinámicamente si banner_activo = true.
   El color viene de la BD; siempre se sanea a hex en siteConfig.js.
   ============================================================= */

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--gutter);
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-align: center;
  line-height: 1.4;
}

.promo-banner__text {
  max-width: var(--max-w);
}
/* =============================================================
   PaqEx · Components: Bottom Navigation Bar
   Barra inferior fija estilo app móvil.
   Solo visible en pantallas < 720px.
   ============================================================= */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-dropdown);
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
  height: 68px;
  box-shadow: 0 -10px 28px rgba(20, 20, 20, 0.08);
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.625rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  transition: color var(--t-fast);
  position: relative;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
}

.bottom-nav__item:hover,
.bottom-nav__item:focus-visible {
  color: var(--color-primary);
}

.bottom-nav__item[aria-current="page"] {
  color: var(--color-primary);
}

.bottom-nav__item[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 0 0 2px 2px;
}

.bottom-nav__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-fast);
}

.bottom-nav__item:active .bottom-nav__icon {
  transform: scale(0.88);
}

.bottom-nav__icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.bottom-nav__badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  font-size: 0.5625rem;
  font-weight: var(--weight-bold);
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-surface);
}

/* Desktop: ocultar bottom nav */
@media (min-width: 720px) {
  .bottom-nav {
    display: none;
  }
}

/* Body spacer para que el footer no quede tapado */
body.has-bottom-nav {
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 720px) {
  body.has-bottom-nav {
    padding-bottom: 0;
  }
}
/* =============================================================
   PaqEx · Components: Product Badges
   Badge de categoría con color único por tipo de producto.
   ============================================================= */

/* Badge de categoría en la tarjeta */
.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--sp-2);
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  width: fit-content;
  margin-bottom: var(--sp-1);
}

/* Paleta única por categoría */
.cat-badge--belleza {
  background: #fce7f3;
  color: #be185d;
  border: 1px solid #f9a8d4;
}

.cat-badge--suplementos {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

.cat-badge--electronica {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

.cat-badge--hogar {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.cat-badge--otros {
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* Precio de oferta: grande, rojo y con jerarquía */
.price__now {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-price);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.price__off {
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.2;
}

/* Badge de descuento mejorado */
.badge--sale {
  background: var(--color-primary);
  font-size: var(--text-xs);
  padding: 3px 8px;
  letter-spacing: 0.02em;
}

/* Card info más limpia */
.card-info {
  padding: 0 3px;
}

.card-title {
  font-size: 0.875rem;
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-badge--salud-y-bienestar {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

.cat-badge--automotriz {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.cat-badge--herramientas {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
}
/* =============================================================
   PaqEx · Components: Landing Page Sections
   Secciones de navegación visual, CTA y testimonios
   ============================================================= */

/* -------- Sección: Navegación Visual (Botones Circulares Grandes) -------- */
.landing-nav {
  padding: var(--sp-10) var(--gutter) var(--sp-6);
  max-width: var(--max-w);
  margin-inline: auto;
}

.landing-nav__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.landing-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--t-base);
  box-shadow: var(--shadow-sm);
}

.landing-nav__item:hover,
.landing-nav__item:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.landing-nav__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-action-soft));
  color: var(--color-primary);
  transition: all var(--t-base);
  flex-shrink: 0;
}

.landing-nav__item:hover .landing-nav__icon,
.landing-nav__item:focus .landing-nav__icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-action));
  color: #fff;
  transform: scale(1.08);
}

.landing-nav__icon svg {
  width: 32px;
  height: 32px;
}

.landing-nav__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  color: var(--color-text);
  transition: color var(--t-fast);
}

.landing-nav__item:hover .landing-nav__label {
  color: var(--color-primary);
}

@media (min-width: 480px) {
  .landing-nav__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 720px) {
  .landing-nav__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--sp-5);
  }

  .landing-nav__icon {
    width: 88px;
    height: 88px;
  }

  .landing-nav__icon svg {
    width: 38px;
    height: 38px;
  }

  .landing-nav__label {
    font-size: var(--text-base);
  }
}

/* -------- Sección: CTA Principal "Conoce PaqEx" -------- */
.landing-cta {
  padding: var(--sp-8) var(--gutter) var(--sp-12);
  max-width: var(--max-w);
  margin-inline: auto;
  text-align: center;
}

.landing-cta__content {
  max-width: 720px;
  margin: 0 auto;
}

.landing-cta__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-4);
}

.landing-cta__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--sp-4);
}

.landing-cta__title span {
  color: var(--color-primary);
}

.landing-cta__description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--sp-6);
}

.landing-cta__btns {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: center;
}

.landing-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  max-width: 320px;
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  border: 0;
  cursor: pointer;
  transition: all var(--t-fast);
}

.landing-cta__btn--primary {
  background: var(--color-action);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.landing-cta__btn--primary:hover,
.landing-cta__btn--primary:focus {
  background: var(--color-action-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.landing-cta__btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.landing-cta__btn--outline:hover,
.landing-cta__btn--outline:focus {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

@media (min-width: 480px) {
  .landing-cta__btns {
    flex-direction: row;
    justify-content: center;
  }
}

/* =============================================================
   Sección: Testimonios (Social Proof) & Rating Interactivo
   ============================================================= */

/* -------- Contenedor principal -------- */
#opiniones-section {
  padding: 4.5rem 1.25rem;
  background: #f8f9fc;
}

/* ------------------------------------------------------------------
   REGLA CRÍTICA — Control de tamaño de SVG
   Obliga a TODO <svg> dentro de la sección a medir exactamente 24px.
   Con !important anula reset.css (max-width:100%; height:auto) y
   cualquier estilo inline que no use !important.
   ------------------------------------------------------------------ */
#opiniones-section svg {
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

/* -------- Cabecera -------- */
.opiniones-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.opiniones-head__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d63384;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.opiniones-head__title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

/* -------- Resumen global (4.9 + contador) -------- */
.review-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 0 auto 3rem;
  padding: 1.25rem 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  max-width: 520px;
  flex-wrap: wrap;
}

.review-summary__score {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: #111827;
}

.review-summary__stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
}

.review-summary__label {
  color: #6b7280;
  font-size: 0.9rem;
  text-align: left;
}

.review-summary__count {
  color: #111827;
  font-weight: 700;
}

/* -------- Carrusel de scroll horizontal (scroll-snap) -------- */
.reviews-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  display: flex;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.reviews-carousel::-webkit-scrollbar {
  display: none;
}

/* -------- Controles del carrusel (flechas + puntos) -------- */
.reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.reviews-nav__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.reviews-nav__btn:hover,
.reviews-nav__btn:focus-visible {
  background: #d63384;
  border-color: #d63384;
  color: #fff;
  transform: scale(1.05);
}

.reviews-nav__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reviews-nav__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #d1d5db;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.reviews-nav__dot.is-active {
  width: 24px;
  background: #d63384;
}

/* -------- Tarjetas de opinión premium -------- */
.review-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #eef0f4;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
  border-color: #d63384;
}

.review-stars {
  color: #f59e0b;
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.review-text {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.review-avatar--1 { background: #d63384; }
.review-avatar--2 { background: #10b981; }
.review-avatar--3 { background: #b3121f; }
.review-avatar--4 { background: #f59e0b; }
.review-avatar--5 { background: #0ea5e9; }
.review-avatar--6 { background: #ef4444; }
.review-avatar--7 { background: #e11d2e; }
.review-avatar--8 { background: #14b8a6; }
.review-avatar--9 { background: #ec4899; }
.review-avatar--10 { background: #64748b; }
.review-avatar--11 { background: #f97316; }
.review-avatar--12 { background: #141414; }

.review-author__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-name {
  font-weight: 600;
  color: #111827;
  font-size: 0.9rem;
}

.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 600;
}

@media (min-width: 640px) {
  .review-card {
    flex-basis: 48%;
  }
}

@media (min-width: 960px) {
  .review-card {
    flex-basis: 31.5%;
  }
}

/* -------- Rating Interactivo -------- */
.interactive-box {
  background: #fff;
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #eef0f4;
}

.interactive-box__title {
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

#dynamic-stars {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1.25rem;
  cursor: pointer;
}

.star-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #e5e7eb;
  transition: color 0.2s, transform 0.2s;
  padding: 2px;
  line-height: 0;
}

.star-btn:hover,
.star-btn.active {
  color: #f59e0b;
  transform: scale(1.15);
}

.star-btn.is-disabled {
  cursor: default;
}

.interactive-feedback {
  color: #6b7280;
  font-size: 0.9rem;
  min-height: 22px;
  font-weight: 500;
  transition: color 0.5s ease;
}
/* =============================================================
   PaqEx · Componentes: Landing (About + Delivery scroll)
   Sección "Quiénes somos" y storytelling de entrega con
   camioneta SVG animada por scroll.
   ============================================================= */

/* ------------------------- Quiénes somos ------------------------- */
.about {
  padding: var(--sp-12) var(--gutter) var(--sp-10);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.about__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  text-align: center;
}

.about__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-4);
}

.about__title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-text);
  max-width: 22ch;
  margin: 0 auto var(--sp-4);
}

.about__title span {
  background: linear-gradient(135deg, #e11d2e, #141414);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 auto var(--sp-10);
}

.about__features {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
  text-align: left;
}

.about__feature {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-bg);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.about__feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about__feature svg {
  width: 30px;
  height: 30px;
  color: var(--color-primary);
}

.about__feature h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

.about__feature p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (min-width: 720px) {
  .about__features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ------------------------- Delivery (auto-play storytelling) ------------------------- */
.delivery {
  position: relative;
  background: linear-gradient(180deg, #0a0a0a 0%, #1f0b0d 100%);
  color: #f5f5f5;
  overflow: clip;
}

.delivery__sticky {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-10) 0;
}

.delivery__inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--sp-4) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.delivery__heading {
  text-align: center;
  will-change: transform, opacity;
}

.delivery__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffe600;
  margin-bottom: var(--sp-2);
}

.delivery__title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
}

.delivery__scene {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.delivery__scene svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Camioneta: se desplaza y las ruedas giran */
#camioneta {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}

.delivery__wheel {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}

/* Paquete aparece al final */
#paquete {
  transition: opacity 0.4s ease;
}

/* Pasos */
.delivery__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 560px;
  margin-inline: auto;
  width: 100%;
}

.delivery__step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.4;
  transition: opacity var(--t-base), background var(--t-base), transform var(--t-base);
}

.delivery__step.is-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(225, 29, 46, 0.6);
  transform: translateX(0);
}

.delivery__step-num {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: #e11d2e;
  color: #fff;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
}

.delivery__step h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: #fff;
  margin: 0 0 2px;
}

.delivery__step p {
  font-size: var(--text-sm);
  color: #d4d4d4;
  margin: 0;
  line-height: 1.4;
}

@media (min-width: 720px) {
  .delivery__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto 1fr;
    align-items: center;
    gap: var(--sp-6);
  }

  .delivery__heading {
    grid-column: 1 / -1;
  }

  .delivery__scene {
    grid-row: 2;
    grid-column: 1;
  }

  .delivery__steps {
    grid-row: 2;
    grid-column: 2;
  }
}

/* Móvil: compacta el contenido para pantallas pequeñas. */
@media (max-width: 719px) {
  .delivery__sticky {
    padding: var(--sp-6) 0;
  }

  .delivery__inner {
    gap: var(--sp-3);
    padding: var(--sp-2) var(--gutter);
  }

  .delivery__title {
    font-size: 1.6rem;
  }

  .delivery__scene {
    max-width: 92vw;
  }

  .delivery__step {
    padding: var(--sp-2) var(--sp-3);
    gap: var(--sp-2);
  }

  .delivery__step h3 {
    font-size: var(--text-sm);
  }

  .delivery__step p {
    font-size: var(--text-xs);
  }
}

@media (prefers-reduced-motion: reduce) {
  .delivery__sticky {
    padding: var(--sp-10) 0;
  }
}
/* =============================================================
   PaqEx · Componente: Hero (JS-driven)
   Hero premium con canvas de partículas, orbes animados y
   texto con palabras rotatorias. Todo el movimiento lo maneja
   hero.js.
   ============================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 20% 10%, rgba(225, 29, 46, 0.32), transparent 60%),
    radial-gradient(80% 60% at 85% 30%, rgba(255, 230, 0, 0.12), transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #1c0b0c 55%, #0a0a0a 100%);
  color: #f5f5f5;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
  will-change: transform;
}

.hero__orb--1 {
  width: 360px;
  height: 360px;
  background: #e11d2e;
  top: -80px;
  left: -60px;
}

.hero__orb--2 {
  width: 300px;
  height: 300px;
  background: #7f101a;
  bottom: -60px;
  right: -40px;
}

.hero__orb--3 {
  width: 200px;
  height: 200px;
  background: #ffe600;
  top: 40%;
  left: 55%;
  opacity: 0.2;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
  padding: var(--sp-12) var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
}

.hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffe600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 230, 0, 0.35);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: #fff;
  margin: 0;
}

.hero__word {
  display: inline-block;
  background: linear-gradient(135deg, #ffe600 0%, #ffd400 35%, #ff4d5a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__word::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 4px;
  background: #ffe600;
  vertical-align: -0.08em;
  animation: hero-caret 1s steps(1) infinite;
}

@keyframes hero-caret {
  50% { opacity: 0; }
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: #d4d4d4;
  line-height: 1.6;
  max-width: 46ch;
  margin: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
}

.hero__cta,
.hero__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 50px;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base);
}

.hero__cta {
  background: var(--color-action);
  color: #141414;
  box-shadow: 0 12px 32px rgba(255, 230, 0, 0.3);
}

.hero__cta:hover {
  transform: translateY(-2px);
  background: #fff04d;
  box-shadow: 0 18px 44px rgba(255, 230, 0, 0.45);
}

.hero__ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f5f5f5;
  backdrop-filter: blur(6px);
}

.hero__ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.hero__promise {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hero__promise span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  background: rgba(10, 10, 10, 0.42);
  color: #ededed;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__promise span:first-child {
  border-color: rgba(255, 230, 0, 0.4);
  background: rgba(225, 29, 46, 0.22);
  color: #fff;
}

.hero__promise b {
  font-size: 0.95rem;
  line-height: 1;
}

.hero__stats {
  display: flex;
  gap: var(--sp-8);
  margin-top: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__stat strong {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: #fff;
  letter-spacing: -0.02em;
}

.hero__stat span {
  font-size: var(--text-xs);
  color: #a3a3a3;
  letter-spacing: 0.04em;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: var(--sp-6);
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
  background: transparent;
  cursor: pointer;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll-dot {
  width: 4px;
  height: 10px;
  border-radius: var(--radius-full);
  background: #fff;
  animation: hero-scroll-dot 1.6s ease-in-out infinite;
}

@keyframes hero-scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

@media (max-width: 720px) {
  .hero__content {
    gap: var(--sp-4);
    /* Deja libre la bottom-nav fija en pantallas pequeñas. */
    padding-block: var(--sp-10) calc(var(--sp-16) + 72px + env(safe-area-inset-bottom, 0px));
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero__promise {
    gap: 5px;
  }

  .hero__promise span {
    gap: 4px;
    padding: 6px 8px;
    font-size: 0.6875rem;
  }

  .hero__promise b {
    font-size: 0.875rem;
  }

  .hero__stats {
    gap: var(--sp-5);
    margin-top: var(--sp-2);
    padding-top: var(--sp-4);
  }
}

@media (max-width: 360px) {
  .hero__content {
    gap: var(--sp-3);
  }

  .hero__title {
    font-size: clamp(2.1rem, 12vw, 3rem);
  }

  .hero__subtitle {
    font-size: var(--text-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__word::after,
  .hero__scroll-dot {
    animation: none;
  }
}
/* =============================================================
   PaqEx · Components: Confianza, Ofertas relámpago y orden
   Burbujas flotantes con descuento + cuenta regresiva.
   ============================================================= */

/* --- Franja de confianza --- */
.trust-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
  max-width: var(--max-w);
  margin: var(--sp-4) auto 0;
  padding: 0 var(--gutter);
}

.trust-strip li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "i t" "i s";
  column-gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.trust-strip li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.trust-strip li > span {
  grid-area: i;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  font-size: 1.35rem;
}

.trust-strip b { grid-area: t; font-size: var(--text-sm); line-height: 1.2; }
.trust-strip small { grid-area: s; font-size: var(--text-xs); color: var(--color-text-muted); }

.trust-strip li:nth-child(2) {
  background: #141414;
  border-color: #141414;
  color: #fff;
}

.trust-strip li:nth-child(2) > span {
  background: #ffe600;
}

.trust-strip li:nth-child(2) small {
  color: #ffe600;
}

@media (min-width: 720px) {
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
}

/* --- Ofertas relámpago --- */
.offers {
  max-width: var(--max-w);
  margin: var(--sp-6) auto 0;
  padding: var(--sp-4) 0 var(--sp-3);
  background: linear-gradient(135deg, #fff1f2 0%, #fffbe6 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

@media (max-width: 1232px) {
  .offers { margin-inline: var(--sp-2); }
}

.offers__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: 0 var(--sp-4);
}

.offers__head h2 { font-size: var(--text-lg); letter-spacing: -0.01em; }

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
}

.countdown b {
  min-width: 28px;
  padding: 4px 6px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: var(--text-sm);
  color: #ffe600;
  background: #141414;
  border-radius: 6px;
}

.countdown span { margin-right: 4px; }

.offers__track {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: var(--sp-5) var(--sp-4) var(--sp-3);
}
.offers__track::-webkit-scrollbar { display: none; }

.offer-bubble {
  flex: 0 0 auto;
  width: 104px;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  scroll-snap-align: start;
  animation: bubble-float 4.2s ease-in-out var(--d, 0s) infinite;
}

.offer-bubble__orb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, #e11d2e, #ffe600, #141414, #e11d2e);
  box-shadow: 0 10px 22px rgba(225, 29, 46, 0.3);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.offer-bubble__orb img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  background: var(--color-surface-alt);
}

.offer-bubble:hover .offer-bubble__orb,
.offer-bubble:focus-visible .offer-bubble__orb {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 14px 28px rgba(225, 29, 46, 0.4);
}

.offer-bubble:focus-visible { outline: none; }
.offer-bubble:focus-visible .offer-bubble__orb { outline: 3px solid var(--color-primary); outline-offset: 3px; }

.offer-bubble__pct {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 40px;
  padding: 4px 6px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #e11d2e, #b3121f);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.45);
  animation: bubble-pop 1.8s ease-in-out infinite;
}

.offer-bubble__name {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--color-text);
}

.offer-bubble__price {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
}

@keyframes bubble-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes bubble-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* --- Ordenar --- */
.sort-bar {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0 var(--gutter) var(--sp-3);
}
.sort-bar::-webkit-scrollbar { display: none; }

.sort-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 6px var(--sp-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all var(--t-fast);
}

.sort-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }

.sort-chip.is-active {
  background: #141414;
  border-color: #141414;
  color: #ffe600;
  box-shadow: 0 6px 14px rgba(20, 20, 20, 0.16);
}

/* Etiqueta de piezas en la burbuja Black Friday */
.offer-bubble__tag {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-action-ink);
  background: var(--color-action-soft);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  line-height: 1.2;
}
/* =============================================================
   PaqEx · Components: Efectos visuales
   Burbuja de descuento, revelado al scroll, tilt 3D con brillo,
   barra de progreso y botón flotante de WhatsApp.
   ============================================================= */

/* --- Burbuja de descuento sobre la foto --- */
.discount-bubble {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #ff5c69 0%, #e11d2e 55%, #8f0d17 100%);
  box-shadow: 0 6px 16px rgba(225, 29, 46, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.discount-bubble b { font-size: 1rem; font-weight: 900; }
.discount-bubble small { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em; opacity: 0.9; }

.discount-bubble::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 11px;
  width: 12px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: rotate(-30deg);
}

/* Los badges de texto pasan a la esquina inferior para no chocar con la burbuja. */
.card-media__badges {
  top: auto;
  bottom: var(--sp-2);
  flex-direction: row;
}

.badge--low {
  background: rgba(20, 20, 20, 0.9);
  color: #ffe600;
  backdrop-filter: blur(4px);
}

.badge--fav {
  background: #fff9c2;
  color: #8a6d00;
  border: 1px solid #ffe600;
}

/* --- Revelado escalonado al hacer scroll --- */
.product-grid .product-card {
  animation: none;
  opacity: 0;
  transform: translateY(22px);
}

.product-grid .product-card.is-in {
  opacity: 1;
  transform: none;
  animation: card-reveal 560ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 45ms) backwards;
}

@keyframes card-reveal {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@media (hover: hover) {
  .product-grid .product-card.is-in:hover { transform: translateY(-5px); }
}

/* --- Tilt 3D + brillo que sigue al puntero --- */
.card-media {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 220ms ease-out, box-shadow var(--t-base);
  will-change: transform;
}

.product-card:hover .card-media { box-shadow: 0 14px 30px rgba(20, 20, 20, 0.14); }

.card-media__img { transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.product-card:hover .card-media__img { transform: scale(1.06); }

/* Brillo sin nodo extra en el DOM (pseudo-elemento). */
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.4), transparent 55%);
  transition: opacity var(--t-base);
}

.product-card:hover .card-media::after { opacity: 1; }

@media (hover: none) {
  .card-media { transform: none; }
  .card-media::after { display: none; }
}

/* --- Barra de progreso de scroll --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: calc(var(--z-toast) + 1);
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* --- Botón flotante de WhatsApp --- */
.wa-fab {
  position: fixed;
  right: var(--sp-4);
  bottom: calc(68px + var(--sp-4) + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-dropdown);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #25d366;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5);
  transition: transform var(--t-base);
  animation: wa-pulse 2.6s ease-out infinite;
}

.wa-fab:hover { transform: scale(1.1); }

@keyframes wa-pulse {
  0% { box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%, 100% { box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5), 0 0 0 18px rgba(37, 211, 102, 0); }
}

@media (min-width: 720px) {
  .wa-fab { bottom: var(--sp-6); right: var(--sp-6); }
}

/* --- Video: insignia en tarjeta, vista previa al hover y reproductor del PDP --- */
.card-video-badge {
  position: absolute;
  top: auto;
  right: var(--sp-2);
  bottom: var(--sp-2);
  z-index: 2;
  padding: 3px 9px;
  border-radius: 12px 4px 12px 4px;
  background: rgba(17, 24, 39, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  pointer-events: none;
}

.card-media__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.card-media__video.is-on { opacity: 1; }

.pdp__video {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.pdp__video[hidden] { display: none; }

.pdp__thumb--video { position: relative; }
.pdp__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.45);
  color: #fff;
  font-size: 1.25rem;
  border-radius: inherit;
}
/* =============================================================
   PaqEx · Components: Temporada BLACK FRIDAY
   Cinta superior sticky, acentos de oferta y escasez real.
   Paleta: rojo vibrante, negro carbón, blanco y amarillo neón.
   ============================================================= */

:root { --topbar-h: 38px; }

/* --- Cinta superior sticky (minimalista) --- */
.bfbar {
  position: sticky;
  top: 0;
  z-index: calc(var(--z-dropdown) + 5);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--topbar-h);
  padding: 5px var(--gutter);
  background: linear-gradient(90deg, #141414 0%, #2a0b0e 50%, #141414 100%);
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.3;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

/* Línea inferior rojo → amarillo neón. */
.bfbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #e11d2e, #ffe600, #e11d2e);
}

.bfbar__msg {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  text-align: center;
}

.bfbar__msg strong {
  color: #ffe600;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.bfbar__msg span[aria-hidden="true"] {
  font-size: 1rem;
  line-height: 1;
}

.bfbar[hidden] { display: none !important; }

/* Header y tabs se desplazan por la altura de la cinta. */
.has-topbar .site-header { top: var(--topbar-h); }
.has-topbar .category-tabs { top: calc(var(--header-h) + var(--topbar-h)); }

/* --- Ahorro y escasez real en tarjetas --- */
.card-stock {
  position: relative;
  margin: 0;
  padding-top: 8px;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--color-primary);
}

.card-stock::before,
.card-stock::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  border-radius: var(--radius-full);
}

.card-stock::before {
  right: 0;
  background: rgba(20, 20, 20, 0.12);
}

.card-stock::after {
  width: var(--stock-pct, 50%);
  background: linear-gradient(90deg, #e11d2e, #ffd400);
}

/* --- Franja fuerte de Pago Contra Entrega, justo antes del catálogo --- */
.cod-strip {
  max-width: var(--max-w);
  margin: var(--sp-6) auto 0;
  padding-inline: var(--gutter);
}

.cod-strip__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 22px);
  overflow: hidden;
  padding: clamp(16px, 3vw, 24px) clamp(16px, 4vw, 30px);
  border: 1px solid rgba(255, 230, 0, 0.22);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 170% at 0% 0%, rgba(225, 29, 46, 0.34), transparent 48%),
    radial-gradient(90% 140% at 100% 100%, rgba(255, 230, 0, 0.1), transparent 55%),
    #141414;
  color: #fff;
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.18);
}

.cod-strip__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffe600;
  color: #141414;
  font-size: 1.5rem;
  box-shadow: 0 0 0 7px rgba(255, 230, 0, 0.1);
}

.cod-strip__copy {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.cod-strip__copy strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: #ffe600;
}

.cod-strip__copy span {
  font-size: var(--text-sm);
  color: #d8d4d0;
  line-height: 1.45;
}

.cod-strip__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cod-strip__perks li {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
}

.cod-strip__perks li::before {
  content: "✓";
  margin-right: 4px;
  color: #25d366;
  font-weight: 900;
}

@media (max-width: 860px) {
  .cod-strip__inner {
    flex-wrap: wrap;
  }

  .cod-strip__perks {
    width: 100%;
    padding-left: 66px;
  }
}

@media (max-width: 719px) {
  :root { --topbar-h: 48px; }
  .bfbar { font-size: 0.72rem; padding-inline: var(--sp-3); }

  .cod-strip {
    margin-top: var(--sp-5);
  }

  .cod-strip__inner {
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-lg);
  }

  .cod-strip__icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .cod-strip__perks {
    padding-left: 56px;
  }
}
/* =============================================================
   PaqEx · Components: BLACK FRIDAY 2026
   Negro carbón + oro + rojo. Countdown, packs 3 y CTAs.
   ============================================================= */

:root {
  --bf-gold: #f5c542;
  --bf-gold-soft: #fff3c4;
  --bf-black: #0b0b0f;
  --bf-red: #c1121f;
  --topbar-h: 46px;
}

/* --- Cinta superior --- */
.bfbar {
  min-height: var(--topbar-h);
  background: linear-gradient(90deg, #08080b 0%, #17130a 50%, #08080b 100%);
  border-bottom: 1px solid rgba(245, 197, 66, 0.24);
}

.bfbar::after {
  background: linear-gradient(90deg, #c1121f, var(--bf-gold), #c1121f);
}

.bfbar__msg strong {
  color: var(--bf-gold);
}

.bfbar__timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding: 3px 8px;
  border: 1px solid rgba(245, 197, 66, 0.28);
  border-radius: var(--radius-full);
  background: rgba(245, 197, 66, 0.08);
  color: #f8e7a6;
  font-size: 0.72rem;
}

.bfbar__timer b {
  color: var(--bf-gold);
  font-variant-numeric: tabular-nums;
}

.bfbar__wheel {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid rgba(245, 197, 66, 0.45);
  border-radius: var(--radius-full);
  background: var(--bf-gold);
  color: #151515;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.bfbar__wheel:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 197, 66, 0.3);
}

/* --- Logo con sello BF --- */
.bf-active .logo::after {
  content: "BLACK FRIDAY";
  background: var(--bf-gold);
  color: #151515;
}

/* --- Hero --- */
.bf-active .hero {
  background:
    radial-gradient(90% 70% at 20% 10%, rgba(193, 18, 31, 0.32), transparent 60%),
    radial-gradient(80% 60% at 85% 30%, rgba(245, 197, 66, 0.16), transparent 55%),
    linear-gradient(180deg, #050507 0%, #170b0c 55%, #050507 100%);
}

.bf-active .hero__eyebrow {
  color: var(--bf-gold);
  border-color: rgba(245, 197, 66, 0.45);
  background: rgba(245, 197, 66, 0.08);
}

.bf-active .hero__word {
  background: linear-gradient(135deg, #fff3c4 0%, var(--bf-gold) 40%, #ff5a5f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bf-active .hero__word::after {
  background: var(--bf-gold);
}

.hero__wheel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid rgba(245, 197, 66, 0.4);
  border-radius: var(--radius-full);
  background: rgba(245, 197, 66, 0.08);
  color: #f8e7a6;
  font-size: 0.875rem;
  font-weight: 800;
  transition: background var(--t-fast), transform var(--t-fast);
}

.hero__wheel:hover {
  background: rgba(245, 197, 66, 0.18);
  transform: translateY(-2px);
}

.hero__deadline {
  margin: 0;
  font-size: 0.8125rem;
  color: #bdbdbd;
}

.hero__deadline strong {
  color: var(--bf-gold);
}

.hero__countdown {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(245, 197, 66, 0.1);
  color: var(--bf-gold);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* --- Franja de promo --- */
.bf-strip {
  max-width: var(--max-w);
  margin: var(--sp-4) auto 0;
  padding: 0 var(--gutter);
}

.bf-strip__inner {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(245, 197, 66, 0.28);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(90% 160% at 0% 0%, rgba(193, 18, 31, 0.32), transparent 55%),
    radial-gradient(80% 120% at 100% 100%, rgba(245, 197, 66, 0.18), transparent 55%),
    #0b0b0f;
  color: #fff;
  box-shadow: 0 24px 50px rgba(11, 11, 15, 0.22);
}

.bf-strip__inner::before {
  content: "3º";
  position: absolute;
  right: -8px;
  top: -34px;
  font-size: clamp(7rem, 18vw, 13rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.09em;
  color: rgba(245, 197, 66, 0.07);
  pointer-events: none;
}

.bf-strip__tag {
  display: inline-flex;
  padding: 5px 12px;
  border: 1px solid rgba(245, 197, 66, 0.4);
  border-radius: var(--radius-full);
  background: rgba(245, 197, 66, 0.1);
  color: var(--bf-gold);
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.bf-strip h2 {
  position: relative;
  max-width: 22ch;
  margin: 12px 0 8px;
  font-size: clamp(1.65rem, 4.6vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.bf-strip h2 em {
  color: var(--bf-gold);
  font-style: normal;
}

.bf-strip p {
  position: relative;
  max-width: 58ch;
  color: #d6d3d1;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.bf-strip__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.bf-strip__timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: #d6d3d1;
  font-size: 0.75rem;
}

.bf-strip__timer b {
  color: var(--bf-gold);
  font-variant-numeric: tabular-nums;
}

.bf-strip__cta,
.bf-strip__wheel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 800;
}

.bf-strip__cta {
  background: var(--bf-gold);
  color: #151515;
}

.bf-strip__wheel {
  border: 1px solid rgba(245, 197, 66, 0.4);
  background: rgba(245, 197, 66, 0.08);
  color: #f8e7a6;
}

.bf-strip__cta:hover,
.bf-strip__wheel:hover {
  transform: translateY(-2px);
}

/* --- Tarjetas --- */
.card-offer-tag--bf {
  background: linear-gradient(135deg, #0b0b0f 0%, #2a2110 100%);
  border: 1px solid rgba(245, 197, 66, 0.55);
}

.card-offer-tag--bf b {
  color: var(--bf-gold);
}

.card-offer-tag--bf small {
  color: #fff;
}

.card-bf {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
  padding: 5px 7px;
  border: 1px dashed rgba(193, 18, 31, 0.35);
  border-radius: 8px;
  background: #fff7ed;
  font-size: 0.68rem;
  line-height: 1.2;
}

.card-bf__label {
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: #0b0b0f;
  color: var(--bf-gold);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-bf__before {
  color: #9ca3af;
  text-decoration-thickness: 1px;
}

.card-bf__now {
  color: var(--color-price);
  font-size: 0.85rem;
}

.card-bf__off {
  padding: 1px 5px;
  border-radius: var(--radius-full);
  background: var(--bf-red);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
}

/* --- PDP --- */
.pdp__bf {
  display: grid;
  gap: 7px;
  margin: var(--sp-3) 0;
  padding: 14px 16px;
  border: 1px solid rgba(245, 197, 66, 0.45);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(193, 18, 31, 0.28), transparent 58%),
    #0b0b0f;
  color: #fff;
}

.pdp__bf-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pdp__bf-head strong {
  font-size: 0.875rem;
}

.pdp__bf-badge {
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--bf-gold);
  color: #151515;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.pdp__bf-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.pdp__bf-now {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--bf-gold);
  letter-spacing: -0.03em;
}

.pdp__bf-before {
  color: #a8a29e;
  font-size: var(--text-sm);
}

.pdp__bf-off {
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--bf-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.pdp__bf-note {
  margin: 0;
  color: #d6d3d1;
  font-size: 0.72rem;
}

.volume-row--bf {
  border-color: rgba(245, 197, 66, 0.45) !important;
  background: #fffbeb;
}

.volume-row--bf .volume-row__save {
  background: #0b0b0f;
  color: var(--bf-gold);
}

/* --- Footer / legal --- */
.footer-link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: #cfd2e3;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.footer-link-btn:hover {
  color: #fff;
}

.legal-check__label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.legal-check__label input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--color-primary);
}

.legal-check__label a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
}

#legal-group.is-invalid .legal-check__label {
  color: var(--color-danger);
}

/* --- Responsive --- */
@media (max-width: 719px) {
  :root { --topbar-h: 58px; }
  .bfbar {
    min-height: 58px;
    padding: 4px var(--sp-2);
  }
  .bfbar__msg {
    gap: 4px 6px;
  }
  .bfbar__msg > span:not(.bfbar__timer) {
    display: none;
  }
  .bfbar__timer {
    font-size: 0.68rem;
    padding: 2px 7px;
  }
  .bfbar__wheel {
    min-height: 28px;
    padding: 2px 8px;
    font-size: 0.68rem;
  }
  .bf-strip {
    margin-top: var(--sp-3);
  }
  .bf-strip__inner {
    padding: 20px 16px;
  }
  .bf-strip__bottom {
    gap: 8px;
  }
  .bf-strip__timer,
  .bf-strip__cta,
  .bf-strip__wheel {
    flex: 1 1 100%;
    justify-content: center;
  }
  .card-bf {
    gap: 4px;
    padding: 4px 6px;
  }
  .card-bf__label {
    font-size: 0.53rem;
  }
  .card-bf__now {
    font-size: 0.78rem;
  }
}

.drawer__savings {
  margin: 0 0 6px;
  padding: 7px 10px;
  border: 1px dashed rgba(245, 197, 66, 0.55);
  border-radius: 8px;
  background: #fffbeb;
  color: #8a6d00;
  font-size: 0.72rem;
  font-weight: 800;
}

body:not(.bf-active) .section-title h2::before {
  content: "PRODUCTOS SELECCIONADOS";
  color: var(--color-text-muted);
}

.bf-strip,
#offers {
  scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 14px);
}
/* =============================================================
   PaqEx · Ruleta Black Friday
   ============================================================= */

.wheel-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  background: rgba(4, 4, 7, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.wheel-modal[hidden] {
  display: none !important;
}

.wheel-modal__backdrop {
  position: absolute;
  inset: 0;
}

.wheel-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: min(92vh, 780px);
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 197, 66, 0.45) transparent;
  padding: 26px 22px 22px;
  border: 1px solid rgba(245, 197, 66, 0.4);
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(193, 18, 31, 0.4), transparent 58%),
    linear-gradient(165deg, #121217 0%, #0b0b0f 60%, #1a1207 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: wheel-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes wheel-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wheel-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
}

.wheel-modal__close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.wheel-modal__eyebrow {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid rgba(245, 197, 66, 0.45);
  border-radius: var(--radius-full);
  background: rgba(245, 197, 66, 0.1);
  color: var(--bf-gold);
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.wheel-modal__panel h2 {
  margin: 10px 0 4px;
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.wheel-modal__sub {
  max-width: 34ch;
  margin: 0 auto 14px;
  color: #d6d3d1;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.wheel {
  position: relative;
  width: min(72vw, 290px);
  aspect-ratio: 1;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #0b0b0f;
  box-shadow: 0 0 0 7px rgba(245, 197, 66, 0.12), 0 0 0 13px rgba(255, 255, 255, 0.04);
}

.wheel__glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.24), transparent 64%);
  filter: blur(12px);
  animation: wheel-glow 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes wheel-glow {
  0%, 100% { opacity: 0.65; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.03); }
}

.wheel__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(245, 197, 66, 0.7);
  transition: transform 4.2s cubic-bezier(0.12, 0.74, 0.12, 1);
  will-change: transform;
}

.wheel__slice {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wheel__slice-text {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 76px;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.wheel__pointer {
  position: absolute;
  top: -13px;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 20px solid var(--bf-gold);
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.wheel__spin {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffdf7a, #f5c542 55%, #b8860b 100%);
  color: #151515;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform var(--t-fast), filter var(--t-fast);
}

.wheel__spin:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.06);
  filter: brightness(1.08);
}

.wheel__spin:disabled {
  opacity: 0.7;
  cursor: wait;
}

.wheel-result {
  display: grid;
  gap: 7px;
  max-width: 34ch;
  margin: 0 auto;
}

.wheel-result__kicker {
  margin: 0;
  color: var(--bf-gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wheel-result strong {
  font-size: 1.2rem;
}

.wheel-result > p {
  margin: 0;
  color: #d6d3d1;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.wheel-result b {
  color: var(--bf-gold);
  letter-spacing: 0.06em;
}

.wheel-result .btn {
  margin-top: 6px;
}

.wheel-result__fine {
  color: #a8a29e !important;
  font-size: 0.68rem !important;
}

.wheel-modal.is-won .wheel__glow {
  animation-duration: 1.2s;
}

.wheel-confetti {
  position: absolute;
  top: 42%;
  left: 50%;
  z-index: 5;
  width: 7px;
  height: 12px;
  border-radius: 2px;
  pointer-events: none;
  animation: confetti-fall 1.4s var(--d, 0s) cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

@keyframes confetti-fall {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), 260px) rotate(var(--r)); }
}

@media (max-width: 480px) {
  .wheel-modal {
    padding: 10px;
  }
  .wheel-modal__panel {
    padding: 20px 14px 14px;
    border-radius: 20px;
  }
  .wheel-modal__panel h2 {
    margin: 8px 0 2px;
  }
  .wheel-modal__sub {
    margin-bottom: 10px;
  }
  .wheel {
    width: min(72vw, 250px);
    margin-bottom: 12px;
  }
  .wheel__slice-text {
    top: 11px;
    width: 66px;
    font-size: 0.5rem;
  }
  .wheel__spin {
    width: 68px;
    height: 68px;
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wheel-modal__panel,
  .wheel__glow {
    animation: none;
  }
  .wheel-confetti {
    display: none;
  }
}

.wheel-modal.is-won .wheel-modal__panel {
  overflow-y: auto;
}
/* =============================================================
   PaqEx · Banner y modal de consentimiento de cookies
   ============================================================= */

.cookie-banner {
  position: fixed;
  /* Debajo del drawer (300): si el usuario abre el carrito antes de decidir,
     el banner no debe tapar el botón "Pagar contra entrega". */
  z-index: calc(var(--z-drawer) - 10);
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1120px;
  margin-inline: auto;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 50px rgba(20, 20, 20, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__text {
  flex: 1;
  min-width: 0;
}

.cookie-banner__text strong {
  display: block;
  margin-bottom: 2px;
  font-size: var(--text-sm);
}

.cookie-banner__text p {
  margin: 0;
  max-width: 72ch;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.cookie-banner__actions .btn {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.78rem;
  white-space: nowrap;
}

/* --- Modal de preferencias --- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  place-items: center;
  padding: var(--sp-4);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-modal.is-open {
  display: grid;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
}

.cookie-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  padding: 26px 24px 22px;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-xl);
}

.cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.cookie-modal__panel h2 {
  margin: 0 0 8px;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
}

.cookie-modal__panel > p {
  margin: 0 0 16px;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  cursor: pointer;
}

.cookie-toggle span {
  display: grid;
  gap: 2px;
}

.cookie-toggle strong {
  font-size: var(--text-sm);
}

.cookie-toggle small {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.cookie-toggle input {
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.cookie-toggle input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

@media (max-width: 719px) {
  .cookie-banner {
    left: var(--sp-2);
    right: var(--sp-2);
    bottom: calc(68px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-lg);
  }
  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cookie-banner__actions .btn:last-child {
    grid-column: 1 / -1;
  }
  .cookie-banner__text p {
    font-size: 0.74rem;
  }
}
/* =============================================================
   PaqEx · Components: Belleza y Salud Naturista (Coverflow)
   Formas orgánicas, cristal oscuro, resplandor tipo elíxir.
   ============================================================= */

.nat {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: var(--max-w);
  margin: var(--sp-6) auto 0;
  padding: var(--sp-8) var(--sp-3) var(--sp-6);
  color: #fff;
  background: linear-gradient(160deg, #0b0716 0%, #1a0f33 55%, #0c1a1a 100%);
  /* Silueta orgánica, no rectangular */
  border-radius: 72px 28px 110px 28px;
}

@media (max-width: 1232px) {
  .nat { margin-inline: var(--sp-2); }
}

/* Manchas de luz tipo pócima detrás del carrusel */
.nat__blob {
  position: absolute;
  z-index: -1;
  border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%;
  filter: blur(46px);
  opacity: 0.55;
  pointer-events: none;
  animation: blob-morph 16s ease-in-out infinite alternate;
}
.nat__blob--1 { width: 320px; height: 300px; top: -60px; left: -80px; background: #059669; }
.nat__blob--2 { width: 300px; height: 280px; bottom: -70px; right: -60px; background: #ea580c; animation-delay: -6s; }

@keyframes blob-morph {
  to { transform: translate(40px, 24px) rotate(40deg); border-radius: 40% 60% 35% 65% / 60% 40% 60% 40%; }
}

.nat__head { display: grid; gap: var(--sp-2); text-align: center; justify-items: center; padding: 0 var(--sp-3) var(--sp-4); }

.nat__tag {
  padding: 5px 14px;
  border-radius: 20px 6px 20px 6px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #6ee7b7;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nat__head h2 {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(90deg, #6ee7b7, #fdba74);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nat__head p { font-size: var(--text-sm); color: #cbd5e1; max-width: 46ch; }

/* --- Escenario Coverflow --- */
.cf {
  position: relative;
  outline: none;
  overflow: hidden; /* fallback */
  overflow: clip; /* las tarjetas laterales no ensanchan el body en móvil */
}
.cf:focus-visible { box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.5); border-radius: 40px; }

.cf__stage {
  position: relative;
  height: 520px;
  perspective: 1100px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.cf-card {
  --x: 0px; --s: 1; --r: 0deg; --o: 1; --b: 0px;
  position: absolute;
  top: 8px;
  left: 50%;
  width: 270px;
  margin-left: -135px;
  display: grid;
  gap: 8px;
  padding: 14px 14px 16px;
  text-align: center;
  /* Cristal oscuro semitransparente + formas asimétricas */
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 56px 18px 60px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transform: translateX(var(--x)) scale(var(--s)) rotateY(var(--r));
  opacity: var(--o);
  filter: blur(var(--b));
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1), opacity 450ms ease, filter 450ms ease, box-shadow 300ms ease;
  cursor: pointer;
  will-change: transform;
}

.cf-card:nth-child(even) { border-radius: 20px 60px 18px 56px; }

.cf-card.is-active { cursor: default; box-shadow: 0 22px 50px rgba(5, 150, 105, 0.28), 0 0 0 1px rgba(110, 231, 183, 0.25); }

/* Resplandor de elíxir al pasar el cursor (esmeralda ↔ naranja) */
.cf-card.is-active:hover { animation: elixir 2.6s ease-in-out infinite; }

@keyframes elixir {
  0%, 100% { box-shadow: 0 0 22px 2px rgba(16, 185, 129, 0.55), 0 0 60px 8px rgba(16, 185, 129, 0.28), 0 22px 50px rgba(0, 0, 0, 0.45); border-color: rgba(110, 231, 183, 0.6); }
  50%      { box-shadow: 0 0 26px 4px rgba(255, 106, 0, 0.6), 0 0 70px 12px rgba(255, 106, 0, 0.3), 0 22px 50px rgba(0, 0, 0, 0.45); border-color: rgba(253, 186, 116, 0.65); }
}

.cf-card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  cursor: pointer;
}

.cf-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cf-card.is-active:hover .cf-card__media img { transform: scale(1.08); }

.cf-card__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.cf-card__meta { font-size: var(--text-xs); color: #fcd34d; }

.cf-card__price { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.cf-card__price b { font-size: var(--text-xl); letter-spacing: -0.02em; }
.cf-card__price s { font-size: var(--text-sm); color: #94a3b8; text-decoration-thickness: 1px; }
.cf-card__price .cf-card__off {
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(225, 29, 46, 0.22);
  color: #fca5a5;
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.3;
}

/* --- Botón "Lo quiero YA" con latido y temblor --- */
.cf-card__cta {
  justify-self: center;
  padding: 11px 26px;
  border-radius: 30px 10px 30px 10px;
  background: linear-gradient(135deg, #ff6a00, #f97316 55%, #ea580c);
  color: #fff;
  font-weight: 800;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  box-shadow: 0 10px 26px rgba(255, 106, 0, 0.45);
  animation: heartbeat 1.6s ease-in-out infinite;
}

.cf-card:not(.is-active) .cf-card__cta { animation: none; }

.cf-card__cta:hover { filter: brightness(1.1); }
.cf-card__cta:focus-visible { outline: 3px solid #6ee7b7; outline-offset: 3px; }

@keyframes heartbeat {
  0%, 40%, 100% { transform: scale(1); }
  10% { transform: scale(1.08); }
  20% { transform: scale(0.98); }
  30% { transform: scale(1.06); }
}

.cf-card__cta.is-shaking { animation: shake 380ms ease-in-out; }

@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-5px) rotate(-3deg); }
  40% { transform: translateX(5px) rotate(3deg); }
  60% { transform: translateX(-4px) rotate(-2deg); }
  80% { transform: translateX(3px) rotate(1deg); }
}

/* --- Flechas y puntos --- */
.cf__nav {
  position: absolute;
  top: 44%;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50% 40% 50% 40%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  transition: background var(--t-fast), transform var(--t-fast);
}
.cf__nav:hover { background: rgba(16, 185, 129, 0.45); transform: scale(1.1); }
.cf__nav--prev { left: 4px; }
.cf__nav--next { right: 4px; }

.cf__dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--sp-2); }
.cf__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all var(--t-base);
}
.cf__dot.is-active { width: 28px; border-radius: 8px; background: linear-gradient(90deg, #10b981, #ff6a00); }

@media (max-width: 480px) {
  .cf-card {
    width: 214px;
    margin-left: -107px;
    padding: 10px 10px 12px;
    gap: 6px;
  }
  .cf__stage { height: 440px; }
  .nat {
    padding: 20px 8px 16px;
    border-radius: 44px 20px 64px 20px;
  }
  .nat__head { padding-bottom: var(--sp-2); }
  .cf-card__title { font-size: 0.78rem; min-height: 2.4em; }
  .cf-card__cta { padding: 9px 20px; font-size: 0.78rem; }
  .cf__nav { width: 38px; height: 38px; font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cf-card, .cf-card__cta, .nat__blob { transition: none; animation: none !important; }
}

/* Video en la tarjeta central del carrusel */
.cf-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}
.cf-card__video.is-on { opacity: 1; }

/* Precio del pack 3 en el carrusel */
.cf-card__bf {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.72rem;
  color: #cbd5e1;
}
.cf-card__bf span {
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(245, 197, 66, 0.18);
  color: #f5c542;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cf-card__bf s { color: #94a3b8; text-decoration-thickness: 1px; }
.cf-card__bf strong { color: #fff; font-size: 0.95rem; }
.cf-card__bf em {
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(225, 29, 46, 0.32);
  color: #fecaca;
  font-style: normal;
  font-weight: 800;
}

/* Móvil: cero blur/backdrop-filter en tarjetas (rendimiento en gama baja) */
@media (max-width: 719px), (hover: none), (pointer: coarse) {
  .cf-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    filter: none;
    background: rgba(24, 20, 35, 0.94);
  }
  .nat__blob { filter: blur(28px); animation: none; }
  .cf-card.is-active:hover { animation: none; }
}
/* =============================================================
   PaqEx · main.css
   Punto de entrada. En producción, concatenar todos los archivos
   en este orden (o usar un bundler) para reducir peticiones HTTP.
   ============================================================= */

/* =============================================================
   Utilidades globales
   ============================================================= */

.is-hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Los saltos internos no deben quedar ocultos bajo el stack sticky. */
#nosotros,
#entrega,
#naturista,
#opiniones-section,
#contacto,
#politicas {
  scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 14px);
}

/* El catálogo suma la barra de categorías sticky. */
#catalogo {
  scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 72px);
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  background: var(--color-primary);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: var(--z-toast);
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: 0;
}
