:root {
  --bg: #FCFBF7;
  --ink: #0A0A0A;
  --red: #D40000;
  --muted: #8A8A85;
  --line: rgba(10, 10, 10, .12);
  --soft: #EFEDE7;
  --font: "Helvetica Neue", Helvetica, Inter, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(20px, 4vw, 48px);
  --t-title: clamp(26px, 2.8vw, 38px);   /* un solo tamaño para títulos y nombres */
  --t-body: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }

/* ---------- LOGO (shared by intro + top bar) ---------- */
.logo {
  display: inline-block;
  font-weight: 700;
  letter-spacing: -.012em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
}
.logo .l-tudio { display: inline-block; }
.logo .l-num { color: var(--red); }
.logo .l-mark {
  display: inline-block;
  width: .36em;
  height: .36em;
  position: relative;
  bottom: .74em;
  margin-left: .03em;
}
.logo .l-mark svg { display: block; width: 100%; height: 100%; transform: rotate(24deg); fill: var(--ink); }

/* ---------- INTRO ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  overflow: hidden;
  cursor: pointer;
}
body:not(.is-intro) .intro { pointer-events: none; }
.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  margin: -540px 0 0 -960px;
  transform: scale(var(--s, 1));
}
.intro-word {
  position: absolute;
  left: 322px;
  top: 442px;
  font-size: 168px;
}
.intro .logo { opacity: 0; }
.intro .l-tudio { width: 0; overflow-x: clip; overflow-y: visible; vertical-align: bottom; }
.intro .l-tudio > span { display: inline-block; }
.intro .l-mark { opacity: 0; }
.intro-cross {
  position: absolute;
  left: 1055px;
  top: 320px;
  width: 440px;
  height: 440px;
  opacity: 0;
}
.intro-cross svg { display: block; width: 100%; height: 100%; fill: var(--ink); }
.skip {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--gutter) + env(safe-area-inset-bottom));
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn .6s 1.2s var(--ease) forwards;
  transition: color .3s;
}
.skip:hover { color: var(--ink); }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- TOP BAR ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(clamp(20px, 2.6vw, 48px) + env(safe-area-inset-top)) clamp(20px, 2.3vw, 44px) clamp(16px, 1.6vw, 28px);
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.topbar.is-scrolled {
  background: rgba(252, 251, 247, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line);
}
#homeLogo { font-size: clamp(24px, 2.7vw, 52px); transform-origin: 0 0; }
.is-intro #homeLogo { visibility: hidden; }
.topbar-meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .01em;
  transition: opacity .5s var(--ease);
}

.info-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .02em;
  color: #A8A69F;
  text-decoration: none;
  padding: 6px 0;
  transition: color .4s var(--ease), opacity .6s var(--ease);
}
.info-link:hover, body[data-view="info"] .info-link { color: var(--ink); }
.info-link:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- VIEWS ---------- */
.view { display: none; min-height: 100vh; min-height: 100svh; }
.view.is-active { display: block; }
.is-intro .view { visibility: hidden; }
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(120px + env(safe-area-inset-top)) var(--gutter) 120px;
}

.back {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color .3s, transform .4s var(--ease);
}
.back:hover { color: var(--ink); transform: translateX(-3px); }

.display {
  font-size: var(--t-title);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-top: clamp(40px, 7vh, 72px);
  max-width: 22ch;
}
.lead {
  font-size: var(--t-body);
  line-height: 1.55;
  color: #44443F;
  max-width: 600px;
  margin-top: 12px;
}
.label {
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--muted);
  margin-top: clamp(80px, 12vh, 140px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

/* ---------- BUTTONS ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid rgba(10, 10, 10, .16);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.005em;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.pill .arr {
  display: inline-block;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-6px);
  transition: width .45s var(--ease), opacity .45s var(--ease), transform .45s var(--ease);
}
.pill:hover .arr, .pill:focus-visible .arr { width: 1em; opacity: 1; transform: none; }
.pill:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill:active { transform: scale(.97); }
.pill-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill-primary:hover { background: var(--red); border-color: var(--red); }
.pill:focus-visible, .link-btn:focus-visible, .back:focus-visible, .logo:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.pill[disabled] { opacity: .5; pointer-events: none; }
.link-btn {
  font-size: 15px;
  color: var(--muted);
  padding: 12px 0;
  transition: color .3s, opacity .4s;
}
.link-btn:hover { color: var(--ink); }

/* ---------- HOME ---------- */
.view-home.is-active { display: block; position: fixed; inset: 0; overflow: hidden; touch-action: none; }
html:has(body[data-view="home"]), body[data-view="home"] { overflow: hidden; overscroll-behavior: none; height: 100%; }
.home-cross {
  position: absolute;
  left: 71.2%;
  top: 50%;
  width: min(47vw, 83vh);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(24deg);
  pointer-events: none;
}
.home-cross svg {
  display: block; width: 100%; height: 100%;
  fill: var(--ink);
  transition: transform 1.2s var(--ease);
}
.view-home:has(.menu a:nth-child(1):hover) .home-cross svg { transform: rotate(-6deg); }
.view-home:has(.menu a:nth-child(2):hover) .home-cross svg { transform: rotate(8deg); }
.view-home:has(.menu a:nth-child(3):hover) .home-cross svg { transform: rotate(20deg); }
.home-bottom {
  position: absolute;
  left: 8.1vw;
  right: clamp(20px, 2.3vw, 44px);
  bottom: calc(7vh + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: last baseline;
  gap: 16px;
  z-index: 2;
}
.menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}
.menu a {
  font-size: clamp(30px, 3.25vw, 64px);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color .45s var(--ease), transform .6s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.menu a:hover { color: var(--red); transform: translateX(.18em); }
.menu a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

/* ---------- QUOTE ---------- */
.q-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(120px + env(safe-area-inset-top)) var(--gutter) 100px;
}
.q-wrap > * { max-width: 640px; }
.q-top { display: flex; justify-content: space-between; align-items: center; }
.q-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-progress {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin: 18px 0 clamp(40px, 7vh, 72px);
}
.q-progress span {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--ink);
  transition: width .8s var(--ease);
}
.q-step { display: none; }
.q-step.is-active { display: block; }
.q-title {
  font-size: var(--t-title);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.q-hint {
  font-size: var(--t-body);
  color: var(--muted);
  margin: 12px 0 32px;
  line-height: 1.45;
}
.field { display: block; margin-bottom: 28px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .01em;
}
.field label em { font-style: normal; opacity: .6; margin-left: 4px; }
.field input, .field textarea {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.35;
  padding: 10px 0 14px;
  outline: 0;
  resize: none;
  transition: border-color .4s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #C2C0B8; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.field-row .field input { font-size: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.field + .chips { margin-top: 12px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(10, 10, 10, .16);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .3s var(--ease);
}
.chip span:hover { border-color: var(--ink); }
.chip span:active { transform: scale(.96); }
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.q-error { color: var(--red); font-size: 14px; min-height: 20px; margin-top: 20px; }
.q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}
.q-nav .is-hidden { opacity: 0; pointer-events: none; }
.q-done .pill { margin-top: 8px; }

/* ---------- ABOUT ---------- */
.rows { margin-top: clamp(48px, 8vh, 88px); }
.row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: 32px;
  padding: 26px 0 28px;
  border-top: 1px solid var(--line);
}
.row-h h3 { font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.row-h span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.t-mark { display: inline-block; width: .62em; height: .62em; vertical-align: .55em; margin-left: .04em; }
.t-mark svg { display: block; width: 100%; height: 100%; transform: rotate(24deg); fill: var(--ink); }
.row .tags { font-size: 13px; color: var(--muted); margin-top: 14px; letter-spacing: .01em; }
.row p { font-size: var(--t-body); line-height: 1.55; color: #3A3A36; max-width: 640px; }

.contact {
  margin-top: clamp(56px, 9vh, 96px);
  padding-top: 26px;
  border-top: 1px solid var(--ink);
}
.contact-title { font-size: var(--t-title); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.contact-list { list-style: none; margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 32px; }
.contact-list span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.contact-list a { font-size: var(--t-body); color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.contact-list a:hover { color: var(--red); background-size: 100% 1px; }

/* ---------- COLLABORATIONS ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 32px; margin-left: -16px; }
.filters button {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color .3s, border-color .3s, background-color .3s;
}
.filters button:hover { color: var(--ink); }
.filters button.is-active { color: var(--ink); border-color: rgba(10, 10, 10, .16); }
.filters button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.names {
  font-size: var(--t-title);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.03em;
}
.c-name {
  text-decoration: none;
  color: var(--ink);
  transition: color .5s var(--ease), opacity .5s var(--ease);
  white-space: nowrap;
}
.c-arr {
  display: inline-block;
  font-size: .32em;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: super;
  margin-left: .25em;
  color: var(--red);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.c-sep { color: #D9D6CE; font-weight: 400; margin: 0 .22em; }
@media (hover: hover) {
  .names:hover .c-name { color: #C9C6BD; }
  .names .c-name:hover { color: var(--ink); }
  .c-name:hover .c-arr { opacity: 1; transform: none; }
}
.c-name:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 4px; }
.c-name.is-dim { opacity: .14; pointer-events: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  #homeLogo { font-size: 22px; }
  .topbar-meta { display: none; }
  .home-cross { left: 62%; top: 40%; width: 118vw; }
  .home-bottom { left: 20px; right: 20px; bottom: calc(40px + env(safe-area-inset-bottom)); }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .field-row { grid-template-columns: 1fr; }
  .q-nav .pill { padding: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
