/* =========================================================
   JAB · Diseño simple que funciona
   Mobile-first. Paleta carbón/hueso + acento celeste gamuza (usar poco).
   ========================================================= */

:root {
  --negro-viejo: #1C1B19;
  --carbon: #2E2D2B;
  --gris-viejo: #4A4946;
  --hueso: #E9E5DC;
  --gris-claro: #A8A49B;
  --acento: #6DB6BE;          /* celeste gamuza (sobre fondos oscuros) */
  --acento-oscuro: #2F7F86;   /* mismo tono, para fondos claros (hueso) */

  --fondo: var(--negro-viejo);
  --texto: var(--hueso);
  --texto-suave: var(--gris-claro);
  --borde: rgba(233, 229, 220, .14);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);

  interpolate-size: allow-keywords;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  background: var(--fondo);
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--acento); color: var(--negro-viejo); }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.saltar {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--hueso); color: var(--negro-viejo);
  padding: .6rem 1rem; font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.saltar:focus { top: 12px; }

.contenedor { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.tema-claro {
  --fondo: var(--hueso);
  --texto: var(--negro-viejo);
  --texto-suave: var(--gris-viejo);
  --borde: rgba(28, 27, 25, .16);
  background: var(--fondo);
  color: var(--texto);
  color-scheme: light;
}

/* ---------- Logo (componente) ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  font-stretch: 115%;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.logo__estrella {
  --giro: 0deg;
  width: .78em;
  height: .78em;
  margin-inline: .03em -.01em;
  transform: translateY(-.015em) rotate(calc(-12deg + var(--giro)));
  flex: none;
}

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin-bottom: 1rem;
}
.titulo {
  font-weight: 900;
  font-stretch: 68%;
  text-transform: uppercase;
  font-size: clamp(3.25rem, 15vw, 9.5rem);
  line-height: .86;
  letter-spacing: -0.01em;
}

/* Animación de entrada de titulares (palabras que suben) */
.js [data-reveal] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em 0 .08em; margin: -.16em 0 -.08em; }
.js [data-reveal] .w > span { display: inline-block; transform: translateY(108%); }
.js [data-reveal].in .w > span {
  transform: none;
  transition: transform .75s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}

/* ---------- Botones ---------- */
.btn {
  --bg: transparent; --fg: var(--texto); --bd: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 56px;
  padding: .9rem 1.4rem;
  border: 1.5px solid var(--bd);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-size: 1.1875rem; /* 19px bold = texto grande para contraste AA */
  font-weight: 700;
  font-stretch: 105%;
  line-height: 1.1;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease), transform .2s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hover-bg, var(--negro-viejo));
  transform: translateY(101%);
  transition: transform .45s var(--ease);
  border-radius: inherit;
}
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn__flecha { transition: transform .4s var(--ease); }
.btn:hover .btn__flecha { transform: translateX(5px); }
.btn__flecha--atras { transform: scaleX(-1); }
.btn:hover .btn__flecha--atras { transform: scaleX(-1) translateX(5px); }
.btn__estrella { width: .9em !important; height: .9em !important; transition: transform .7s var(--ease); }
.btn:hover .btn__estrella { transform: rotate(180deg) scale(1.15); }

.btn--acento { --bg: var(--acento); --fg: var(--negro-viejo); --hover-bg: var(--negro-viejo); }
.btn--acento:hover { --fg: var(--hueso); --bd: var(--acento); }
.tema-claro .btn--acento { --hover-bg: var(--negro-viejo); }
.btn--linea { --bd: var(--borde); --hover-bg: var(--hueso); }
.btn--linea:hover { --fg: var(--negro-viejo); --bd: var(--hueso); }
.btn--hueso { --bg: var(--hueso); --fg: var(--negro-viejo); --hover-bg: var(--acento); }
.btn--hueso:hover { --fg: var(--negro-viejo); }
.btn--texto { min-height: 48px; padding-inline: .5rem; --hover-bg: transparent; color: var(--texto-suave); }
.btn--texto:hover { color: var(--texto); }
.btn--chico { min-height: 42px; padding: .55rem 1.1rem; font-size: 1rem; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .35s, border-color .35s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.solido { background: var(--negro-viejo); border-bottom-color: rgba(233, 229, 220, .08); }
.header__fila { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header__logo { font-size: 1.75rem; text-decoration: none; color: var(--hueso); display: inline-flex; padding: .25rem 0; position: relative; z-index: 2; }
.header__logo .logo__estrella { transition: color .3s; }
.header__logo:hover .logo__estrella { color: var(--acento); }

.menu-btn {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: .65rem;
  min-height: 44px; padding: 0 .25rem;
  background: none; border: 0; color: var(--hueso);
  font-weight: 600; font-stretch: 115%; font-size: .9375rem; letter-spacing: .04em; text-transform: uppercase;
}
.menu-btn__icono { position: relative; width: 22px; height: 10px; }
.menu-btn__icono i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn__icono i:first-child { top: 0; }
.menu-btn__icono i:last-child { top: 8px; }
.menu-btn[aria-expanded="true"] .menu-btn__icono i:first-child { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icono i:last-child { top: 4px; transform: rotate(-45deg); }

.nav {
  position: fixed; inset: 0; z-index: 1;
  background: var(--negro-viejo);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  visibility: hidden; opacity: 0;
  transition: opacity .35s var(--ease), visibility 0s .35s;
}
.nav.abierto { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
.nav__lista { display: flex; flex-direction: column; gap: .25rem; width: 100%; }
.nav__lista a:not(.btn) {
  display: block; text-decoration: none;
  font-size: clamp(2.75rem, 14vw, 4.5rem); font-weight: 900; font-stretch: 68%; text-transform: uppercase; line-height: 1.02;
  transform: translateY(20px); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease), color .2s;
}
.nav.abierto .nav__lista li a { transform: none; opacity: 1; }
.nav.abierto .nav__lista li:nth-child(2) a { transition-delay: .04s; }
.nav.abierto .nav__lista li:nth-child(3) a { transition-delay: .08s; }
.nav.abierto .nav__lista li:nth-child(4) a { transition-delay: .12s; }
.nav__lista a:not(.btn):hover { color: var(--acento); }
.nav__cta { margin-top: 1.5rem; }
.nav__cta .btn { min-height: 56px; font-size: 1.1875rem; padding-inline: 1.4rem; }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav { position: static; inset: auto; padding: 0; background: none; visibility: visible; opacity: 1; display: block; transition: none; }
  .nav__lista { flex-direction: row; align-items: center; gap: 2rem; }
  .nav__lista a:not(.btn) {
    font-size: .9375rem; font-weight: 500; font-stretch: 110%; text-transform: none; line-height: 1;
    transform: none; opacity: 1; color: var(--gris-claro); position: relative; padding: .5rem 0;
  }
  .nav__lista a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--acento);
    transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
  }
  .nav__lista a:not(.btn):hover { color: var(--hueso); }
  .nav__lista a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
  .nav__cta { margin: 0 0 0 .5rem; }
  .nav__cta .btn { min-height: 42px; font-size: 1rem; padding: .55rem 1.1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 2rem) 0 5.5rem;
  overflow: hidden;
}
.hero__campo { position: absolute; inset: 0; pointer-events: none; }
.hero__capa { position: absolute; inset: -60px; will-change: transform; }
.hero__chispa { position: absolute; color: var(--gris-viejo); }
.hero__chispa svg { width: 100%; height: 100%; }
.hero__chispa--claro { color: var(--gris-claro); opacity: .35; }
.hero__chispa.titila svg { animation: titilar var(--dur, 5s) ease-in-out var(--delay, 0s) infinite; }
@keyframes titilar { 0%, 100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: .25; transform: scale(.6) rotate(45deg); } }

.hero__contenido { position: relative; }
.hero__marca { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.logo--hero { font-size: clamp(7rem, 33vw, 21rem); color: var(--hueso); margin-left: -.04em; }
.logo--hero .logo__estrella { color: var(--acento); }
.js .logo--hero .logo__estrella { animation: latido 1.5s var(--ease) .25s both; }
@keyframes latido {
  0%   { transform: translateY(-.015em) rotate(-130deg) scale(.2); opacity: 0; }
  50%  { transform: translateY(-.015em) rotate(-4deg) scale(1); opacity: 1; }
  66%  { transform: translateY(-.015em) rotate(-12deg) scale(1.16); }
  82%  { transform: translateY(-.015em) rotate(-12deg) scale(.96); }
  100% { transform: translateY(-.015em) rotate(-12deg) scale(1); }
}
.js .logo--hero > span { animation: subir .9s var(--ease) both; }
.js .logo--hero > span:last-child { animation-delay: .08s; }
@keyframes subir { from { transform: translateY(30%); opacity: 0; } to { transform: none; opacity: 1; } }

.hero__titulo {
  font-size: clamp(2.125rem, 9.4vw, 5.25rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: .98;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.hero__linea {
  margin-top: 1.25rem;
  max-width: 34ch;
  font-size: clamp(1.0625rem, 2.6vw, 1.3125rem);
  color: var(--gris-claro);
  font-weight: 400;
}
.js .hero__linea, .js .hero__botones { animation: subir .9s var(--ease) .55s both; }
.js .hero__botones { animation-delay: .7s; }
.hero__botones { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__botones .btn { flex: 1 1 auto; }

.hero__bajar {
  position: absolute; left: var(--gutter); bottom: 1.5rem;
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .8125rem; font-weight: 600; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gris-claro); text-decoration: none;
}
.hero__bajar i { display: block; width: 48px; height: 1.5px; background: var(--gris-viejo); position: relative; overflow: hidden; }
.hero__bajar i::after { content: ""; position: absolute; inset: 0; background: var(--hueso); animation: barrer 2.4s var(--ease-in-out) infinite; }
@keyframes barrer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

@media (min-width: 700px) {
  .hero__botones .btn { flex: 0 0 auto; }
}
@media (min-width: 1100px) {
  .hero__contenido { display: grid; grid-template-columns: 1fr auto; column-gap: 4rem; align-items: end; }
  .hero__marca { grid-column: 1 / -1; }
  .hero__titulo { grid-column: 1; }
  .hero__linea, .hero__botones { grid-column: 2; }
  .hero__linea { margin-top: 0; max-width: 30ch; }
  .hero__botones { margin-top: 1.5rem; }
  .hero__titulo { grid-row: 2 / span 2; align-self: end; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--hueso); color: var(--negro-viejo);
  overflow: hidden;
  border-block: 1px solid var(--negro-viejo);
}
.marquee__pista { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__pista { animation-play-state: paused; }
.marquee__grupo { display: flex; align-items: center; flex: none; }
.marquee__grupo span {
  font-size: clamp(1.5rem, 5vw, 3rem); font-weight: 900; font-stretch: 72%; text-transform: uppercase;
  padding-block: .7rem; white-space: nowrap; letter-spacing: .005em;
}
.marquee__grupo svg { width: clamp(1.1rem, 3.2vw, 2rem); height: clamp(1.1rem, 3.2vw, 2rem); margin-inline: clamp(.9rem, 2.5vw, 1.75rem); color: var(--acento); transform: rotate(-12deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.seccion { padding-block: clamp(5rem, 13vw, 10rem); position: relative; }
.seccion__cabeza { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.seccion__cabeza--fila { display: flex; flex-direction: column; gap: 2rem; }
.seccion__intro { margin-top: 1.25rem; color: var(--texto-suave); max-width: 36ch; font-size: 1.125rem; }
@media (min-width: 900px) {
  .seccion__cabeza--fila { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

/* ---------- Servicios ---------- */
.servicios__lista { border-top: 1px solid var(--borde); }
.servicio { border-bottom: 1px solid var(--borde); position: relative; }
.servicio__cabeza { font: inherit; }
.servicio__btn {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 1.6rem 0; background: none; border: 0; text-align: left;
}
.servicio__num { font-size: .875rem; font-weight: 600; font-stretch: 125%; color: var(--gris-claro); align-self: start; padding-top: .45em; }
.servicio__nombre {
  font-size: clamp(2rem, 9vw, 4rem); font-weight: 900; font-stretch: 72%; text-transform: uppercase; line-height: .92;
  transition: color .3s, font-stretch .5s var(--ease), letter-spacing .5s var(--ease);
}
.servicio__mas { position: relative; width: 28px; height: 28px; flex: none; }
.servicio__mas::before, .servicio__mas::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; background: currentColor;
  transition: transform .4s var(--ease);
}
.servicio__mas::after { transform: rotate(90deg); }
.servicio.abierto .servicio__mas::after { transform: rotate(0); }
.servicio.abierto .servicio__mas::before { transform: rotate(180deg); }
.servicio__btn:hover .servicio__nombre { font-stretch: 85%; }
.servicio.abierto .servicio__nombre { color: var(--hueso); }

.servicio__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.servicio__panel > div { overflow: hidden; }
.servicio.abierto .servicio__panel { grid-template-rows: 1fr; }
.servicio__frase { font-size: 1.25rem; font-weight: 500; font-stretch: 110%; padding-bottom: 1rem; }
.servicio__puntos { padding-bottom: 2rem; display: grid; gap: .1rem; }
.servicio__puntos li {
  position: relative; padding: .7rem 0 .7rem 1.75rem; color: var(--gris-claro);
  border-top: 1px dashed rgba(233, 229, 220, .1);
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.servicio__puntos li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem; width: 10px; height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-52 -52 104 104'%3E%3Cpath d='M0 -50 C6 -10 10 -6 50 0 C10 6 6 10 0 50 C-6 10 -10 6 -50 0 C-10 -6 -6 -10 0 -50 Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-52 -52 104 104'%3E%3Cpath d='M0 -50 C6 -10 10 -6 50 0 C10 6 6 10 0 50 C-6 10 -10 6 -50 0 C-10 -6 -6 -10 0 -50 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--acento);
}
.servicio.abierto .servicio__puntos li { opacity: 1; transform: none; }
.servicio.abierto .servicio__puntos li:nth-child(1) { transition-delay: .12s; }
.servicio.abierto .servicio__puntos li:nth-child(2) { transition-delay: .18s; }
.servicio.abierto .servicio__puntos li:nth-child(3) { transition-delay: .24s; }
.servicio.abierto .servicio__puntos li:nth-child(4) { transition-delay: .30s; }

@media (min-width: 1000px) {
  .servicios__lista { display: flex; border-top: 0; min-height: 34rem; gap: 0; }
  .servicio {
    flex: 1 1 0; min-width: 0; border-bottom: 0; border-left: 1px solid var(--borde);
    padding: 0 2rem; transition: flex-grow .7s var(--ease), background-color .5s;
  }
  .servicio:last-child { border-right: 1px solid var(--borde); }
  .servicio.abierto { flex-grow: 1.9; background: var(--carbon); }
  .servicio__btn { grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; align-items: start; padding: 2rem 0 1.5rem; row-gap: 3rem; }
  .servicio__num { grid-column: 1; padding-top: 0; }
  .servicio__mas { grid-column: 2; grid-row: 1; }
  .servicio__nombre { grid-column: 1 / -1; font-size: clamp(2.25rem, 3.6vw, 3.75rem); }
  .servicio__panel { transition-duration: .7s; }
  .servicio__puntos { padding-bottom: 2.5rem; }
}

/* ---------- Trabajos ---------- */
.filtro { display: flex; flex-wrap: wrap; gap: .5rem; }
.filtro__btn {
  min-height: 44px; padding: .5rem 1.15rem; border-radius: 999px;
  border: 1.5px solid var(--borde); background: transparent; color: var(--texto);
  font-weight: 600; font-stretch: 110%; font-size: .9375rem;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.filtro__btn:hover { border-color: var(--texto); }
.filtro__btn.activo { background: var(--negro-viejo); color: var(--hueso); border-color: var(--negro-viejo); }

.grilla { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 2.4vw, 2rem); }
@media (min-width: 640px) { .grilla { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grilla { grid-template-columns: repeat(3, 1fr); } }
.grilla__item { transition: opacity .35s var(--ease), transform .45s var(--ease); }
.grilla__item.saliendo { opacity: 0; transform: scale(.94) translateY(10px); }
.grilla__item.oculto { display: none; }
.grilla__item.entrando { animation: entrar .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes entrar { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

.trabajo {
  display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit;
}
.trabajo__visual {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--carbon); color: var(--gris-viejo);
  border-radius: 4px;
}
.trabajo__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.trabajo__destello { width: 34%; height: auto; aspect-ratio: 1; transition: transform 1s var(--ease), color .4s; }
.trabajo__marca {
  position: absolute; left: 1rem; top: 1rem;
  font-size: .75rem; font-weight: 600; font-stretch: 115%; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gris-claro);
}
.trabajo:hover .trabajo__destello { transform: rotate(90deg) scale(1.08); color: var(--acento); }
.trabajo:hover .trabajo__visual img { transform: scale(1.04); }
.trabajo__info { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem .1rem 0; }
.trabajo__titulo { font-size: 1.25rem; font-weight: 800; font-stretch: 100%; letter-spacing: -0.01em; }
.trabajo__tipo { font-size: .875rem; color: var(--gris-viejo); font-weight: 500; white-space: nowrap; }

/* Lightbox */
.lightbox {
  width: min(1100px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 0; background: var(--negro-viejo); color: var(--hueso); border-radius: 6px;
  overflow: auto;
}
.lightbox::backdrop { background: rgba(28, 27, 25, .88); }
.lightbox[open] { animation: lb-in .45s var(--ease); }
.lightbox[open]::backdrop { animation: fade .45s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(20px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.lightbox__caja { position: relative; }
.lightbox__media { background: var(--carbon); display: grid; place-items: center; color: var(--gris-viejo); position: relative; }
.lightbox__media img { width: 100%; max-height: 72dvh; object-fit: contain; }
.lightbox__media .trabajo__visual { width: 100%; aspect-ratio: 4 / 3; border-radius: 0; }
@media (min-width: 640px) { .trabajo__visual { aspect-ratio: 4 / 5; } .lightbox__media .trabajo__visual { aspect-ratio: 16 / 9; } }
.lightbox__media .trabajo__destello { width: 18%; }
.lightbox__pie { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.25rem 1.5rem; padding: 1.25rem 1.25rem 1.5rem; }
.lightbox__tipo { font-size: .8125rem; font-weight: 600; font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--gris-claro); }
.lightbox__titulo { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 900; font-stretch: 75%; text-transform: uppercase; line-height: 1; margin: .35rem 0 .5rem; }
.lightbox__desc { color: var(--gris-claro); max-width: 52ch; }
.lightbox__nav { display: flex; gap: .5rem; flex: none; }
.lightbox__flecha, .lightbox__cerrar {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(233, 229, 220, .25);
  background: var(--negro-viejo); color: var(--hueso); display: grid; place-items: center;
  transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.lightbox__flecha svg { width: 20px; height: 20px; }
.lightbox__flecha:hover, .lightbox__cerrar:hover { background: var(--hueso); color: var(--negro-viejo); border-color: var(--hueso); }
.lightbox__cerrar { position: absolute; top: 12px; right: 12px; z-index: 2; }
.lightbox__cerrar span, .lightbox__cerrar span::after { display: block; width: 18px; height: 2px; background: currentColor; transform: rotate(45deg); }
.lightbox__cerrar span::after { content: ""; transform: rotate(90deg); }
.lightbox__cerrar:hover { transform: rotate(90deg); }

/* ---------- Proceso ---------- */
.proceso { background: var(--negro-viejo); }
.linea-tiempo { position: relative; }
.linea-tiempo__riel { position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: var(--gris-viejo); }
.linea-tiempo__relleno { position: absolute; inset: 0; background: var(--hueso); transform-origin: top; transform: scaleY(var(--progreso, 0)); }
.pasos { display: grid; gap: 3rem; }
.paso { position: relative; padding-left: 3.25rem; }
.paso__punto {
  position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center;
  background: var(--negro-viejo); color: var(--gris-viejo);
  transition: color .4s, transform .6s var(--ease);
}
.paso__punto svg { width: 22px; height: 22px; }
.paso.activo .paso__punto { color: var(--hueso); transform: rotate(45deg) scale(1.15); }
.paso:last-child.activo .paso__punto { color: var(--acento); }
.paso__num { display: block; font-size: .875rem; font-weight: 600; font-stretch: 125%; color: var(--gris-claro); margin-bottom: .4rem; }
.paso__titulo { font-size: clamp(1.75rem, 7vw, 2.5rem); font-weight: 900; font-stretch: 75%; text-transform: uppercase; line-height: .95; margin-bottom: .6rem; color: var(--gris-claro); transition: color .4s; }
.paso.activo .paso__titulo { color: var(--hueso); }
.paso p { color: var(--gris-claro); max-width: 30ch; }

@media (min-width: 900px) {
  .linea-tiempo__riel { left: 0; right: 0; top: 11px; bottom: auto; width: auto; height: 2px; }
  .linea-tiempo__relleno { transform-origin: left; transform: scaleX(var(--progreso, 0)); }
  .pasos { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .paso { padding: 3.5rem 0 0; }
}

/* ---------- Cotizador ---------- */
.cotizar { background: var(--negro-viejo); padding-top: 0; }
.coti {
  background: var(--carbon);
  border-radius: 8px;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  position: relative;
}
.coti fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.coti__progreso { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: clamp(2rem, 5vw, 3rem); counter-reset: none; }
.coti__progreso li {
  position: relative; padding-top: .9rem;
  font-size: .75rem; font-weight: 600; font-stretch: 115%; letter-spacing: .06em; text-transform: uppercase; color: var(--gris-claro);
}
.coti__progreso li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gris-viejo); border-radius: 2px; }
.coti__progreso li::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--hueso); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.coti__progreso li.hecho::after, .coti__progreso li.activo::after { transform: scaleX(1); }
.coti__progreso li.activo { color: var(--hueso); }
.coti__progreso li span { display: none; }
@media (min-width: 640px) { .coti__progreso li span { display: inline; color: var(--gris-claro); margin-right: .25rem; } }

.coti__paso { display: none; }
.coti__paso.activo { display: block; animation: paso-in .55s var(--ease) both; }
.coti__paso.activo.desde-atras { animation-name: paso-in-atras; }
@keyframes paso-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes paso-in-atras { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.coti__pregunta {
  display: block; float: none; width: 100%; padding: 0;
  font-size: clamp(1.875rem, 7vw, 3.25rem); font-weight: 900; font-stretch: 78%; text-transform: uppercase; line-height: .95;
  margin-bottom: 1.75rem;
}
.coti__pregunta:focus { outline: none; }

.opciones { display: grid; gap: .75rem; }
@media (min-width: 700px) { .opciones { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
.opcion {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .2rem; align-items: baseline;
  padding: 1.35rem 3.5rem 1.35rem 1.25rem;
  border: 1.5px solid rgba(233, 229, 220, .16); border-radius: 6px;
  background: var(--negro-viejo);
  cursor: pointer;
  transition: border-color .3s, background-color .3s, transform .25s var(--ease);
}
.opcion input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opcion:hover { border-color: rgba(233, 229, 220, .45); }
.opcion:active { transform: scale(.985); }
.opcion__num { font-size: .8125rem; font-weight: 600; font-stretch: 125%; color: var(--gris-claro); grid-row: 1 / span 2; }
.opcion__titulo { font-size: clamp(1.375rem, 4.5vw, 1.75rem); font-weight: 800; font-stretch: 90%; line-height: 1.05; }
.opcion__desc { color: var(--gris-claro); font-size: .9375rem; grid-column: 2; }
.opcion__estrella {
  position: absolute; right: 1.1rem; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  color: var(--gris-viejo); transform: rotate(-12deg) scale(.7); transition: transform .6s var(--ease), color .3s;
}
.opcion:has(input:checked) { border-color: var(--hueso); background: #232220; }
.opcion:has(input:checked) .opcion__estrella { color: var(--acento); transform: rotate(60deg) scale(1); }
.opcion:has(input:focus-visible) { outline: 2px solid var(--acento); outline-offset: 3px; }

.detalles { display: none; }
.detalles.visible { display: grid; gap: 1.75rem; }
.detalles + .detalles.visible { margin-top: 1.75rem; }
.grupo legend { font-size: 1.0625rem; font-weight: 600; font-stretch: 105%; margin-bottom: .8rem; padding: 0; }
.grupo[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 48px; padding: .55rem 1.15rem;
  border: 1.5px solid rgba(233, 229, 220, .2); border-radius: 999px;
  font-weight: 500; transition: background-color .25s, color .25s, border-color .25s;
}
.chip:hover span { border-color: rgba(233, 229, 220, .55); }
.chip input:checked + span { background: var(--hueso); color: var(--negro-viejo); border-color: var(--hueso); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--acento); outline-offset: 3px; }

.campos { display: grid; gap: 1.25rem; margin-bottom: 1.75rem; }
@media (min-width: 700px) { .campos { grid-template-columns: 1fr 1fr; } }
.campo { display: grid; gap: .5rem; }
.campo__label { font-weight: 600; font-stretch: 105%; }
.campo__label small { font-weight: 400; color: var(--gris-claro); font-size: .875rem; }
.campo input {
  width: 100%; min-height: 56px; padding: .8rem 1rem;
  background: var(--negro-viejo); border: 1.5px solid rgba(233, 229, 220, .2); border-radius: 6px;
  font-size: 1.0625rem; transition: border-color .25s;
}
.campo input:hover { border-color: rgba(233, 229, 220, .45); }
.campo input:focus { outline: none; border-color: var(--hueso); }
.campo input[aria-invalid="true"] { border-color: var(--acento); }

.resumen { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
@media (min-width: 900px) { .resumen { grid-template-columns: 1.4fr 1fr; gap: 2rem; } }
.resumen__lista { margin: 0; border-top: 1px solid rgba(233, 229, 220, .14); }
.resumen__lista div { display: grid; grid-template-columns: minmax(7rem, 40%) 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(233, 229, 220, .14); }
.resumen__lista dt { color: var(--gris-claro); }
.resumen__lista dd { margin: 0; font-weight: 600; }
.resumen__precio {
  position: relative; overflow: hidden;
  background: var(--negro-viejo); border-radius: 6px; padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 11rem;
}
.resumen__precio p { position: relative; font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 900; font-stretch: 80%; line-height: 1.05; text-transform: uppercase; }
.resumen__precio small { display: block; margin-top: .6rem; font-size: .875rem; font-weight: 400; font-stretch: 100%; text-transform: none; color: var(--gris-claro); line-height: 1.4; }
.resumen__estrella { position: absolute; right: -1.5rem; top: -1.5rem; width: 9rem; height: 9rem; color: var(--acento); transform: rotate(-12deg); }
.coti__paso.activo .resumen__estrella { animation: latido-chico 1.2s var(--ease) .2s both; }
@keyframes latido-chico { 0% { transform: rotate(-120deg) scale(.3); opacity: 0; } 60% { transform: rotate(-8deg) scale(1.08); opacity: 1; } 100% { transform: rotate(-12deg) scale(1); } }

.coti__enviar { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) { .coti__enviar { flex-direction: row; flex-wrap: wrap; } }

.coti__error { min-height: 1.5em; margin-top: 1rem; color: var(--acento); font-weight: 600; }
.coti__error:empty { min-height: 0; margin: 0; }
.coti__nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(233, 229, 220, .12); }
.coti__nav [data-accion="siguiente"], .coti__nav [data-accion="reiniciar"] { margin-left: auto; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: 1rem; }
@media (min-width: 1000px) { .faq__grid { grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; } .faq .seccion__cabeza { position: sticky; top: calc(var(--header-h) + 2rem); } }
.acordeon { border-top: 1.5px solid var(--negro-viejo); }
.acordeon details { border-bottom: 1px solid var(--borde); }
.acordeon summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.25rem;
  padding: 1.4rem 0; min-height: 48px;
  font-size: clamp(1.25rem, 4.4vw, 1.625rem); font-weight: 800; font-stretch: 95%; line-height: 1.15; letter-spacing: -0.01em;
  transition: color .25s;
}
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary:hover { color: var(--gris-viejo); }
.acordeon__mas { position: relative; width: 22px; height: 22px; flex: none; }
.acordeon__mas::before, .acordeon__mas::after { content: ""; position: absolute; left: 2px; right: 2px; top: 10px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.acordeon__mas::after { transform: rotate(90deg); }
details[open] .acordeon__mas::after { transform: rotate(0); }
details[open] .acordeon__mas::before { transform: rotate(180deg); }
details[open] .acordeon__mas { color: var(--acento); }
.acordeon details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.acordeon details[open]::details-content { block-size: auto; }
.acordeon__resp p { padding: 0 0 1.5rem; max-width: 52ch; color: var(--gris-viejo); font-size: 1.0625rem; }

/* ---------- Footer / Contacto ---------- */
.footer { padding: clamp(5rem, 13vw, 10rem) 0 6.5rem; background: var(--negro-viejo); position: relative; overflow: hidden; }
.footer__titulo {
  font-size: clamp(3.5rem, 17.5vw, 15rem); font-weight: 900; font-stretch: 62%; text-transform: uppercase; line-height: .82; letter-spacing: -0.01em;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.footer__acciones { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
@media (min-width: 700px) { .footer__acciones { flex-direction: row; align-items: center; gap: 2.5rem; } }
.footer__correo {
  font-size: clamp(1.125rem, 4.4vw, 1.75rem); font-weight: 600; font-stretch: 105%; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: .15em; word-break: break-all;
  transition: background-size .45s var(--ease), color .25s;
}
.footer__correo:hover { color: var(--acento); background-size: 0 1.5px; background-position: 100% 100%; }
.footer__base {
  margin-top: clamp(4rem, 10vw, 7rem); padding-top: 1.5rem; border-top: 1px solid rgba(233, 229, 220, .12);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.25rem 2rem;
}
.footer__logo { font-size: 2.25rem; text-decoration: none; display: inline-flex; }
.footer__logo .logo__estrella { color: var(--acento); transition: transform .8s var(--ease); }
.footer__logo:hover .logo__estrella { --giro: 72deg; }
.footer__redes { display: flex; gap: 1.5rem; justify-self: end; }
.footer__redes a { color: var(--gris-claro); text-decoration: none; font-weight: 500; display: inline-block; padding: .5rem 0; transition: color .25s; }
.footer__redes a:hover { color: var(--hueso); }
.footer__copy { grid-column: 1 / -1; color: var(--gris-claro); font-size: .875rem; }
@media (min-width: 700px) {
  .footer__base { grid-template-columns: auto 1fr auto; }
  .footer__copy { grid-column: auto; grid-row: 1; grid-column: 3; }
  .footer__redes { grid-column: 2; justify-self: center; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--carbon); color: var(--hueso);
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(233, 229, 220, .14), 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .35s var(--ease), background-color .3s;
}
.wa-flotante:hover { transform: scale(1.07) rotate(-6deg); background: var(--negro-viejo); }
.wa-flotante__icono { width: 28px; height: 28px; }
.wa-flotante__destello {
  position: absolute; right: -2px; top: -2px; width: 18px; height: 18px; color: var(--acento);
  opacity: 0; transform: scale(0);
  animation: destello-wa 7s var(--ease) 3s infinite;
}
@keyframes destello-wa {
  0%, 82%, 100% { opacity: 0; transform: scale(0) rotate(0); }
  88% { opacity: 1; transform: scale(1.15) rotate(90deg); }
  94% { opacity: 1; transform: scale(.9) rotate(140deg); }
}
@media (min-width: 900px) { .wa-flotante { right: 28px; bottom: 28px; width: 62px; height: 62px; } }

/* ---------- Cursor personalizado (escritorio) ---------- */
.cursor { display: none; }
.con-cursor, .con-cursor a, .con-cursor button, .con-cursor label, .con-cursor summary { cursor: none; }
.con-cursor input[type="text"] { cursor: text; }
.con-cursor .cursor {
  display: block; position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
  width: 0; height: 0;
}
.cursor__punto, .cursor__estrella { position: absolute; left: 0; top: 0; transition: transform .35s var(--ease), opacity .25s; }
.cursor__punto { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--hueso); mix-blend-mode: difference; }
.cursor__estrella { width: 30px; height: 30px; margin: -15px 0 0 -15px; color: var(--acento); opacity: 0; transform: scale(.2) rotate(-90deg); }
.cursor.sobre-link .cursor__punto { transform: scale(0); }
.cursor.sobre-link .cursor__estrella { opacity: 1; transform: scale(1) rotate(0); }
.cursor.sobre-link .cursor__estrella { animation: girar 4s linear infinite; }
.cursor.oculto .cursor__punto, .cursor.oculto .cursor__estrella { opacity: 0; }
.cursor.presionado .cursor__estrella { transform: scale(.7); }
@keyframes girar { to { rotate: 360deg; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee__pista { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__grupo + .marquee__grupo { display: none; }
  .marquee__grupo { flex-wrap: wrap; padding-inline: var(--gutter); }
  .js [data-reveal] .w > span { transform: none; }
  .wa-flotante__destello { display: none; }
  .hero__bajar i::after { display: none; }
}

.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.btn { white-space: nowrap; }
@media (max-width: 420px) {
  .coti { padding: 1.25rem 1rem; }
  .btn { padding-inline: 1.1rem; gap: .5rem; }
  .coti__progreso li { font-size: .6875rem; letter-spacing: .03em; }
}
.coti__progreso { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cursor__estrella { max-width: none; }

/* ---------- Trabajos web: captura de escritorio + celular ---------- */
.trabajo__visual--web { aspect-ratio: 4 / 3 !important; background: var(--carbon); place-items: stretch; }
.trabajo__visual--web .trabajo__esc {
  position: absolute; inset: 8% auto auto 6%; width: 94%; height: auto; aspect-ratio: 1440 / 820;
  object-fit: cover; object-position: top left; border-radius: 4px 0 0 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transition: transform .8s var(--ease);
}
.trabajo__visual--web .trabajo__movil {
  position: absolute; inset: auto 6% -14% auto; width: 26%; height: auto; aspect-ratio: 1 / 2;
  object-fit: cover; object-position: top;
  border: 3px solid var(--negro-viejo); border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .45);
  transition: transform .8s var(--ease);
}
.trabajo:hover .trabajo__visual--web .trabajo__esc { transform: translate(-2%, -2%); }
.trabajo:hover .trabajo__visual--web .trabajo__movil { transform: translateY(-9%) rotate(-3deg); }
.trabajo:focus-visible { outline-offset: 6px; }
/* Con pocos trabajos, 2 columnas; con 3 o más, 3 columnas en pantallas grandes */
@media (min-width: 1100px) { .grilla:not(:has(> li:nth-child(3))) { grid-template-columns: repeat(2, 1fr); } }

.lightbox__media.con-movil { display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 1rem; align-items: start; }
.lightbox__media .lightbox__esc { width: 100%; height: auto; max-height: none; border-radius: 4px; }
.lightbox__media .lightbox__movil { display: none; }
@media (min-width: 760px) {
  .lightbox__media.con-movil { grid-template-columns: 1fr 22%; padding: 1.5rem; gap: 1.5rem; align-items: end; }
  .lightbox__media .lightbox__movil { display: block; width: 100%; height: auto; max-height: none; border: 3px solid var(--negro-viejo); border-radius: 16px; }
}
.lightbox__link {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; min-height: 44px;
  color: var(--hueso); font-weight: 700; text-decoration: none;
  border-bottom: 1.5px solid var(--acento); padding-bottom: .1rem;
}
.lightbox__link svg { width: 1.1em; height: 1.1em; transition: transform .4s var(--ease); }
.lightbox__link:hover svg { transform: translateX(5px); }
.lightbox__link:hover { color: var(--acento); }

/* ---------- Celeste en fondos claros: tono más profundo para que se lea ---------- */
.tema-claro { --acento: var(--acento-oscuro); }
.marquee__grupo svg { color: var(--acento-oscuro); }
.cursor.sobre-claro .cursor__estrella { color: var(--acento-oscuro); }
@media (min-width: 900px) { .opciones { grid-template-columns: repeat(3, 1fr); } }

/* Con 4 trabajos, cuadrícula de 2×2 en pantallas grandes */
@media (min-width: 1100px) { .grilla:has(> li:nth-child(4)):not(:has(> li:nth-child(5))) { grid-template-columns: repeat(2, 1fr); } }

/* "Y muchos más" debajo de los trabajos */
.trabajos__mas {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  display: grid; gap: 1rem; justify-items: start;
}
.trabajos__mas-titulo {
  display: flex; align-items: center; gap: .5em;
  font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 900; font-stretch: 115%;
  letter-spacing: -0.03em; line-height: 1;
}
.trabajos__mas-estrella { width: .8em; height: .8em; flex: none; color: var(--acento); transform: rotate(-12deg); }
.trabajos__mas-texto { max-width: 34rem; color: var(--gris-viejo); font-size: 1.0625rem; }
@media (min-width: 760px) {
  .trabajos__mas { grid-template-columns: 1fr auto; align-items: end; column-gap: 2rem; }
  .trabajos__mas-titulo { grid-column: 1 / -1; }
  .trabajos__mas .btn { justify-self: end; }
}
