/**
 * css/bento-editorial.css — Arquitectura Visual Editorial Couture (Pinterest / Sephora / Rhode 2026)
 * Incluye: Liquid Glass Navbar, Slow Luxury Brand Ticker, Dual Editorial Lookbook con Container Queries,
 * Hotspots Interactivos de Lookbook, Top-Layer <dialog> Animations y View Transitions.
 * 100% libre de hexadecimales hardcodeados — consume exclusivamente tokens de css/variables.css.
 */
.site-header {
  background-color: color-mix(in srgb, var(--bg-primary) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--text-primary) 16%, transparent);
  background-color: transparent;
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}
.theme-toggle-btn:hover {
  border-color: var(--accent-primary);
  background-color: color-mix(in srgb, var(--accent-primary) 10%, transparent);
  transform: translateY(-1px);
}
.theme-icon--sun {
  display: none;
}
[data-theme="dark"] .theme-icon--moon {
  display: none;
}
[data-theme="dark"] .theme-icon--sun {
  display: block;
}
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: var(--space-4);
  padding-top: var(--space-4);
  margin-top: var(--space-1);
  border-top: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent);
}
.hero-stat-pill {
  padding-right: var(--space-3);
  border-right: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent);
  min-width: 0;
}
.hero-stat-pill:last-child {
  border-right: none;
  padding-right: 0;
}
.hero-stat-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.05;
  color: var(--text-primary);
}
.hero-stat-pill span {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-2xs);
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.kinetic-marquee {
  overflow: hidden;
  /* Doble tono con corte en diagonal: espresso -> vino de la marca. */
  background-color: var(--bg-elevated);
  background-image: linear-gradient(
    135deg,
    var(--bg-elevated) 0%,
    var(--bg-elevated) 44%,
    color-mix(in srgb, var(--accent-primary) 38%, var(--bg-elevated)) 56%,
    color-mix(in srgb, var(--accent-primary) 62%, var(--bg-elevated)) 100%
  );
  color: var(--text-on-dark);
  padding: var(--space-3) 0;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: var(--space-8);
  will-change: transform;
  animation: marqueeScroll 42s linear infinite;
}
.kinetic-marquee:hover .marquee-track {
  animation-play-state: paused;
}
/* Bajo movimiento reducido se ralentiza suavemente (>= 60s) en lugar de congelar
   el ticker por completo en equipos Desktop con animaciones del SO desactivadas. */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation-duration: 95s;
  }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-star {
  color: var(--accent-primary);
}
@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.bento-editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}
.bento-cell-wrap {
  container-type: inline-size;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-secondary);
  border: 1px solid color-mix(in srgb, var(--text-primary) 8%, transparent);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.bento-cell-wrap:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}
/* Superficie oscura editorial dentro del bento: contraste garantizado en claro y oscuro. */
.bento-cell--dark {
  background-color: var(--bg-elevated);
  background-image: linear-gradient(
    155deg,
    var(--bg-elevated) 0%,
    color-mix(in srgb, var(--accent-primary) 26%, var(--bg-elevated)) 100%
  );
  color: var(--text-on-dark);
  border-color: color-mix(in srgb, var(--text-on-dark) 16%, transparent);
}
[data-theme="dark"] .bento-cell--dark {
  border-color: color-mix(in srgb, var(--accent-ink) 32%, transparent);
}
.bento-cell--dark .shelf-title {
  color: var(--text-on-dark);
}
.bento-cell--dark .mcard-desc {
  color: color-mix(in srgb, var(--text-on-dark) 82%, transparent);
}
.bento-cell--dark .bento-pill-tag {
  color: var(--text-on-dark);
  background-color: color-mix(in srgb, var(--text-on-dark) 9%, transparent);
  border-color: color-mix(in srgb, var(--text-on-dark) 26%, transparent);
}
.bento-cell--dark .btn-primary {
  background-color: var(--accent-primary);
  color: var(--text-on-accent);
  border-color: color-mix(in srgb, var(--text-on-dark) 18%, var(--accent-primary));
}
/* Etiquetas de texto: píldoras finas, sin iconos ni fondos fuertes. */
.bento-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.bento-pill-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.bento-cell-inner {
  padding: var(--space-7);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-5);
}
@container (min-width: 480px) {
  .bento-cell-inner--split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: var(--space-6);
  }
}
.bento-lookbook-stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 280px;
  background-color: var(--bg-primary);
}
.bento-lookbook-img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  display: block;
}
.hotspot-pin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 36px;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-primary) 45%, transparent);
  background-color: color-mix(in srgb, var(--bg-primary) 92%, transparent);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-elevated);
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}
.hotspot-pin:hover {
  transform: scale(1.05);
  background-color: var(--accent-primary);
  color: var(--text-on-accent);
}
.hotspot-pin--1 {
  top: 18%;
  left: 8%;
}
.hotspot-pin--2 {
  bottom: 16%;
  right: 8%;
}
.hotspot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-primary);
}
.hotspot-pin:hover .hotspot-dot {
  background-color: var(--text-on-dark);
}
.shelf-nav-group {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.shelf-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--text-primary) 16%, transparent);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-base);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.shelf-nav-btn:hover {
  background-color: var(--accent-primary);
  color: var(--text-on-accent);
  border-color: var(--accent-primary);
}
.shade-selector-block {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--bg-secondary);
}
.shade-selector-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.shade-selector-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.shade-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 34px;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text-primary) 16%, transparent);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
}
.shade-pill.active,
.shade-pill:hover {
  border-color: var(--accent-primary);
  background-color: var(--accent-primary);
  color: var(--text-on-accent);
}
.shade-swatch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: currentColor;
}
/* ===== Ficha Boutique Editorial (retail_craft — distinta al bottom-sheet de gastronomía) ===== */
#product-detail-dialog[data-modal-style="editorial-sheet"] {
  width: min(92vw, 660px);
  max-width: 660px;
  margin: auto;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--text-primary) 14%, transparent);
}
#product-detail-dialog[data-modal-style="editorial-sheet"]::before {
  display: none;
}
.pde-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-5);
  display: grid;
  gap: var(--space-4);
}
.pde-head {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
  padding-inline-end: var(--space-8);
}
.pde-thumb {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-secondary);
  border: 1px solid color-mix(in srgb, var(--text-primary) 8%, transparent);
}
.pde-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pde-head-info {
  display: grid;
  gap: var(--space-2);
  align-content: start;
}
.pde-title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text-primary);
}
.pde-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}
.pde-price {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.pde-rating {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent-ink);
}
.pde-body {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent);
}
.pde-body .shade-selector-row {
  flex-wrap: wrap;
  overflow-x: visible;
  padding-bottom: 0;
}
.shade-pill--rect {
  border-radius: var(--radius-sm);
  min-height: 36px;
}
.pde-footer {
  flex: none;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent);
  background-color: var(--bg-secondary);
}
.pde-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
  gap: var(--space-2);
}
.pde-btn-wa,
.pde-btn-bag {
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
}
.pde-trust-line {
  font-size: var(--text-2xs);
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  #product-detail-dialog[data-modal-style="editorial-sheet"] {
    margin: auto;
    width: calc(100vw - var(--space-5));
    max-width: calc(100vw - var(--space-5));
    max-height: 86dvh;
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in srgb, var(--text-primary) 14%, transparent);
  }
  .pde-scroll {
    padding: var(--space-4);
    gap: var(--space-3);
  }
  .pde-head {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: var(--space-3);
    padding-inline-end: var(--space-7);
  }
  .pde-title {
    font-size: var(--text-md);
  }
  .pde-price {
    font-size: var(--text-base);
  }
  .pde-footer {
    padding: var(--space-3) var(--space-4);
  }
}
@media (max-width: 640px) {
  .hero-stats-row {
    gap: var(--space-2);
    padding-top: var(--space-3);
  }
  .hero-stat-pill {
    padding-right: var(--space-2);
    text-align: center;
  }
  .hero-stat-pill strong {
    font-size: var(--text-lg);
  }
  .shelf-nav-btn {
    display: none;
  }
  .trust-ribbon {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4) var(--space-3);
    padding: var(--space-5) 0;
  }
  .trust-icon {
    width: 32px;
    height: 32px;
  }
  .trust-text strong {
    font-size: var(--text-sm);
    line-height: 1.2;
  }
  .trust-text span {
    display: none;
  }
  .bento-editorial-grid,
  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: var(--space-4);
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: var(--space-2);
    scroll-padding-inline: 0;
  }
  .bento-cell-wrap,
  .testimonial-card {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }
  .bento-cell-inner {
    padding: var(--space-5);
  }
}