/* ───────────────── HANSELMADE ───────────────── */
:root {
  --white: #fefefe;
  --black: #080808;
  --gray: #707070;
  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 2.4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
button { font: inherit; color: inherit; }

.label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gray); }
.home .label { color: #9a9a9a; }
.num { font-variant-numeric: tabular-nums; }
.arrow { display: inline-block; transition: transform .45s var(--ease); }
a:hover .arrow { transform: translateX(4px); }

/* ── header ── */
.top { display: flex; justify-content: space-between; align-items: center; padding: 22px var(--gutter); }
.mark { display: inline-flex; align-items: center; gap: 14px; }
.mark-hm { height: 20px; width: auto; display: block; }
.mark span { font-size: 10.5px; letter-spacing: .42em; font-weight: 500; }
.top nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: 13px; font-weight: 600; }
.dd { position: relative; }
.dd summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary::after { content: ""; width: 6px; height: 6px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
.dd[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.dd-menu { position: absolute; right: 0; top: calc(100% + 12px); min-width: 240px; padding: 6px; border-radius: var(--radius); background: var(--white); color: var(--black); box-shadow: 0 12px 40px rgba(8,8,8,.18); z-index: 60; }
.ficha .dd-menu { background: var(--black); color: var(--white); }
.dd-menu a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 3px; }
.dd-menu a::after { display: none; }
.dd-menu a span:last-child { font-weight: 500; font-size: 12px; color: var(--gray); }
.dd-menu a:hover, .dd-menu a[aria-current] { background: rgba(127,127,127,.12); }
.top nav a { position: relative; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.top nav a:hover::after, .top nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 3px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }

/* ═════════════ HOME (negro, una pantalla) ═════════════ */
body.home { background: var(--black); color: var(--white); }
.home-page { height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; overflow: hidden; }

.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); padding: clamp(8px, 2vh, 28px) var(--gutter) clamp(16px, 3vh, 36px); min-height: 0; }
.intro-text { display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; padding-bottom: 46px; }
.intro h1 { font-size: clamp(38px, 5.2vw, 92px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.intro p { color: #9a9a9a; font-weight: 500; font-size: clamp(14px, 1.1vw, 17px); max-width: 34ch; }

.feature { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-height: 0; }
.fcard { display: flex; flex-direction: column; min-height: 0; }
.fcard-media { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: var(--radius); background: #161616; }
.fcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.fcard:hover .fcard-media img { transform: scale(1.04); }
.fcard-media .pill { position: absolute; top: 10px; left: 10px; background: var(--white); color: var(--black); }
.fcard-media .pill.dark { background: var(--black); color: var(--white); }
.fcard-cap { padding-top: 12px; height: 46px; }
.fcard-cap strong { display: block; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.fcard-cap span { display: block; color: #9a9a9a; font-weight: 500; font-size: 13px; }
.fcard-hm { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(54px, 5.4vw, 92px); height: auto; color: var(--white); z-index: 2; }
.fcard.studio .fcard-media::after { content: ""; position: absolute; inset: 0; background: rgba(8,8,8,.42); transition: background .6s var(--ease); }
.fcard.studio:hover .fcard-media::after { background: rgba(8,8,8,.25); }

.works { padding: 0 0 clamp(12px, 2vh, 22px); }
.works-head { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gutter) 12px; }
.works-nav { display: flex; gap: 6px; }
.works-nav { gap: 18px; }
.works-nav button { padding: 6px 0; border: 0; background: none; cursor: pointer; color: #9a9a9a; display: grid; place-items: center; transition: color .3s, transform .4s var(--ease); }
.works-nav button:hover { color: var(--white); }
.works-nav button:first-child:hover { transform: translateX(-3px); }
.works-nav button:last-child:hover { transform: translateX(3px); }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-inline: var(--gutter); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.work { all: unset; box-sizing: border-box; cursor: pointer; display: block; position: relative; flex: 0 0 clamp(260px, 30vw, 500px); height: clamp(120px, 23vh, 250px); border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; background: #141414; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work:hover img { transform: scale(1.04); }
.work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,8,0) 45%, rgba(8,8,8,.6) 100%); pointer-events: none; }
.work-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #1f1f1f; }
.work-ph svg { width: 70px; }
.work-info { position: absolute; inset: auto 14px 12px 14px; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.work:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.work-info .pill { background: var(--white); color: var(--black); }
.work-info h3 { font-size: clamp(18px, 1.7vw, 26px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.work-info .pill { border: 1px solid rgba(254,254,254,.45); }

.bottom { display: flex; justify-content: space-between; gap: 16px; padding: 14px var(--gutter) 18px; font-size: 12px; font-weight: 500; color: #9a9a9a; border-top: 1px solid rgba(254,254,254,.1); }
.bottom a:hover { color: var(--white); }

/* ═════════════ FICHA (blanco, detalles en negro) ═════════════ */
body.ficha { background: var(--white); color: var(--black); }
.ficha .top { position: sticky; top: 0; z-index: 40; background: rgba(254,254,254,.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(8,8,8,.08); }
.wrap { padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 140px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--black); padding-top: 12px; margin-bottom: clamp(32px, 4.5vw, 64px); }

.f-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); padding: clamp(12px, 2vw, 28px) var(--gutter) 0; height: calc(100svh - 70px); min-height: 600px; }
.f-hero-text { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-top: 12px; }
.f-hero-media { position: relative; overflow: hidden; border-radius: var(--radius); background: #eee; }
.f-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.f-title { font-size: clamp(56px, 7.4vw, 132px); line-height: .9; letter-spacing: -.055em; font-weight: 500; margin-top: 18px; }
.f-title span { color: var(--gray); }
.f-loc { font-size: clamp(16px, 1.4vw, 20px); margin-top: 18px; font-weight: 500; letter-spacing: -.01em; }
.f-lede { margin-top: 14px; max-width: 42ch; color: var(--gray); }
.f-price { font-size: clamp(28px, 2.8vw, 44px); letter-spacing: -.035em; line-height: 1; font-weight: 500; margin-top: 6px; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--black); border-bottom: 1px solid rgba(8,8,8,.12); }
.specs div { padding: 12px 14px 14px; }
.specs div:first-child { padding-left: 0; }
.specs div:last-child { padding-right: 0; }
.specs div:not(:last-child) { border-right: 1px solid rgba(8,8,8,.12); }
.specs .v { font-size: 18px; font-weight: 500; letter-spacing: -.015em; margin-top: 2px; display: block; }
.f-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.price-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 3px; border: 1px solid var(--black); background: var(--black); color: var(--white); font-size: 13px; font-weight: 600; transition: background .3s, color .3s; }
.btn:hover { background: transparent; color: var(--black); }
.btn.ghost { background: transparent; color: var(--black); }
.btn.ghost:hover { background: var(--black); color: var(--white); }
.btn.light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn.light:hover { background: transparent; color: var(--white); }

.sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.sheet h3 { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--black); }
.sheet h3 span:last-child { color: var(--gray); font-weight: 500; }
.sheet li { display: grid; grid-template-columns: 32px 1fr; padding: 11px 0; border-bottom: 1px solid rgba(8,8,8,.12); font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.sheet li span { color: var(--gray); font-size: 12px; padding-top: 3px; font-weight: 500; }
.sheet dl { margin: 0; }
.sheet dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(8,8,8,.12); }
.sheet dt { color: var(--gray); font-size: 14px; }
.sheet dd { margin: 0; font-size: 16px; font-weight: 500; text-align: right; letter-spacing: -.01em; }

.tour { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gutter); align-items: start; }
.statement { font-size: clamp(28px, 3.4vw, 54px); line-height: 1.05; letter-spacing: -.04em; font-weight: 500; }
.videos { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 360px)); gap: 12px; }
.player { position: relative; background: var(--black); overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player .play { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(8,8,8,.15); display: grid; place-items: center; cursor: pointer; transition: opacity .4s; }
.player .play span { height: 44px; padding: 0 20px; border-radius: 3px; background: var(--white); color: var(--black); display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; }
.player.is-playing .play { opacity: 0; pointer-events: none; }

.gallery { columns: 3; column-gap: 10px; }
.gallery button { all: unset; display: block; margin-bottom: 10px; cursor: zoom-in; break-inside: avoid; overflow: hidden; border-radius: var(--radius); background: #eee; }
.gallery img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery button:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,8,.97); display: none; color: var(--white); }
.lb.open { display: block; }
.lb img { position: absolute; top: 64px; left: calc(var(--gutter) + 60px); width: calc(100% - 2 * var(--gutter) - 120px); height: calc(100% - 128px); object-fit: contain; cursor: e-resize; }
.lb-bar { position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter); font-size: 13px; font-weight: 500; }
.lb button { all: unset; cursor: pointer; }
.lb { cursor: zoom-out; }
.lb .lb-prev, .lb .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--white); background: rgba(254,254,254,.08); transition: background .3s; cursor: pointer; }
.lb .lb-prev:hover, .lb .lb-next:hover { background: rgba(254,254,254,.18); }
.lb-prev { left: var(--gutter); } .lb-next { right: var(--gutter); }

.cta-band { display: flex; justify-content: space-between; gap: 32px; align-items: end; flex-wrap: wrap; border-top: 1px solid var(--black); padding-top: 18px; }
.cta-band h2 { font-size: clamp(34px, 5vw, 84px); line-height: .98; letter-spacing: -.05em; font-weight: 500; }
.cta-band h2 span { color: var(--gray); }

.next { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin: 0 var(--gutter); padding: var(--gutter); background: var(--black); color: var(--white); border-radius: var(--radius); min-height: 60svh; }
.next-text { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 8px; }
.next-title { font-size: clamp(48px, 7vw, 120px); line-height: 1.02; letter-spacing: -.055em; font-weight: 500; }
.next-sub { margin-top: clamp(18px, 2vw, 28px); color: #9a9a9a; font-size: clamp(14px, 1.2vw, 17px); font-weight: 500; }
.next-title span { color: var(--gray); }
.next-media { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 280px; }
.next-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.next:hover .next-media img { transform: scale(1.04); }
.f-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px var(--gutter); font-size: 12px; color: var(--gray); }
.f-foot a:hover { color: var(--black); }

.rv { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ── responsive ── */
@media (max-width: 900px) {
  /* en celular la home sí scrollea: no entra todo en una pantalla */
  .home-page { height: auto; min-height: 100svh; overflow: visible; }
  .intro { grid-template-columns: 1fr; }
  .intro-text { padding: 28px 0 8px; }
  .feature { grid-template-columns: 1fr 1fr; }
  .fcard-media { flex: none; aspect-ratio: 4 / 5; }
  .fcard:last-child { grid-column: 1 / -1; }
  .fcard:last-child .fcard-media { aspect-ratio: 16 / 9; }
  .work { flex-basis: 78vw; height: 200px; }
  .works { padding-top: 28px; }

  .f-hero { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .f-hero-media { order: -1; height: 64svh; }
  .sheet { grid-template-columns: 1fr; gap: 44px; }
  .tour { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
  .next { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lb img { top: 56px; left: 8px; width: calc(100% - 16px); height: calc(100% - 112px); }
  .lb .lb-prev, .lb .lb-next { display: none; }
  .mark span, .top nav .hide-sm { display: none; }
  .dd summary { font-size: 12px; }
  .dd-menu { right: -60px; }
  .bottom { flex-direction: column; gap: 6px; }
  .gallery { column-gap: 8px; } .gallery button { margin-bottom: 8px; }
}
