@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #1c1916;
  --muted: #635c54;
  --cream: #f8f6f1;
  --sand: #eeeae2;
  --line: #dcd5cb;
  --dark: #191613;
  --light: #fffaf4;
  --soft-light: #d5cbc0;
  --green: #25d366;
  --green-ink: #102f1b;
  --nav-height: 66px;
  --shell: min(86rem, calc(100% - 2 * clamp(1.16rem, 6vw, 6rem)));
  --pad: clamp(5rem, 9vw, 9rem);
  --radius: clamp(.85rem, 1.5vw, 1.45rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --micro: 150ms;
  --fast: 250ms;
  --slow: 400ms;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.lenis.lenis-stopped { overflow: clip; }
[data-lenis-prevent] { overscroll-behavior: contain; }
body, figure, h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #af5919; outline-offset: 4px; }
:is(.site-header, .hero, .story, .contact-section, .footer, .lightbox) :focus-visible { outline-color: #ffbd84; }
::selection { background: #f2bb89; color: #211712; }
[id] { scroll-margin-top: max(6rem, var(--nav-height)); }
#inicio { scroll-margin-top: 0; }
.skip-link { position: fixed; inset: .75rem auto auto .75rem; z-index: 20; padding: .75rem 1rem; background: white; color: var(--ink); translate: 0 -200%; border-radius: .45rem; }
.skip-link:focus { translate: 0; }
.shell { width: var(--shell); margin-inline: auto; }
.section { padding-block: var(--pad); }
.icon { width: 1.13em; height: 1.13em; flex: none; fill: currentColor; }
h1, h2, h3 { font-weight: 750; line-height: 1.03; letter-spacing: -.049em; }
h2 { font-size: clamp(2.4rem, 4.8vw, 5.1rem); text-wrap: balance; }
h3 { font-size: clamp(1.14rem, 1.65vw, 1.36rem); }
p { line-height: 1.6; }
.section-head p { max-width: 39ch; margin-top: clamp(.95rem, 2vw, 1.5rem); color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.17rem); }
.section-head h2 { max-width: 16ch; }

.button, .text-action { display: inline-flex; align-items: center; justify-content: center; gap: .58rem; min-height: 46px; text-decoration: none; font-size: .87rem; font-weight: 750; }
.button { border-radius: 999px; border: 1px solid transparent; padding: .65rem 1.1rem; transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.button--whatsapp { background: var(--green); color: var(--green-ink); }
.whatsapp-float {
  position: fixed;
  z-index: 7;
  right: calc(clamp(.85rem, 2.6vw, 2rem) + env(safe-area-inset-right));
  bottom: calc(clamp(.85rem, 2.6vw, 2rem) + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: clamp(3.25rem, 5vw, 3.65rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green);
  color: var(--green-ink);
  box-shadow: 0 5px 18px #14221840;
  transition: background-color var(--fast) var(--ease);
}
.whatsapp-float .icon { width: 48%; height: 48%; }
.whatsapp-float:hover { background-color: #4be080; }
.whatsapp-float:focus-visible { opacity: 1 !important; transform: none !important; }
.button--outline { border-color: #bdb4a8; background: transparent; color: var(--ink); }
.text-action { width: max-content; max-width: 100%; }
.text-action .icon { transition: transform var(--fast) var(--ease); }
.button:active { transform: scale(.98); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 8;
  color: var(--light);
  background: transparent;
  transition: background-color var(--slow) var(--ease), color var(--fast) var(--ease), box-shadow var(--slow) var(--ease);
}
.site-header:is([data-scrolled], [data-menu-open]) {
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 1px 0 #26190d20;
}
.site-header:is([data-scrolled], [data-menu-open]) :focus-visible { outline-color: #af5919; }
.site-header:is([data-scrolled], [data-menu-open]) .brand img { filter: none; }
.nav-shell {
  width: min(112rem, calc(100% - 2 * clamp(1rem, 3vw, 3.5rem)));
  margin-inline: auto;
  min-height: var(--nav-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.brand { width: max-content; min-height: 44px; display: inline-flex; align-items: center; }
.brand img { filter: brightness(0) invert(1); }
.site-header .brand img { width: auto; height: 39px; transition: filter var(--fast) var(--ease); }
.footer .brand img { width: 156px; height: auto; }
.site-nav { display: flex; gap: clamp(.7rem, 2.6vw, 2.05rem); }
.site-nav a:not(.nav-quote) { display: flex; align-items: center; min-height: 44px; color: inherit; font-size: .84rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.nav-quote--desktop { justify-self: end; }
.nav-quote--mobile { display: none; }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; min-height: min(66rem, 100svh); display: grid; align-items: end; overflow: clip; color: var(--light); background: #302620; }
.hero-media, .hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-media { container-type: size; }
.hero-image { position: absolute; inset: 0; transform-origin: 54% 46%; }
.hero-scene {
  --scene-ratio: calc(1280 / 720);
  --scene-width: max(100cqw, calc(100cqh * var(--scene-ratio)));
  --scene-height: calc(var(--scene-width) / var(--scene-ratio));
  --scene-left: calc((100cqw - var(--scene-width)) * .5);
  position: absolute;
  top: 0;
  left: var(--scene-left);
  width: var(--scene-width);
  height: var(--scene-height);
}
.hero-photo { position: absolute; inset: 0; display: block; }
.hero-photo img { width: 100%; height: 100%; }
.hero-word { position: absolute; z-index: 1; top: clamp(3.85rem, 8.4cqh, 6.65rem); left: calc(50cqw - var(--scene-left)); width: 94cqw; translate: -50% 0; }
.hero-word svg { display: block; width: 100%; }
.hero-word svg > g { transform: scaleY(.78); }
.hero-foreground {
  z-index: 2;
  clip-path: polygon(25.15% 15.6%,57.45% 14.85%,60% 23.8%,60% 27.3%,84.35% 27.1%,84.35% 71%,25.15% 71%);
}
.hero-film, .hero-film-house { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; pointer-events: none; }
.hero-film { z-index: 0; object-fit: fill; }
.hero-film-house { z-index: 2; }
.hero[data-video-ready] .hero-film, .hero[data-video-ready] .hero-film-house { visibility: visible; }
.hero[data-video-ready] .hero-photo { visibility: hidden; }
.hero[data-video-ready] .hero-word { top: calc(var(--film-word-top, .15) * 100%); }
@media (min-width: 721px) {
  .hero-scene {
    --scene-width: max(100cqw, calc(110cqh * var(--scene-ratio)));
    top: calc((100cqh - var(--scene-height)) * .72);
  }
}
.hero-shade { background: linear-gradient(0deg, #140f0bee 0%, #18110bc4 22%, #17120d27 67%, transparent 80%), linear-gradient(90deg, #18120d7c, transparent 73%), linear-gradient(180deg, #1714116e 0%, transparent 27%); }
.hero-content { justify-self: center; padding-block: 6rem clamp(3.7rem, 13svh, 7.5rem); text-align: center; }
.hero-content:has(:focus-visible) { opacity: 1 !important; }
.hero-location { display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--soft-light); font-weight: 720; font-size: clamp(.83rem, 1.2vw, .98rem); margin-bottom: clamp(.8rem, 2.1svh, 1.35rem); }
.hero h1 { font-size: clamp(3.25rem, 5.72vw, 5.7rem); line-height: 1.025; max-width: 19ch; margin-inline: auto; }
.hero h1 > span { display: block; text-wrap: balance; }
.hero-description { max-width: 44ch; margin: clamp(.85rem, 2svh, 1.3rem) auto 0; color: var(--soft-light); font-size: clamp(.97rem, 1.5vw, 1.23rem); }
.hero-actions { display: none; justify-content: center; margin-top: clamp(1.28rem, 3.3vh, 2.05rem); }

.hero-intro-pending .hero-content, .hero-intro-pending .nav-quote--desktop, .hero-intro-pending .whatsapp-float { opacity: 0; }

.service-section {
  --service-step: clamp(215px, 39svh, 295px);
  scroll-margin-top: var(--nav-height);
}
.service-stage {
  display: grid;
  align-content: center;
  gap: clamp(1rem, 3.4svh, 2rem);
  padding-block: clamp(1rem, 3.5svh, 2.5rem);
}
.service-heading { text-align: center; }
.service-heading h2 { font-size: clamp(2rem, min(4.7vw, 10svh), 4.55rem); line-height: 1.08; letter-spacing: -.04em; }
.service-track { display: grid; gap: clamp(2.25rem, 7svh, 5rem); }
.service-slide {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 6.5rem);
  min-width: 0;
}
.service-copy h3 { max-width: 15ch; font-size: clamp(1.85rem, min(4.2vw, 8svh), 4.3rem); line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.service-copy p { max-width: 39ch; margin-top: .85rem; color: var(--muted); font-size: clamp(.98rem, 1.5vw, 1.2rem); text-wrap: pretty; }
.service-photo {
  position: relative;
  min-height: clamp(12rem, min(60svh, calc(100svh - var(--nav-height) - 7.5rem)), 43rem);
  overflow: hidden;
  border-radius: var(--radius);
  background: #ded6ca;
}
.service-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-slide:first-child .service-photo img { object-position: 50% 24%; }
.service-section[data-carousel]::after { content: ""; display: block; height: calc(var(--service-step) * var(--service-steps)); }
.service-section[data-carousel] .service-stage { position: sticky; top: var(--nav-height); min-height: calc(100svh - var(--nav-height)); }
.service-section[data-carousel] .service-window { overflow: clip; }
.service-section[data-carousel] .service-track { display: flex; gap: 0; }
.service-section[data-carousel] .service-slide { flex: 0 0 100%; }

.story {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 6.5rem);
  min-height: calc(100svh - var(--nav-height));
  padding: clamp(1rem, 3.5svh, 2.5rem) max(6vw, calc((100% - 86rem) / 2));
  scroll-margin-top: var(--nav-height);
  color: var(--light);
  background: #2f2f2e;
}
.story-head, .story-frame { width: 100%; margin: 0; min-width: 0; }
.story-frame { display: grid; gap: .65rem; }
.comparison-instruction { color: var(--soft-light); font-size: .8rem; line-height: 1.4; text-align: center; }
.story-head h2 { max-width: 14ch; font-size: clamp(2rem, min(4.2vw, 8svh), 4.3rem); line-height: 1.08; letter-spacing: -.04em; }
.story-head p { margin-top: .9rem; color: var(--soft-light); font-size: clamp(.96rem, 1.45vw, 1.16rem); }
.comparison {
  --comparison-position: 50%;
  position: relative;
  height: clamp(12rem, min(60svh, calc(100svh - var(--nav-height) - 7.5rem)), 43rem);
  overflow: hidden;
  border-radius: var(--radius);
  background: #34302a;
  user-select: none;
  touch-action: pan-y pinch-zoom;
  cursor: ew-resize;
}
.comparison > img, .comparison-final img { width: 100%; height: 100%; object-fit: cover; }
.comparison-final { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--comparison-position)); }
.comparison-divider { position: absolute; inset: 0; pointer-events: none; }
.comparison-divider::before { content: ""; position: absolute; inset-block: 0; left: var(--comparison-position); width: 2px; translate: -50% 0; background: var(--light); }
.comparison-handle { position: absolute; top: 50%; left: clamp(25px, var(--comparison-position), calc(100% - 25px)); translate: -50% -50%; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--light); color: var(--ink); box-shadow: 0 3px 12px #1a130947; }
.comparison-handle svg { width: 30px; height: 24px; }
.comparison-label { position: absolute; top: .75rem; padding: .35rem .6rem; background: #191613d9; color: var(--light); border-radius: .35rem; font-size: .75rem; pointer-events: none; }
.comparison-label--before { left: .75rem; }
.comparison-label--after { right: .75rem; }
.comparison[data-at-start] .comparison-label--before, .comparison[data-at-end] .comparison-label--after { visibility: hidden; }
.comparison-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.comparison:has(.comparison-range:focus-visible) { outline: 2px solid var(--light); outline-offset: 5px; }
.comparison[data-dragging] .comparison-handle { background: #f5c295; }

.work-section { min-height: calc(100svh - var(--nav-height)); display: grid; align-content: center; padding-block: clamp(1.25rem, 4svh, 3rem); background: #fff; scroll-margin-top: var(--nav-height); }
.work-section > .shell { min-width: 0; }
.work-section .section-head { text-align: center; margin-bottom: 1.15rem; }
.work-section .section-head h2 { max-width: none; font-size: clamp(1.75rem, 3.5vw, 3.4rem); }
.work-section .section-head p { max-width: 54ch; margin: .7rem auto 0; font-size: clamp(.85rem, 1.1vw, 1rem); }
.gallery-shell { position: relative; isolation: isolate; }
.gallery-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 8px; transition: filter .35s var(--ease), opacity .35s var(--ease); }
.gallery-shell:has(.lightbox[open]) .gallery-viewport { filter: blur(2px); opacity: .22 !important; }
.gallery-shell:has(.lightbox[open]) .section-head { filter: blur(2px); opacity: .18 !important; }
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-viewport:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.gallery-viewport[data-dragging] { cursor: grabbing; }
.gallery {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)) 1.1fr;
  grid-auto-flow: column;
  gap: 6px;
  height: clamp(15rem, 48svh, 32rem);
}
.work-item { position: relative; display: block; min-width: 0; min-height: 0; border-radius: 8px; overflow: hidden; text-decoration: none; user-select: none; cursor: pointer; }
.work-item:is(:first-child, :nth-child(4), :nth-child(7)) { grid-row: span 2; }
.work-image { display: block; width: 100%; height: 100%; overflow: hidden; background: #e2d7ca; }
.work-image img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 540ms var(--ease); }
.work-item:first-child img { object-position: 50% 39%; }
.work-caption { position: absolute; inset: auto 0 0; display: grid; gap: .2rem; padding: 2.5rem .65rem .65rem; color: var(--light); background: linear-gradient(transparent, #17130fe8); opacity: 0; transition: opacity var(--slow) var(--ease); }
.work-caption strong { font-size: clamp(.78rem, 1.1vw, .95rem); line-height: 1.2; }
.work-caption small { color: var(--soft-light); font-size: .75rem; line-height: 1.35; }
.work-item:focus-visible .work-caption { opacity: 1; }
.work-item:focus-visible { outline: 3px solid var(--ink); outline-offset: -4px; }

.about-section { display: grid; align-content: center; min-height: calc(100svh - var(--nav-height)); padding-block: clamp(1rem, 3.5svh, 2.5rem); scroll-margin-top: var(--nav-height); background: var(--sand); }
.about-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6.5rem); align-items: center; min-width: 0; }
.about-image { overflow: hidden; height: clamp(15rem, 65svh, 36rem); border-radius: var(--radius); background: #d1c7bb; }
.about-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 41%; }
.about-content .section-head h2 { max-width: 15ch; font-size: clamp(2rem, min(4.4vw, 8svh), 4.1rem); }
.about-content .section-head p { max-width: 49ch; margin-top: clamp(.65rem, 1.8svh, 1rem); font-size: clamp(.94rem, min(1.35vw, 2.9svh), 1.1rem); line-height: 1.55; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(.9rem, 2.3svh, 1.5rem); padding-block: clamp(.65rem, 1.8svh, 1rem); border-block: 1px solid #cfc6bb; }
.facts > div { display: flex; flex-direction: column-reverse; align-items: flex-start; justify-content: center; gap: .35rem; }
.facts > div + div { padding-left: clamp(.85rem, 2vw, 1.9rem); border-left: 1px solid #cfc6bb; }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { font-size: clamp(2.5rem, min(4.6vw, 8svh), 4.4rem); line-height: .95; font-variant-numeric: tabular-nums; font-weight: 740; letter-spacing: -.04em; }
.fact-plus { color: inherit; }
.clients { margin-top: clamp(.75rem, 2svh, 1.2rem); }
.clients p { color: var(--muted); font-size: .76rem; font-weight: 650; }
.clients ul { display: flex; align-items: center; gap: clamp(1.3rem, 4vw, 3rem); margin-top: .5rem; }
.clients li:first-child img { width: clamp(7rem, 12vw, 10rem); height: auto; }
.clients li:last-child img { width: clamp(4.5rem, 7.5vw, 6rem); height: auto; }

.process-section { display: grid; align-content: center; min-height: calc(100svh - var(--nav-height)); padding-block: clamp(2rem, 7svh, 4.5rem); scroll-margin-top: var(--nav-height); background: #2f2f2e; color: var(--light); }
.process-layout { display: grid; gap: clamp(2.25rem, 9svh, 5rem); }
.process-layout .section-head { text-align: center; }
.process-layout .section-head h2 { max-width: none; font-size: clamp(2rem, 4.2vw, 4.1rem); }
.process-layout .section-head p { margin-inline: auto; color: var(--soft-light); }
.steps { --step-gap: clamp(.8rem, 2vw, 1.7rem); position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--step-gap); }
.steps::before, .steps::after { content: ""; position: absolute; top: 7px; left: 7px; right: calc((100% - 5 * var(--step-gap)) / 6 - 7px); height: 1px; background: #ffffff30; }
.steps::after { background: var(--light); transform: scaleX(var(--step-progress, 1)); transform-origin: left; }
.steps li { --dot-color: var(--light); position: relative; display: grid; align-content: start; gap: .65rem; padding-top: 2rem; }
.steps li::before { content: ""; position: absolute; z-index: 1; top: 0; left: 0; width: 15px; height: 15px; border: 1px solid var(--dot-color); border-radius: 50%; background: #2f2f2e; }
.step-number { font-size: .75rem; font-variant-numeric: tabular-nums; color: var(--soft-light); }
.steps h3 { font-size: clamp(.9rem, 1.35vw, 1.16rem); line-height: 1.2; letter-spacing: -.02em; }
.steps p { color: var(--soft-light); margin-top: .45rem; font-size: clamp(.84rem, 1.1vw, .96rem); line-height: 1.55; }

.contact-section { display: grid; align-content: center; min-height: calc(100svh - var(--nav-height)); padding-block: clamp(2rem, 6svh, 4rem); scroll-margin-top: var(--nav-height); background: radial-gradient(ellipse at 86% 12%, #33271d, transparent 59%), var(--dark); color: var(--light); }
.contact-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: center; gap: clamp(2rem, 5vw, 5.5rem); }
.contact-layout .section-head p { color: var(--soft-light); }
.contact-layout .section-head .button { margin-top: 1.55rem; }
.quote-chat {
  --chat-pad: clamp(.8rem, 2vw, 1.25rem);
  --chat-history-height: clamp(13.5rem, 42svh, 25rem);
  --chat-surface: #111b21;
  --chat-received: #202c33;
  --chat-sent: #005c4b;
  --chat-muted: #c0ced0;
  min-width: 0;
  border: 1px solid #465950;
  border-radius: 1rem;
  background: var(--chat-surface);
  color: var(--light);
  color-scheme: dark;
}
.chat-header { display: flex; align-items: center; gap: .7rem; padding: .72rem var(--chat-pad); border-radius: calc(1rem - 1px) calc(1rem - 1px) 0 0; background: #075149; }
.chat-avatar { display: grid; place-items: center; flex: none; width: 2.5rem; aspect-ratio: 1; border-radius: 50%; background: var(--chat-surface); }
.chat-avatar img { width: 1.9rem; height: auto; }
.chat-identity { flex: 1; min-width: 0; }
.chat-identity h3 { font-size: clamp(.93rem, 1.4vw, 1.1rem); letter-spacing: -.012em; line-height: 1.22; }
.chat-identity p { margin-top: .12rem; color: #e0efea; font-size: .75rem; line-height: 1.35; }
.chat-progress { color: #e0efea; font-size: .73rem; text-align: right; font-variant-numeric: tabular-nums; }
.chat-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chat-history { position: relative; background: #0b141a; }
.chat-wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.chat-log { position: relative; display: grid; align-content: start; gap: .52rem; height: var(--chat-history-height); overflow-y: auto; overscroll-behavior-y: auto; padding: var(--chat-pad) calc(var(--chat-pad) + .4rem); scrollbar-width: thin; scrollbar-color: #788d88 transparent; }
.chat-log:focus-visible { outline-offset: -3px; }
.chat-message { position: relative; width: fit-content; max-width: min(90%, 53ch); padding: .48rem .65rem; border-radius: .6rem; font-size: .96rem; line-height: 1.52; overflow-wrap: anywhere; }
.chat-text { white-space: pre-wrap; }
.chat-time { display: inline-block; margin-inline-start: .55rem; color: var(--chat-muted); font-size: .66rem; font-variant-numeric: tabular-nums; line-height: 1; vertical-align: -.17em; white-space: nowrap; }
.chat-message::before { content: ""; position: absolute; top: 0; width: .52rem; height: .65rem; background: inherit; }
.chat-message--assistant { background: var(--chat-received); border-top-left-radius: 0; }
.chat-message--assistant::before { right: 100%; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.chat-message--visitor { justify-self: end; background: var(--chat-sent); border-top-right-radius: 0; }
.chat-message--visitor::before { left: 100%; clip-path: polygon(0 0, 100% 0, 0 100%); }
.chat-message--new { animation: chat-message-in var(--slow) var(--ease) both; }
@keyframes chat-message-in { from { opacity: 0; transform: translateY(8px); } }
.chat-typing { display: flex; align-items: center; gap: .28rem; min-height: 2.2rem; padding-inline: .75rem; }
.chat-typing span { width: .37rem; height: .37rem; border-radius: 50%; background: var(--chat-muted); animation: chat-typing-pulse 840ms ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: 120ms; }
.chat-typing span:nth-child(3) { animation-delay: 240ms; }
@keyframes chat-typing-pulse {
  0%, 60%, 100% { opacity: .55; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-.22rem); }
}
.chat-composer[data-replying] [data-chat-skip] { visibility: hidden; }
.chat-send[aria-disabled="true"] { opacity: .55; cursor: default; }
.chat-composer { display: grid; gap: .66rem; padding: .65rem var(--chat-pad) .75rem; border-top: 1px solid #304147; }
.chat-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .5rem; }
.chat-input-row textarea { width: 100%; min-width: 0; min-height: 48px; max-height: 9rem; resize: none; field-sizing: content; background: var(--chat-received); color: var(--light); padding: .75rem .95rem; border: 1px solid #6d868b; border-radius: 1.45rem; font-size: 1rem; line-height: 1.4; }
.chat-input-row textarea::placeholder { color: var(--chat-muted); opacity: 1; }
.chat-input-row textarea:focus { border-color: #a4bac0; outline: none; box-shadow: 0 0 0 1px #a4bac0 inset; }
.chat-send { width: 48px; min-height: 48px; padding: 0; background: var(--green); color: var(--green-ink); }
.chat-send .icon { width: 1.35rem; height: 1.35rem; }
.chat-action { justify-self: start; min-height: 44px; color: var(--light); background: transparent; border: 0; padding: .3rem .15rem; font-size: .82rem; font-weight: 650; text-decoration: underline; text-underline-offset: .25em; }
.chat-review { min-height: calc(var(--chat-history-height) + 4rem); padding: var(--chat-pad); animation: chat-message-in var(--slow) var(--ease) both; }
.chat-review h4 { margin: 0 0 .6rem; font-size: 1.12rem; letter-spacing: -.023em; }
.chat-summary { border-top: 1px solid #3d5057; margin-bottom: 1.1rem; }
.chat-summary > div { display: grid; grid-template-columns: minmax(3.5rem, .32fr) minmax(0, 1fr) auto; align-items: baseline; gap: .6rem; border-bottom: 1px solid #3d5057; padding-block: .12rem; font-size: .88rem; line-height: 1.45; }
.chat-summary dt { color: var(--chat-muted); font-weight: 650; }
.chat-summary dd { overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-review > p { color: var(--chat-muted); font-size: .8rem; margin-top: .6rem; }

.footer { color: var(--light); background: #191613; }
.footer-layout { display: grid; grid-template-columns: 1fr .65fr 1.1fr auto; gap: clamp(1rem, 3.5vw, 3rem); align-items: start; border-top: 1px solid #ffffff34; padding-block: 2rem 2.6rem; }
.footer-layout p { font-size: .8rem; color: var(--soft-light); }
.footer-layout nav, .footer-layout address { display: grid; align-content: start; }
.footer-layout :is(nav,address) a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-layout address { font-style: normal; overflow-wrap: anywhere; font-size: .84rem; }
.footer-layout nav { font-size: .86rem; }
.footer-map { grid-column: 1 / -1; position: relative; min-width: 0; }
.footer-map-picture { display: block; position: relative; border-radius: var(--radius); }
.footer-map-picture img { width: 100%; height: clamp(11rem, 26svh, 16rem); object-fit: cover; border-radius: inherit; background: #e9e8df; }
.footer-map-picture span { position: absolute; bottom: .65rem; left: .65rem; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding-inline: .8rem; border-radius: 999px; background: var(--dark); color: var(--light); font-size: .78rem; font-weight: 700; }
.footer-map-credit { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft-light); font-size: .75rem; text-underline-offset: .2em; }
.socials { display: flex; align-items: start; gap: .45rem; }
.socials a, .lightbox button { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid #ffffff5b; border-radius: 50%; color: var(--light); background: #211c18; }
.socials .social-whatsapp { border-color: var(--green); color: var(--green-ink); background: var(--green); }

.lightbox { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 8px; padding: 0; overflow: hidden; background: #ffffffb8; color: var(--ink); z-index: 2; }
.lightbox figure { display: grid; place-items: center; height: 100%; padding: clamp(.5rem, 1.3vw, 1.1rem); }
.lightbox img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox .lightbox-close { position: absolute; top: .4rem; right: .4rem; z-index: 4; color: var(--ink); border: 0; background: #ffffffed; }
.lightbox .work-zoom { position: fixed; z-index: 3; object-fit: cover; pointer-events: none; max-width: none; }

@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-2px); }
  .button:active { transform: scale(.98); }
  .button--whatsapp:hover { background: #4be080; }
  .chat-action:hover { color: #b1edd6; }
  .chat-send:not([aria-disabled="true"]):hover { background: #4be080; }
  .site-nav a:not(.nav-quote):hover, .footer :is(nav,address) a:hover { text-decoration: underline; text-underline-offset: .24em; }
  .text-action:hover .icon { transform: translate(2px,-2px); }
  .work-caption { opacity: 0; }
  .work-item:hover .work-caption, .work-item:focus-visible .work-caption { opacity: 1; }
  .work-item:hover img { transform: scale(1.035); }
}

@media (max-width: 900px) {
  .hero { min-height: min(53rem, 100svh); }
  .footer-layout { grid-template-columns: 1fr .5fr 1.3fr; }
  .footer-layout .socials { grid-column: 3; }
}

@media (max-width: 720px) {
  :root { --pad: clamp(3.9rem, 12vw, 5.55rem); --nav-height: 62px; }
  .nav-shell { display: flex; justify-content: space-between; gap: .75rem; }
  .site-header .brand img { height: 32px; }
  .nav-quote--desktop { display: none; }
  .nav-quote--mobile { display: inline-flex; justify-self: start; margin: .5rem .35rem .3rem; }
  .menu-toggle:not([hidden]) { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; color: inherit; background: transparent; }
  .menu-toggle .icon { grid-area: 1 / 1; }
  .menu-toggle[aria-expanded="false"] .icon:nth-child(2), .menu-toggle[aria-expanded="true"] .icon:first-child { visibility: hidden; }
  .site-nav { position: absolute; inset: 100% 0 auto; display: grid; gap: 0; padding: .48rem 1rem 1rem; color: var(--ink); background: var(--cream); border-top: 1px solid #26190d15; box-shadow: 0 7px 12px #26190d16; }
  .site-nav a:not(.nav-quote) { padding-inline: .5rem; }
  .hero { min-height: max(34rem, 100svh); }
  .hero-image { transform-origin: 54% 52%; }
  .hero-scene {
    --scene-ratio: calc(720 / 1280);
    --scene-left: calc((100cqw - var(--scene-width)) * .54);
  }
  .hero-word { top: calc(35.5% - min(12cqw, 4.5rem)); width: 98cqw; }
  .hero-word svg > g { transform: none; }
  .hero[data-video-ready] .hero-word { top: max(calc(var(--film-word-top, .2) * 100%), calc(var(--nav-height) + .5rem)); }
  .hero-foreground { clip-path: polygon(25.05% 35.67%,58.2% 35.43%,60.7% 39.47%,85.67% 39.4%,85.67% 67%,25% 67%); }
  .hero-shade { background: linear-gradient(180deg, #100c164f, transparent 24%, transparent 44%, #140d0b90 66%, #140d0bd9 88%, #140d0bea); }
  .hero-content { max-width: 36rem; padding-block: clamp(4.5rem, 12svh, 6rem) clamp(3.75rem, 21svh, 12rem); }
  .hero h1 { max-width: none; font-size: clamp(1.92rem, 7.8vw, 3.5rem); }
  .hero-description { max-width: 31ch; }
  .hero-actions { display: flex; }
  .about-layout, .process-layout, .contact-layout { grid-template-columns: minmax(0,1fr); gap: 1.45rem; }
  .contact-layout .section-head h2 { font-size: clamp(1.85rem, 7.5vw, 2.9rem); }
  .contact-layout .section-head p { margin-top: .7rem; font-size: .96rem; }
  .quote-chat { --chat-history-height: clamp(12rem, 34svh, 19rem); }
  .chat-review .button { width: 100%; }
  .whatsapp-float[data-chat-in-view]:not(:focus) { visibility: hidden; }
  .service-section { --service-step: clamp(150px, 29svh, 225px); }
  .service-heading h2 { font-size: clamp(1.85rem, 7.5vw, 2.9rem); }
  .service-slide {
    grid-template: auto 1fr / minmax(0, 1fr);
    align-items: start;
    gap: clamp(.85rem, 2.6svh, 1.5rem);
  }
  .service-photo { grid-row: 1; min-height: clamp(9rem, 46svh, 28rem); }
  .service-copy { grid-row: 2; padding-inline: .25rem; text-align: center; }
  .service-copy h3 { max-width: none; font-size: clamp(1.5rem, 6vw, 2.4rem); }
  .service-copy p { margin: .5rem auto 0; font-size: clamp(.94rem, 3.4vw, 1.09rem); line-height: 1.48; }
  .story { grid-template-columns: minmax(0, 1fr); align-content: center; gap: clamp(1rem, 3.4svh, 2rem); }
  .story-head { text-align: center; }
  .story-head h2 { max-width: 20ch; margin-inline: auto; font-size: clamp(1.85rem, 7.5vw, 2.9rem); }
  .story-head p { max-width: 35ch; margin: .7rem auto 0; font-size: .96rem; }
  .comparison { height: auto; aspect-ratio: 820 / 473; }
  .gallery { grid-template-columns: 64vw repeat(3, 48vw) 64vw; }
  .gallery-viewport { cursor: grab; }
  .work-section .section-head h2 { font-size: clamp(1.85rem, 7.5vw, 2.9rem); }
  .work-section .section-head p { font-size: .96rem; }
  .about-layout { gap: clamp(1rem, 2.5svh, 1.6rem); }
  .about-image { height: clamp(9rem, 23svh, 14rem); }
  .about-content { display: grid; justify-items: center; width: 100%; min-width: 0; text-align: center; }
  .about-content .section-head { width: 100%; text-align: center; }
  .about-content .section-head :is(h2, p) { margin-inline: auto; text-align: center; }
  .about-content .section-head h2 { max-width: 18ch; font-size: clamp(1.8rem, 7.5vw, 2.9rem); }
  .about-content .section-head p { max-width: 38ch; }
  .about-content .facts { width: min(100%, 23rem); }
  .about-content .facts > div { align-items: center; padding-inline: .3rem; text-align: center; }
  .about-content .clients { width: 100%; text-align: center; }
  .about-content .clients ul { width: fit-content; max-width: 100%; justify-content: center; flex-wrap: wrap; row-gap: .5rem; margin-inline: auto; }
  .process-section { padding-block: clamp(1rem, 4svh, 2rem); }
  .process-layout { gap: clamp(.85rem, 3svh, 1.55rem); }
  .process-layout .section-head h2 { font-size: clamp(1.85rem, 7.5vw, 2.9rem); }
  .process-layout .section-head p { margin-top: .5rem; font-size: .92rem; line-height: 1.42; }
  .steps { --step-gap: clamp(.55rem, 1.6svh, .9rem); grid-template-columns: minmax(0, 1fr); max-width: 27rem; width: 100%; margin-inline: auto; }
  .steps::before, .steps::after { display: none; }
  .steps li { grid-template-columns: 1.1rem minmax(0, 1fr); gap: .48rem; padding: 0 0 0 1.28rem; }
  .steps li::before { top: 4px; left: 2px; width: 11px; height: 11px; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 15px; bottom: calc(-1 * var(--step-gap) - 4px); left: 7px; width: 1px; background: linear-gradient(var(--light) calc(var(--connector-progress, 1) * 100%), #ffffff30 0); }
  .step-number { padding-top: .14rem; line-height: 1.35; font-size: .67rem; }
  .steps h3 { font-size: .98rem; line-height: 1.2; }
  .steps p { font-size: .84rem; line-height: 1.36; margin-top: .17rem; }
  .footer-layout { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: .8rem; padding-block: 1.35rem max(4.25rem, calc(3.5rem + env(safe-area-inset-bottom))); text-align: center; }
  .footer-layout > div:first-child { display: grid; justify-items: center; gap: .35rem; }
  .footer-layout .brand { flex: none; }
  .footer-layout .brand img { width: 100px; }
  .footer-layout p { max-width: 30ch; }
  .footer-layout nav { display: flex; width: 100%; justify-content: center; flex-wrap: wrap; column-gap: 1.4rem; border-block: 1px solid #ffffff26; }
  .footer-layout address { justify-items: center; line-height: 1.45; color: var(--soft-light); }
  .footer-layout address a { justify-content: center; color: var(--light); font-weight: 700; }
  .footer-layout .socials { grid-column: 1; justify-content: center; }
  .footer-map { width: 100%; }
  .footer-map-picture img { height: clamp(11rem, 28svh, 14rem); }
  .footer-map-picture span { left: 50%; translate: -50% 0; white-space: nowrap; }
}

@media (max-width: 355px) {
  .hero h1 { font-size: 1.82rem; }
  .hero-actions .button { padding-inline: .75rem; }
}

@media (max-width: 720px) and (max-height: 600px) {
  .service-heading h2 { font-size: clamp(1.45rem, 6vw, 1.85rem); }
  .service-photo { min-height: clamp(8rem, 39svh, 14rem); }
  .story-head h2 { font-size: clamp(1.45rem, 6vw, 1.85rem); }
  .gallery { height: clamp(12rem, 44svh, 17rem); }
  .work-section .section-head h2 { font-size: clamp(1.6rem, 6.6vw, 2rem); }
  .about-section { padding-block: .8rem; }
  .about-layout { gap: .65rem; }
  .about-image { height: clamp(4.5rem, 16svh, 6rem); }
  .about-content .section-head h2 { font-size: 1.6rem; max-width: none; }
  .about-content .section-head p { margin-top: .45rem; font-size: .9rem; line-height: 1.48; }
  .facts { margin-top: .65rem; padding-block: .5rem; }
  .facts dd { font-size: 2.3rem; }
  .facts dt { font-size: .76rem; }
  .clients { margin-top: .55rem; }
  .clients ul { margin-top: .35rem; }
  .clients li:first-child img { width: 7.5rem; }
  .clients li:last-child img { width: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion-preview]) .chat-typing span { animation: none; }
  html:not([data-motion-preview]), html:not([data-motion-preview]) *,
  html:not([data-motion-preview]) *::before, html:not([data-motion-preview]) *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

html[data-motion-off] .chat-typing span { animation: none; }
html[data-motion-off], html[data-motion-off] *,
html[data-motion-off] *::before, html[data-motion-off] *::after {
  scroll-behavior: auto !important;
  animation-duration: .01ms !important;
  transition-duration: .01ms !important;
}
