/* dalko studios — portafolio
   Negro, blanco y grises. El color solo aparece en Proyectos, con los colores de cada marca.
   Todo el movimiento vive bajo .fx-on; con «reducir movimiento» (.calm) se suaviza, sin apagarse. */

:root {
  --black: #070707;
  --ink: #0b0b0b;
  --fg: #f5f5f3;
  --mut: #cfcfcb;
  --line: rgba(255, 255, 255, .14);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(18px, 5vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #3a3a3a var(--black); }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.55;
  color: var(--fg); background: var(--black);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, fieldset, blockquote, dl, dd { margin: 0; padding: 0; border: 0; min-width: 0; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: #fff; color: #000; padding: 10px 14px; font-weight: 700; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Tarjetas: negras y sólidas, con un borde de luz arriba */
.glass {
  background: linear-gradient(180deg, #151515, #0a0a0a);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 24px 50px -30px rgba(0, 0, 0, .8);
  border-radius: 26px;
}

/* ---------- Navegación ---------- */
.brand, .logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; text-decoration: none; font-variation-settings: "wdth" 112; }
.brand span, .logo span { font-weight: 400; }
.brand { display: none; position: fixed; z-index: 50; left: var(--gutter); top: 14px; line-height: 44px; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.pill {
  position: fixed; z-index: 50; left: 50%; top: calc(10px + env(safe-area-inset-top)); transform: translateX(-50%);
  display: flex; align-items: center; padding: 4px; border-radius: 999px;
  background: rgba(16, 16, 16, .86); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .7);
  color: var(--fg); max-width: calc(100vw - 16px);
}
.pill__links { display: flex; position: relative; z-index: 1; }
.pill__links a {
  display: flex; align-items: center; min-height: 38px; padding: 0 clamp(7px, 2.4vw, 14px); border-radius: 999px;
  text-decoration: none; font-size: clamp(.75rem, 3.2vw, .875rem); font-weight: 500; color: #c2c2be; white-space: nowrap;
  transition: color .3s;
}
.pill__links a:hover, .pill__links a[aria-current="true"] { color: #fff; }
.pill__links a[aria-current="true"] { font-weight: 700; }
.pill__mark {
  position: absolute; z-index: 0; top: 4px; height: 38px; border-radius: 999px;
  left: var(--mk-x, 4px); width: var(--mk-w, 0px); opacity: var(--mk-o, 0);
  background: rgba(255, 255, 255, .14);
  transition: left .6s var(--ease), width .6s var(--ease), opacity .3s;
}
.pill__cta {
  display: none; align-items: center; min-height: 38px; padding: 0 18px; margin-left: 4px; border-radius: 999px;
  background: #f5f5f3; color: #0a0a0a; font-size: .875rem; font-weight: 700; text-decoration: none;
  transition: background-color .2s, transform .3s var(--ease);
}
.pill__cta:hover { background: #fff; transform: translateY(-1px); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px;
  border-radius: 999px; background: #f5f5f3; color: #0a0a0a; text-decoration: none;
  font-weight: 700; font-size: 1rem; letter-spacing: -.005em;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .9);
  transition: background-color .25s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .9); }
.btn--glass { background: rgba(20, 20, 20, .45); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }
.btn--glass:hover { background: rgba(255, 255, 255, .18); }
.btn--glass .ico { transition: transform .35s var(--ease); }
.btn--glass:hover .ico { transform: translateY(3px); }
.btn--wide { display: flex; width: 100%; }

/* ---------- HERO ---------- */
.hero {
  position: relative; z-index: 0; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: #111; color: var(--fg);
}
.hero__bg { position: absolute; inset: 0; background: #111 url("../assets/img/panama-poster-640.webp") center / cover no-repeat; will-change: transform; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero__video.is-on { opacity: 1; }
.hero__video.is-fallback { filter: grayscale(1); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 55%, rgba(0, 0, 0, .25), rgba(0, 0, 0, .7)),
    linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, .15) 35%, rgba(0, 0, 0, .55) 80%, rgba(0, 0, 0, .9));
}
.hero__in {
  position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-top: 72px; padding-bottom: 40px; will-change: transform, opacity;
}
.wordmark {
  margin: 0; font-weight: 850; font-variation-settings: "wdth" 125; color: #fff;
  font-size: 24.5vw; line-height: .8; letter-spacing: -.055em; user-select: none;
  text-shadow: 0 10px 50px rgba(0, 0, 0, .35);
}
.wordmark > span { display: block; }
.wordmark > span + span { font-weight: 300; }
.hero h1 {
  margin-top: clamp(22px, 4vh, 40px);
  font-size: clamp(1.45rem, 5.6vw, 2.5rem); font-weight: 650; letter-spacing: -.025em; line-height: 1.1;
  font-variation-settings: "wdth" 104; max-width: 20ch;
}
.lede { margin-top: 12px; max-width: 40ch; color: #d4d4d0; font-size: 1rem; }
.hero__actions { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: #000; opacity: 0; pointer-events: none; will-change: opacity; }
.fx-js .hero::after { opacity: calc(var(--hx, 0) * .75); }
.hero__in { z-index: 2; }
.fx-on .hero__in { opacity: calc(1 - var(--hx, 0) * 1.6); transform: translateY(calc(var(--hx, 0) * -90px)) scale(calc(1 - var(--hx, 0) * .05)); }
.hero.is-off { visibility: hidden; }

main { position: relative; z-index: 1; }

/* ---------- PROYECTOS ---------- */
[data-theme="vactriz"] { --bg: #0a0a0a; --fgc: #f5f5f3; --mutc: #b2b2ae; --ac: #f5f5f3; --ac-ink: #0a0a0a; }
[data-theme="hamb"]    { --bg: #b3131a; --fgc: #fff4e2; --mutc: #ffd9c4; --ac: #f6bd3b; --ac-ink: #2a0a00; }
[data-theme="always"]  { --bg: #06113d; --fgc: #eef3ff; --mutc: #b4c4f2; --ac: #2b6ff2; --ac-ink: #ffffff; }

.work {
  position: relative; background: var(--bg); color: var(--fgc);
  border-radius: 30px 30px 0 0; padding-top: 72px; overflow: clip;
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .6);
}
.work__head h2 {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(2rem, 7vw, 3rem); font-weight: 800; letter-spacing: -.04em; font-variation-settings: "wdth" 118;
}
.work__count { font-size: .875rem; font-weight: 600; letter-spacing: 0; color: var(--mutc); font-variant-numeric: tabular-nums; }
.work__count b { color: var(--fgc); }
.work__tabs, .work__bar, .work__ghost { display: none; }
.work__stage { margin-top: 24px; padding: 0; max-width: none; }
.proj { background: var(--bg); color: var(--fgc); padding: 48px var(--gutter) 56px; display: grid; gap: 28px; }
.proj__media { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 5%; }
.ph {
  width: min(42%, 260px); aspect-ratio: 600 / 1298; flex: none; padding: 5px; border-radius: 28px; background: #050505;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 40px 70px -30px rgba(0, 0, 0, .85);
}
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 23px; }
.ph--low { margin-top: 10%; }
.br {
  width: 100%; border-radius: 14px; overflow: hidden; background: #111;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 40px 70px -30px rgba(0, 0, 0, .85);
}
.br::before {
  content: ""; display: block; height: 24px;
  background: radial-gradient(circle at 14px 12px, #5a5a5a 0 4px, transparent 4.5px), radial-gradient(circle at 28px 12px, #5a5a5a 0 4px, transparent 4.5px), radial-gradient(circle at 42px 12px, #5a5a5a 0 4px, transparent 4.5px), #151515;
}
.br img { width: 100%; }
.proj__tag {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--fgc) 30%, transparent); color: var(--fgc);
  font-size: .8125rem; font-weight: 650;
}
.proj h3 { margin-top: 14px; font-size: clamp(2.4rem, 10vw, 4.6rem); font-weight: 820; letter-spacing: -.045em; font-variation-settings: "wdth" 118; }
.proj__text { margin-top: 14px; font-size: 1.0625rem; line-height: 1.55; color: var(--mutc); max-width: 44ch; }
.proj__link {
  margin-top: 22px; display: inline-flex; align-items: center; gap: .5em; min-height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--ac); color: var(--ac-ink); font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .35s var(--ease), background-color 1s var(--ease), color .8s;
}
.proj__link:hover { transform: translateY(-2px); }
.proj__link .ico { transition: transform .35s var(--ease); }
.proj__link:hover .ico { transform: translateX(4px); }

/* Escena fija: los tres apilados; la sección toma el color del que está al frente */
.fx-on .work { height: 360vh; height: 360svh; padding-top: 0; }
.fx-on .work__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--bg); transition: background-color .9s var(--ease), color .7s;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; row-gap: 16px;
  padding-top: 64px; padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
.fx-on .work__ghost {
  display: block; position: absolute; z-index: 0; left: 50%; bottom: -2vw; margin: 0; transform: translateX(-50%);
  font-weight: 850; font-variation-settings: "wdth" 125; letter-spacing: -.06em; line-height: .78;
  font-size: 34vw; white-space: nowrap; color: var(--fgc); opacity: .06; user-select: none; pointer-events: none;
  transition: opacity .45s var(--ease);
}
.fx-on .work__ghost.is-swap { opacity: 0; }
.fx-on .work__head { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fx-on .work__stage { position: relative; z-index: 1; display: grid; min-height: 0; margin-top: 0; max-width: var(--max); padding-inline: var(--gutter); }
.fx-on .proj {
  grid-area: 1 / 1; min-height: 0; padding: 0; background: none;
  grid-template-rows: minmax(0, 1fr) auto; gap: 18px;
  z-index: calc(10 - var(--d, 0)); pointer-events: none;
}
.fx-on .proj.is-active { pointer-events: auto; }
.fx-on .proj__media {
  min-height: 0; height: 100%; align-items: center; transform-origin: 50% 70%; will-change: transform, opacity; backface-visibility: hidden;
  transform: translate3d(calc(max(var(--d, 0), 0) * 5%), calc(max(var(--d, 0), 0) * 3.5%), 0) scale(calc(1 - max(var(--d, 0), 0) * .07)) rotate(calc(max(var(--d, 0), 0) * 3deg));
  opacity: calc(1 - max(var(--d, 0), 0) * .55);
  transition: transform 1.1s var(--ease), opacity .9s var(--ease);
}
.fx-on .proj.is-past .proj__media { transform: translate3d(-8%, -70%, 0) rotate(-9deg) scale(.92); opacity: 0; }
.fx-on .ph { width: auto; height: 100%; max-height: 640px; }
.fx-on .ph--low { margin-top: 0; transform: translateY(7%); }
.fx-on .br { width: auto; max-width: 100%; max-height: 100%; aspect-ratio: 1200 / 790; }
.fx-on .br img { height: calc(100% - 24px); object-fit: cover; object-position: top; }
.fx-on .proj__body > * { opacity: 0; transform: translateY(26px); transition: opacity .5s var(--ease), transform .8s var(--ease); }
.fx-on .proj.is-active .proj__body > * { opacity: 1; transform: none; }
.fx-on .proj.is-active .proj__body > :nth-child(2) { transition-delay: .06s; }
.fx-on .proj.is-active .proj__body > :nth-child(3) { transition-delay: .12s; }
.fx-on .proj.is-active .proj__body > :nth-child(4) { transition-delay: .18s; }
.fx-on .proj__body { visibility: hidden; }
.fx-on .proj.is-active .proj__body { visibility: visible; }
.fx-on .work__bar { position: relative; z-index: 2; display: block; height: 3px; margin-inline: var(--gutter); border-radius: 3px; background: color-mix(in srgb, var(--fgc) 18%, transparent); }
.fx-on .work__bar span { display: block; height: 100%; width: 100%; border-radius: 3px; background: var(--fgc); transform-origin: left; transform: scaleX(var(--wp, 0)); }
.work__tab {
  min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--fgc); border: 1px solid color-mix(in srgb, var(--fgc) 30%, transparent);
  font-size: .875rem; font-weight: 600; transition: background-color .5s, color .5s, border-color .5s;
}
.work__tab:hover { border-color: var(--fgc); }
.work__tab[aria-pressed="true"] { background: var(--ac); color: var(--ac-ink); border-color: transparent; }

/* ---------- Secciones con fondo ---------- */
.sec { position: relative; overflow: hidden; isolation: isolate; background: #050505; color: var(--fg); padding-block: clamp(88px, 11vw, 150px); }
.sec__bg { position: absolute; inset: -8% 0; z-index: -1; }
.sec__bg img { width: 100%; height: 100%; object-fit: cover; }
.sec__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5, 5, 5, .94), rgba(5, 5, 5, .72) 30%, rgba(5, 5, 5, .78) 70%, rgba(5, 5, 5, .96)); }
.fx-on .sec__bg { will-change: transform; backface-visibility: hidden; }
.sec__head { max-width: 40rem; }
.sec h2 { font-size: clamp(2.3rem, 8vw, 4.4rem); font-weight: 820; letter-spacing: -.045em; font-variation-settings: "wdth" 118; }
.sec__head p { margin-top: 14px; font-size: 1.1875rem; color: var(--mut); max-width: 44ch; }
.fx-on [data-fx] { transition: opacity .8s var(--ease), transform 1s var(--ease); }
.fx-on [data-fx].is-pre:not(.is-in) { opacity: 0; transform: translate3d(0, 40px, 0); }

/* Proceso */
.steps { margin-top: 40px; display: grid; gap: 12px; }
.steps li { padding: 24px; }
.steps__n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #f5f5f3; color: #0a0a0a; font-weight: 850; font-size: 1.25rem; font-variation-settings: "wdth" 125;
}
.steps h3 { margin-top: 18px; font-size: 1.375rem; font-weight: 750; letter-spacing: -.02em; }
.steps p { margin-top: 8px; color: var(--mut); }
.proceso__grid { margin-top: 12px; display: grid; gap: 12px; }
.times, .stack { padding: 24px; }
.times h3, .stack h3 { font-size: 1.125rem; font-weight: 700; }
.times dl { margin-top: 12px; }
.times dl > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.times dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.times dt { color: var(--mut); }
.times dd { font-weight: 700; text-align: right; }
.stack ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .875rem; font-weight: 600; }
.stack p { margin-top: 16px; color: var(--mut); font-size: .9375rem; }

/* Nosotros */
.nosotros { display: grid; gap: 14px; }
.nosotros__lead { margin-bottom: 26px; }
.nosotros h2 { font-size: clamp(2.1rem, 7vw, 4.2rem); max-width: 18ch; }
.nosotros__lead p { margin-top: 20px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: #dcdcd8; max-width: 52ch; }
.facts { display: grid; gap: 12px; }
.facts li { display: flex; align-items: center; gap: 20px; padding: 26px 28px; }
.facts b { font-weight: 850; font-size: clamp(3.4rem, 5vw, 4.6rem); line-height: .9; font-variation-settings: "wdth" 125; letter-spacing: -.05em; min-width: 1ch; }
.facts span { color: #e2e2de; font-size: 1.0625rem; line-height: 1.4; }
.founder { position: relative; padding: clamp(28px, 3.4vw, 44px); display: grid; gap: 28px; align-content: space-between; }
.founder__mark {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #f5f5f3; color: #0a0a0a; font-weight: 850; font-size: 1.5rem; font-variation-settings: "wdth" 125;
}
.founder blockquote p { font-size: clamp(1.375rem, 2.3vw, 2rem); line-height: 1.3; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
.founder figcaption { display: grid; gap: 2px; padding-top: 20px; border-top: 1px solid var(--line); }
.founder__name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.founder__role { color: var(--mut); font-size: .9375rem; }

/* Precios: mazo de tarjetas */
.precios { display: grid; gap: 34px; }

/* Contacto */
.contact { display: grid; gap: 30px; }
.contact h2 { font-size: clamp(3rem, 12vw, 7.2rem); max-width: 9ch; line-height: .95; }
.contact__lead > p { margin-top: 22px; color: #e2e2de; font-size: clamp(1.125rem, 1.6vw, 1.375rem); max-width: 36ch; }
.socials { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.socials a {
  display: inline-flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 24px 0 20px; border-radius: 999px;
  background: #0d0d0d; border: 1px solid rgba(255, 255, 255, .18); text-decoration: none; font-size: 1.0625rem;
  transition: background-color .25s, border-color .25s, transform .35s var(--ease);
}
.socials a .ico { width: 26px; height: 26px; }
.socials a span { color: var(--mut); }
.socials a b { color: var(--fg); font-weight: 750; margin-right: .35em; }
.socials a:hover { background: #1a1a1a; border-color: rgba(255, 255, 255, .4); transform: translateY(-2px); }
.brief { display: grid; gap: 22px; padding: clamp(24px, 3.4vw, 40px); }
.brief legend, .field > span { display: block; padding: 0; margin-bottom: 12px; font-size: 1.0625rem; font-weight: 700; }
.brief__need { display: flex; flex-wrap: wrap; gap: 8px; }
.brief__need legend { width: 100%; float: left; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28); font-size: 1rem; font-weight: 600;
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip:hover span { border-color: rgba(255, 255, 255, .6); }
.chip input:checked + span { background: #f5f5f3; color: #0a0a0a; border-color: transparent; }
.chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.field input, .field textarea {
  display: block; width: 100%; padding: 16px 18px; border-radius: 16px; resize: vertical; font-size: 1.0625rem;
  background: #141414; border: 1px solid rgba(255, 255, 255, .22); caret-color: #fff;
  transition: border-color .2s, background-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #9a9a96; opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .1); }

/* ---------- FOOTER ---------- */
.footer { position: relative; z-index: 1; background: #000; color: var(--fg); padding-block: 26px calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.footer .logo { font-size: 1.5rem; }
.footer p { color: #8f8f8b; font-size: .875rem; }

/* ---------- Tablet ---------- */
@media (min-width: 720px) {
  .wordmark { font-size: min(12.4vw, 13.5rem); white-space: nowrap; }
  .wordmark > span { display: inline; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .proceso__grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 960px) {
  .brand { display: inline-block; }
  .pill__cta { display: inline-flex; }
  .pill { top: 14px; }

  .hero h1 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); max-width: 24ch; }
  .lede { font-size: 1.125rem; }

  .work__head h2 { font-size: clamp(2.2rem, 3vw, 2.8rem); }
  .proj { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; column-gap: clamp(36px, 5vw, 80px); padding-block: 80px; max-width: var(--max); margin-inline: auto; }
  .proj__body { order: -1; }
  .proj--wide { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
  .fx-on .work__pin { padding-top: 84px; padding-bottom: 28px; row-gap: 18px; }
  .fx-on .work__tabs { display: flex; gap: 8px; }
  .fx-on .proj { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); column-gap: clamp(36px, 5vw, 80px); align-items: center; }
  .fx-on .proj--wide { grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); }
  .fx-on .proj__media { height: min(72vh, 680px); }
  .fx-on .proj--wide .proj__media { height: auto; max-height: 72vh; }
  .fx-on .br { width: 100%; height: auto; max-height: 72vh; }
  .proj__text { font-size: 1.1875rem; }
  .proj__body { min-width: 0; }
  .proj h3 { font-size: clamp(2.6rem, 4.4vw, 4.4rem); }
  .proj--wide h3 { font-size: clamp(2.2rem, 3.4vw, 3.6rem); }
  .fx-on .work__ghost { font-size: 26vw; bottom: -3vw; }

  .nosotros { grid-template-columns: 1.2fr 1fr; column-gap: 14px; align-items: stretch; }
  .nosotros__lead { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr; }
  .facts li { flex-direction: row; align-items: center; }
  .founder { align-content: space-between; }

  .precios { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; column-gap: 64px; }

  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 64px; align-items: center; }
  .contact h2 { font-size: min(5.6vw, 6rem); }
}

/* ---------- Animaciones ligadas al scroll en la GPU (Chrome, Edge, Safari 26+) ----------
   El navegador las calcula fuera del hilo principal: el scroll nunca espera a JavaScript.
   Sin soporte, js/main.js hace lo mismo a mano (clase .fx-js). */
@supports (animation-timeline: scroll()) {
  .fx-on .hero::after { animation: shade linear both; animation-timeline: scroll(root block); animation-range: 0 100vh; }
  .fx-on .hero__bg { animation: hero-par linear both; animation-timeline: scroll(root block); animation-range: 0 100vh; }
  .fx-on .hero__in { animation: hero-in linear both; animation-timeline: scroll(root block); animation-range: 0 65vh; }
  .fx-on .sec__bg { animation: sec-par linear both; animation-timeline: view(); animation-range: cover; }
  .fx-on .work { view-timeline: --work block; }
  .fx-on .work__bar span { animation: grow linear both; animation-timeline: --work; animation-range: contain 0% contain 100%; }
}
@keyframes shade { from { opacity: 0; } to { opacity: .75; } }
@keyframes hero-in { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(0, -90px, 0) scale(.95); } }
@keyframes sec-par { from { transform: translate3d(0, -5%, 0); } to { transform: translate3d(0, 5%, 0); } }
@keyframes rise { from { opacity: .12; transform: translate3d(0, 64px, 0); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Precios: sin foto; la palabra gigante detrás y una luz suave, como el video de referencia */
.sec--precios { background: #040404; }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 36px; }
.faq__side > p { margin-top: 16px; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); color: var(--mut); max-width: 32ch; }
.faq__side .btn { margin-top: 28px; }
.faq__list { display: grid; gap: 10px; }
.qa {
  border-radius: 22px; background: linear-gradient(180deg, #151515, #0a0a0a);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: border-color .3s;
}
.qa[open] { border-color: rgba(255, 255, 255, .26); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 72px; padding: 18px 24px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 700; letter-spacing: -.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23f5f5f3' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .45s var(--ease), background-color .3s;
}
.qa[open] summary::after { transform: rotate(45deg); background-color: rgba(255, 255, 255, .2); }
.qa summary:hover::after { background-color: rgba(255, 255, 255, .2); }
.qa__a { padding: 0 24px 22px; }
.qa__a p { color: #dcdcd8; font-size: 1.0625rem; line-height: 1.6; max-width: 60ch; }
/* Apertura suave (Chrome/Edge 131+); en otros navegadores abre al instante */
@supports (interpolate-size: allow-keywords) {
  .fx-on .faq { interpolate-size: allow-keywords; }
  .fx-on .qa::details-content { height: 0; overflow: clip; transition: height .5s var(--ease), content-visibility .5s allow-discrete; }
  .fx-on .qa[open]::details-content { height: auto; }
}
@media (min-width: 960px) {
  .faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 64px; align-items: start; }
  .faq__side { position: sticky; top: 110px; }
}


/* ==========================================================================
   v2: idioma, modo claro, flota, cursor, cortina, títulos palabra por palabra,
   video de presentación, mantenimiento y calculadora
   ========================================================================== */

/* ---------- Menú en celular: seis enlaces caben ---------- */
@media (max-width: 959px) {
  .pill__links a { padding: 0 clamp(6px, 2vw, 11px); font-size: clamp(.71875rem, 3.1vw, .8125rem); }
}

/* ---------- Idioma y modo ---------- */
.tools {
  position: absolute; z-index: 5; top: calc(64px + env(safe-area-inset-top)); left: 0; right: 0;
  display: flex; justify-content: center; align-items: center; gap: 8px;
}
.lang {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: rgba(16, 16, 16, .78); border: 1px solid rgba(255, 255, 255, .16);
}
.lang a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px;
  color: #c9c9c5; text-decoration: none; font-size: .8125rem; font-weight: 600;
  transition: background-color .3s, color .3s;
}
.lang a:hover { color: #fff; }
.lang a[aria-current="page"] { background: #f5f5f3; color: #0a0a0a; }
@media (min-width: 960px) {
  .tools { position: fixed; z-index: 50; top: 14px; left: auto; right: var(--gutter); justify-content: flex-end; }
}


/* ---------- Cortina al cambiar de idioma ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: #050505; color: #f5f5f3;
  transform: translate3d(0, 101%, 0); pointer-events: none;
}
.curtain span { font-weight: 850; font-variation-settings: "wdth" 125; letter-spacing: -.05em; font-size: clamp(2.6rem, 9vw, 6rem); opacity: 0; transition: opacity .3s .15s; }
.curtain i { font-style: normal; font-weight: 300; }
.curtain-out .curtain { transform: none; transition: transform .55s cubic-bezier(.7, 0, .3, 1); }
.curtain-out .curtain span { opacity: 1; }
.curtain-in .curtain { transform: none; }
.curtain-in .curtain span { opacity: 1; transition: none; }
.curtain-in.is-ready .curtain { transform: translate3d(0, -101%, 0); transition: transform .8s cubic-bezier(.7, 0, .3, 1) .15s; }
.curtain-in.is-ready .curtain span { opacity: 0; transition: opacity .25s; }

/* ---------- Títulos que aparecen palabra por palabra ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split .w > span { display: inline-block; }
.fx-on .split.is-pre .w > span { transform: translate3d(0, 105%, 0); }
.fx-on .split .w > span { transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.fx-on .split.is-pre.is-in .w > span { transform: none; }

/* ---------- Video de presentación ---------- */
.reel { margin: 0; display: grid; gap: 12px; align-content: start; }
.reel__frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 34px 60px -30px rgba(0, 0, 0, .9);
  max-height: 640px; margin-inline: auto; width: 100%;
}
.reel__video { width: 100%; height: 100%; object-fit: cover; }
.reel__play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center;
  border-radius: 50%; border: 0; cursor: pointer; background: #f5f5f3; color: #0a0a0a;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .8); transition: transform .4s var(--ease), opacity .3s;
}
.reel__play .ico { width: 28px; height: 28px; margin-left: 4px; }
.reel__play:hover { transform: scale(1.06); }
.reel.is-playing .reel__play { opacity: 0; pointer-events: none; transform: scale(.8); }
.reel figcaption { text-align: center; color: var(--mut); font-size: .9375rem; }

/* ---------- Precios: enlace a la calculadora y mantenimiento ---------- */
.link-arrow { margin-top: 24px; display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.link-arrow .ico { transition: transform .35s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
.maint { grid-column: 1 / -1; display: grid; gap: 20px; padding: clamp(24px, 3vw, 36px); align-items: center; }
.maint__head h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.03em; }
.maint__list { display: grid; gap: 10px; }
.maint__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 1.0625rem; }
.maint__list li::before, .check span::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23f5f5f3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.maint .btn { justify-self: start; }
@media (min-width: 960px) {
  .maint { grid-template-columns: 1fr 1.3fr auto; column-gap: 40px; }
  .maint__list { grid-template-columns: 1fr 1fr; column-gap: 28px; }
}

/* ---------- Calculadora ---------- */
.sec--calc { background: #050505; }
.calc { display: grid; gap: 18px; }
.calc__intro p { margin-top: 14px; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); color: var(--mut); max-width: 44ch; }
.calc__form { padding: clamp(22px, 3vw, 34px); display: grid; gap: 26px; }
.calc__form legend { padding: 0; margin-bottom: 14px; font-size: 1.0625rem; font-weight: 700; }
.calc__options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt, .check { position: relative; cursor: pointer; }
.opt input, .check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28); font-weight: 600; transition: background-color .25s, color .25s, border-color .25s;
}
.opt:hover span { border-color: rgba(255, 255, 255, .6); }
.opt input:checked + span { background: #f5f5f3; color: #0a0a0a; border-color: transparent; }
.calc__extras { display: grid; gap: 8px; }
.check span {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .16); background: #121212; font-weight: 600; transition: border-color .25s, background-color .25s;
}
.check span::before { background-image: none; border: 1.5px solid rgba(255, 255, 255, .5); background-color: transparent; transition: background-color .25s, border-color .25s; }
.check input:checked + span { border-color: rgba(255, 255, 255, .5); background: #1b1b1b; }
.check input:checked + span::before {
  border-color: transparent; background: #f5f5f3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230a0a0a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.opt input:focus-visible + span, .check input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.calc__out { padding: clamp(24px, 3vw, 34px); display: grid; gap: 14px; align-content: start; }
.calc__label { color: var(--mut); font-size: .9375rem; font-weight: 600; }
.calc__type { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.calc__dl > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-top: 1px solid var(--line); }
.calc__dl dt { color: var(--mut); }
.calc__dl dd { font-weight: 700; text-align: right; }
.calc__note { color: var(--mut); font-size: .9375rem; }
.calc__out .btn { margin-top: 8px; }
.calc__type.is-swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
@media (min-width: 720px) { .calc__extras { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .calc { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); column-gap: 16px; align-items: start; }
  .calc__intro { grid-column: 1 / -1; margin-bottom: 10px; }
  .calc__out { position: sticky; top: 100px; }
}

/* ---------- Nosotros con video ---------- */
@media (min-width: 960px) {
  .nosotros { grid-template-columns: 1fr minmax(240px, .62fr) 1fr; column-gap: 14px; }
  .facts { grid-column: 1; }
  .reel { grid-column: 2; grid-row: 2; }
  .founder { grid-column: 3; grid-row: 2; }
  .facts li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 24px; }
}

/* ---------- «Reducir movimiento»: todo funciona, pero más suave ---------- */
.calm.fx-on .sec__bg { animation: none; }
.calm.fx-on [data-fx].is-pre:not(.is-in) { transform: none; }
.calm.fx-on .split.is-pre .w > span { transform: translate3d(0, 40%, 0); opacity: 0; }
.calm.fx-on .split.is-pre.is-in .w > span { opacity: 1; transform: none; transition: transform .6s var(--ease), opacity .6s; }

/* ==========================================================================
   Modo claro: blanco y negro invertido. Proyectos y el hero mantienen su mundo.
   ========================================================================== */

/* Modo claro: el logo de arriba se vuelve negro fuera del hero y de proyectos */
.brand { transition: color .4s; }

@keyframes hero-par { to { transform: translate3d(0, 32vh, 0) scale(1.06); } }

/* ==========================================================================
   v3
   ========================================================================== */

/* Proyectos entra encima del hero, con su borde redondeado */
.work { margin-top: -34px; }

/* ---------- Luz blanca que sigue al mouse ---------- */
.glow { display: none; }
@media (hover: hover) and (pointer: fine) {
  .glow {
    display: block; position: fixed; z-index: 60; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px;
    border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .6s;
    background: radial-gradient(circle, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .05) 28%, rgba(255, 255, 255, 0) 62%);
    will-change: transform;
  }
  .glow.is-on { opacity: 1; }
}

/* ---------- Sonido ---------- */

/* ---------- Logo que se arma al entrar (solo la primera vez) ---------- */
.wordmark .ch { display: inline-block; }
.wordmark.is-intro .ch { animation: ch-in 1s var(--ease) both; animation-delay: calc(var(--i) * 55ms + .15s); }
@keyframes ch-in { from { opacity: 0; transform: translate3d(0, 45%, 0) rotate(5deg); } }

/* ---------- Proceso: el muro de pantallas en perspectiva ---------- */
.sec--proceso .sec__bg { perspective: 1400px; }
.sec--proceso .sec__bg img { transform: rotateX(24deg) rotateZ(-7deg) scale(1.5); transform-origin: 50% 40%; opacity: .9; }
.sec--proceso .sec__bg::after {
  background:
    radial-gradient(90% 70% at 50% 50%, rgba(5, 5, 5, .55), rgba(5, 5, 5, .92) 75%),
    linear-gradient(to bottom, rgba(5, 5, 5, .9), rgba(5, 5, 5, 0) 30%, rgba(5, 5, 5, 0) 70%, rgba(5, 5, 5, .95));
}

/* ---------- Tarjetas que se abren de abajo hacia arriba ---------- */
.fx-on [data-rise] > * { transition: transform .9s var(--ease), opacity .7s var(--ease); }
.fx-on [data-rise].is-pre:not(.is-in) > * { transform: translate3d(0, 44px, 0); opacity: 0; }
.fx-on [data-rise] > :nth-child(2) { transition-delay: .09s; }
.fx-on [data-rise] > :nth-child(3) { transition-delay: .18s; }
.fx-on [data-rise] > :nth-child(4) { transition-delay: .27s; }

/* ---------- Garantía ---------- */

/* ---------- Rubros ---------- */
.sec--rubros { background: #070707; }
.rubros { margin-top: 40px; display: grid; gap: 12px; }
.rubro {
  display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 26px; min-height: 230px;
  background: linear-gradient(180deg, #151515, #0a0a0a); border: 1px solid rgba(255, 255, 255, .12);
  transition: border-color .3s, transform .5s var(--ease);
}
.rubro:hover { border-color: rgba(255, 255, 255, .3); transform: translateY(-4px); }
.rubro h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 800; letter-spacing: -.03em; }
.rubro p { color: var(--mut); }
.rubro__link { margin-top: auto; display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font-weight: 700; text-decoration: none; }
.rubro__link .ico { transition: transform .35s var(--ease); }
.rubro:hover .rubro__link .ico { transform: translateX(4px); }
@media (min-width: 720px) { .rubros { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .rubros { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Nosotros: insignia y tarjetas que llegan desde los lados ---------- */
.nosotros__lead { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }
.fx-on [data-side] { transition: transform 1s var(--ease), opacity .8s var(--ease); }
.fx-on [data-side="left"].is-pre:not(.is-in) { transform: translate3d(-90px, 0, 0); opacity: 0; }
.fx-on [data-side="right"].is-pre:not(.is-in) { transform: translate3d(90px, 0, 0); opacity: 0; }
.fx-on [data-side="up"].is-pre:not(.is-in) { transform: translate3d(0, 60px, 0) scale(.96); opacity: 0; }
.fx-on [data-side="up"] { transition-delay: .1s; }

/* ---------- Precios: escenario con luz, palabra gigante en contorno ---------- */
.sec--precios { background: radial-gradient(70% 55% at 50% 0%, #1b1b1b, #050505 70%); }

/* ---------- Preguntas: un solo panel con filas ---------- */
.faq__list {
  gap: 0; padding: 8px clamp(18px, 2.4vw, 30px); border-radius: 30px;
  background: rgba(8, 8, 8, .86); border: 1px solid rgba(255, 255, 255, .12);
}
.qa { border: 0; border-radius: 0; background: none; box-shadow: none; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.qa:last-child { border-bottom: 0; }
.qa summary { padding: 22px 0; min-height: 76px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); }
.qa summary::after { background-color: transparent; border: 1.5px solid rgba(255, 255, 255, .35); }
.qa[open] summary::after { background-color: #f5f5f3; filter: invert(1); border-color: transparent; }
.qa__a { padding: 0 0 24px; }

/* ---------- Consejos ---------- */
.sec--tips { background: #060606; }

/* ---------- Contacto: número grande ---------- */
.sec--contacto .sec__bg::after { background: linear-gradient(to bottom, rgba(5, 5, 5, .95), rgba(5, 5, 5, .55) 40%, rgba(5, 5, 5, .35) 75%, rgba(5, 5, 5, .9)); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 45; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
  background: #f5f5f3; color: #0a0a0a; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .7);
  transform: translate3d(0, 140%, 0); opacity: 0; transition: transform .6s var(--ease), opacity .4s;
}
.wa-float .ico { width: 26px; height: 26px; }
.wa-float.is-on { transform: none; opacity: 1; }
.wa-float:hover { transform: translateY(-3px); }

/* ---------- Proyectos: enlace al caso y giro 3D con el mouse ---------- */
.proj__case { display: inline-flex; margin: 18px 0 0 18px; min-height: 44px; align-items: center; font-weight: 650; color: var(--fgc); text-decoration: underline; text-underline-offset: .25em; }
.proj .ph, .proj .br { transform: perspective(1100px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .6s var(--ease); }
.fx-on .ph--low { transform: perspective(1100px) translateY(7%) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }

/* «Reducir movimiento»: sin giro de la insignia */

/* ---------- Páginas de cada proyecto ---------- */
.case__bar {
  position: fixed; z-index: 50; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gutter) 22px;
}
/* Al bajar aparece un fondo detrás de la barra, para que el texto no se cruce con los botones */
.case__bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8, 8, 8, .92), rgba(8, 8, 8, .78) 60%, rgba(8, 8, 8, 0));
}
@supports (animation-timeline: scroll()) {
  .case__bar::before { animation: bar-in linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
}
@keyframes bar-in { from { opacity: 0; } to { opacity: 1; } }
.case__back { white-space: nowrap; }
.case__back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: rgba(16, 16, 16, .82); border: 1px solid rgba(255, 255, 255, .16); color: #fff; text-decoration: none; font-weight: 650; font-size: .9375rem;
}
.case__back .ico { transform: rotate(180deg); }
.case__hero { background: var(--bg); color: var(--fgc); padding: clamp(120px, 16vw, 190px) 0 clamp(64px, 8vw, 100px); }
@media (max-width: 479px) { .case__more { display: none; } }
.case__hero h1 { margin-top: 16px; font-size: clamp(2.2rem, 10.4vw, 7.5rem); font-weight: 850; letter-spacing: -.05em; line-height: .92; font-variation-settings: "wdth" 120; }
.case__lede { margin-top: 22px; max-width: 46ch; font-size: clamp(1.125rem, 1.7vw, 1.4rem); color: var(--mutc); }
.case__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.case__body { padding-block: clamp(64px, 8vw, 110px); }
.case__body h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.035em; }
.case__cols { display: grid; gap: 40px; }
.case__cols p { margin-top: 14px; font-size: 1.125rem; color: #dcdcd8; max-width: 52ch; }
.case__list { margin-top: 16px; display: grid; gap: 12px; }
.case__list li { display: flex; gap: 12px; font-size: 1.0625rem; color: #e6e6e2; }
.case__list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23f5f5f3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.case__h { margin-top: clamp(56px, 7vw, 90px); }
.case__shots {
  margin-top: 22px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin;
}
.case__shot { flex: none; width: min(62vw, 270px); margin: 0; scroll-snap-align: start; border-radius: 26px; overflow: hidden; background: #050505; padding: 5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.case__shot img { width: 100%; border-radius: 21px; }
.case__shot--wide { width: min(86vw, 640px); border-radius: 14px; padding: 0; }
.case__shot--wide img { border-radius: 0; }
.case__stack { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.case__stack li { padding: 8px 14px; border-radius: 999px; background: #121212; border: 1px solid rgba(255, 255, 255, .14); font-weight: 600; font-size: .9375rem; }
.case__cta { background: #050505; border-top: 1px solid var(--line); padding-block: clamp(70px, 9vw, 120px); text-align: center; }
.case__cta h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 820; letter-spacing: -.04em; max-width: 18ch; margin-inline: auto; }
.case__cta p { margin: 16px auto 28px; max-width: 42ch; color: var(--mut); font-size: 1.125rem; }
.case__others { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 22px; color: var(--mut); }
.case__other { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--fg); font-weight: 700; text-decoration: none; }
.case__other:hover { text-decoration: underline; }
@media (min-width: 960px) { .case__cols { grid-template-columns: 1fr 1.2fr; column-gap: 80px; } }

/* ---------- Celular: ajustes finos ---------- */
@media (max-width: 719px) {
  /* Menú: 4 enlaces legibles en vez de 6 apretados (Proceso y Nosotros se ven al bajar) */
  .pill__links li:nth-child(2), .pill__links li:nth-child(3) { display: none; }
  .pill__links a { min-height: 42px; padding: 0 clamp(10px, 3.4vw, 16px); font-size: .9375rem; }
  .pill__mark { height: 42px; }

  /* Entradas más cortas: al deslizar rápido nunca se ve una tarjeta vacía */
  .fx-on [data-fx], .fx-on [data-side] { transition-duration: .6s, .5s; transition-delay: 0s; }
  .fx-on [data-fx].is-pre:not(.is-in) { transform: translate3d(0, 24px, 0); }
  .fx-on [data-rise] > * { transition: transform .6s var(--ease), opacity .5s var(--ease); }
  .fx-on [data-rise].is-pre:not(.is-in) > * { transform: translate3d(0, 24px, 0); opacity: 0; }
  .fx-on [data-rise] > :nth-child(n) { transition-delay: 0s; }
  .fx-on [data-side="left"].is-pre:not(.is-in) { transform: translate3d(-36px, 0, 0); }
  .fx-on [data-side="right"].is-pre:not(.is-in) { transform: translate3d(36px, 0, 0); }
  .fx-on [data-side="up"].is-pre:not(.is-in) { transform: translate3d(0, 30px, 0); }

  /* Precios: las 5 pestañas en una sola fila que se desliza con el dedo */
  .precios > * { min-width: 0; }

  /* El botón flotante de WhatsApp no tapa el final de las secciones */
  .sec { padding-bottom: max(96px, clamp(88px, 11vw, 150px)); }
}

/* ==========================================================================
   v4: proyectos más claros, Nosotros sin huecos, precios sin montos,
   contacto con aire y footer con redes
   ========================================================================== */

/* ---------- Proyectos: texto a la izquierda, captura a la derecha ---------- */
@media (min-width: 960px) {
  .work__head h2 { font-size: clamp(2.8rem, 4.2vw, 4.2rem); }
  .work__tab { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
  .fx-on .proj, .fx-on .proj--wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 5vw, 88px); }
  .fx-on .proj__body { position: relative; z-index: 2; }
  .fx-on .proj__media { justify-content: flex-end; min-width: 0; }
  .fx-on .proj--wide .proj__media { height: min(72vh, 680px); align-items: center; }
  .fx-on .proj--wide .br { width: 100%; height: auto; max-height: none; aspect-ratio: auto; }
  .fx-on .proj--wide .br img { height: auto; }
  .proj h3, .proj--wide h3 { font-size: clamp(2.6rem, 3.7vw, 4.2rem); overflow-wrap: anywhere; }
  .proj__tag { min-height: 34px; padding: 0 14px; font-size: .875rem; }
  .proj__text { font-size: clamp(1.1875rem, 1.35vw, 1.3125rem); max-width: 40ch; }
}

/* ---------- Nosotros ---------- */
.made {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 26px;
  padding: 8px 18px 8px 10px; border-radius: 999px; background: #0d0d0d; border: 1px solid rgba(255, 255, 255, .18);
  font-size: .9375rem; font-weight: 700; letter-spacing: .01em;
}
.made__flag { width: 30px; height: 20px; flex: none; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.founder blockquote p { max-width: 34ch; }
@media (min-width: 960px) {
  .nosotros {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "lead reel" "facts reel" "founder founder";
    column-gap: clamp(40px, 6vw, 96px); row-gap: 14px; align-items: start;
  }
  .nosotros__lead { grid-area: lead; margin-bottom: 20px; }
  .facts { grid-area: facts; grid-template-columns: 1fr; }
  .facts li { flex-direction: row; align-items: center; gap: 22px; padding: 22px 26px; }
  .reel { grid-area: reel; align-self: center; }
  .reel__frame { width: min(100%, calc(min(80vh, 720px) * 9 / 16)); max-height: none; }
  .founder { grid-area: founder; margin-top: 26px; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 48px; }
  .founder figcaption { padding-top: 0; border-top: 0; padding-left: 28px; border-left: 1px solid var(--line); }
  .founder blockquote p { max-width: 40ch; }
}

/* ---------- Precios: sin palabra gigante, una luz suave detrás de las tarjetas ---------- */
.sec--precios { background: radial-gradient(70% 55% at 50% 62%, rgba(255, 255, 255, .075), rgba(255, 255, 255, 0) 70%), #040404; }
@media (min-width: 960px) {
  .sec--precios { background: radial-gradient(42% 60% at 72% 50%, rgba(255, 255, 255, .085), rgba(255, 255, 255, 0) 70%), #040404; }
}
@media (min-width: 960px) {
  .maint { grid-template-columns: minmax(0, .9fr) minmax(0, 1.7fr) auto; }
  .maint__list li { white-space: nowrap; }
}
.maint__note { margin-top: 8px; color: var(--mut); font-size: 1.0625rem; }
.maint .btn .ico { width: 20px; height: 20px; }
/* Mazo más fluido: curvas largas y suaves, sin frenazos */

/* ---------- Contacto: entra como una hoja nueva sobre las preguntas ---------- */
.sec--contacto {
  margin-top: -40px; border-radius: 40px 40px 0 0; border-top: 1px solid rgba(255, 255, 255, .34);
  box-shadow: 0 -40px 80px -30px rgba(0, 0, 0, .9); padding-block: clamp(100px, 12vw, 170px);
}
.sec--faq { padding-bottom: clamp(130px, 14vw, 190px); }
.socials { flex-direction: column; align-items: stretch; max-width: 440px; }
.socials a { display: flex; justify-content: flex-start; }
.socials__wa .ico { color: #f5f5f3; }
.brief { gap: 26px; }
.brief__need { gap: 10px; }
@media (min-width: 960px) {
  .contact { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); column-gap: clamp(56px, 8vw, 136px); align-items: start; }
  .contact h2 { font-size: min(6.2vw, 6.6rem); }
  .brief { padding: clamp(32px, 3.4vw, 48px); gap: 30px; margin-top: 12px; }
}

/* ---------- Footer con redes ---------- */
.footer__in { align-items: center; row-gap: 14px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2); color: #f5f5f3; transition: background-color .25s, border-color .25s, transform .35s var(--ease);
}
.footer__social a:hover { background: #1a1a1a; border-color: rgba(255, 255, 255, .45); transform: translateY(-2px); }
.footer__social .ico { width: 20px; height: 20px; }

/* ==========================================================================
   v5: Nosotros rediseñado, precios lado a lado, calculadora más grande,
   contacto con el título arriba y animaciones solo con transform/opacidad
   ========================================================================== */

.fx-on [data-rise] > :nth-child(5) { transition-delay: .36s; }

/* ---------- Rubros: más presencia, cinco tarjetas en dos filas ---------- */
.rubros { margin-top: 48px; gap: 14px; }
.rubro { padding: clamp(26px, 2.6vw, 36px); min-height: 280px; gap: 14px; border-radius: 28px; }
.rubro h3 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.05; text-wrap: balance; }
.rubro p { font-size: 1.0625rem; max-width: 38ch; }
.rubro--other { background: #f5f5f3; color: #0a0a0a; border-color: transparent; }
.rubro--other p { color: #3d3d3a; }
.rubro--other:hover { border-color: transparent; }
@media (min-width: 720px) and (max-width: 1099px) { .rubro--other { grid-column: 1 / -1; min-height: 0; } }
@media (min-width: 1100px) {
  .rubros { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rubro { grid-column: span 2; }
  .rubro:nth-child(n+4) { grid-column: span 3; min-height: 240px; }
}
@media (hover: hover) and (pointer: fine) {
  .rubro { transition: border-color .35s, transform .6s var(--ease), box-shadow .6s var(--ease); }
  .rubro:hover { transform: translate3d(0, -6px, 0); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .9); }
}

/* ---------- Nosotros ---------- */
.nosotros { gap: 0; }
.nosotros h2 { font-size: clamp(2.3rem, 4.6vw, 4.6rem); max-width: 15ch; line-height: 1; text-wrap: balance; }
.nosotros__lead { margin-bottom: 0; }
.made { margin-bottom: 28px; padding: 8px 18px 8px 10px; }

/* Cifras: una regla con tres columnas, sin cajas */
.facts { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .16); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.facts li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; padding: 22px 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
.facts li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
.facts b { font-size: clamp(3rem, 5vw, 4.4rem); min-width: 2.6ch; font-variant-numeric: tabular-nums; }
.facts span { font-size: 1.0625rem; color: #d8d8d4; max-width: 30ch; }

/* Video vertical completo, como un reel */
.reel { margin-top: 48px; justify-items: center; gap: 14px; }
.reel__frame {
  width: min(100%, 360px); max-height: none; aspect-ratio: 9 / 16; border-radius: 32px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 40px 80px -40px rgba(0, 0, 0, .95);
}
.reel__video { object-fit: cover; background: #000; }
.reel__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 32%); transition: opacity .4s;
}
.reel.is-playing .reel__frame::after, .reel.is-playing .reel__len { opacity: 0; }
.reel__len {
  position: absolute; z-index: 1; left: 16px; top: 16px; padding: 5px 11px; border-radius: 999px;
  background: rgba(0, 0, 0, .62); color: #fff; font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums; transition: opacity .4s;
}
.reel__play { z-index: 1; width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.reel__play .ico { width: 30px; height: 30px; }
.reel figcaption { font-size: 1rem; color: #cfcfcb; }

/* La cita de Daniel: tipográfica, sin caja */
.founder { margin-top: 48px; padding: 30px 0 0; background: none; border: 0; box-shadow: none; border-radius: 0; border-top: 1px solid rgba(255, 255, 255, .16); gap: 22px; }
.founder blockquote p { font-size: clamp(1.3rem, 2vw, 1.75rem); max-width: 36ch; color: #f2f2ee; }
.founder figcaption { display: flex; align-items: baseline; gap: 12px; padding: 0; border: 0; }
.founder__role { color: #a9a9a5; }

@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts li { grid-template-columns: 1fr; align-items: start; gap: 10px; padding: 26px 26px 26px 0; }
  .facts li + li { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .1); padding-left: 26px; }
}
@media (min-width: 960px) {
  .nosotros {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lead reel" "facts reel" "founder reel";
    grid-template-rows: auto auto 1fr; column-gap: clamp(48px, 6vw, 110px); align-items: start;
  }
  .nosotros__lead { grid-area: lead; }
  .facts { grid-area: facts; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts li { flex-direction: unset; }
  .reel { grid-area: reel; margin-top: 0; align-self: center; }
  .reel__frame { width: calc(min(78vh, 720px) * 9 / 16); }
  .founder { grid-area: founder; margin-top: 44px; grid-template-columns: none; align-self: end; }
  .founder figcaption { padding-left: 0; border-left: 0; }
}

/* ---------- Precios: las tarjetas lado a lado ---------- */
.sec--precios { background: radial-gradient(60% 45% at 50% 30%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 70%), #040404; }
.precios { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.precios__head h2 { font-size: clamp(3rem, 8vw, 6.4rem); line-height: .95; }
.precios__head p { margin-top: 16px; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); color: #cfcfcb; max-width: 42ch; }
.precios__head .link-arrow { margin-top: 18px; font-size: 1.0625rem; }
@media (min-width: 960px) {
  .precios__head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(40px, 6vw, 100px); align-items: end; }
  .precios__head h2 { grid-row: span 2; }
  .precios__head p { margin-top: 0; }
}

.tiers { margin-top: clamp(36px, 4vw, 56px); display: grid; gap: 14px; }
.tier {
  display: flex; flex-direction: column; padding: clamp(26px, 2.4vw, 36px); border-radius: 28px; min-width: 0;
  background: linear-gradient(180deg, #171717, #0a0a0a); border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 30px 60px -40px rgba(0, 0, 0, .9);
}
.tier__name { font-size: clamp(1.75rem, 2.4vw, 2.3rem); font-weight: 820; letter-spacing: -.035em; line-height: 1.05; font-variation-settings: "wdth" 112; }
.tier__time { margin-top: 10px; color: #d6d6d2; font-size: 1.0625rem; font-weight: 500; }
.tier__list { margin: 24px 0 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 14px; font-size: 1.0625rem; }
.tier__list li { display: flex; align-items: flex-start; gap: 12px; }
.tier__list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: rgba(255, 255, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23f5f5f3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.tier__btn {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 20px;
  border-radius: 999px; background: #f5f5f3; color: #0a0a0a; font-weight: 750; text-decoration: none; text-align: center;
}
.tier__btn .ico { width: 20px; height: 20px; }
.tier__btn { white-space: nowrap; font-size: 1rem; padding: 0 18px; }
@media (max-width: 400px) { .tier__btn { font-size: .9375rem; padding: 0 14px; gap: 8px; } }
@media (hover: hover) and (pointer: fine) {
  .tier { transition: transform .6s var(--ease), border-color .35s, box-shadow .6s var(--ease); }
  .tier:hover { transform: translate3d(0, -8px, 0); border-color: rgba(255, 255, 255, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 44px 70px -40px rgba(0, 0, 0, 1); }
  .tier__btn { transition: background-color .25s, transform .4s var(--ease); }
  .tier__btn:hover { background: #fff; transform: translate3d(0, -2px, 0); }
}

/* Celular y tablet: una fila que se desliza con el dedo (scroll nativo, siempre fluido) */
@media (max-width: 959px) {
  .tiers {
    grid-auto-flow: column; grid-auto-columns: min(84%, 340px); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px;
  }
  .tiers::-webkit-scrollbar { display: none; }
  .tier { scroll-snap-align: start; }
}
@media (min-width: 720px) and (max-width: 959px) { .tiers { grid-auto-columns: 46%; } }
@media (min-width: 960px) {
  .tiers { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tier { grid-column: span 2; }
  .tier:nth-child(n+4) { grid-column: span 3; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 32px; align-content: start; }
  .tier:nth-child(n+4) .tier__list { grid-column: 2; grid-row: 1 / span 3; margin: 0; padding: 0 0 0 32px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .12); align-content: center; }
  .tier:nth-child(n+4) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tier:nth-child(n+4) .tier__btn { margin-top: 26px; align-self: end; justify-self: start; white-space: nowrap; padding: 0 24px; }
}
.maint { margin-top: 14px; }
.maint__list li { white-space: normal; }

/* ---------- Calculadora: más grande y con menos ruido ---------- */
.sec--calc .sec__bg img { opacity: .4; }
.calc__intro h2 { font-size: clamp(2.8rem, 6.4vw, 5.8rem); line-height: .98; }
.calc__intro p { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); color: #cfcfcb; }
.calc__form { padding: clamp(26px, 3.2vw, 44px); gap: 32px; }
.calc__form legend { font-size: 1.25rem; font-weight: 750; margin-bottom: 16px; }
.calc__options { gap: 10px; }
.opt span { min-height: 54px; padding: 0 22px; font-size: 1.0625rem; }
.calc__extras { gap: 10px; }
.check span { min-height: 62px; font-size: 1.0625rem; }
.calc__out { padding: clamp(28px, 3.2vw, 44px); gap: 18px; }
.calc__label { font-size: 1rem; }
.calc__type { font-size: clamp(2.2rem, 3.8vw, 3.6rem); }
.calc__dl { font-size: 1.0625rem; }
.calc__dl > div { padding-block: 16px; }
@media (min-width: 960px) {
  .calc { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); column-gap: 18px; }
  .calc__intro { margin-bottom: 18px; }
}

/* ---------- Contacto: el título arriba, a lo ancho ---------- */
.contact .contact__title { grid-column: 1 / -1; max-width: 12ch; font-size: clamp(3rem, 7.6vw, 7.8rem); line-height: .92; text-wrap: balance; }
.contact__lead > p { margin-top: 0; }
@media (min-width: 960px) {
  .contact { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: clamp(48px, 7vw, 120px); row-gap: clamp(40px, 4vw, 60px); align-items: start; }
  .contact .contact__title { max-width: none; font-size: clamp(3.6rem, 7.4vw, 7.8rem); }
  .brief { margin-top: 0; }
}
