/* ==========================================================================
   CURVELO INTIMATES — DIAGRAMACIÓN EDITORIAL ORGANIZADA & CAMBIO DE COLOR VIVO
   Cumplimiento estricto:
   - SOP_DIAGRAMACION_EDITORIAL.md:
     * Fotografía del Hero a sangre (cubre el lienzo completo; degradado solo en
       la zona de texto).
     * Esquinas redondeadas uniformes (20px) reservadas para galerías y tarjetas.
     * Leyendas y textos SIEMPRE fuera del recorte de la imagen y alineados al
       borde izquierdo de su fotografía con separación constante (cero textos cortados).
     * Retícula explícita con ejes compartidos.
   - SOP_ANTI_WEBS_GENERICAS.md & SOP de botones vigente (radio 14px, gradiente
     direccional, luz superior, reflejo radial contenido en interacción).
   ========================================================================== */

:root {
  --bg-alabaster: #FAF7F2;
  --bg-surface: #FFFFFF;
  --bg-stone: #EFE8DE;

  --ink-espresso: #181211;
  --ink-secondary: #4A3F3B;
  --ink-muted: #736660;

  --brand-burgundy: #3C0C17;
  --brand-burgundy-deep: #26070E;
  --accent-gold: #C8A15A;

  --border-hairline: rgba(24, 18, 17, 0.11);
  --border-strong: rgba(24, 18, 17, 0.22);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1360px;
  --gutter-desktop: clamp(28px, 4.2vw, 60px);
  --mobile-gutter: clamp(24px, 7.5vw, 36px);
  --header-h: 76px;

  /* Esquinas redondeadas limpias y armónicas para galerías (nunca cortan texto) */
  --radius-gallery: 20px;
  --radius-thumb: 10px;
  --radius-btn: 14px;

  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-reflection: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-alabaster);
  color: var(--ink-espresso);
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-espresso);
  background-color: var(--bg-alabaster);
  overflow-x: clip;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Tipografía (Títulos solos, alineados a su eje, sin huérfanos) */
.title-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.title-display em {
  font-style: italic;
  font-weight: 400;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink-espresso);
}

/* ==========================================================================
   SOP DE BOTONES VIGENTE (Radio 14px, gradiente direccional, reflejo contenido)
   ========================================================================== */
.btn-sop {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 220ms ease, filter 220ms ease, transform 180ms ease;
}

.btn-sop-label {
  position: relative;
  z-index: 2;
}

.btn-sop::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: -100% -30%;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 255, 255, 0.14) 22%,
    rgba(255, 255, 255, 0) 50%
  );
  opacity: 0;
  transform: translateX(-38%);
  transition: transform 650ms var(--ease-reflection), opacity 220ms ease;
}

.btn-sop:hover::before,
.btn-sop:focus-visible::before {
  opacity: 0.85;
  transform: translateX(16%);
}

.btn-sop:active {
  transform: translateY(1px);
}

.btn-sop--primary {
  border: 1px solid rgba(200, 161, 90, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.02) 38%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(135deg, #571525 0%, #3C0C17 58%, #2B0710 100%);
  color: #FAF7F2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(16, 3, 6, 0.45),
    0 4px 12px rgba(60, 12, 23, 0.22);
}

.btn-sop--primary:hover {
  filter: brightness(1.06);
}

.btn-sop--primary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(200, 161, 90, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 5px 16px rgba(60, 12, 23, 0.28);
}

.btn-sop--secondary {
  border: 1px solid #D5CCC0;
  background: linear-gradient(180deg, #FFFFFF 0%, #EFE9E0 100%);
  color: var(--ink-espresso);
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    inset 0 -1px 0 rgba(24, 18, 17, 0.06),
    0 3px 8px rgba(24, 18, 17, 0.08);
}

.btn-sop--secondary::before {
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.35) 22%,
    rgba(255, 255, 255, 0) 50%
  );
}

.btn-sop--secondary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(200, 161, 90, 0.58),
    inset 0 1px 0 #FFFFFF,
    0 4px 12px rgba(24, 18, 17, 0.12);
}

.btn-sop--full {
  width: 100%;
}

/* ==========================================================================
   1. CABECERA CON MENÚ OFICIAL DE CURVELO INTIMATES Y LOGO VISIBLE EN HERO
      (Sin shader negro en el navbar; pasa a vinotinto sólido al hacer scroll)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--header-h);
  background: transparent;
  color: var(--bg-alabaster);
  border: none;
  box-shadow: none;
  transition: background-color 260ms ease, box-shadow 260ms ease;
}

.site-header .brand-logo {
  opacity: 1;
  transition: opacity 240ms ease, transform 240ms ease;
}

.site-header:not(.is-scrolled) .site-nav__link,
.site-header:not(.is-scrolled) .header-text-btn,
.site-header:not(.is-scrolled) .bag-trigger {
  color: #FAF7F2;
  text-shadow: 0 1px 6px rgba(32, 8, 14, 0.45);
}

.site-header.is-scrolled {
  background: var(--brand-burgundy);
  border: none;
  box-shadow: 0 8px 24px rgba(20, 6, 10, 0.22);
}

.site-header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(250, 247, 242, 0.94);
  transition: color 180ms ease;
}

.site-nav__link:hover {
  color: var(--accent-gold);
}

/* Menú desplegable "Colecciones v" como en la tienda oficial */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  cursor: pointer;
}

.nav-dropdown__chevron {
  transition: transform 200ms ease;
}

.nav-dropdown:hover .nav-dropdown__chevron,
.nav-dropdown:focus-within .nav-dropdown__chevron,
.nav-dropdown.is-open .nav-dropdown__chevron {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: -12px;
  min-width: 228px;
  padding: 10px;
  border-radius: 16px;
  background: var(--brand-burgundy);
  border: 1px solid rgba(200, 161, 90, 0.28);
  box-shadow: 0 18px 44px rgba(18, 5, 9, 0.36);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 200ms var(--ease-editorial), visibility 180ms ease;
  z-index: 80;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 11px;
  color: #FAF7F2;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-dropdown__item span {
  font-size: 14px;
  font-weight: 500;
}

.nav-dropdown__item small {
  font-size: 11.5px;
  color: rgba(250, 247, 242, 0.68);
}

.nav-dropdown__item:hover {
  background: rgba(200, 161, 90, 0.16);
  color: #FFFFFF;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.brand-logo__img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.38) saturate(1.22) contrast(1.16) drop-shadow(0 2px 10px rgba(36, 8, 14, 0.44));
  transition: height 240ms ease, filter 240ms ease;
}

.site-header.is-scrolled .brand-logo__img {
  height: 38px;
  filter: brightness(1.22) saturate(1.14) contrast(1.08);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.header-text-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(250, 247, 242, 0.92);
  white-space: nowrap;
}

.header-text-btn:hover {
  color: var(--accent-gold);
}

.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--bg-alabaster);
  transition: color 180ms ease, background-color 180ms ease;
}

.header-icon-btn:hover {
  color: var(--accent-gold);
  background: rgba(250, 247, 242, 0.08);
}

.bag-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--bg-alabaster);
}

.bag-trigger svg {
  width: 21px;
  height: 21px;
}

.bag-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg-alabaster);
  color: var(--brand-burgundy);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--bg-alabaster);
}

.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   2. PORTADA / HERO 100% FOTOGRÁFICA A PANTALLA COMPLETA (100svh de borde a borde)
      Con filtro uniforme de baja opacidad sobre toda la foto (sin shader negro)
      para que el logo dorado Curvelo Intimates se vea nítido y visible.
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #231015;
  color: var(--bg-alabaster);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 16%;
  filter: brightness(0.76) contrast(1.04) saturate(0.95);
}

/* Filtro uniforme de baja opacidad cálido/vinotinto sobre toda la fotografía (cero shader negro arriba) */
.hero__scrim {
  position: absolute;
  inset: 0;
  background: rgba(46, 12, 20, 0.34);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 140px;
  padding-bottom: clamp(44px, 6.5vh, 72px);
}

.hero__copy {
  max-width: 500px;
}

.hero__title {
  font-size: clamp(44px, 5.4vw, 74px);
  color: var(--bg-alabaster);
  margin-bottom: 14px;
}

.hero__lead {
  font-size: clamp(15.5px, 1.15vw, 17px);
  font-weight: 300;
  color: rgba(250, 247, 242, 0.9);
  max-width: 40ch;
  line-height: 1.55;
  margin-bottom: 24px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   3. LA COLECCIÓN (Retícula editorial organizada 2 + 3 · Esquinas suaves 20px ·
      Cambio de foto real y ángulos al pasar el cursor sobre cada color)
   ========================================================================== */
.section {
  padding-block: clamp(64px, 8vw, 108px);
}

.section--stone {
  background: var(--bg-stone);
}

.section-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-hairline);
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tab {
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: all 180ms ease;
}

.filter-tab:hover,
.filter-tab.is-active {
  background: var(--ink-espresso);
  border-color: var(--ink-espresso);
  color: var(--bg-alabaster);
}

/* Retícula editorial de 3 columnas: fila 1 muestra los primeros 3 (Icon Flex, Ease Stretch, SKIN SCULPT CV) */
.catalog-grid,
.catalog-grid--all,
.catalog-grid--filtered {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 28px;
  align-items: start;
}

.product-card,
.catalog-grid--all .product-card:nth-child(1),
.catalog-grid--all .product-card:nth-child(2) {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
}

/* Contenedor fotográfico con esquinas redondeadas limpias (20px) */
.product-card__stage {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-gallery);
  overflow: hidden;
  background: var(--bg-stone);
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(24, 18, 17, 0.07);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  transition: transform 650ms var(--ease-editorial);
}

.product-card__stage:hover .product-card__img {
  transform: scale(1.03);
}

/* Miniaturas de ángulos reales flotando limpias en la esquina inferior derecha */
.product-card__angles {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(24, 18, 17, 0.14);
}

.card-angle-btn {
  width: 40px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid transparent;
  opacity: 0.72;
  background: var(--bg-stone);
  transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.card-angle-btn:hover,
.card-angle-btn.is-active {
  opacity: 1;
  border-color: var(--brand-burgundy);
  transform: translateY(-1px);
}

.card-angle-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bloque informativo DEBAJO de la fotografía (alineado a la izquierda, cero recortes) */
.product-card__body {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.product-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  cursor: pointer;
  transition: color 180ms ease;
}

.product-card__title:hover {
  color: var(--brand-burgundy);
}

.product-card__price {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-espresso);
  white-space: nowrap;
}

.product-card__desc {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/*Fila de colores: al pasar el cursor (mouseenter) cambia la foto y sus ángulos*/
.product-card__colors {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  flex-wrap: wrap;
}

.swatch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.swatch-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(24, 18, 17, 0.25);
  padding: 2.5px;
  transition: transform 180ms var(--ease-editorial), border-color 180ms ease;
}

.swatch-btn::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--swatch-color);
}

.swatch-btn:hover,
.swatch-btn.is-active {
  border-color: var(--brand-burgundy);
  border-width: 2px;
  transform: scale(1.14);
}

.swatch-active-name {
  font-size: 13.5px;
  color: var(--ink-muted);
}

. swatch-active-name strong {
  color: var(--ink-espresso);
}

/* Barra rápida de tallas debajo de los colores */
.product-card__QuickRow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.quick-size-btn {
  height: 38px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  font-size: 13px;
  font-weight: 600;
  transition: all 160ms ease;
}

.quick-size-btn:hover {
  background: var(--brand-burgundy);
  border-color: var(--brand-burgundy);
  color: var(--bg-alabaster);
}

.quick-detail-link {
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--brand-burgundy);
  text-decoration: underline;
}

/* ==========================================================================
   4. PRUÉBALA POR TONO (3 Columnas organizadas · Leyendas debajo de cada foto)
   ========================================================================== */
.tone-palette-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tone-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 16px 6px 8px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  font-size: 14px;
  font-weight: 500;
  transition: all 180ms ease;
}

.tone-pill__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tone-hex);
  border: 1px solid rgba(24, 18, 17, 0.22);
  flex-shrink: 0;
}

.tone-pill:hover,
.tone-pill.is-active {
  background: var(--brand-burgundy);
  border-color: var(--brand-burgundy);
  color: var(--bg-alabaster);
}

.tone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.tone-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.tone-item__media {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-gallery);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: 0 12px 28px rgba(24, 18, 17, 0.07);
}

.tone-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 600ms var(--ease-editorial);
}

.tone-item:hover .tone-item__media img {
  transform: scale(1.03);
}

/* Leyenda alineada a la izquierda DEBAJO de la foto (cero recortes) */
.tone-item__caption {
  padding-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.tone-item__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
}

.tone-item__price {
  font-size: 14.5px;
  color: var(--ink-secondary);
}

/* ==========================================================================
   5. EN PIEL REAL (Galería horizontal organizada con pie de foto externo)
   ========================================================================== */
.ribbon-controls {
  display: flex;
  gap: 10px;
}

.ribbon-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 180ms ease;
}

.ribbon-arrow:hover {
  background: var(--brand-burgundy);
  border-color: var(--brand-burgundy);
  color: var(--bg-alabaster);
}

.lookbook-track {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.lookbook-track::-webkit-scrollbar {
  display: none;
}

.lookbook-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.lookbook-card--wide {
  flex: 0 0 360px;
}

.lookbook-card__media {
  height: 400px;
  border-radius: var(--radius-gallery);
  overflow: hidden;
  background: var(--bg-stone);
}

.lookbook-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 600ms var(--ease-editorial);
}

.lookbook-card:hover .lookbook-card__media img {
  transform: scale(1.03);
}

.lookbook-card__caption {
  padding-top: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.lookbook-card__title {
  font-weight: 600;
  color: var(--ink-espresso);
}

.lookbook-card__tone {
  color: var(--ink-muted);
}

/* ==========================================================================
   6. ARMA TU TRÍO ICON FLEX (Retícula organizada de 2 columnas en burdeos)
   ========================================================================== */
.pack-section {
  background: var(--brand-burgundy);
  color: var(--bg-alabaster);
  padding-block: clamp(64px, 8vw, 104px);
}

.pack-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.pack-visual-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.pack-box-photo {
  border-radius: var(--radius-gallery);
  overflow: hidden;
  background: var(--brand-burgundy-deep);
  aspect-ratio: 4 / 5;
}

.pack-box-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pack-slots-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.pack-slot-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(200, 161, 90, 0.25);
}

.pack-slot-card img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.pack-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(250, 247, 242, 0.14);
  margin-bottom: 10px;
}

.pack-size-row {
  display: flex;
  gap: 10px;
  margin: 10px 0 24px;
}

.pack-size-btn {
  min-width: 54px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(250, 247, 242, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--bg-alabaster);
  font-size: 14px;
  font-weight: 600;
}

.pack-size-btn:hover,
.pack-size-btn.is-active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #181211;
}

/* ==========================================================================
   7. HISTORIA & SUSCRIPCIÓN 10% (Alineación limpia sobre retícula)
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.story-diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.story-photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-gallery);
  overflow: hidden;
  background: var(--bg-stone);
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 34px;
  color: var(--brand-burgundy);
  margin: 22px 0 28px;
}

.club-box {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.club-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 24px auto 0;
}

.club-form__input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  font-size: 16px;
}

.club-feedback {
  margin-top: 14px;
  font-size: 15px;
  color: var(--brand-burgundy);
  font-weight: 500;
  min-height: 22px;
}

/* ==========================================================================
   8. PIE DE PÁGINA & BOTÓN DE ASESORÍA
   ========================================================================== */
.site-footer {
  background: var(--brand-burgundy-deep);
  color: rgba(250, 247, 242, 0.84);
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.14);
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}

.footer-col__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-alabaster);
  margin-bottom: 14px;
}

.footer-col__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
}

.footer-col__list a,
.footer-col__list button {
  color: rgba(250, 247, 242, 0.76);
  text-align: left;
}

.footer-col__list a:hover,
.footer-col__list button:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(250, 247, 242, 0.65);
}

.concierge-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  min-height: 48px;
  padding: 10px 20px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 260ms ease, transform 260ms var(--ease-editorial);
}

.concierge-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.concierge-fab svg {
  width: 17px;
  height: 17px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   9. OVERLAYS, PDP DE 2 COLUMNAS Y BOLSA
   ========================================================================== */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(24, 18, 17, 0.58);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 105;
  width: min(340px, 88vw);
  background: var(--brand-burgundy);
  color: var(--bg-alabaster);
  padding: 24px var(--mobile-gutter) 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateX(-100%);
  transition: transform 340ms var(--ease-editorial);
}

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

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.16);
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer__nav a,
.mobile-drawer__nav button {
  display: flex;
  align-items: center;
  min-height: 46px;
  font-size: 20px;
  font-family: var(--font-display);
  color: var(--bg-alabaster);
  border-bottom: 1px solid rgba(250, 247, 242, 0.08);
  text-align: left;
}

.mobile-drawer__group {
  display: flex;
  flex-direction: column;
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.08);
}

.mobile-drawer__group-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.mobile-drawer__nav .mobile-drawer__sublink {
  min-height: 36px;
  padding-left: 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  border-bottom: none;
  color: rgba(250, 247, 242, 0.86);
}

.search-modal__bar {
  margin-bottom: 18px;
}

.search-modal__results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.search-result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border-hairline);
  background: #FFFFFF;
  text-align: left;
  transition: border-color 180ms ease, transform 180ms ease;
}

.search-result-card:hover {
  border-color: var(--brand-burgundy);
  transform: translateY(-1px);
}

.search-result-card img {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.search-result-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
  color: var(--ink-espresso);
}

.search-result-card__meta {
  font-size: 13px;
  color: var(--ink-muted);
}

.close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.close-btn:hover {
  background: rgba(24, 18, 17, 0.08);
}

.close-btn--light {
  color: var(--bg-alabaster);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(460px, 100vw);
  background: var(--bg-alabaster);
  box-shadow: -16px 0 48px rgba(24, 18, 17, 0.22);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 360ms var(--ease-editorial);
}

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

.cart-drawer__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer__title {
  font-family: var(--font-display);
  font-size: 28px;
}

.shipping-progress {
  padding: 16px 24px;
  background: var(--bg-stone);
  border-bottom: 1px solid var(--border-hairline);
}

.shipping-progress__text {
  font-size: 14px;
  margin-bottom: 8px;
}

.shipping-progress__bar {
  width: 100%;
  height: 5px;
  background: rgba(24, 18, 17, 0.12);
  border-radius: 99px;
  overflow: hidden;
}

.shipping-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--brand-burgundy);
  transition: width 400ms var(--ease-editorial);
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-hairline);
}

.cart-item__img {
  width: 76px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-stone);
}

.cart-item__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.cart-item__name {
  font-family: var(--font-display);
  font-size: 22px;
}

.cart-item__variant {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 4px 0 10px;
}

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

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  height: 36px;
  background: #FFFFFF;
}

.qty-control button {
  width: 32px;
  height: 100%;
}

.qty-control span {
  min-width: 26px;
  text-align: center;
  font-size: 14px;
}

.cart-remove {
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: underline;
}

.cart-drawer__footer {
  padding: 20px 24px 26px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-hairline);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.cart-note {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

/* PDP Modal (2 Columnas organizadas) */
.pdp-modal {
  position: fixed;
  inset: 24px;
  z-index: 105;
  max-width: 1140px;
  margin: auto;
  background: var(--bg-alabaster);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(24, 18, 17, 0.34);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 260ms ease, transform 320ms var(--ease-editorial);
}

.pdp-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pdp-modal__close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  z-index: 10;
  background: rgba(250, 247, 242, 0.92);
  border: 1px solid var(--border-hairline);
}

.pdp-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  min-height: 100%;
}

.pdp-gallery {
  padding: 28px;
  background: var(--bg-stone);
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-content: start;
}

.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdp-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.7;
}

.pdp-thumb.is-active,
.pdp-thumb:hover {
  opacity: 1;
  border-color: var(--brand-burgundy);
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-main-img-wrap {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-gallery);
  overflow: hidden;
  background: var(--bg-surface);
}

.pdp-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-details {
  padding: 36px 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pdp-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.04;
}

.pdp-price {
  font-size: 21px;
  font-weight: 600;
  color: var(--brand-burgundy);
}

.pdp-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}

.size-guide-link {
  text-decoration: underline;
  color: var(--brand-burgundy);
}

.pdp-sizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pdp-size-btn {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  font-weight: 600;
}

.pdp-size-btn.is-active {
  background: var(--ink-espresso);
  border-color: var(--ink-espresso);
  color: var(--bg-alabaster);
}

.pdp-accordion {
  border-top: 1px solid var(--border-hairline);
}

.pdp-accordion details {
  border-bottom: 1px solid var(--border-hairline);
  padding: 14px 0;
}

.pdp-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
}

.pdp-accordion summary::after {
  content: '+';
  font-size: 18px;
}

.pdp-accordion details[open] summary::after {
  content: '−';
}

.pdp-accordion p,
.pdp-accordion ul {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.pdp-accordion ul {
  padding-left: 18px;
}

.dialog-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 115;
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-alabaster);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 28px 90px rgba(24, 18, 17, 0.36);
  transform: translate(-50%, -48%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease, transform 280ms var(--ease-editorial);
}

.dialog-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.dialog-modal--wide {
  width: min(880px, calc(100vw - 32px));
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14.5px;
}

.size-table th,
.size-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-hairline);
  text-align: left;
}

.size-table th {
  background: var(--bg-stone);
  font-weight: 600;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compare-col {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--border-hairline);
  background: #FFFFFF;
}

.compare-col--new {
  border-color: var(--brand-burgundy);
}

.compare-col h4 {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 12px;
}

.compare-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 130;
  background: var(--ink-espresso);
  color: var(--bg-alabaster);
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease, transform 280ms var(--ease-editorial);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   RESPONSIVE TABLET & MOBILE
   ========================================================================== */
@media (max-width: 1080px) {
  .site-nav,
  .header-text-btn {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .catalog-grid,
  .catalog-grid--all,
  .catalog-grid--filtered {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-card,
  .catalog-grid--all .product-card:nth-child(1),
  .catalog-grid--all .product-card:nth-child(2) {
    grid-column: span 1;
  }
  .tone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pack-grid,
  .story-grid,
  .pdp-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 68px;
  }

  .container {
    padding-inline: var(--mobile-gutter);
  }

  .brand-logo__img {
    height: 36px;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    height: 100svh;
    align-items: flex-end;
  }

  .hero__img {
    object-position: 58% 12%;
    filter: brightness(0.75) contrast(1.04) saturate(0.95);
  }

  .hero__scrim {
    background: rgba(46, 12, 20, 0.36);
  }

  .search-modal__results {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: clamp(28px, 4.5vh, 44px);
  }

  .hero__title {
    font-size: clamp(34px, 10vw, 48px);
    margin-bottom: 12px;
  }

  .hero__lead {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .hero__actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn-sop {
    min-height: 52px;
    width: 100%;
  }

  .section {
    padding-block: 56px;
  }

  .catalog-grid,
  .catalog-grid--all,
  .catalog-grid--filtered,
  .tone-grid,
  .pack-visual-grid,
  .story-diptych,
  .compare-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .lookbook-card,
  .lookbook-card--wide {
    flex: 0 0 260px;
  }

  .lookbook-card__media {
    height: 340px;
  }

  .club-form {
    flex-direction: column;
  }

  .pdp-modal {
    inset: 0;
    border-radius: 0;
  }

  .pdp-gallery {
    grid-template-columns: 1fr;
    padding: 18px var(--mobile-gutter);
  }

  .pdp-thumbs {
    flex-direction: row;
    order: 2;
  }

  .pdp-thumb {
    width: 64px;
  }

  .pdp-details {
    padding: 24px var(--mobile-gutter) 44px;
  }

  .concierge-fab {
    right: 12px;
    bottom: 12px;
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 50%;
  }

  .concierge-fab .btn-sop-label {
    display: none;
  }
}
