:root {
  /* paleta (la cambia datos.js según la elegida en el panel; por defecto C · Bosque y madera) */
  --ink: #1F3A2F;
  --sec: #4F6F52;
  --amber: #A67C52;
  --stone: #E8E1D3;
  --bone: #F7F5F0;
  /* tonos derivados */
  --ink-2: color-mix(in srgb, var(--ink) 92%, #fff);
  --ink-3: color-mix(in srgb, var(--ink) 82%, #fff);
  --sand: color-mix(in srgb, var(--stone) 80%, var(--ink));
  --amber-soft: color-mix(in srgb, var(--amber) 70%, #fff);
  --on-dark: var(--bone);
  --on-dark-2: color-mix(in srgb, var(--bone) 62%, var(--ink));
  --on-light: var(--ink);
  --on-light-2: color-mix(in srgb, var(--sec) 85%, var(--bone));
  --line-dark: color-mix(in srgb, var(--bone) 14%, transparent);
  --line-light: color-mix(in srgb, var(--ink) 14%, transparent);
  --wa: #25D366;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --display: "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(96px, 13vw, 180px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink-3) var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font: 400 17px/1.6 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  caret-color: transparent;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.04em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
input, textarea { caret-color: var(--amber); }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { padding-inline: var(--gutter); max-width: 1600px; margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.label { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-2); }
.label span { color: var(--amber); margin-right: 8px; }

/* ---------- Carga ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--ink);
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1100ms var(--ease-in-out);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__draw { width: min(70vw, 520px); overflow: visible; transition: transform 1100ms var(--ease-in-out), opacity 700ms ease; }
.loader.is-done .loader__draw { transform: translateY(-12vh); opacity: 0; }
.loader__draw path {
  stroke: var(--on-dark-2); stroke-width: 1; stroke-linecap: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 900ms var(--ease-out), stroke 500ms ease;
}
.loader__draw path.on { stroke-dashoffset: 0; }
.loader__draw path:last-child { stroke: var(--amber); }
.loader__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
}
.loader__brand { font: 500 clamp(24px, 3vw, 36px)/1 var(--display); letter-spacing: -0.04em; }
.loader__brand sup { font-size: 0.4em; color: var(--on-dark-2); }
.loader__label { font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-2); }
.loader__count { font: 200 clamp(48px, 9vw, 120px)/0.85 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.loader__count small { font-size: 0.35em; color: var(--amber); margin-left: 4px; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  transition: transform 600ms var(--ease-out), opacity 600ms ease;
}
.is-loading .nav { opacity: 0; transform: translateY(-20px); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: flex; align-items: center; gap: 10px; font: 600 15px/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; justify-self: start; }
.nav__brand { white-space: nowrap; }
.nav__brand small { font-size: inherit; font-weight: 400; opacity: 0.7; }
@media (max-width: 1180px) { .nav__brand small { display: none; } }
@media (min-width: 901px) and (max-width: 1100px) { .nav__brand { letter-spacing: 0.1em; font-size: 13px; } .nav__pill a { padding: 8px 10px; font-size: 13px; } }
@media (max-width: 560px) { .nav__brand small { display: none; } .nav__brand { letter-spacing: 0.14em; } }
.nav__brand svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.glass, .nav__pill, .nav__cta {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}
.nav__pill { position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 999px; }
.nav__pill a { position: relative; z-index: 1; padding: 9px 18px; border-radius: 999px; font-size: 14px; color: rgba(255, 255, 255, 0.86); transition: color 300ms ease; }
.nav__pill a.is-active { color: var(--ink); }
.nav__dot {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px;
  background: var(--bone); opacity: 0;
  transition: transform 600ms var(--ease-out), width 600ms var(--ease-out), opacity 300ms ease;
}
.nav__cta { justify-self: end; padding: 11px 20px; border-radius: 999px; font-size: 14px; transition: background 300ms ease, color 300ms ease; }
.nav__cta:hover { background: var(--bone); color: var(--ink); }
.nav.on-light .nav__brand { color: var(--on-light); }
.nav.on-light .nav__pill, .nav.on-light .nav__cta { background: rgba(25, 23, 21, 0.06); border-color: rgba(25, 23, 21, 0.12); color: var(--on-light); }
.nav.on-light .nav__pill a { color: var(--on-light-2); }
.nav.on-light .nav__pill a.is-active { color: var(--bone); }
.nav.on-light .nav__dot { background: var(--ink); }
.nav.on-light .nav__cta:hover { background: var(--ink); color: var(--bone); }
.nav__burger { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path 700ms var(--ease-in-out);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu nav { display: grid; gap: 4px; }
.menu a { display: flex; align-items: baseline; gap: 14px; font: 300 clamp(40px, 11vw, 64px)/1.08 var(--display); letter-spacing: -0.05em; }
.menu small { font: 500 12px/1 var(--mono); color: var(--amber); }
.menu p { color: var(--on-dark-2); font-size: 15px; }

/* ---------- Inicio ---------- */
.hero { position: relative; height: 200vh; background: var(--ink); }
.hero__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hero__frame {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(var(--ci, 0px) var(--cx, 0px) round var(--cr, 0px));
}
.hero__zoom { position: absolute; inset: 0; transform: scale(1.16); transition: transform 2800ms var(--ease-out); }
.is-ready .hero__zoom { transform: none; }
.hero__img {
  position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; object-position: 50% 62%;
  transform: translate3d(var(--mx, 0px), var(--iy, 0px), 0) scale(var(--ps, 1));
}
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 12, 10, 0.72) 0%, rgba(14, 12, 10, 0.28) 42%, rgba(14, 12, 10, 0) 70%),
    linear-gradient(0deg, rgba(14, 12, 10, 0.75) 0%, rgba(14, 12, 10, 0) 38%),
    linear-gradient(180deg, rgba(14, 12, 10, 0.35) 0%, rgba(14, 12, 10, 0) 22%);
}
.hero__word {
  position: absolute; left: 0; right: 0; top: 9vh;
  text-align: center; white-space: nowrap; font: 600 13vw/0.8 var(--display); letter-spacing: -0.06em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 10%, rgba(255, 255, 255, 0.08) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translate3d(0, var(--wy, 0px), 0); opacity: var(--wo, 1);
  pointer-events: none; user-select: none;
}
.hero__word .ch { display: inline-block; transform: translateY(40%); opacity: 0; filter: blur(14px); transition: transform 1600ms var(--ease-out), opacity 1400ms ease, filter 1400ms ease; transition-delay: calc(var(--i) * 70ms); }
.is-ready .hero__word .ch { transform: none; opacity: 1; filter: none; }
.hero__inner {
  position: absolute; left: var(--gutter); bottom: clamp(88px, 13vh, 140px); max-width: 640px;
  transform: translate3d(0, var(--ty, 0px), 0); opacity: var(--op, 1);
}
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-soft); margin-bottom: 20px; }
.hero__title { font-family: 'Archivo', var(--display); font-size: clamp(40px, 5.6vw, 92px); line-height: 0.98; font-weight: 700; letter-spacing: -0.035em; }
.hero__title .line > span { white-space: nowrap; }
.hero__title em { color: var(--amber-soft); font-family: 'Archivo', var(--display); font-style: italic; font-weight: 600; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.04em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1300ms var(--ease-out); }
.hero__title .line:nth-child(2) > span { transition-delay: 90ms; }
.hero__title .line:nth-child(3) > span { transition-delay: 180ms; }
.is-ready .hero__title .line > span { transform: none; }
.hero__lead { max-width: 44ch; margin-top: 22px; font-size: clamp(15px, 1.2vw, 18px); color: rgba(242, 238, 231, 0.82); }
.reveal-hero { opacity: 0; transform: translateY(16px); filter: blur(8px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out), filter 900ms var(--ease-out); }
.is-ready .reveal-hero { opacity: 1; transform: none; filter: none; }
.is-ready .hero__lead { transition-delay: 380ms; }
.is-ready .hero__inner .pill-cta { transition-delay: 480ms; }
.is-ready .hero__stats .glass:nth-child(1) { transition-delay: 640ms; }
.is-ready .hero__stats .glass:nth-child(2) { transition-delay: 760ms; }
.is-ready .hero__foot { transition-delay: 900ms; }

.pill-cta {
  display: inline-flex; align-items: center; gap: 18px; margin-top: 32px;
  padding: 7px 7px 7px 26px; border-radius: 999px;
  background: var(--bone); color: var(--ink); font-size: 15px; font-weight: 500;
  border: 0; cursor: pointer; font-family: inherit;
}
.pill-cta i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bone); overflow: hidden; }
.pill-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 500ms var(--ease-out); }
.pill-cta:hover svg { animation: arrow 700ms var(--ease-out); }
@keyframes arrow { 0% { transform: none; } 45% { transform: translateX(28px); } 46% { transform: translateX(-28px); } 100% { transform: none; } }
.pill-cta--dark { background: var(--ink); color: var(--bone); }
.pill-cta--dark i { background: var(--amber); color: var(--ink); }

.hero__stats {
  position: absolute; right: var(--gutter); bottom: clamp(88px, 13vh, 140px);
  display: grid; gap: 12px; width: min(260px, 26vw);
  transform: translate3d(var(--sx, 0px), 0, 0); opacity: var(--op, 1);
}
.hero__stats .glass { padding: 18px 20px; border-radius: 20px; }
.hero__stats b { display: block; font: 300 40px/1 var(--display); letter-spacing: -0.04em; margin-bottom: 8px; }
.hero__stats span { display: block; font-size: 13px; line-height: 1.4; color: rgba(242, 238, 231, 0.78); }
.hero__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(242, 238, 231, 0.7); opacity: var(--op, 1);
}
.hero__scrollhint { display: flex; align-items: center; gap: 12px; }
.hero__scrollhint i { position: relative; width: 36px; height: 1px; background: rgba(242, 238, 231, 0.25); overflow: hidden; }
.hero__scrollhint i::after { content: ""; position: absolute; inset: 0; background: var(--amber); animation: slide 2.2s var(--ease-in-out) infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- Revelado ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Estudio ---------- */
.studio { background: var(--bone); color: var(--on-light); padding-block: var(--section); }
.studio .label { color: var(--on-light-2); }
.studio__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px clamp(16px, 2vw, 32px); }
.studio__grid .label { grid-column: 1 / -1; }
.studio__text { grid-column: 1 / span 11; font: 300 clamp(30px, 4.4vw, 68px)/1.08 var(--display); letter-spacing: -0.045em; text-indent: 16%; }
.studio__text .w { color: rgba(25, 23, 21, 0.16); transition: color 500ms ease; }
.studio__text .w.on { color: var(--on-light); }
.studio__fig { grid-column: 2 / span 4; margin: clamp(40px, 6vw, 96px) 0 0; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; }
.studio__side { grid-column: 8 / span 4; align-self: end; display: grid; gap: 28px; font-size: 17px; color: var(--on-light-2); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--on-light); font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 6px; justify-self: start; }
.link-arrow svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 400ms var(--ease-out); }
.link-arrow:hover svg { transform: translateX(6px); }
.pmedia { position: relative; width: 100%; height: 100%; overflow: hidden; }
.pmedia img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); }

/* ---------- Franja ---------- */
.ticker { background: var(--bone); color: var(--on-light); border-block: 1px solid var(--line-light); overflow: hidden; padding-block: 22px; }
.ticker__track { display: flex; width: max-content; align-items: center; gap: 36px; will-change: transform; }
.ticker span { font: 300 clamp(36px, 5vw, 72px)/1 var(--display); letter-spacing: -0.05em; white-space: nowrap; }
.ticker span:nth-of-type(even) { font-family: var(--serif); font-style: italic; font-weight: 400; }
.ticker i { font-style: normal; color: var(--amber); font-size: 24px; }

/* ---------- Proyectos ---------- */
.works { position: relative; background: var(--stone); color: var(--on-light); }
.works__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.works__head { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.works .label { color: var(--on-light-2); }
.works__count { color: var(--on-light-2); }
.works__count b { color: var(--on-light); font-weight: 500; }
.works__track { display: flex; gap: clamp(16px, 2.2vw, 36px); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.work { flex: none; width: clamp(300px, 56vw, 980px); }
.work__media { position: relative; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: var(--sand); }
.work__media img { position: absolute; top: 0; left: -10%; width: 120%; height: 100%; object-fit: cover; transform: translate3d(var(--wx, 0%), 0, 0) scale(1.02); transition: scale 900ms var(--ease-out); }
.work:hover .work__media img { scale: 1.06; }
.work__meta { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 4px 18px; padding: 18px 4px 0; }
.work__meta .mono { color: var(--amber); grid-row: span 2; }
.work__meta h3 { font-size: clamp(22px, 2.2vw, 34px); font-weight: 400; letter-spacing: -0.04em; }
.work__meta p { grid-column: 2; color: var(--on-light-2); font-size: 15px; }
.work__meta ul { grid-column: 3; grid-row: 1 / span 2; display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; align-self: center; }
.work__meta li { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line-light); border-radius: 999px; white-space: nowrap; }
.work--intro { width: clamp(280px, 30vw, 480px); display: flex; flex-direction: column; justify-content: space-between; padding-block: 8px 70px; }
.work--intro h2 { font-size: clamp(42px, 5vw, 84px); line-height: 0.95; letter-spacing: -0.055em; font-weight: 200; }
.work--intro p { color: var(--on-light-2); max-width: 34ch; }
.works__bar { width: 100%; }
.works__bar::before { content: ""; display: block; height: 1px; background: var(--line-light); }
.works__bar i { display: block; height: 2px; margin-top: -1.5px; width: 100%; background: var(--on-light); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Servicios ---------- */
.services { position: relative; background: var(--ink); padding-block: var(--section); }
.services__head { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; margin-bottom: clamp(48px, 7vw, 100px); align-items: start; }
.services__head h2 { font-size: clamp(36px, 4.6vw, 72px); line-height: 1; }
.services__head em { color: var(--amber-soft); }
.svc-list { position: relative; z-index: 6; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.svc { border-bottom: 1px solid var(--line-dark); }
.svc__row {
  width: 100%; display: grid; grid-template-columns: 80px 1fr 40px; align-items: center; gap: 16px;
  padding: clamp(22px, 2.6vw, 38px) 0; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; font-family: inherit;
}
.svc__row .mono { color: var(--on-dark-2); }
.svc__name { font: 300 clamp(28px, 4.4vw, 68px)/1 var(--display); letter-spacing: -0.05em; transition: transform 700ms var(--ease-out), color 400ms ease; }
.svc__row i { position: relative; width: 22px; height: 22px; justify-self: end; }
.svc__row i::before, .svc__row i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform 500ms var(--ease-out); }
.svc__row i::after { transform: rotate(90deg); }
.svc.is-open .svc__row i::after { transform: rotate(0deg); }
.svc-list:hover .svc__name { color: var(--on-dark-2); }
.svc-list .svc:hover .svc__name, .svc.is-open .svc__name { color: var(--on-dark); transform: translateX(18px); }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 700ms var(--ease-out); }
.svc.is-open .svc__body { grid-template-rows: 1fr; }
.svc__body > div { overflow: hidden; display: grid; grid-template-columns: 80px minmax(0, 46ch) 1fr; gap: 16px; }
.svc__body p { grid-column: 2; padding-bottom: 32px; color: var(--on-dark-2); font-size: 17px; }
.svc__body img { display: none; }
.svc-float {
  position: fixed; left: 0; top: 0; z-index: 5; width: 300px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate3d(var(--fx, 0px), var(--fy, 0px), 0) rotate(var(--fr, 0deg)) scale(var(--fs, 0.6));
  transition: opacity 400ms ease;
}
.svc-float.is-on { opacity: 1; }
.svc-float img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Proceso ---------- */
.process { position: relative; background: var(--ink-2); display: grid; grid-template-columns: 1fr 1fr; }
.process__sticky { position: sticky; top: 0; height: 100svh; padding: 96px 0 var(--gutter) var(--gutter); }
.process__frame { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: var(--ink-3); }
.process__layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1000ms ease, transform 1600ms var(--ease-out); }
.process__layer.is-active { opacity: 1; transform: none; }
.process__num { position: absolute; left: 20px; bottom: 18px; padding: 8px 12px; border-radius: 999px; background: rgba(18, 17, 16, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--bone); }
.process__steps { position: relative; padding: calc(var(--section) * 0.8) var(--gutter) 35vh clamp(32px, 6vw, 110px); }
.process__title { font-size: clamp(38px, 4.4vw, 72px); line-height: 1; margin: 24px 0 14vh; }
.process__title em { color: var(--amber-soft); }
.step { padding: 6vh 0 6vh 28px; border-left: 1px solid var(--line-dark); opacity: 0.28; transition: opacity 600ms ease, border-color 600ms ease; }
.step.is-active { opacity: 1; border-color: var(--amber); }
.step .mono { color: var(--amber); }
.step h3 { font-size: clamp(32px, 3.2vw, 52px); margin: 14px 0 12px; }
.step p { color: var(--on-dark-2); max-width: 42ch; }
.process__bar { position: absolute; right: var(--gutter); top: 30vh; bottom: 30vh; width: 1px; background: var(--line-dark); }
.process__bar i { position: absolute; top: 0; left: -1px; width: 3px; height: 100%; background: var(--amber); border-radius: 2px; transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }

/* ---------- Cifras ---------- */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: var(--section); gap: 24px; }
.fig { border-top: 1px solid var(--line-dark); padding-top: 24px; }
.fig b { display: block; font: 200 clamp(56px, 7vw, 120px)/1 var(--display); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.fig span { display: block; margin-top: 12px; color: var(--on-dark-2); }

/* ---------- Visión ---------- */
.vision { position: relative; height: 240vh; }
.vision__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.vision__frame { position: absolute; inset: 0; clip-path: inset(var(--vi, 18%) var(--vx, 24%) round var(--vr, 24px)); }
.vision__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--vz, 1.25)); }
.vision__frame::after { content: ""; position: absolute; inset: 0; background: rgba(18, 17, 16, calc(var(--vo, 0) * 0.45)); }
.vision__quote {
  position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: 12vh; margin: 0; max-width: 1100px;
  opacity: var(--vo, 0); transform: translateY(calc((1 - var(--vo, 0)) * 40px));
}
.vision__quote p { font: 300 clamp(34px, 5vw, 84px)/1.02 var(--display); letter-spacing: -0.05em; }
.vision__quote em { color: var(--amber-soft); }
.vision__quote footer { margin-top: 24px; font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone); }

/* ---------- Contacto ---------- */
.contact { background: var(--bone); color: var(--on-light); padding-block: var(--section); }
.contact .label { color: var(--on-light-2); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); }
.contact__title { font-size: clamp(44px, 6vw, 100px); line-height: 0.95; letter-spacing: -0.055em; font-weight: 200; margin: 24px 0 56px; }
.contact__info { display: grid; gap: 22px; margin: 0; }
.contact__info div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line-light); }
.contact__info dt { font: 500 12px/1.8 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-light-2); }
.contact__info dd { margin: 0; }
.contact__info a { border-bottom: 1px solid currentColor; }
.form { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 44px); border-radius: 28px; background: color-mix(in srgb, var(--bone) 50%, #fff); border: 1px solid var(--line-light); }
.chips { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-light-2); margin-bottom: 16px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-light); font-size: 14px; cursor: pointer; transition: background 300ms ease, color 300ms ease, border-color 300ms ease; }
.chips input:checked + span { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; padding: 26px 0 12px; border: 0; border-bottom: 1px solid var(--line-light); background: none;
  font: 400 18px/1.4 var(--display); color: var(--on-light); resize: vertical; outline: none; transition: border-color 300ms ease;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field span { position: absolute; left: 0; top: 26px; color: var(--on-light-2); pointer-events: none; transform-origin: 0 0; transition: transform 400ms var(--ease-out), color 300ms ease; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-22px) scale(0.72); }
.field.is-error input { border-color: #B4462E; }
.form .pill-cta { justify-self: start; margin-top: 18px; }
.form__ok { min-height: 1.6em; font-size: 15px; color: var(--on-light-2); }

/* ---------- Pie ---------- */
.foot { background: var(--ink); padding-top: clamp(64px, 8vw, 110px); overflow: hidden; }
.foot__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; color: var(--on-dark-2); }
.foot__top p { font: 300 clamp(22px, 2vw, 30px)/1.2 var(--display); letter-spacing: -0.03em; color: var(--on-dark); }
.foot__top nav { display: grid; gap: 8px; align-content: start; }
.foot__top a:hover { color: var(--on-dark); }
.foot__word {
  margin-top: clamp(40px, 6vw, 80px); text-align: center; white-space: nowrap; font: 600 14vw/0.82 var(--display); letter-spacing: -0.065em; padding-bottom: 0.04em;
  background: url("/media/o-casa-terrazas-800.webp") var(--bx, 50%) var(--by, 50%) / 130% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot__bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 28px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--on-dark-2); }

/* ---------- Pantallas medianas y celulares ---------- */
@media (max-width: 1100px) {
  .nav__pill a { padding: 9px 13px; }
}
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; padding-block: 14px; }
  .nav__pill, .nav__cta { display: none; }
  .nav__burger {
    display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.24); color: var(--bone); cursor: pointer;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .nav.on-light .nav__burger { background: rgba(25, 23, 21, 0.06); border-color: rgba(25, 23, 21, 0.12); color: var(--on-light); }
  .nav.menu-open .nav__burger, .nav.menu-open .nav__brand { color: var(--bone); }
  .nav__burger i { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform 500ms var(--ease-out); }
  .nav.menu-open .nav__burger i:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.menu-open .nav__burger i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .hero { height: 160vh; }
  .hero__img { object-position: 64% 50%; }
  .hero__word { top: 13vh; }
  .hero__veil { background: linear-gradient(0deg, rgba(14, 12, 10, 0.9) 0%, rgba(14, 12, 10, 0.5) 48%, rgba(14, 12, 10, 0.1) 75%, rgba(14, 12, 10, 0.4) 100%); }
  .hero__inner { right: var(--gutter); bottom: 172px; }
  .hero__lead { font-size: 15px; }
  .pill-cta { margin-top: 24px; }
  .hero__stats { left: var(--gutter); right: var(--gutter); bottom: 64px; width: auto; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero__stats .glass { padding: 12px 14px; border-radius: 16px; }
  .hero__stats b { font-size: 26px; margin-bottom: 4px; }
  .hero__stats span { font-size: 11.5px; }
  .hero__foot { bottom: 20px; }
  .hero__foot .mono { display: none; }

  .studio__text { grid-column: 1 / -1; text-indent: 0; }
  .studio__fig { grid-column: 1 / span 7; }
  .studio__side { grid-column: 1 / -1; }

  .work { width: 84vw; }
  .work--intro { width: 78vw; padding-bottom: 20px; }
  .work__meta { grid-template-columns: auto 1fr; }
  .work__meta ul { grid-column: 1 / -1; grid-row: auto; margin-top: 10px; flex-wrap: wrap; }

  .services__head { grid-template-columns: 1fr; }
  .svc__row { grid-template-columns: 36px 1fr 24px; }
  .svc__body > div { grid-template-columns: 1fr; }
  .svc__body p { grid-column: 1; padding-bottom: 16px; font-size: 15px; }
  .svc__body img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; margin-bottom: 24px; }
  .svc-float { display: none; }

  .process { grid-template-columns: 1fr; }
  .process__sticky { z-index: 1; height: 46svh; padding: 76px var(--gutter) 10px; background: var(--ink-2); }
  .process__steps { padding: 48px var(--gutter) 30vh; }
  .process__title { margin-bottom: 4vh; }
  .step { padding-block: 4vh; }
  .process__bar { display: none; }

  .figures { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .vision { height: 200vh; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__info div { grid-template-columns: 1fr; gap: 4px; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__top p { grid-column: 1 / -1; }
  .foot__bottom { flex-direction: column; }
}


/* =====================================================================
   Michael Serna Kam: piezas nuevas
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-pendiente { cursor: default; }

/* ---------- Inicio ---------- */
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 32px; }
.hero__actions .pill-cta { margin-top: 0; }
.ghost-cta { color: var(--on-dark); font-size: 15px; font-weight: 500; border-bottom: 1px solid color-mix(in srgb, var(--bone) 45%, transparent); padding-bottom: 4px; transition: border-color 300ms ease; }
.ghost-cta:hover { border-color: var(--amber); }
.ghost-cta.is-pendiente { opacity: 0.55; }
.is-ready .hero__actions { transition-delay: 480ms; }
.hero__stats { width: min(300px, 28vw); }
.hero__stats .glass { position: relative; display: block; padding: 16px 44px 16px 18px; color: var(--on-dark); transition: background 400ms ease, transform 500ms var(--ease-out); }
.hero__stats .glass:hover { background: rgba(255, 255, 255, 0.2); transform: translateX(-6px); }
.hero__stats small { display: block; color: var(--amber-soft); font-size: 10.5px; margin-bottom: 6px; }
.hero__stats b { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; margin-bottom: 4px; }
.hero__stats i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 18px; color: var(--amber-soft); }

/* ---------- Perfil ---------- */
.studio__text { font-weight: 300; }
.studio__text em { color: inherit; }
.studio__fig { display: grid; grid-template-rows: 1fr auto; aspect-ratio: auto; overflow: visible; border-radius: 0; }
.studio__fig .pmedia { aspect-ratio: 4 / 5; border-radius: 22px; }
.studio__fig figcaption { margin-top: 12px; color: var(--on-light-2); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--on-light); }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); transform: translateY(-1px); }

/* ---------- Dos líneas ---------- */
.lines { background: var(--bone); color: var(--on-light); padding-block: 0 var(--section); }
.lines .label { color: var(--on-light-2); }
.lines__head { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: end; padding-top: var(--section); margin-bottom: clamp(40px, 5vw, 72px); }
.lines__head h2 { font-size: clamp(36px, 4.6vw, 72px); line-height: 1; }
.lines__head em { color: var(--sec); }
.lines__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 32px); }
.line-card { position: relative; display: block; border-radius: 28px; overflow: hidden; min-height: clamp(460px, 48vw, 680px); color: var(--bone); isolation: isolate; }
.line-card__media { position: absolute; inset: 0; z-index: -1; }
.line-card__media img { transition: scale 1200ms var(--ease-out); }
.line-card:hover .line-card__media img { scale: 1.06; }
.line-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.25) 55%, rgba(10, 10, 10, 0.05) 100%); }
.line-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 3vw, 40px); display: grid; gap: 12px; }
.line-card__body .mono { color: var(--amber-soft); }
.line-card h3 { font-size: clamp(32px, 3.6vw, 56px); line-height: 1; font-weight: 300; }
.line-card p { max-width: 42ch; color: rgba(255, 255, 255, 0.82); }
.line-card__go { display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin-top: 8px; padding: 10px 18px; border-radius: 999px; background: var(--bone); color: var(--ink); font-weight: 500; font-size: 14px; }
.line-card__go svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 400ms var(--ease-out); }
.line-card:hover .line-card__go svg { transform: translateX(5px); }

/* ---------- Obras ---------- */
.work__media { display: block; width: 100%; padding: 0; border: 0; cursor: pointer; font: inherit; color: inherit; }
.work__fotos { position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(15, 15, 15, 0.55); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 11px; transition: background 300ms ease, color 300ms ease; }
.work__media:hover .work__fotos { background: var(--amber); color: var(--ink); }

/* ---------- Mapa ---------- */
.map-sec { background: var(--ink); padding-block: var(--section); }
.map-sec__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; margin-bottom: 36px; }
.map-sec__head h2 { font-size: clamp(36px, 4.6vw, 72px); line-height: 1; margin-top: 20px; }
.map-sec__head em { color: var(--amber-soft); }
.map-sec__head > p { color: var(--on-dark-2); max-width: 46ch; }
.map-sec__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-dark); background: none; color: var(--on-dark); font: 500 14px/1 var(--display); cursor: pointer; transition: background 300ms ease, color 300ms ease, border-color 300ms ease; }
.chip:hover { border-color: var(--on-dark-2); }
.chip.is-on { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.select select { appearance: none; padding: 9px 36px 9px 16px; border-radius: 999px; border: 1px solid var(--line-dark); background: var(--ink-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23999' stroke-width='2'/%3E%3C/svg%3E") right 12px center / 14px no-repeat; color: var(--on-dark); font: 500 14px/1 var(--display); cursor: pointer; }
.map-sec__count { margin-left: auto; color: var(--on-dark-2); }
.map-sec__frame { position: relative; isolation: isolate; z-index: 0; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-dark); }
.map { height: min(72vh, 680px); background: var(--ink-2); }
.map.is-error { display: grid; place-items: center; color: var(--on-dark-2); }
.map-sec__hint { position: absolute; z-index: 500; left: 16px; bottom: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(15, 15, 15, 0.6); color: #fff; font-size: 10.5px; pointer-events: none; }
.leaflet-container { font-family: var(--display); }
.leaflet-control-zoom a { background: var(--ink) !important; color: var(--bone) !important; border-color: var(--line-dark) !important; }
.leaflet-control-attribution { font-size: 10px; background: rgba(15, 15, 15, 0.55) !important; color: #ccc !important; }
.leaflet-control-attribution a { color: #eee !important; }
.pin i { position: relative; display: block; width: 34px; height: 44px; }
.pin i::before { content: ""; position: absolute; left: 3px; top: 2px; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--amber); border: 2px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); }
.pin i::after { content: ""; position: absolute; left: 12px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.pin i[data-linea="arq"]::before { background: #fff; border-color: var(--amber); }
.pin i[data-linea="bp"]::before { background: #4FB3A9; }
.leaflet-popup-content-wrapper { padding: 0; border-radius: 18px; overflow: hidden; background: var(--bone); color: var(--ink); }
.leaflet-popup-content { margin: 0; width: 240px !important; }
.leaflet-popup-tip { background: var(--bone); }
.leaflet-container a.leaflet-popup-close-button { color: #fff; top: 6px; right: 6px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.pop img { width: 100%; height: 130px; object-fit: cover; }
.pop__body { display: grid; gap: 4px; padding: 12px 14px 14px; font-size: 13px; line-height: 1.35; }
.pop__body b { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.pop__body span, .pop__body small { color: var(--on-light-2); }
.pop__km { font-family: var(--mono); color: var(--sec) !important; }
.pop__body button { margin-top: 8px; padding: 9px 12px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bone); font: 500 13px/1 var(--display); cursor: pointer; }

/* ---------- Brochure y TikTok ---------- */
.more { padding-block: var(--section); }
.more__head { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.more__head h2 { font-size: clamp(34px, 4.2vw, 64px); line-height: 1; }
.more__head em { color: var(--amber-soft); }
.more__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.more-card { position: relative; display: grid; grid-template-columns: minmax(120px, 0.8fr) 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(22px, 3vw, 40px); border-radius: 28px; background: var(--ink-2); border: 1px solid var(--line-dark); transition: border-color 400ms ease, transform 600ms var(--ease-out); }
.more-card:hover { border-color: var(--amber); transform: translateY(-4px); }
.more-card .mono { color: var(--amber); }
.more-card h3 { font-size: clamp(26px, 2.6vw, 40px); margin: 10px 0; font-weight: 300; }
.more-card p { color: var(--on-dark-2); font-size: 16px; }
.more-card__go { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.more-card__go svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.more-card__soon { display: none; margin-top: 14px; color: var(--on-dark-2); font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.more-card.is-pendiente .more-card__soon { display: block; }
.more-card.is-pendiente .more-card__go { opacity: 0.45; }
.more-card__doc { perspective: 800px; }
.more-card__sheet { display: grid; grid-template-rows: auto auto 1fr; gap: 6px; padding: 14px 14px 0; aspect-ratio: 3 / 4; border-radius: 10px; background: var(--bone); color: var(--ink); overflow: hidden; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.6); transform: rotateY(-14deg) rotateX(4deg); transition: transform 800ms var(--ease-out); }
.more-card:hover .more-card__sheet { transform: translateY(-6px); }
.more-card__sheet b { font-size: 15px; letter-spacing: 0.12em; }
.more-card__sheet small { font: 500 9px/1 var(--mono); text-transform: uppercase; color: var(--sec); }
.more-card__sheet img { margin: 6px -14px 0; width: calc(100% + 28px); max-width: none; height: 100%; object-fit: cover; }
.more-card__phone { position: relative; aspect-ratio: 9 / 16; max-height: 300px; border-radius: 26px; overflow: hidden; border: 5px solid #0d0d0d; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.6); transform: rotate(4deg); transition: transform 800ms var(--ease-out); }
.more-card:hover .more-card__phone { transform: translateY(-6px); }
.more-card__phone img { width: 100%; height: 100%; object-fit: cover; }
.more-card__play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.9); }
.more-card__play svg { width: 22px; fill: #111; margin-left: 3px; }

/* ---------- Preguntas frecuentes ---------- */
.faq { background: var(--stone); color: var(--on-light); padding-block: var(--section); }
.faq .label { color: var(--on-light-2); }
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 100px); }
.faq h2 { font-size: clamp(36px, 4.4vw, 68px); line-height: 1; margin: 22px 0 32px; }
.faq h2 em { color: var(--sec); }
.faq .link-arrow { color: var(--on-light); }
.faq__list { border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 26px 48px 26px 0; font-size: clamp(18px, 1.6vw, 23px); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; transition: transform 400ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 48px 26px 0; color: var(--on-light-2); }
.faq details a { border-bottom: 1px solid currentColor; color: var(--on-light); }

/* ---------- Contacto ---------- */
.contact__title { margin-bottom: 22px; }
.contact__lead { color: var(--on-light-2); max-width: 44ch; margin-bottom: 28px; }
.wa-big { display: inline-flex; align-items: center; gap: 16px; padding: 14px 26px 14px 16px; border-radius: 999px; background: var(--wa); color: #06341b; margin-bottom: 40px; transition: transform 500ms var(--ease-out), box-shadow 500ms ease; }
.wa-big:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -14px rgba(37, 211, 102, 0.7); }
.wa-big svg { width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: #fff; fill: #1ea952; }
.wa-big small { display: block; font-size: 12px; font-weight: 500; }
.wa-big b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.contact__info a.is-pendiente { opacity: 0.5; border-bottom-style: dashed; }

/* ---------- Pie ---------- */
.foot__top p span { color: var(--on-dark-2); font-size: 0.7em; }
.foot__top a.is-pendiente { opacity: 0.5; }
.foot__wordwrap { overflow: hidden; padding-inline: 2vw; }

/* ---------- Galería de una obra ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); background: rgba(8, 8, 8, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity 450ms ease; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__box { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; width: min(1200px, 100%); max-height: 100%; border-radius: 26px; overflow: hidden; background: var(--bone); color: var(--ink); transform: translateY(24px) scale(0.98); transition: transform 600ms var(--ease-out); }
.lightbox.is-open .lightbox__box { transform: none; }
.lightbox__media { position: relative; background: #111; min-height: 300px; }
.lightbox__media img { width: 100%; height: 100%; max-height: 80vh; object-fit: cover; opacity: 0; transition: opacity 500ms ease; }
.lightbox__media img.is-in { opacity: 1; }
.lb-btn { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.9); color: #111; font-size: 18px; cursor: pointer; }
.lb-btn--prev { left: 14px; }
.lb-btn--next { right: 14px; }
.lightbox__count { position: absolute; left: 16px; bottom: 14px; padding: 6px 11px; border-radius: 999px; background: rgba(15, 15, 15, 0.6); color: #fff; }
.lightbox__info { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 44px); overflow: auto; }
.lightbox__info .mono { color: var(--sec); }
.lightbox__info h3 { font-size: clamp(28px, 2.8vw, 42px); line-height: 1.05; }
.lightbox__info p { color: var(--on-light-2); }
.lightbox__info small { color: var(--on-light-2); font-size: 14px; }
.lightbox__info .link-arrow { margin-top: auto; }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bone); font-size: 24px; line-height: 1; cursor: pointer; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; z-index: 40; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.5); transition: transform 500ms var(--ease-out), opacity 500ms ease; }
.wa-float svg { width: 30px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); }
.is-loading .wa-float { opacity: 0; transform: scale(0.6); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.6s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

@media (max-width: 1200px) {
  .nav__pill a { padding: 9px 12px; font-size: 13.5px; }
}
@media (max-width: 900px) {
  .hero__actions { gap: 14px 18px; margin-top: 22px; }
  .hero__stats { width: auto; }
  .hero__stats .glass { padding: 12px 30px 12px 12px; }
  .hero__stats b { font-size: 15px; }
  .hero__stats span { display: none; }
  .hero__stats i { right: 10px; font-size: 15px; }
  .hero__inner { bottom: 150px; }
  .studio__fig { grid-column: 1 / span 8; }
  .lines__head, .map-sec__head, .more__head, .faq__grid { grid-template-columns: 1fr; }
  .lines__grid, .more__grid { grid-template-columns: 1fr; }
  .line-card { min-height: 440px; }
  .map { height: 62vh; }
  .map-sec__count { margin-left: 0; }
  .more-card { grid-template-columns: 110px 1fr; align-items: start; }
  .more-card__phone { border-width: 4px; border-radius: 18px; }
  .lightbox { padding: 0; place-items: end center; }
  .lightbox__box { grid-template-columns: 1fr; border-radius: 22px 22px 0 0; max-height: 94svh; overflow: auto; }
  .lightbox__media img { max-height: 46svh; aspect-ratio: 4 / 3; }
  .wa-big b { font-size: 22px; }
  .wa-float { width: 54px; height: 54px; }
}

/* ---------- Cifras del perfil, videos de TikTok y brochure ancho ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding-top: 22px; border-top: 1px solid var(--line-light, rgba(0,0,0,.12)); }
.stats dt { font: 300 clamp(30px, 3vw, 44px)/1 var(--display); color: var(--ink); letter-spacing: -0.03em; }
.stats dd { margin: 6px 0 0; font-size: 13px; line-height: 1.3; color: var(--on-light-2); }
.more__head { grid-template-columns: 1fr 2fr; }
.more__lead { grid-column: 2; color: var(--on-dark-2); font-size: 17px; max-width: 46ch; margin: 0; }
.more__lead a { color: var(--amber); border-bottom: 1px solid currentColor; }
.videos { max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 36px); margin-bottom: clamp(28px, 4vw, 56px); }
.video { margin: 0; display: grid; gap: 16px; }
.video__phone { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 6px solid #0d0d0d; border-radius: 30px; overflow: hidden; background: #0d0d0d; cursor: pointer; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7); transition: transform 700ms var(--ease-out); }
.video:nth-child(2) .video__phone { transform: translateY(28px); }
.video__phone:hover { transform: translateY(-6px); }
.video:nth-child(2) .video__phone:hover { transform: translateY(20px); }
.video__phone img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity 400ms ease; }
.video__phone:hover img { transform: scale(1.04); }
.video__play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 400ms var(--ease-out); }
.video__phone:hover .video__play { transform: scale(1.1); }
.video__play svg { width: 26px; fill: #111; margin-left: 4px; }
.video__phone iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__phone.is-playing { cursor: default; }
.video__phone.is-playing img, .video__phone.is-playing .video__play { opacity: 0; }
.video figcaption { display: grid; gap: 6px; }
.video:nth-child(2) figcaption { margin-top: 28px; }
.video figcaption .mono { color: var(--amber); }
.video figcaption b { font: 400 clamp(20px, 1.8vw, 26px)/1.1 var(--display); }
.video figcaption span:last-child { color: var(--on-dark-2); font-size: 15px; }
.more-card--wide { grid-template-columns: minmax(110px, 200px) 1fr; max-width: 760px; }

.maz-logo { width: clamp(150px, 13vw, 200px); height: auto; }
.work--intro .link-arrow { display: inline-flex; margin-top: 14px; }

@media (max-width: 900px) {
  .more__head { grid-template-columns: 1fr; }
  .more__lead { grid-column: auto; }
  .videos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter, 16px)); padding: 0 var(--gutter, 16px) 8px; scrollbar-width: none; }
  .video { scroll-snap-align: center; }
  .video:nth-child(2) .video__phone, .video:nth-child(2) .video__phone:hover { transform: none; }
  .video:nth-child(2) figcaption { margin-top: 0; }
  .stats { gap: 10px; }
}

/* ---------- Obras: carrusel que mueve el usuario ---------- */
.works__inner { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); padding-block: var(--section); }
.works__nav { display: flex; align-items: center; gap: 10px; }
.works__nav .works__count { margin-right: 8px; }
.works__btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-light); background: transparent; color: var(--on-light); cursor: pointer; transition: background 300ms ease, color 300ms ease, opacity 300ms ease; }
.works__btn svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.works__btn:hover:not(:disabled) { background: var(--ink); color: var(--bone); }
.works__btn:disabled { opacity: 0.3; cursor: default; }
.works__track { width: auto; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; cursor: grab; will-change: auto; transform: none !important; }
.works__track::-webkit-scrollbar { display: none; }
.works__track::after { content: ""; flex: none; width: 1px; }
.works__track:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.works__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.works__track .work { scroll-snap-align: start; }
.works__track img { -webkit-user-drag: none; user-select: none; }
.work__media img { left: 0; width: 100%; transform: none; }
.work--intro { padding-bottom: 8px; justify-content: flex-start; gap: 28px; }
@media (max-width: 900px) {
  .works__btn { width: 44px; height: 44px; }
  .works__nav .works__count { display: none; }
}

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