/* ==========================================================================
   LA COLECCIÓN · style.css
   Paleta propia de la portada: casi negro azulado + hueso. Neutra a propósito:
   el color lo ponen las doce miniaturas.
   Tipografía: Fraunces (display) + Space Grotesk (texto y labels).
   ========================================================================== */

:root {
  --bg: #0a0b0e;
  --bg-2: #101217;
  --bg-3: #16181f;
  --ink: #f1f0ec;
  --ink-2: #a3a7af;
  --ink-3: #71757e;
  --bone: #e3d9c4;
  --bone-dim: #b3a88f;
  --line: rgba(241, 240, 236, 0.12);
  --line-2: rgba(241, 240, 236, 0.24);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4.4vw, 76px);
  --hero-p: 0;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--bone-dim);
}

:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--bone);
  color: #0b0c0f;
  font-size: 12px;
  font-weight: 500;
  transition: top 0.3s var(--expo);
}
.skip:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   Piezas comunes
   -------------------------------------------------------------------------- */
.overline {
  margin: 0 0 18px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.sec-head {
  max-width: 62ch;
}
.sec-title {
  margin: 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(34px, 4.7vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.sec-lede {
  margin: 22px 0 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-2);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--expo), transform 0.85s var(--expo);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  transition: transform 0.55s var(--expo), background-color 0.4s var(--expo),
    border-color 0.4s var(--expo);
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: rgba(10, 11, 14, 0.82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header.is-hidden {
  transform: translateY(-104%);
}
.header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: 0 50%;
  animation: prog linear both;
  animation-timeline: scroll(root);
}
@keyframes prog {
  to {
    transform: scaleX(1);
  }
}

.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.header__mark {
  color: var(--bone);
  font-size: 13px;
  line-height: 1;
}
.header__name,
.header__nav a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.header__nav {
  display: flex;
  gap: clamp(16px, 2.2vw, 34px);
}
.header__nav a {
  color: var(--ink-2);
  transition: color 0.3s var(--expo);
}
.header__nav a:hover {
  color: var(--bone);
}

/* --------------------------------------------------------------------------
   HERO · muro 3D
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 280vh;
}
.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 35%, #171a21 0%, #0d0f14 48%, #06070a 100%);
}

.wall {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.has-webgl .wall {
  display: block;
}

/* Fallback sin WebGL: grilla de miniaturas */
.wall-grid {
  display: grid;
  position: absolute;
  inset: 0;
  /* La grilla vive en la mitad derecha, igual que el muro 3D: la columna
     izquierda queda para el titular. */
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
  padding: 84px var(--gutter) 168px 44%;
  margin: 0;
  list-style: none;
}
.has-webgl .wall-grid {
  display: none;
}
.wall-grid a {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--bg-2);
}
.wall-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.5s var(--expo), transform 0.7s var(--expo);
}
.wall-grid a:hover img {
  opacity: 1;
  transform: scale(1.03);
}
.wall-grid span {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

/* Móvil: tres filas que se desplazan solas */
.strips {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding-bottom: 20vh;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.strip {
  overflow: hidden;
}
.strip__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: slide 34s linear infinite;
}
.strip--rev .strip__track {
  animation-direction: reverse;
  animation-duration: 42s;
}
.strip:nth-child(3) .strip__track {
  animation-duration: 38s;
}
.strip__track img {
  width: 46vw;
  height: calc(46vw * 0.625);
  object-fit: cover;
  opacity: 0.78;
  flex: 0 0 auto;
}
@keyframes slide {
  to {
    transform: translateX(calc(-50% - 6px));
  }
}

/* Velo de legibilidad */
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
      to top,
      rgba(6, 7, 10, 0.94) 0%,
      rgba(6, 7, 10, 0.7) 24%,
      rgba(6, 7, 10, 0) 56%
    ),
    linear-gradient(
      to right,
      rgba(6, 7, 10, 0.95) 0%,
      rgba(6, 7, 10, 0.88) 22%,
      rgba(6, 7, 10, 0.5) 40%,
      rgba(6, 7, 10, 0) 56%
    );
  opacity: calc(1 - var(--hero-p) * 0.55);
}

.hero__copy {
  position: absolute;
  left: var(--gutter);
  bottom: 24vh;
  z-index: 3;
  max-width: min(46ch, 40vw);
  pointer-events: none;
  opacity: clamp(0, calc(1 - var(--hero-p) * 2.6), 1);
  transform: translateY(calc(var(--hero-p) * -40px));
}
.hero__title {
  margin: 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(36px, 4.7vw, 70px);
  line-height: 0.99;
  letter-spacing: -0.028em;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--bone);
}
.hero__lede {
  margin: 26px 0 0;
  max-width: 50ch;
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-2);
}

.hero__stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 20px var(--gutter) 24px;
  list-style: none;
  border-top: 1px solid var(--line);
  background: linear-gradient(to top, rgba(6, 7, 10, 0.9), rgba(6, 7, 10, 0.35));
  pointer-events: none;
}
.hero__stats li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.hero__stats strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.hero__stats span {
  font-size: 10.5px;
  line-height: 1.35;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  max-width: 18ch;
}

.hero__hint {
  position: absolute;
  right: var(--gutter);
  bottom: 116px;
  z-index: 3;
  margin: 0;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  pointer-events: none;
  opacity: clamp(0, calc(1 - var(--hero-p) * 4), 1);
}
/* Sin muro 3D no hay muro que atravesar */
html:not(.has-webgl) .hero__hint {
  display: none;
}

/* Etiqueta del plano apuntado */
.wall-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  display: grid;
  gap: 2px;
  padding: 10px 14px 11px;
  min-width: 150px;
  background: rgba(10, 11, 14, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--expo);
}
.wall-tip.is-on {
  opacity: 1;
}
.wall-tip__num {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--bone-dim);
}
.wall-tip__brand {
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.1;
}
.wall-tip__cat {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   ÍNDICE
   -------------------------------------------------------------------------- */
.indice {
  position: relative;
  z-index: 4;
  background: var(--bg);
  padding: clamp(88px, 11vw, 168px) var(--gutter) clamp(80px, 9vw, 130px);
  border-top: 1px solid var(--line);
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: clamp(40px, 5vw, 72px);
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.filtro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.35s var(--expo), color 0.35s var(--expo),
    border-color 0.35s var(--expo);
}
.filtro:hover {
  color: var(--ink);
  border-color: var(--bone-dim);
}
.filtro.is-on {
  background: var(--bone);
  border-color: var(--bone);
  color: #0b0c0f;
}
.filtro__n {
  font-size: 9.5px;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.filtros__estado {
  margin: 0 0 0 auto;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fichas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 4.4vw, 76px) clamp(28px, 3vw, 52px);
  margin: clamp(44px, 5vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}
.ficha {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.ficha[hidden] {
  display: none;
}
.ficha__shot {
  display: block;
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 16 / 10;
}
.ficha__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--expo), filter 0.6s var(--expo);
  filter: saturate(0.94);
}
.ficha:hover .ficha__shot img {
  transform: scale(1.025);
  filter: saturate(1);
}
.ficha__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ficha__head {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-top: 22px;
}
.ficha__num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--bone-dim);
  font-variant-numeric: tabular-nums;
}
.ficha__brand {
  margin: 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.ficha__cat {
  margin: 5px 0 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tag3d {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--bone);
}
.ficha__claim {
  margin: 16px 0 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: var(--bone-dim);
}
.ficha__data {
  margin: 20px 0 26px;
  border-top: 1px solid var(--line);
}
.ficha__data > div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.ficha__data dt {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}
.ficha__data dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}
.ficha__pal {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
}
.sw {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sw__chip {
  width: 15px;
  height: 15px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.sw__hex {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: auto;
  padding: 11px 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.4s var(--expo), color 0.4s var(--expo),
    border-color 0.4s var(--expo);
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.45s var(--expo);
}
.btn:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: #0b0c0f;
}
.btn:hover .btn__arrow {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   MÉTODO
   -------------------------------------------------------------------------- */
.metodo {
  position: relative;
  z-index: 4;
  background: var(--bg-2);
  padding: clamp(80px, 9vw, 140px) var(--gutter);
  border-top: 1px solid var(--line);
}
.pasos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px);
  margin: clamp(44px, 5vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}
.paso {
  border-top: 1px solid var(--line-2);
  padding-top: 18px;
}
.paso__n {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bone);
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}
.paso h3 {
  margin: 16px 0 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.paso p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-2);
}
.paso em {
  font-style: normal;
  color: var(--bone-dim);
}

.nota {
  margin: clamp(48px, 6vw, 84px) 0 0;
  max-width: 82ch;
  padding-left: 22px;
  border-left: 2px solid var(--bone);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.nota strong {
  color: var(--ink);
  font-weight: 500;
}
.nota a {
  color: var(--bone);
  border-bottom: 1px solid var(--line-2);
}
.nota a:hover {
  border-color: var(--bone);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  padding: 44px var(--gutter) 52px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer__brand {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer__brand span {
  color: var(--bone);
}
.footer__meta {
  margin: 0;
  font-size: 11px;
  color: var(--ink-3);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.footer__links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.3s var(--expo), border-color 0.3s var(--expo);
}
.footer__links a:hover {
  color: var(--bone);
  border-bottom-color: var(--bone);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .pasos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .fichas {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__copy {
    max-width: min(52ch, 74vw);
  }
  .wall-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 76px var(--gutter) 56vh;
  }
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 20px;
  }
  .hero__hint {
    display: none;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }
  .hero {
    height: 220vh;
  }
  .wall,
  .wall-grid {
    display: none !important;
  }
  .strips {
    display: flex;
    inset: 62px 0 auto;
    justify-content: flex-start;
    padding-bottom: 0;
    gap: 10px;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  }
  .strip__track img {
    width: 46vw;
    height: 88px;
  }
  .hero__copy {
    left: var(--gutter);
    right: var(--gutter);
    bottom: 19vh;
    max-width: none;
  }
  .hero__title {
    font-size: clamp(30px, 8.6vw, 44px);
  }
  .hero__lede {
    font-size: 13px;
  }
  .hero__stats {
    padding: 16px var(--gutter) 20px;
  }
  .hero__stats strong {
    font-size: 24px;
  }
  .hero__stats span {
    font-size: 9.5px;
  }
  .header__nav {
    gap: 16px;
  }
  .ficha__data > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .pasos {
    grid-template-columns: minmax(0, 1fr);
  }
  .filtros__estado {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .strip__track img {
    width: 52vw;
    height: 82px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion: todo visible y quieto, muro 3D en su pose inicial
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero {
    height: 100vh;
  }
  .hero__copy,
  .hero__hint,
  .hero__scrim {
    opacity: 1;
    transform: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .header::after {
    display: none;
  }
  .strip__track {
    transform: none;
  }
}
