/* ============================================================
   AURA — SISTEMA DE DISEÑO EDITORIAL SOBRIO (LOUIS VUITTON INSP.)
   Sin color de acento. Blanco, negro y grises cálidos.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@1,400;1,500&family=Jost:wght@300;400;500&display=swap');

:root {
  /* Paleta cromática */
  --bg-page: #FFFFFF;
  --bg-product: #FFFFFF;
  --text-main: #111111;
  --text-secondary: #6B6B6B;
  --text-muted: #9E9E9E;
  --border-line: #E4E2DD;
  --border-focus: #111111;

  /* Tipografía */
  --font-sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'EB Garamond', Georgia, serif;

  /* Escala tipográfica */
  --text-12: 12px;
  --text-13: 13px;
  --text-15: 15px;
  --text-18: 18px;
  --text-28: 28px;
  --text-44: 44px;

  /* Espaciado base 8px */
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;
  --space-120: 120px;
  --space-160: 160px;

  /* Márgenes de página */
  --page-margin: 40px;
  --header-height: 64px;
  --announcement-height: 36px;

  /* Movimiento lento y contenido */
  --transition-slow: 700ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-normal: 400ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 768px) {
  :root {
    --page-margin: 20px;
    --space-96: 64px;
    --space-120: 80px;
    --space-160: 96px;
  }
}

/* RESET ESTRICTO */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0; /* Cero esquinas redondeadas en todo el sitio */
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-page);
  color: var(--text-main);
}

img, picture, video, canvas {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* Foco visible accesible */
:focus-visible {
  outline: 1px solid var(--border-focus);
  outline-offset: 2px;
}

/* UTILIDADES EDITORIALES */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

/* Enlace con subrayado animado desde la izquierda */
.link-underlined {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.link-underlined::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform var(--transition-fast);
}
.link-underlined:hover::after {
  transform: scaleX(0.7);
}

/* Scroll reveal suave */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   BARRA SUPERIOR DE ANUNCIOS
   ============================================================ */
.top-announcement-bar {
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-line);
  padding: 8px var(--page-margin);
  text-align: center;
  font-size: var(--text-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ============================================================
   HEADER FIJO Y NAVEGACIÓN
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  z-index: 100;
  transition: transform var(--transition-normal), border-color var(--transition-fast);
}

.site-header.scrolled {
  border-bottom: 1px solid var(--border-line);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  padding: 0 var(--page-margin);
}

.header-left {
  display: flex;
  align-items: center;
}

.header-menu-btn {
  font-size: var(--text-12);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 12px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-main);
  transition: opacity var(--transition-fast);
}
.header-menu-btn:hover {
  opacity: 0.6;
}

.header-center {
  display: flex;
  justify-content: center;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header-logo-img {
  height: 48px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

.header-right {
  display: flex;
  justify-content: flex-end;
}

.header-cart-trigger {
  font-size: var(--text-12);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 12px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-main);
  transition: opacity var(--transition-fast);
}
.header-cart-trigger:hover {
  opacity: 0.6;
}

/* ============================================================
   MENÚ A PANTALLA COMPLETA
   ============================================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-page);
  z-index: 500;
  display: flex;
  flex-direction: column;
  padding: var(--page-margin);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 24px;
}

.menu-tagline {
  font-size: var(--text-12);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.menu-close-btn {
  cursor: pointer;
  padding: 12px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-overlay-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-48) 0;
  max-width: 800px;
}

.menu-main-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.menu-primary-link {
  font-size: var(--text-28);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  display: inline-block;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.menu-primary-link:hover {
  opacity: 0.5;
  transform: translateX(8px);
}

.menu-cat-link {
  font-size: var(--text-18);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: inline-block;
  padding-left: var(--space-16);
  transition: color var(--transition-fast);
}
.menu-cat-link:hover {
  color: var(--text-main);
}

.menu-nav-divider {
  height: 1px;
  background-color: var(--border-line);
  margin: var(--space-16) 0;
  max-width: 240px;
}

.menu-secondary-link {
  font-size: var(--text-13);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.menu-secondary-link:hover {
  color: var(--text-main);
}

.menu-overlay-footer {
  border-top: 1px solid var(--border-line);
  padding-top: var(--space-24);
  display: flex;
  justify-content: space-between;
  font-size: var(--text-12);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============================================================
   HERO EDITORIAL (INICIO)
   ============================================================ */
.hero-editorial-section {
  position: relative;
  background-color: var(--bg-product);
  min-height: calc(100vh - var(--header-height) - var(--announcement-height));
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  padding: var(--space-64) var(--page-margin);
}

.hero-editorial-media {
  max-width: 580px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-editorial-img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  filter: brightness(1.12) contrast(1.04);
}

.hero-editorial-caption {
  text-align: center;
  margin-top: var(--space-32);
}

.hero-tag {
  font-size: var(--text-12);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: var(--space-8);
}

.hero-title {
  font-size: var(--text-15);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-16);
}

.hero-link {
  font-size: var(--text-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
}

/* ============================================================
   FRANJA EDITORIAL (EB GARAMOND)
   ============================================================ */
.editorial-quote-section {
  padding: var(--space-120) var(--page-margin);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.editorial-quote-text {
  font-family: var(--font-serif);
  font-size: var(--text-28);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

/* ============================================================
   REJILLA DE PRODUCTOS (4 COLUMNAS DESKTOP / 2 MÓVIL)
   ============================================================ */
.catalog-section {
  padding: 0 var(--page-margin) var(--space-160) var(--page-margin);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: var(--space-16);
  margin-bottom: var(--space-48);
}

.section-title {
  font-size: var(--text-13);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-meta-count {
  font-size: var(--text-12);
  color: var(--text-secondary);
}

.products-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-32) var(--space-24);
}

@media (max-width: 1024px) {
  .products-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card-media {
  position: relative;
  background-color: var(--bg-product);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: var(--space-16);
}

.product-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.12) contrast(1.04);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card-img.secondary {
  opacity: 0;
}

.product-card:hover .product-card-img.secondary {
  opacity: 1;
}
.product-card:hover .product-card-img.primary {
  opacity: 0;
}

.product-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card-name {
  font-size: var(--text-12);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
}

.product-card-price {
  font-size: var(--text-13);
  font-weight: 400;
  color: var(--text-secondary);
}

.product-card-price.is-offer {
  color: var(--text-main);
  font-weight: 500;
}

.product-card-price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}

.product-card-price-old {
  font-size: 11px;
  color: #8c8c8c;
  text-decoration: line-through;
  line-height: 1.2;
}

.product-card-price-current-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ml-offer-badge {
  font-size: 11px;
  font-weight: 600;
  color: #00a650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ml-offer-badge-sm {
  font-size: 10px;
  font-weight: 600;
  color: #00a650;
  letter-spacing: 0.03em;
}

/* ============================================================
   CATÁLOGO COMPLETO — FILTROS Y ORDEN
   ============================================================ */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-line);
  padding: var(--space-24) 0;
  margin-bottom: var(--space-48);
  font-size: var(--text-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-categories {
  display: flex;
  gap: var(--space-24);
  flex-wrap: wrap;
}

.cat-filter-btn {
  color: var(--text-secondary);
  cursor: pointer;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
}
.cat-filter-btn.active, .cat-filter-btn:hover {
  color: var(--text-main);
  border-bottom-color: var(--text-main);
}

.sort-minimal-select {
  border-bottom: 1px solid var(--border-line);
  padding: 4px 8px;
  font-size: var(--text-12);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ============================================================
   PÁGINA DE PRODUCTO INDIVIDUAL (COLUMNAS 62% / 33%)
   ============================================================ */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: var(--space-64);
  padding: var(--space-32) var(--page-margin) var(--space-160) var(--page-margin);
  align-items: start;
}

@media (max-width: 1024px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: var(--space-40);
  }
}

/* COLUMNA IZQUIERDA: VISOR Y GALERÍA */
.product-visual-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-64);
}

/* Pestañas de modo de visor (360° / 3D) */
.viewer-mode-tabs {
  display: flex;
  gap: var(--space-24);
  border-bottom: 1px solid var(--border-line);
  padding-bottom: var(--space-8);
}

.viewer-tab-btn {
  font-size: var(--text-12);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  padding-bottom: var(--space-8);
  position: relative;
  transition: color var(--transition-fast);
}
.viewer-tab-btn.active {
  color: var(--text-main);
}
.viewer-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text-main);
}

/* Escenario del visor */
.aura-viewer {
  position: relative;
  background-color: var(--bg-product);
  width: 100%;
  aspect-ratio: 1 / 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vistas-stage, .giro-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
}
.vistas-stage:active, .giro-stage:active {
  cursor: grabbing;
}

.vistas-img-wrapper {
  width: 82%;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vistas-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(1.12) contrast(1.04);
  pointer-events: none;
}

.giro-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.12) contrast(1.04);
}

/* Etiqueta sutil "Arrastra" */
.viewer-drag-hint {
  position: absolute;
  top: var(--space-24);
  right: var(--space-24);
  font-size: var(--text-12);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

/* Indicador de ángulo modo giro */
.giro-angle-indicator {
  position: absolute;
  bottom: var(--space-24);
  right: var(--space-24);
  font-size: var(--text-12);
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* Rayitas de 1px bajo la imagen (Modo Vistas) */
.vistas-dashes {
  position: absolute;
  bottom: 48px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.vistas-dash {
  width: 24px;
  height: 1px;
  background-color: var(--border-line);
  cursor: pointer;
  transition: background-color var(--transition-fast), width var(--transition-fast);
}
.vistas-dash.active {
  background-color: var(--text-main);
  width: 36px;
}

/* Pestañas de texto de vistas rápidas */
.vistas-tabs {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-16);
}

.vistas-tab {
  font-size: var(--text-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
}
.vistas-tab.active, .vistas-tab:hover {
  color: var(--text-main);
  border-bottom-color: var(--text-main);
}

/* Contenedor 3D */
.model3d-view-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.btn-ar-action {
  position: absolute;
  bottom: var(--space-24);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-page);
  border: 1px solid var(--text-main);
  color: var(--text-main);
  font-size: var(--text-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 24px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-ar-action:hover {
  background-color: var(--text-main);
  color: var(--bg-page);
}

/* Galería vertical de fotos grandes */
.vertical-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.gallery-item {
  background-color: var(--bg-product);
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.12) contrast(1.04);
}

/* Sección de detalles y macros */
.macro-details-section {
  border-top: 1px solid var(--border-line);
  padding-top: var(--space-48);
}

.macro-title {
  font-size: var(--text-12);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-24);
  color: var(--text-secondary);
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-16);
}

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

.macro-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.macro-crop-box {
  background-color: var(--bg-product);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-line);
}

.macro-crop-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.08) contrast(1.04);
  transition: transform var(--transition-fast);
}

.macro-card:hover .macro-crop-box img {
  transform: scale(1.04);
}

.macro-label {
  font-size: var(--text-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
}

.macro-desc {
  font-size: var(--text-12);
  color: var(--text-secondary);
  line-height: 1.4;
}

.macro-disclaimer {
  font-size: var(--text-12);
  color: var(--text-muted);
  margin-top: var(--space-16);
  font-style: italic;
}

/* COLUMNA DERECHA: INFORMACIÓN Y COMPRA (STICKY) */
.product-info-sticky {
  position: sticky;
  top: calc(var(--header-height) + var(--space-24));
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.product-ref-code {
  font-size: var(--text-12);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.product-headline {
  font-size: var(--text-18);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-16);
}

.price-offer-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-offer-main-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-current {
  font-size: var(--text-15);
  font-weight: 400;
  color: var(--text-main);
}

.price-current.is-offer {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-main);
}

.price-previous {
  font-size: 13px;
  color: #8c8c8c;
  text-decoration: line-through;
}

.mobile-price-offer-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.mobile-price-old {
  font-size: 11px;
  color: #8c8c8c;
  text-decoration: line-through;
  font-weight: 400;
}

.mobile-price-now-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.mobile-price-now {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

/* Aviso sobrio de poco inventario (≤ 5) */
.stock-warning-banner {
  border-left: 2px solid var(--text-main);
  padding-left: var(--space-16);
  font-size: var(--text-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Selector de Color */
.product-color-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.color-header-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.color-swatches-row {
  display: flex;
  gap: var(--space-16);
}

.color-swatch-circle {
  width: 14px;
  height: 14px;
  border-radius: 50% !important; /* Excepción explícita */
  cursor: pointer;
  border: 1px solid var(--border-line);
  position: relative;
  transition: transform var(--transition-fast);
}
.color-swatch-circle.active {
  box-shadow: 0 0 0 2px var(--bg-page), 0 0 0 3px var(--text-main);
}
.color-swatch-circle.is-sold-out {
  opacity: 0.45;
  overflow: hidden;
}
.color-swatch-circle.is-sold-out::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -20%;
  width: 140%;
  height: 2px;
  background-color: #ffffff;
  box-shadow: 0 0 1px #000000;
  transform: rotate(-45deg);
}

.card-soldout-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background-color: #111111;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
}
.product-card.is-sold-out .product-card-img {
  opacity: 0.6;
}

/* Selector de Paquete (Calcetines: Paquete 1 / Paquete 2) */
.color-swatches-row.is-package-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.package-option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border-line);
  background-color: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}
.package-option-btn:hover {
  border-color: var(--text-main);
}
.package-option-btn.active {
  border-color: var(--text-main);
  box-shadow: inset 0 0 0 1px var(--text-main);
  background-color: #fafafa;
}
.package-option-btn.is-sold-out {
  opacity: 0.55;
  background-color: #f5f5f5;
}
.package-option-thumb {
  width: 42px;
  height: 48px;
  object-fit: contain;
  border: 1px solid var(--border-line);
  background-color: #ffffff;
  flex-shrink: 0;
}
.package-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.package-option-text strong {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-main);
}
.package-option-text small {
  font-size: 10px;
  color: var(--text-secondary);
}
.package-option-btn.is-sold-out .package-option-text small {
  color: #c53030;
  font-weight: 600;
}

/* Selector de Talla */
.product-size-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.size-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.size-guide-trigger {
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
  text-underline-offset: 3px;
}

.size-buttons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.size-rect-btn {
  height: 44px;
  border: 1px solid var(--border-line);
  font-size: var(--text-12);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.size-rect-btn:hover {
  border-color: var(--text-main);
}
.size-rect-btn.active {
  background-color: var(--text-main);
  color: var(--bg-page);
  border-color: var(--text-main);
}
.size-rect-btn.is-sold-out {
  background-color: #f5f5f5;
  color: #a0a0a5;
  border-color: #e4e4e7;
  cursor: not-allowed;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  text-decoration: line-through;
}
.size-rect-btn.is-sold-out:hover {
  border-color: #e4e4e7;
}
.size-soldout-sub {
  font-size: 8px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #c53030;
  font-weight: 600;
  margin-top: 2px;
}

/* Botones de acción */
.purchase-actions-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.btn-add-to-bag {
  height: 52px;
  background-color: var(--text-main);
  color: var(--bg-page);
  font-size: var(--text-12);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-add-to-bag:hover {
  background-color: #333333;
}
.btn-add-to-bag.disabled {
  background-color: var(--border-line);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-try-cam-trigger {
  height: 52px;
  border: 1px solid var(--border-line);
  color: var(--text-main);
  font-size: var(--text-12);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-try-cam-trigger:hover {
  border-color: var(--text-main);
}

/* Acordeones sobrios */
.product-accordions-group {
  border-top: 1px solid var(--border-line);
  margin-top: var(--space-16);
}

.accordion-item {
  border-bottom: 1px solid var(--border-line);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-24) 0;
  font-size: var(--text-12);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-main);
}

.accordion-sign {
  font-size: 16px;
  font-weight: 300;
}

.accordion-panel {
  display: none;
  padding-bottom: var(--space-24);
  font-size: var(--text-13);
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-line;
}
.accordion-item.open .accordion-panel {
  display: block;
}

/* Barra fija inferior móvil */
.mobile-fixed-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-page);
  border-top: 1px solid var(--border-line);
  padding: 12px var(--page-margin);
  z-index: 90;
}

@media (max-width: 768px) {
  .mobile-fixed-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* ============================================================
   PANEL LATERAL: GUÍA DE TALLAS
   ============================================================ */
.size-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}
.size-guide-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.size-guide-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.size-guide-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background-color: var(--bg-page);
  padding: var(--space-48) var(--page-margin);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}
.size-guide-modal.open .size-guide-drawer {
  transform: translateX(0);
}

.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-32) 0;
  font-size: var(--text-12);
}
.size-guide-table th, .size-guide-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border-line);
  text-align: left;
}
.size-guide-table th {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ============================================================
   PROBADOR VIRTUAL (TRY-ON) — DOS COLUMNAS A PANTALLA COMPLETA
   ============================================================ */
.tryon-fullscreen-modal {
  position: fixed;
  inset: 0;
  background-color: var(--bg-page);
  z-index: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}
.tryon-fullscreen-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.tryon-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  width: 100%;
  height: 100vh;
}

@media (max-width: 1024px) {
  .tryon-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1.3fr 1fr;
  }
}

.tryon-viewport-col {
  background-color: var(--bg-product);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tryon-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tryon-video, .tryon-user-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tryon-video {
  transform: scaleX(-1); /* Efecto espejo en cámara frontal */
}

/* Estado inicial sobrio */
.tryon-welcome {
  text-align: center;
  max-width: 400px;
  padding: var(--space-32);
}
.tryon-welcome-label {
  font-size: var(--text-12);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: var(--space-16);
}
.tryon-welcome-desc {
  font-size: var(--text-13);
  color: var(--text-secondary);
  margin-bottom: var(--space-32);
}
.tryon-welcome-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.btn-text-action {
  height: 48px;
  background-color: var(--bg-page);
  border: 1px solid var(--text-main);
  color: var(--text-main);
  font-size: var(--text-12);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.btn-text-action:hover {
  background-color: var(--text-main);
  color: var(--bg-page);
}

/* Prenda superpuesta interactiva */
.tryon-overlay-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 420px;
  transform: translate(-50%, -50%);
  cursor: move;
  user-select: none;
  touch-action: none;
  z-index: 30;
}

.tryon-garment-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Cuadritos de 8px en las 4 esquinas */
.corner-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--bg-page);
  border: 1px solid var(--text-main);
}
.corner-handle.tl { top: -4px; left: -4px; cursor: nwse-resize; }
.corner-handle.tr { top: -4px; right: -4px; cursor: nesw-resize; }
.corner-handle.bl { bottom: -4px; left: -4px; cursor: nesw-resize; }
.corner-handle.br { bottom: -4px; right: -4px; cursor: nwse-resize; }

/* Línea de escaneo sobria de 1px */
.tryon-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text-main);
  animation: singleScanLine 1.2s ease-in-out infinite alternate;
  z-index: 40;
}

@keyframes singleScanLine {
  0% { top: 15%; }
  100% { top: 85%; }
}

.tryon-scan-status {
  position: absolute;
  bottom: 80px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-line);
  padding: 6px 16px;
  font-size: var(--text-12);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  z-index: 40;
}

/* Controles flotantes en texto fino */
.tryon-floating-bar {
  position: absolute;
  bottom: var(--space-32);
  display: flex;
  align-items: center;
  gap: var(--space-16);
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-line);
  padding: 10px var(--space-24);
  z-index: 50;
}

.floating-text-btn {
  font-size: var(--text-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}
.floating-text-btn:hover {
  opacity: 0.5;
}

.floating-sep {
  color: var(--border-line);
  font-size: var(--text-12);
}

.snap-flash-effect {
  position: absolute;
  inset: 0;
  background-color: #FFFFFF;
  opacity: 0.8;
  z-index: 60;
  animation: flashFade 0.4s ease-out forwards;
}

@keyframes flashFade {
  to { opacity: 0; }
}

/* COLUMNA DERECHA DEL PROBADOR: CONTROLES */
.tryon-controls-col {
  background-color: var(--bg-page);
  border-left: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.tryon-controls-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-32) var(--page-margin);
  border-bottom: 1px solid var(--border-line);
}

.controls-kicker {
  font-size: var(--text-12);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
}

.controls-title {
  font-size: var(--text-15);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tryon-close-btn {
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
}

.tryon-controls-scroll {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-32) var(--page-margin);
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.controls-instruction {
  font-size: var(--text-13);
  color: var(--text-secondary);
}

.control-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: var(--space-24);
}

.control-label-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ctrl-label {
  color: var(--text-secondary);
}

.ctrl-value {
  color: var(--text-main);
}

/* Sliders con pista de 1px y pulgar negro de 12px */
.thin-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 1px;
  background-color: var(--border-line);
  outline: none;
  cursor: pointer;
  margin: 12px 0;
}

.thin-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background-color: var(--text-main);
  border-radius: 50% !important;
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.thin-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.tabs-text-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tab-text-btn {
  height: 38px;
  border: 1px solid var(--border-line);
  font-size: var(--text-12);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.tab-text-btn.active, .tab-text-btn:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.btn-action-outline {
  height: 48px;
  border: 1px solid var(--border-line);
  color: var(--text-main);
  font-size: var(--text-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-action-outline:hover {
  border-color: var(--text-main);
}
.btn-action-outline.full {
  width: 100%;
}

.btn-action-text-muted {
  font-size: var(--text-12);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}
.btn-action-text-muted:hover {
  color: var(--text-main);
}

/* ============================================================
   CARRITO LATERAL (480PX / BLANCO / VELO 30%)
   ============================================================ */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}
.cart-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background-color: var(--bg-page);
  border-left: 1px solid var(--border-line);
  z-index: 610;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}
.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-24) var(--space-32);
  border-bottom: 1px solid var(--border-line);
}

.cart-drawer-title {
  font-size: var(--text-13);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cart-close-btn {
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-32);
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.cart-empty-message {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--text-13);
  margin-top: var(--space-64);
}

.cart-item-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-16);
  border-bottom: 1px solid var(--border-line);
  padding-bottom: var(--space-24);
}

.cart-item-thumb {
  background-color: var(--bg-product);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.12) contrast(1.04);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cart-item-name {
  font-size: var(--text-12);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-item-price {
  font-size: var(--text-13);
  color: var(--text-secondary);
}

.cart-item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--text-12);
  color: var(--text-secondary);
  margin: 6px 0;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-line);
}

.qty-btn {
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.qty-num {
  font-size: var(--text-12);
  min-width: 24px;
  text-align: center;
}

.cart-remove-link {
  font-size: var(--text-12);
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
  text-underline-offset: 3px;
}
.cart-remove-link:hover {
  color: var(--text-main);
}

.cart-drawer-footer {
  border-top: 1px solid var(--border-line);
  padding: var(--space-24) var(--space-32);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.cart-total-line {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-13);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-tax-note {
  font-size: var(--text-12);
  color: var(--text-muted);
}

.btn-checkout {
  height: 52px;
  background-color: var(--text-main);
  color: var(--bg-page);
  font-size: var(--text-12);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-checkout:hover {
  background-color: #333333;
}
.btn-checkout.disabled {
  background-color: var(--border-line);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ============================================================
   FOOTER MINIMALISTA (MICOMPA)
   ============================================================ */
.site-footer-minimal {
  background-color: var(--bg-page);
  border-top: 1px solid var(--border-line);
  padding: var(--space-48) var(--page-margin);
}

.footer-minimal-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-12);
  color: var(--text-muted);
}

/* ============================================================
   PANTALLA DE AVISO: SELECCIÓN REQUERIDA (COLOR / TALLA)
   ============================================================ */
.notice-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.notice-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.notice-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
}
.notice-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background-color: #FFFFFF;
  border: 1px solid var(--text-main);
  padding: 36px 32px 32px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.notice-modal.open .notice-card {
  transform: translateY(0);
}
.notice-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.notice-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 28px;
  font-weight: 400;
}
.notice-btn {
  display: block;
  width: 100%;
  height: 48px;
  background-color: var(--text-main);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.notice-btn:hover {
  background-color: #333333;
}

/* ============================================================
   MINI RECIBO DE COMPRA & WHATSAPP
   ============================================================ */
.receipt-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.receipt-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.receipt-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
}
.receipt-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: #FFFFFF;
  border: 1px solid var(--text-main);
  padding: 36px 32px 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.receipt-modal.open .receipt-card {
  transform: translateY(0);
}
.receipt-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 4px;
}
.receipt-header {
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 16px;
  margin-bottom: 24px;
  text-align: center;
}
.receipt-subtitle {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.receipt-title {
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-main);
  font-weight: 500;
}
.receipt-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 24px;
  margin-bottom: 24px;
}
@media (max-width: 480px) {
  .receipt-body {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.receipt-media {
  position: relative;
  background-color: #F8F8F8;
  border: 1px solid var(--border-line);
  padding: 8px;
  text-align: center;
}
.receipt-img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.receipt-view-tag {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.receipt-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.receipt-prod-name {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 4px;
}
.receipt-ref {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px dashed #E4E2DD;
}
.receipt-row-total {
  border-bottom: none;
  border-top: 1px solid var(--text-main);
  margin-top: 6px;
  padding-top: 8px;
  font-weight: 500;
}
.receipt-label {
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  font-size: 11px;
}
.receipt-val {
  color: var(--text-main);
  font-weight: 500;
}
.receipt-price {
  font-size: 15px;
}
.receipt-footer {
  text-align: center;
}
.receipt-notice {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}
.receipt-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  background-color: #25D366;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-bottom: 10px;
}
.receipt-whatsapp-btn:hover {
  background-color: #1EBE5D;
}
.receipt-back-btn {
  display: block;
  width: 100%;
  height: 42px;
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-line);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.receipt-back-btn:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

/* ============================================================
   RESPETO A PREFERS-REDUCED-MOTION
   ============================================================ */
@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;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   OCULTAR BADGE Y WIDGET DE NETLIFY DRAWER
   ============================================================ */
#netlify-drawer,
netlify-drawer,
[data-netlify-drawer],
[data-netlify-badge],
.netlify-badge,
iframe[src*="netlify"],
div[class*="netlify-drawer"],
div[id*="netlify-drawer"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================
   PROTECCIÓN ANTI-COPIA Y TOUCH UX
   ============================================================ */
img {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
.header-brand, .product-card-media, .vistas-stage, .giro-stage, .receipt-card, .notice-card {
  user-select: none;
  -webkit-user-select: none;
}

/* ============================================================
   MOBILE — AJUSTES COMPLETOS (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

  :root {
    --header-height: 56px;
    --page-margin: 16px;
  }

  /* --- HEADER --- */
  .header-inner {
    padding: 0 16px;
    height: 56px;
  }
  .header-logo-img {
    height: 36px;
    max-width: 120px;
  }
  .header-menu-btn {
    font-size: 11px;
    letter-spacing: 0.15em;
    min-height: 44px;
  }

  /* --- MENÚ OVERLAY --- */
  .menu-overlay {
    padding: 20px 20px 32px;
  }
  .menu-overlay-body {
    padding: var(--space-32) 0;
  }
  .menu-primary-link {
    font-size: 20px;
    letter-spacing: 0.08em;
  }

  /* --- HERO EDITORIAL (INICIO) --- */
  .hero-editorial-section {
    min-height: calc(100svh - var(--header-height, 56px));
    padding: 20px 16px 24px;
    gap: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .hero-editorial-media {
    max-width: 320px;
  }
  .hero-editorial-img {
    max-height: 44vh;
    width: auto;
    margin: 0 auto;
  }
  .hero-editorial-caption {
    margin-top: 12px;
  }
  .hero-tag {
    font-size: 10px;
  }
  .hero-title {
    font-size: 13px;
    letter-spacing: 0.1em;
  }
  .hero-link {
    font-size: 11px;
  }

  /* --- FRASE EDITORIAL --- */
  .editorial-quote-section {
    padding: 40px 16px;
  }
  .editorial-quote-text {
    font-size: 17px;
    line-height: 1.55;
  }

  /* --- CATÁLOGO — SECCIÓN Y GRID --- */
  .catalog-section {
    padding: 0 16px 60px 16px;
  }
  .section-header-row {
    padding-bottom: 12px;
    margin-bottom: 24px;
  }
  .section-title {
    font-size: 12px;
  }

  .products-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 10px;
  }
  .product-card-media {
    margin-bottom: 8px;
    aspect-ratio: 3 / 4;
  }
  .product-card-name {
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0.04em;
  }
  .product-card-price {
    font-size: 12px;
    font-weight: 500;
  }

  /* --- CATÁLOGO — TOOLBAR --- */
  .catalog-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    margin-bottom: 28px;
  }
  .filter-categories {
    gap: 14px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .cat-filter-btn {
    font-size: 11px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }
  .sort-wrapper {
    width: 100%;
  }
  .sort-minimal-select {
    width: 100%;
    font-size: 11px;
    padding: 8px 4px;
  }

  /* --- PÁGINA DE PRODUCTO — LAYOUT INTELIGENTE EN MÓVIL --- */
  .product-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 0 85px 0; /* Espacio para barra fija inferior */
  }

  /* Desempaquetar columna visual para reordenar elementos con naturalidad */
  .product-visual-col {
    display: contents;
  }

  /* Orden en móvil: */
  /* 1. Pestañas de modo */
  .viewer-mode-tabs {
    order: 1;
    padding: 12px 16px 0;
    gap: 18px;
  }
  .viewer-tab-btn {
    font-size: 11px;
    padding-bottom: 8px;
    min-height: 40px;
    display: inline-flex;
    align-items: flex-end;
  }

  /* 2. Visor 360° interactivo */
  #viewer360Container {
    order: 2;
  }
  #model3dContainer {
    order: 2;
  }
  .aura-viewer {
    aspect-ratio: 1 / 1.05;
  }
  .vistas-stage,
  .giro-stage {
    touch-action: pan-y; /* Permite scroll vertical de la página con el dedo */
  }
  .vistas-img-wrapper {
    width: 90%;
    height: 90%;
  }
  .viewer-drag-hint {
    top: 10px;
    right: 12px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }
  .vistas-tabs {
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    gap: 12px;
  }
  .vistas-tab {
    font-size: 9px;
    min-height: 24px;
    display: inline-flex;
    align-items: flex-end;
  }
  .vistas-dashes {
    bottom: 34px;
    gap: 6px;
  }
  .vistas-dash {
    width: 18px;
  }
  .vistas-dash.active {
    width: 28px;
  }
  .giro-angle-indicator {
    bottom: 10px;
    right: 12px;
    font-size: 9px;
  }

  /* 3. INFORMACIÓN DE COMPRA: Inmediatamente debajo del visor */
  .product-info-sticky {
    order: 3;
    position: static;
    gap: 20px;
    padding: 24px 16px 20px;
    border-top: 1px solid var(--border-line);
    background-color: #FFFFFF;
  }

  .product-ref-code {
    font-size: 11px;
    margin-bottom: 4px;
    display: block;
  }
  .product-headline {
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: 0.08em;
  }
  .product-price-row {
    margin-top: -6px;
  }
  .price-current {
    font-size: 16px;
    font-weight: 500;
  }

  /* Selector de Color en móvil */
  .product-color-group {
    gap: 12px;
  }
  .color-header-row {
    font-size: 11px;
  }
  .color-swatches-row {
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
  }
  .color-swatch-circle {
    width: 28px;
    height: 28px;
    border-radius: 50% !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
    touch-action: manipulation;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .color-swatch-circle.active {
    box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #111111;
    transform: scale(1.12);
  }

  /* Selector de Talla en móvil */
  .product-size-group {
    gap: 12px;
  }
  .size-header-row {
    font-size: 11px;
  }
  .size-guide-trigger {
    font-size: 11px;
    padding: 4px 0;
  }
  .size-buttons-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
  .size-rect-btn {
    height: 46px;
    font-size: 12px;
    font-weight: 500;
    touch-action: manipulation;
  }

  /* Botón de acción principal visible directamente en la página */
  .product-info-sticky .purchase-actions-group {
    display: block;
    margin-top: 6px;
  }
  .btn-add-to-bag {
    width: 100%;
    height: 50px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
  }

  /* Acordeones */
  .product-accordions-group {
    margin-top: 10px;
  }
  .accordion-trigger {
    padding: 16px 0;
    font-size: 11px;
    min-height: 44px;
  }
  .accordion-panel {
    font-size: 13px;
    line-height: 1.65;
  }

  /* 4. Fotos adicionales de la galería (después de la información) */
  .vertical-gallery {
    order: 4;
    gap: 14px;
    padding: 24px 16px 0;
    border-top: 1px solid var(--border-line);
  }
  .gallery-item {
    aspect-ratio: 3 / 4;
    background-color: var(--bg-product);
  }

  /* 5. Macro detalles de confección al final */
  .macro-details-section {
    order: 5;
    padding: 24px 16px 32px;
    border-top: 1px solid var(--border-line);
  }
  .macro-title {
    font-size: 11px;
  }
  .macro-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* --- BARRA FIJA INFERIOR MÓVIL --- */
  .mobile-fixed-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-line);
    gap: 12px;
    z-index: 95;
  }
  .mobile-bar-price {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
  }

  /* --- GUÍA DE TALLAS — MODAL LATERAL EN MÓVIL --- */
  .size-guide-drawer {
    max-width: 100%;
    padding: 24px 16px;
  }
  #sizeGuideTableWrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
  .size-guide-table {
    min-width: 320px;
  }
  .size-guide-table th,
  .size-guide-table td {
    padding: 10px 6px;
    font-size: 11px;
  }

  /* --- MODALES (AVISO Y RECIBO) --- */
  .notice-modal,
  .receipt-modal {
    padding: 16px;
    align-items: center;
    justify-content: center;
  }
  .notice-card {
    max-width: 380px;
    padding: 28px 20px 24px;
    border: 1px solid var(--text-main);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
  }
  .notice-tag {
    font-size: 10px;
  }
  .notice-text {
    font-size: 14px;
    margin-bottom: 22px;
  }
  .notice-btn {
    height: 46px;
    font-size: 11px;
  }

  .receipt-card {
    max-width: 440px;
    padding: 24px 18px 20px;
    max-height: 88vh;
    border: 1px solid var(--text-main);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
  }
  .receipt-header {
    padding-bottom: 12px;
    margin-bottom: 16px;
  }
  .receipt-title {
    font-size: 14px;
  }
  .receipt-body {
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  .receipt-img {
    max-height: 120px;
  }
  .receipt-prod-name {
    font-size: 12px;
  }
  .receipt-ref {
    font-size: 10px;
    margin-bottom: 4px;
  }
  .receipt-row {
    font-size: 12px;
    padding: 3px 0;
  }
  .receipt-label {
    font-size: 10px;
  }
  .receipt-price {
    font-size: 14px;
  }
  .receipt-notice {
    font-size: 11px;
    margin-bottom: 14px;
  }
  .receipt-whatsapp-btn {
    height: 44px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .receipt-back-btn {
    height: 40px;
    font-size: 10px;
  }

  /* --- FOOTER --- */
  .site-footer-minimal {
    padding: 28px 16px;
  }
  .footer-minimal-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 11px;
  }
  body.has-mobile-bar .site-footer-minimal {
    padding-bottom: 90px;
  }
}

/* ============================================================
   MOBILE PEQUEÑO (≤ 420px) — AJUSTES ULTRA-COMPACTOS
   ============================================================ */
@media (max-width: 420px) {
  .products-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 8px;
  }
  .product-card-name {
    font-size: 10px;
    letter-spacing: 0.03em;
  }
  .editorial-quote-text {
    font-size: 15px;
  }
  .menu-primary-link {
    font-size: 18px;
  }
  .size-buttons-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }
  .size-rect-btn {
    height: 42px;
    font-size: 11px;
    letter-spacing: 0;
  }
  .color-swatch-circle {
    width: 26px;
    height: 26px;
  }
  .header-logo-img {
    height: 32px;
    max-width: 105px;
  }
  .receipt-body {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .receipt-img {
    max-height: 140px;
  }
  .receipt-whatsapp-btn {
    font-size: 10px;
    letter-spacing: 0.05em;
  }
}
