/* =====================================================
   DINAMITA — Prêt-à-porter · Lucía Toca Arrizabalaga
   Sistema de diseño CSS
   ===================================================== */

/* ---- Fuente de marca — logotipo DINAMITA ---- */
@font-face {
  font-family: 'Brown Sugar';
  src: url('../fonts/Brown-Sugar-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Propiedades personalizadas ---- */
:root {
  /* Paleta — extraída del Brand Book oficial */
  --color-bg:       #111014;   /* Moondrop Grapes (principal oscuro) */
  --color-fg:       #F0EDE8;   /* Stalactite (blanco roto) */
  --color-accent:   #A01830;   /* Savvy Red (granate) */
  --color-cabernet: #6B1728;   /* Cabernet */
  --color-mid:      #2A1A1C;   /* Tono intermedio cálido */
  --color-footer:   #0C0B0E;   /* Fondo footer, más profundo */

  /* Tipografía — Brown Sugar → Cormorant (máx. similitud en web) */
  --font-serif: 'Cormorant', 'Georgia', serif;
  --font-sans:  'DM Sans', 'Helvetica Neue', sans-serif;

  /* Espaciado */
  --space-sm:  clamp(3rem,   5vw,  5rem);
  --space-md:  clamp(5rem,   9vw,  8rem);
  --space-lg:  clamp(7rem,  12vw, 11rem);
  --space-xl:  clamp(9rem,  15vw, 14rem);

  /* Layout */
  --margin: clamp(1.5rem, 6vw, 7rem);
  --max-w:  1440px;

  /* Movimiento */
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --dur:      800ms;
  --dur-fast: 400ms;
}

/* =====================================================
   RESET Y BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 0.85rem + 0.3vw, 1.0625rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

/* ---- Tipografía base ---- */
h1, h2, h3, blockquote p {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 700;
}

/* ---- br solo en desktop ---- */
.br-d { display: inline; }

/* ---- Animaciones reveal (IntersectionObserver) ---- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity  var(--dur) var(--ease),
      transform var(--dur) var(--ease);
  }
  [data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
  }
  [data-reveal][data-d="1"] { transition-delay: 100ms; }
  [data-reveal][data-d="2"] { transition-delay: 220ms; }
  [data-reveal][data-d="3"] { transition-delay: 360ms; }
  [data-reveal][data-d="4"] { transition-delay: 500ms; }
}

/* =====================================================
   HEADER
   ===================================================== */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 1.25rem var(--margin);
  background-color: rgba(17, 16, 20, 0.52);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(240, 237, 232, 0.06);
  transition:
    background-color 500ms var(--ease),
    padding          400ms var(--ease);
}

#header.scrolled {
  background-color: rgba(17, 16, 20, 0.90);
  padding: 0.875rem var(--margin);
  border-bottom-color: rgba(240, 237, 232, 0.09);
}

.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — IsotipoBlanco (ícono bomba, ya en blanco sobre transparente) */
.header__logo {
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header__logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Navegación desktop */
.header__nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.header__nav a {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}
.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--color-fg);
  transition: width var(--dur-fast) var(--ease);
}
.header__nav a:hover::after,
.header__nav a:focus-visible::after { width: 100%; }

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 300;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: var(--color-fg);
  transition: transform var(--dur-fast) var(--ease), opacity 250ms;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Overlay móvil */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease);
}
.menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.menu-overlay nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
}
.menu-overlay a {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.menu-overlay a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1px;
  background: var(--color-accent);
  transition: width 500ms var(--ease);
}
.menu-overlay a:hover::after { width: 100%; }

/* Foco visible global */
:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 3px;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 580px;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Imagen horizontal: encuadrar torso y velo */
  object-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* Gradiente: ligero arriba, más profundo abajo donde va el texto */
  background: linear-gradient(
    to bottom,
    rgba(17, 16, 20, 0.08)  0%,
    rgba(17, 16, 20, 0.00) 35%,
    rgba(17, 16, 20, 0.55) 70%,
    rgba(17, 16, 20, 0.90) 100%
  );
}

.hero__content {
  position: absolute;
  bottom: clamp(3rem, 8vh, 6rem);
  left: var(--margin);
  right: var(--margin);
}

.hero__eyebrow {
  font-size: 0.6563rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.55);
  margin-bottom: 0.875rem;
}

.hero__title {
  font-size: clamp(3.5rem, 7.5vw, 7.5rem);
  line-height: 1;
  margin-bottom: 2.25rem;
}

/* Logotipo de marca — tipografía corporativa Brown Sugar */
.brand-logo {
  font-family: 'Brown Sugar', var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
}

.hero__cta {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(240, 237, 232, 0.4);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.hero__cta:hover {
  border-color: var(--color-fg);
  color: var(--color-fg);
}

/* =====================================================
   MANIFIESTO
   ===================================================== */
.manifiesto {
  padding: var(--space-lg) var(--margin) var(--space-sm);
  text-align: center;
  border-top: 1px solid rgba(240, 237, 232, 0.05);
}

.manifiesto__inner {
  max-width: 800px;
  margin: 0 auto;
}

.manifiesto__pregunta {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.2vw, 2.75rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: rgba(240, 237, 232, 0.92);
  margin-bottom: 3rem;
}

.manifiesto__respuesta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 700;
}

/* =====================================================
   EDITORIAL ASIMÉTRICA
   ===================================================== */
.editorial {
  padding: var(--space-sm) var(--margin) var(--space-lg);
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: clamp(3rem, 5vw, 6.5rem);
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.editorial__imagen {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.editorial__imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 1300ms var(--ease);
}
.editorial__imagen:hover img { transform: scale(1.04); }

.editorial__texto { padding: 1rem 0; }
.editorial__texto .eyebrow { margin-bottom: 1.75rem; }

.editorial__texto h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  margin-bottom: 2rem;
}

.editorial__texto p {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: rgba(240, 237, 232, 0.68);
  max-width: 42ch;
  margin-bottom: 1.125rem;
}
.editorial__texto p:last-of-type { margin-bottom: 0; }

/* =====================================================
   COLECCIONES — GRID 3 COLUMNAS
   ===================================================== */
.colecciones {
  padding: var(--space-xl) var(--margin);
}

.colecciones__cabecera {
  max-width: 560px;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.colecciones__cabecera h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.colecciones__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.8vw, 2rem);
  max-width: var(--max-w);
}

.item {
  overflow: hidden;
  cursor: default;
}
.item__wrap {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  margin-bottom: 1rem;
}
.item__wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transition: transform var(--dur) var(--ease);
}
.item:hover .item__wrap img { transform: scale(1.04); }

.item__caption {
  font-size: 0.6563rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 600;
}

/* =====================================================
   DUALIDAD — DOS PANELES
   ===================================================== */
.dualidad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 85vh;
  min-height: 500px;
}

.dualidad__panel {
  position: relative;
  overflow: hidden;
}
.dualidad__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 1300ms var(--ease);
}
.dualidad__panel:hover img { transform: scale(1.03); }

/* Fina línea divisoria entre paneles */
.dualidad__panel:first-child {
  border-right: 1px solid rgba(240, 237, 232, 0.06);
}

.dualidad__label {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6563rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.55);
  white-space: nowrap;
  /* Fondo muy sutil para legibilidad */
  background: rgba(17, 16, 20, 0.35);
  padding: 0.4em 1em;
}

/* =====================================================
   CITA — BLOQUE MANIFIESTO GRANATE
   ===================================================== */
.cita {
  background-color: var(--color-cabernet); /* #6B1728 — granate oscuro */
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--margin);
  text-align: center;
}

.cita blockquote {
  max-width: 740px;
  margin: 0 auto;
}
.cita blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 2.1rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--color-fg);
}

/* =====================================================
   GALERÍA EDITORIAL — GRID 2 COLUMNAS
   ===================================================== */
.galeria {
  padding: var(--space-xl) var(--margin);
}

.galeria__cabecera {
  max-width: 480px;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.galeria__cabecera h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.galeria__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 2.25rem);
  max-width: var(--max-w);
}

.gitem {
  overflow: hidden;
}
.gitem__wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.gitem__wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transition: transform var(--dur) var(--ease);
}
.gitem:hover .gitem__wrap img { transform: scale(1.04); }

/* =====================================================
   FOOTER / CONTACTO
   ===================================================== */
footer {
  background-color: var(--color-footer);
  padding: var(--space-lg) var(--margin) 2.5rem;
  border-top: 1px solid rgba(240, 237, 232, 0.06);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Columna marca */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
/* LogoIsotipoBlanco — wordmark + ícono, proporciones preservadas */
.footer__brand-logo {
  display: block;
  height: auto;
  width: 100%;
  max-width: 200px;
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.78;
}
.footer__tagline {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-style: italic;
  color: rgba(240, 237, 232, 0.4);
  letter-spacing: 0.04em;
}

/* Columnas navegación / contacto */
.footer__col h3 {
  font-family: var(--font-sans);
  font-size: 0.6563rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.footer__col a {
  font-size: 0.8125rem;
  color: rgba(240, 237, 232, 0.45);
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 1px;
  transition: color var(--dur-fast);
}
.footer__col a:hover { color: var(--color-fg); }

/* Línea inferior */
.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(240, 237, 232, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer__legal {
  font-size: 0.6563rem;
  color: rgba(240, 237, 232, 0.22);
  letter-spacing: 0.06em;
}

/* =====================================================
   TIENDA — SECCIÓN DE COMPRA
   ===================================================== */
.tienda {
  padding: var(--space-xl) var(--margin);
  border-top: 1px solid rgba(240, 237, 232, 0.05);
}

.tienda__cabecera {
  max-width: var(--max-w);
  margin: 0 auto clamp(3rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.tienda__cabecera h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}
.tienda__cabecera p.tienda__sub {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  max-width: 52ch;
  line-height: 1.7;
}

/* ---- Tabs SS26 / SS25 ---- */
.tienda__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(240, 237, 232, 0.1);
  margin-top: 1.25rem;
}
.tienda__tab {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.50);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 3rem 1rem 0;
  position: relative;
  transition: color var(--dur-fast);
}
.tienda__tab::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--color-fg);
  transition: width var(--dur-fast) var(--ease);
}
.tienda__tab--active { color: var(--color-fg); }
.tienda__tab--active::after { width: calc(100% - 3rem); }
.tienda__tab:hover { color: rgba(240,237,232,0.75); }

/* ---- Paneles ---- */
.tienda__panel { display: none; }
.tienda__panel--visible { display: block; }

/* ---- Etiqueta de colección ---- */
.tienda__etiqueta {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding-top: 3.5rem;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}
.tienda__etiqueta h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
}
.tienda__etiqueta span {
  font-size: 0.6563rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 700;
}

/* ---- Grid productos SS26 (2 col grandes) ---- */
.tienda__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(3rem, 5vw, 5.5rem) clamp(2rem, 3.5vw, 4rem);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ---- Grid SS25 (4 col compactos) ---- */
.tienda__grid--ss25 {
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 3vw, 3rem) clamp(1rem, 1.8vw, 2rem);
}

/* ---- Tarjeta producto ---- */
.producto {
  display: flex;
  flex-direction: column;
  cursor: default;
}
.producto__img-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 1.75rem;
  position: relative;
}
.producto__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transition: transform 1100ms var(--ease);
}
.producto:hover .producto__img-wrap img { transform: scale(1.05); }

/* Swatch de color sobre la imagen */
.producto__swatch {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(240,237,232,0.3);
}
.swatch--chocolate { background: #3E2014; }
.swatch--burgundy  { background: #6B1728; }
.swatch--rojo      { background: #C41E3A; }

.producto__info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.producto__coleccion {
  font-size: 0.6250rem;
  letter-spacing: 0.25em;
  color: #ffffff;
  font-weight: 700;
}
.producto__nombre {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.producto__precio {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #ffffff;
}
.producto__desc {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
  max-width: 44ch;
  margin-top: 0.25rem;
}

/* Tallas */
.producto__tallas {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.talla {
  font-size: 0.5938rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45em 0.75em;
  border: 1px solid rgba(240, 237, 232, 0.18);
  color: rgba(240, 237, 232, 0.4);
  cursor: pointer;
  transition: border-color 220ms, color 220ms, background-color 220ms;
  user-select: none;
}
.talla:hover {
  border-color: rgba(240,237,232,0.55);
  color: rgba(240,237,232,0.75);
}
.talla--activa {
  border-color: var(--color-fg);
  color: var(--color-fg);
  background-color: rgba(240,237,232,0.06);
}

/* CTA Solicitar */
.producto__cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.6563rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(240, 237, 232, 0.3);
  width: fit-content;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.producto__cta:hover { border-color: var(--color-fg); }

/* SS25 tarjetas — más compactas, sin descripción */
.producto--ss25 .producto__nombre {
  font-size: clamp(0.7rem, 0.9vw, 0.875rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.producto--ss25 .producto__precio {
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
  color: #ffffff;
  font-weight: 500;
}
.producto--ss25 .producto__desc { display: none; }
.producto--ss25 .producto__tallas { display: none; }
.producto--ss25 .producto__img-wrap { margin-bottom: 1rem; }

/* =====================================================
   TIENDA HERO — banner superior de tienda.html
   ===================================================== */
.tienda-hero {
  position: relative;
  width: 100%;
  height: clamp(340px, 55vh, 580px);
  overflow: hidden;
}

.tienda-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(100%);
  transform-origin: center;
  transition: transform 8000ms ease-out;
}

/* Ken Burns muy lento al cargar */
.tienda-hero.loaded .tienda-hero__img {
  transform: scale(1.04);
}

.tienda-hero__overlay {
  position: absolute;
  inset: 0;
  /* Gradiente: más oscuro arriba (header) y abajo (texto), más claro en el centro */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.38) 45%,
    rgba(0, 0, 0, 0.70) 100%
  );
}

.tienda-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--margin) clamp(2.5rem, 5vh, 4rem);
  text-align: center;
}

.tienda-hero__eyebrow {
  font-size: 0.625rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 0.75rem;
}

.tienda-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1;
}

/* ---- Tienda compacta (tienda.html) — grid 3/4 col, imágenes más pequeñas ---- */
.tienda-page .tienda {
  padding-top: var(--space-md); /* el hero ya cubre el espacio del header */
}
.tienda-page .tienda__grid {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 3rem) clamp(1rem, 1.8vw, 2rem);
}
.tienda-page .tienda__grid--ss25 {
  grid-template-columns: repeat(4, 1fr);
}
.tienda-page .producto__img-wrap {
  aspect-ratio: 2 / 3;
  margin-bottom: 1.25rem;
}
.tienda-page .producto__nombre {
  font-size: clamp(0.875rem, 1.1vw, 1.1rem);
}
.tienda-page .producto__precio {
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
}
.tienda-page .producto__desc {
  font-size: 0.75rem;
  color: rgba(240, 237, 232, 0.45);
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tienda-page .producto__cta {
  margin-top: 0.625rem;
}

/* Nota al pie de tienda */
.tienda__nota {
  max-width: var(--max-w);
  margin: 4rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(240, 237, 232, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.tienda__nota p {
  font-size: 0.6563rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 600;
}

/* Indicar que la imagen de producto es interactiva */
.producto__img-wrap {
  cursor: pointer;
}

/* =====================================================
   MODAL PRODUCTO — tarjeta de compra ampliada con galería
   ===================================================== */
.producto-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.producto-modal.open { display: flex; }

.producto-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 14, 0.92);
  backdrop-filter: blur(6px);
}

.producto-modal__card {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  width: min(1000px, 100%);
  max-height: 92vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border: 1px solid rgba(240, 237, 232, 0.08);
}

.producto-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(12, 11, 14, 0.55);
  color: var(--color-fg);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.producto-modal__close:hover { background: rgba(12, 11, 14, 0.85); }

.producto-modal__gallery {
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.producto-modal__img {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.producto-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(12, 11, 14, 0.45);
  color: var(--color-fg);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 220ms;
}
.producto-modal__nav:hover { background: rgba(12, 11, 14, 0.8); }
.producto-modal__nav--prev { left: 0.75rem; }
.producto-modal__nav--next { right: 0.75rem; }
.producto-modal__nav[hidden] { display: none; }

.producto-modal__thumbs {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0 0.75rem;
  overflow-x: auto;
}
.producto-modal__thumb {
  width: 44px;
  height: 58px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.45;
  border: 1px solid transparent;
  transition: opacity 220ms, border-color 220ms;
  flex-shrink: 0;
}
.producto-modal__thumb:hover { opacity: 0.8; }
.producto-modal__thumb.producto-modal__thumb--active {
  opacity: 1;
  border-color: var(--color-fg);
}

.producto-modal__info {
  padding: clamp(1.5rem, 3vw, 2.75rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.producto-modal__nombre {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 300;
  letter-spacing: 0.05em;
}
.producto-modal__precio {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.6vw, 1.6rem);
  font-weight: 500;
  color: #ffffff;
}
.producto-modal__desc {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(240, 237, 232, 0.72);
}
.producto-modal__tallas {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.producto-modal__tallas[hidden],
.producto-modal__desc:empty,
.producto-modal__coleccion:empty {
  display: none;
}
.producto-modal__cta { margin-top: 0.5rem; width: fit-content; }

@media (max-width: 768px) {
  .producto-modal__card {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .producto-modal__gallery { min-height: 260px; }
}

/* =====================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ===================================================== */
@media (max-width: 1024px) {
  .editorial {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* =====================================================
   RESPONSIVE — MÓVIL (≤ 768px)
   ===================================================== */
@media (max-width: 768px) {

  /* Header */
  .header__nav  { display: none; }
  .menu-toggle  { display: flex; }

  /* Hero */
  .hero__img { object-position: center 30%; }

  /* br solo desktop */
  .br-d { display: none; }

  /* Editorial */
  .editorial {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .editorial__imagen { aspect-ratio: 4 / 5; }
  .editorial__texto p { max-width: 100%; }

  /* Colecciones */
  .colecciones__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }

  /* Dualidad */
  .dualidad {
    grid-template-columns: 1fr;
    height: auto;
  }
  .dualidad__panel {
    height: 65vw;
    min-height: 280px;
  }
  .dualidad__panel:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(240, 237, 232, 0.06);
  }

  /* Galería */
  .galeria__grid { grid-template-columns: 1fr; }

  /* Tienda */
  .tienda__grid { grid-template-columns: 1fr; }
  .tienda__grid--ss25 { grid-template-columns: repeat(2, 1fr); }
  .tienda__nota { flex-direction: column; align-items: flex-start; }
  .tienda-page .tienda__grid { grid-template-columns: repeat(2, 1fr); }
  .tienda-page .tienda__grid--ss25 { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer__brand { grid-column: auto; }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* =====================================================
   RESPONSIVE — MÓVIL PEQUEÑO (≤ 480px)
   ===================================================== */
@media (max-width: 480px) {
  .colecciones__grid { grid-template-columns: 1fr; }
  .hero__title { letter-spacing: 0.14em; }
  .tienda__grid--ss25 { grid-template-columns: 1fr; }
}
