/* Ritual Callejero — lenguaje visual alineado con pleasuresnow.com */

:root {
  --ink: #111111;
  --paper: #ffffff;
  --black: #000000;
  --muted: rgba(17, 17, 17, 0.72);
  --line: #e6e6e6;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: 180ms ease;
  --header-h: 80px;
  --gap: 2px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body.page-home {
  background: var(--black);
  color: var(--paper);
}

body.page-product {
  background: var(--paper);
  color: var(--ink);
}

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

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

button,
summary {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 1000;
  background: var(--paper);
  color: var(--ink);
  padding: 0.7rem 1rem;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 12px;
}

/* —— Header: barra negra, wordmark al centro, 12px —— */
.site-header__announce,
.site-header__tools {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--black);
  color: var(--paper);
}

.site-header__inner {
  min-height: var(--header-h);
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.site-header__left {
  justify-self: start;
}

.site-header__right {
  justify-self: end;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.92;
  transition: opacity var(--ease);
}

.nav-link:hover {
  opacity: 1;
}

.site-header__brand {
  display: block;
  width: 148px;
  height: 68px;
  overflow: hidden;
}

.site-header__brand img {
  width: 148px;
  height: 148px;
  max-width: none;
  /* El wordmark vive entre el 29% y el 71% del cuadrado */
  margin-top: -42px;
}

/* —— Campaña: encuadres completos, sin filtros —— */
.hero__campaign {
  display: block;
  width: 100%;
  background: #303b36;
}
.hero__campaign img {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
}

.hero__lockup {
  text-align: center;
  padding: 28px 20px 36px;
}

.hero__title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
}

.hero__sub {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 10px 30px;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--ease);
}

.hero__cta:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* —— Rejilla: foto y nombre, sin botón —— */
.rack {
  background: var(--black);
  color: var(--paper);
  padding: 8px var(--gap) 12px;
  scroll-margin-top: var(--header-h);
}

.rack__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  display: block;
  color: inherit;
  min-width: 0;
}

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e4e4e4;
}

.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: opacity var(--ease);
}

.card__img--alt {
  opacity: 0;
}

@media (hover: hover) {
  .card:hover .card__img--alt {
    opacity: 1;
  }

  .card:hover .card__img:not(.card__img--alt) {
    opacity: 0;
  }
}

.card__name {
  display: block;
  padding: 10px 8px 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}

.rack__grid--single {
  grid-template-columns: 1fr;
}

/* —— Ficha —— */
.product {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 0 0 28px;
}

.product__gallery {
  display: grid;
  gap: 10px;
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #ececec;
  cursor: zoom-in;
  color: inherit;
}

.shot img {
  width: 100%;
  height: auto;
}

.shot__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.shot__zoom svg {
  width: 16px;
  height: 16px;
  display: block;
}

.shot__caption {
  margin: 8px 12px 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #6a6a6a;
}

.product__info {
  padding: 22px 16px 8px;
}

.product__kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product__kicker a:hover {
  opacity: 0.65;
}

.product__title {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
}

.product__text {
  margin: 16px 0 0;
  max-width: 38rem;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.btn-wide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--ease), color var(--ease);
}

.btn-wide:hover {
  background: var(--ink);
  color: var(--paper);
}

.fold {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fold summary::-webkit-details-marker {
  display: none;
}

.fold summary::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
}

.fold[open] summary::after {
  content: "–";
}

.fold p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.rack--related {
  padding-top: 28px;
  padding-bottom: 36px;
}

.rack--related .rack__grid {
  width: min(520px, 100%);
  margin-inline: auto;
  grid-template-columns: 1fr;
}

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 16px;
  background: rgba(0, 0, 0, 0.94);
  color: var(--paper);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 88px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox__close:hover {
  opacity: 0.7;
}

body.lightbox-open {
  overflow: hidden;
}

/* —— Footer —— */
.site-footer {
  background: var(--black);
  color: var(--paper);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__inner {
  padding: 22px 16px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer__brand {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer__nav {
  display: flex;
  gap: 8px 20px;
}

.site-footer__note {
  width: 100%;
  margin: 4px 0 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 700px) {
.site-header__inner {
    padding: 0 28px;
  }

  .site-header__brand {
    width: 176px;
    height: 78px;
  }

  .site-header__brand img {
    width: 176px;
    height: 176px;
    margin-top: -51px;
  }
}

@media (min-width: 900px) {
  :root {
    --header-h: 104px;
  }

  .site-header__inner {
    padding: 0 36px;
  }

  .site-header__brand {
    width: 210px;
    height: 92px;
  }

  .site-header__brand img {
    width: 210px;
    height: 210px;
    margin-top: -60px;
  }

  .product {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 36px;
    align-items: start;
    padding: 18px 28px 48px;
  }

  .product__info {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    padding: 8px 12px 0 0;
  }

  .product__title {
    font-size: 26px;
  }

  .site-footer__inner {
    padding: 22px 36px 28px;
  }
}

@media (max-width: 699px) {
  .rack__grid--single .card {
    max-width: 100%;
  }

  /* Cabecera móvil sobre negro; la foto conserva su encuadre. */
  .page-home .site-header {
    position: sticky;
    top: 0;
    background: var(--black);
  }

  .page-home .site-header__inner {
    min-height: 0;
    padding: max(10px, env(safe-area-inset-top)) 14px 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
    grid-template-areas:
      "brand brand brand brand"
      ". links tools .";
    align-items: center;
    column-gap: 16px;
    row-gap: 4px;
  }

  .page-home .site-header__brand {
    grid-area: brand;
    justify-self: center;
    width: min(100%, 260px);
    height: auto;
    min-height: 44px;
    aspect-ratio: 1300 / 273;
    background: transparent;
  }

  .page-home .site-header__brand picture {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 1300 / 273;
    overflow: hidden;
  }

  /* Encuadre del archivo original: se conserva el logo sin redibujarlo. */
  .page-home .site-header__brand img {
    position: absolute;
    top: 0;
    left: 0;
    width: 128.6154%;
    height: auto;
    max-width: none;
    margin: 0;
    transform: translate(-11.1842%, -32.9437%);
    mix-blend-mode: normal;
  }

  .page-home .site-header__left {
    grid-area: links;
    justify-self: center;
  }

  .page-home .site-header__right {
    grid-area: tools;
    justify-self: start;
  }

  .page-home .nav-link {
    min-height: 32px;
    padding: 0;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .page-home .site-header__tools {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
  }

  .tool-icon {
    display: block;
    width: 22px;
    height: 22px;
  }

  .tool-icon svg {
    width: 22px;
    height: 22px;
    display: block;
  }

  .hero__campaign img {
    aspect-ratio: 1122 / 1402;
  }

  .hero__lockup {
    padding: 24px 18px 30px;
  }

  .hero__title,
  .hero__sub {
    font-size: 12px;
  }

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

  .product__info {
    order: -1;
    width: 100%;
    padding-bottom: 24px;
  }

  .page-home .rack {
    scroll-margin-top: 112px;
  }
}

/* —— Prendas, retratos y encuentro —— */
.page-home .rack {
  padding: 48px 16px 64px;
}
.page-home .rack__grid {
  width: min(78%, 1120px);
  margin-inline: auto;
  gap: 24px 12px;
}
.editorial__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.editorial__card {
  display: block;
  min-width: 0;
}
.editorial__card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1122 / 1402;
}
.editorial__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 40px;
}
.editorial__caption h3,
.editorial__link {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.editorial__link {
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
}
.editorial__card:hover .editorial__link {
  opacity: 0.7;
}
.campaign-close > img {
  width: 100%;
  height: auto;
}
.campaign-close h2 {
  margin: 0;
  padding: 30px 20px 36px;
  text-align: center;
  font-size: clamp(13px, 1.4vw, 19px);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.shot-block {
  margin: 0;
}
.card:focus-visible .card__img--alt {
  opacity: 1;
}
@media (max-width: 699px) {
  .page-home .rack {
    padding: 20px 12px 40px;
    scroll-margin-top: 112px;
  }
  .page-home .rack__grid {
    width: 100%;
    gap: 20px 8px;
  }
  .editorial__grid {
    grid-template-columns: 1fr;
  }
  .editorial__caption {
    padding: 20px 16px 32px;
  }
}
