/* =========================================================
   Marcelo Chapa — portafolio
   Recrea la plantilla Framer «Folira» (estructura, medidas,
   tipografía Geist y animaciones) con contenido propio.
   Medidas tomadas a 1512 px (laptop), 810 px (iPad) y 390 px (celular).
   ========================================================= */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --negro: #000;
  --blanco: #fff;
  --fondo: #f4f4f4;
  --gris: #605f5f;
  --gris-claro: #999;
  --linea: #e4e4e4;
  --gris-texto: rgba(255, 255, 255, .6);
  --contenedor: 1500px;
  --margen: 40px;                 /* barra */
  --pad: 64px;                    /* orilla de las secciones */
  --sec: 128px;                   /* aire arriba y abajo de cada sección */
  --desplazo: 33.97%;             /* columna de textos (536 px a 1512) */
  /* Resorte de Framer (rigidez 200, amortiguación 30, masa 1) */
  --resorte: linear(0, .0452, .1444, .262, .379, .4864, .5802, .66, .7264, .7809, .8252, .861, .8897, .9126, .9309, .9453, .9568, .9659, .9731, .9788, .9833, .9868, .9896, .9918, .9936, .9949, .996, .9969, .9975, .9981, .9985, .9988, 1);
  --resorte-t: .77s;
  --suave: cubic-bezier(.44, 0, .56, 1);
  /* tipografía */
  --h1: 70px; --h1-l: 1.1;
  --h2: 60px; --h2-l: 1.1;
  --h2b: 44px;
  --h3: 32px; --h3-l: 1.2;
  --h4: 24px; --h4-l: 1.2;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--negro);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, ol, ul, figure { margin: 0; font-weight: inherit; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid #3d7cff; outline-offset: 3px; border-radius: 6px; }
.oculto-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- Tipos de letra ---------- */
.t-h1 { font-size: var(--h1); line-height: var(--h1-l); font-weight: 600; letter-spacing: -.05em; }
.t-h2, .encabezado h2 { font-size: var(--h2); line-height: var(--h2-l); font-weight: 600; letter-spacing: -.04em; }
.t-h3 { font-size: var(--h3); line-height: var(--h3-l); font-weight: 500; letter-spacing: -.04em; }
.t-h4 { font-size: var(--h4); line-height: var(--h4-l); font-weight: 500; letter-spacing: -.04em; }
.t-p, .encabezado p { font-size: 16px; line-height: 1.3; font-weight: 500; letter-spacing: -.03em; color: var(--gris); }
.t-chico { font-size: 15px; line-height: 1.3; letter-spacing: -.03em; color: var(--gris); }
.gris { color: var(--gris-claro); }

/* ---------- Texto que rueda al pasar el mouse ---------- */
.rodar > span {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.2;
  color: transparent;
  white-space: nowrap;
}
.rodar > span::before,
.rodar > span::after {
  content: attr(data-t) / "";
  position: absolute;
  left: 0;
  white-space: nowrap;
  color: var(--tinta, currentColor);
  transition: transform var(--resorte-t) var(--resorte);
}
.rodar > span::before { top: 0; }
.rodar > span::after { top: 100%; }
@media (hover: hover) {
  .rodar:hover > span::before,
  .rodar:hover > span::after { transform: translateY(-100%); }
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.04em;
  white-space: nowrap;
  transition: transform .3s var(--suave), box-shadow .3s var(--suave);
}
.boton:active { transform: scale(.97); }
.boton--negro {
  background: var(--negro);
  --tinta: var(--blanco);
  color: var(--blanco);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .35), inset 0 2px 3px rgba(255, 255, 255, .25);
}
.boton--blanco {
  background: var(--blanco);
  --tinta: var(--negro);
  color: var(--negro);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
}
.boton--ancho { width: 100%; }
.boton svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.boton--negro svg { stroke: #fff; }
.pastilla {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.pastilla svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   BARRA
   ========================================================= */
.nav {
  position: fixed;
  top: 20px;
  right: max(var(--margen), calc((100vw - var(--contenedor)) / 2 + var(--margen)));
  z-index: 100;
}
.nav__caja {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--blanco);
  border-radius: 16px;
  padding: 10px 10px 10px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .05);
}
.nav__link {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.03em;
  --tinta: var(--negro);
}
.nav__link[aria-current="page"] > span::before { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.nav .boton { margin-left: 12px; }
.nav__menu { display: none; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: none;
  padding: 84px 16px 16px;
  background: rgba(244, 244, 244, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.menu.abierto { display: block; animation: menuEntra .45s var(--resorte); }
@keyframes menuEntra { from { opacity: 0; transform: translateY(-8px); } }
.menu__caja {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu__caja a:not(.boton) {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.04em;
}
.menu__caja .boton { margin-top: 18px; }

/* =========================================================
   PORTADA (inicio)
   ========================================================= */
.portada {
  position: relative;
  z-index: 1;
  height: calc(300vh + 600px);
}
.portada__fondo,
.portada__deco-entrada {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100vh;
}
.portada__fondo { background: #000; overflow: hidden; }
.portada__tinta { width: 100%; height: 100%; }
.portada__deco {
  position: absolute;
  left: var(--margen);
  right: var(--margen);
  top: 50%;
  height: 20px;
  margin-top: -10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.portada__deco i { position: relative; width: 16px; height: 16px; }
.portada__deco i::before,
.portada__deco i::after { content: ""; position: absolute; background: #fff; border-radius: 1px; }
.portada__deco i::before { left: 7.25px; top: 0; width: 1.5px; height: 16px; }
.portada__deco i::after { top: 7.25px; left: 0; height: 1.5px; width: 16px; }

.portada__escenario {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  overflow: clip;                 /* las tarjetas salen ±1000 px sin ensanchar la página */
}
.portada__escenario a { pointer-events: auto; }

.tarjetas {
  position: absolute;
  left: 50%;
  top: calc(50% + 20px);
  width: 440px;
  height: 486px;
  margin: -243px 0 0 -220px;
  transform: scale(var(--k, 1));
}
.tarjetas__mov { position: absolute; inset: 0; will-change: transform, opacity; }
.tarjetas__mov--atras { z-index: 0; }
.tarjetas__mov--frente { z-index: 1; }
.tarjeta-atras {
  position: absolute;
  left: 39px;
  top: -22px;
  width: 400px;
  height: 479px;
  border-radius: 16px;
  overflow: hidden;
  transform: rotate(4deg);
  box-shadow: 10px 25px 30px rgba(0, 0, 0, .1);
  background: #111;
}
.tarjeta-atras img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta {
  position: absolute;
  left: 0;
  top: 0;
  width: 400px;
  height: 486px;
  padding: 6px;
  border-radius: 16px;
  background: #000;
  color: #fff;
  transform: rotate(-4deg);
  box-shadow: 10px 10px 30px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tarjeta__imagen {
  position: relative;
  width: 388px;
  height: 291px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}
.tarjeta__imagen img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta__etiqueta {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 10px;
  background: #000;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.tarjeta__icono {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .12);
}
.tarjeta__icono svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tarjeta__info { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 16px; }
.tarjeta__texto { font-size: 15px; line-height: 1.3; font-weight: 500; letter-spacing: -.03em; color: var(--gris-texto); }
.tarjeta__nombre { font-size: 52px; line-height: 1.1; font-weight: 600; letter-spacing: -.04em; white-space: nowrap; }

.bajar {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.04em;
  --tinta: #fff;
  transition: opacity .5s var(--suave);
}
.bajar.oculto { opacity: 0; pointer-events: none; }
.bajar__flecha { display: grid; place-items: center; width: 28px; height: 28px; }
.bajar__flecha svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; animation: rebote 2s var(--suave) infinite; }
@keyframes rebote { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* ---------- Proyectos: escena fija con carrusel 3D (laptop) ---------- */
.obras {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
  overflow: clip;
  color: #fff;
}
.obras.al-frente { z-index: 3; }
.obras.fuera { visibility: hidden; }
.bokeh { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bokeh i {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .13) 0, rgba(255, 255, 255, .1) 55%, rgba(255, 255, 255, 0) 71%);
  animation: flotar var(--d, 26s) ease-in-out infinite alternate;
  will-change: transform;
}
.bokeh i:nth-child(1) { width: 340px; height: 340px; left: -4%;  top: 52%;  --d: 31s; }
.bokeh i:nth-child(2) { width: 220px; height: 220px; left: 12%;  top: -12%; --d: 24s; opacity: .7; }
.bokeh i:nth-child(3) { width: 420px; height: 420px; left: 34%;  top: 60%;  --d: 35s; opacity: .55; }
.bokeh i:nth-child(4) { width: 260px; height: 260px; left: 58%;  top: -18%; --d: 28s; }
.bokeh i:nth-child(5) { width: 180px; height: 180px; left: 76%;  top: 24%;  --d: 22s; opacity: .8; }
.bokeh i:nth-child(6) { width: 380px; height: 380px; left: 84%;  top: 58%;  --d: 33s; opacity: .6; }
.bokeh i:nth-child(7) { width: 150px; height: 150px; left: 4%;   top: 18%;  --d: 20s; opacity: .5; }
.bokeh i:nth-child(8) { width: 300px; height: 300px; left: 46%;  top: 8%;   --d: 29s; opacity: .35; }
.bokeh i:nth-child(9) { width: 200px; height: 200px; left: 26%;  top: 30%;  --d: 25s; opacity: .3; }
@keyframes flotar { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(40px, -30px, 0) scale(1.08); } }

.obras__escena {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
}
.obras__grupo { width: 100%; display: flex; flex-direction: column; align-items: center; will-change: transform, opacity; transform-origin: 50% 50%; }
.obras__pista {
  position: relative;
  width: 100%;
  height: 455px;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}
.obra {
  position: absolute;
  left: 50%;
  top: 0;
  width: 605px;
  height: 455px;
  margin-left: -302.5px;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  transform-style: preserve-3d;
  transition: transform var(--resorte-t) var(--resorte), opacity .6s var(--suave);
  cursor: pointer;
}
.obra img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; pointer-events: none; user-select: none; }
.obras__texto { width: 100%; max-width: 584px; margin-top: 32px; text-align: center; transition: opacity .3s var(--suave), transform .3s var(--suave); }
.obras__texto.cambiando { opacity: 0; transform: translateY(6px); }
.obras.salida .obras__texto { opacity: 0; transition-duration: .6s; }
.obras__titulo { font-size: 36px; line-height: 1.1; font-weight: 600; letter-spacing: -.04em; }
.obras__desc { margin-top: 11px; min-height: 39px; font-size: 15px; line-height: 1.3; font-weight: 500; letter-spacing: -.03em; color: var(--gris-texto); }
.obras__controles {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
  transition: opacity .6s var(--suave), transform var(--resorte-t) var(--resorte);
}
.obras.completa .obras__controles { opacity: 1; transform: none; pointer-events: auto; }
.flecha {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .15);
  transition: background .25s var(--suave), transform .25s var(--suave);
}
.flecha:hover { background: rgba(255, 255, 255, .25); }
.flecha:active { transform: scale(.94); }
.flecha svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Proyectos en lista (iPad y celular) ---------- */
.obras-lista { display: none; position: relative; z-index: 4; background: #000; color: #fff; padding: 100px 0; overflow: hidden; }
.obras-lista .encabezado h2 { color: #fff; }
.obras-lista .encabezado p { color: var(--gris-texto); }
.obras-lista__items { display: flex; flex-direction: column; gap: 24px; margin-top: 56px; }
.obra-fila { display: block; }
.obra-fila__img { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: #111; }
.obra-fila__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--suave); }
.obra-fila:hover .obra-fila__img img { transform: scale(1.04); }
.obra-fila__panel { margin-top: 8px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.obra-fila__fila { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.obra-fila__nombre { font-size: 22px; font-weight: 500; letter-spacing: -.04em; }
.obra-fila__meta { font-size: 15px; color: var(--gris-texto); white-space: nowrap; }
.obra-fila__desc { margin-top: 10px; font-size: 15px; line-height: 1.3; color: var(--gris-texto); letter-spacing: -.03em; }

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */
main { position: relative; }
.seccion { position: relative; z-index: 4; background: var(--fondo); padding: var(--sec) 0; }
.encabezado { max-width: 600px; }
.encabezado p { margin-top: 16px; }
.encabezado--centro { margin: 0 auto; text-align: center; }
.encabezado--desplazado { margin-left: var(--desplazo); }

/* Aparición al bajar (40 px y opacidad, con resorte) */
.js [data-revela] { opacity: 0; transform: translateY(40px); }
.js [data-revela].visto {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--suave) var(--retraso, 0s), transform var(--resorte-t) var(--resorte) var(--retraso, 0s);
}
.palabra { display: inline-block; white-space: pre; }
.js [data-palabras] .palabra { opacity: 0; transform: translateY(10px); filter: blur(4px); }
.js [data-palabras].visto .palabra {
  opacity: 1; transform: none; filter: none;
  transition: opacity .5s var(--suave), transform .6s var(--resorte), filter .5s var(--suave);
  transition-delay: calc(var(--i) * 28ms);
}

/* ---------- Sobre mí (inicio) ---------- */
.sobre__frase { font-size: var(--h2); line-height: var(--h2-l); font-weight: 600; letter-spacing: -.04em; }
.sobre__frase .palabra { color: #bdbdbd; transition: color .25s linear; }
.sobre__frase .palabra.pintada { color: #000; }
.sobre__caja {
  position: relative;
  margin-top: 120px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
  padding: 72px 70px 72px 0;
  border-radius: 24px;
  background: #ebebeb;
}
.perfil {
  position: relative;
  margin: -110px 0 -40px -10px;
  width: 440px;
  max-width: 100%;
  padding: 8px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .12);
  transform: rotate(-5deg);
}
.perfil__img { aspect-ratio: 5 / 4; border-radius: 14px; overflow: hidden; background: #ddd; }
.perfil__img img { width: 100%; height: 100%; object-fit: cover; }
.perfil__nombre { margin: 18px 10px 0; }
.perfil__puesto { margin: 6px 10px 0; font-size: 15px; line-height: 1.3; font-weight: 500; letter-spacing: -.03em; color: var(--gris); }
.redes { display: flex; gap: 8px; margin: 18px 10px 10px; }
.redes a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f1f1;
  transition: background .25s var(--suave), transform .25s var(--suave);
}
.redes a:hover { background: #e4e4e4; transform: translateY(-2px); }
.redes svg { width: 16px; height: 16px; fill: currentColor; }
.sobre__der h3 { max-width: 716px; }
.sobre__der .boton { margin-top: 28px; }
.sobre__sello { margin-top: 56px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--gris-claro); }

/* Marquesina de marcas */
.marquesina {
  margin-top: 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquesina__pista { display: flex; width: max-content; animation: desliza 32s linear infinite; }
.marquesina__grupo { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquesina:hover .marquesina__pista { animation-play-state: paused; }
@keyframes desliza { to { transform: translateX(-50%); } }
.marca { display: inline-flex; align-items: center; height: 26px; color: #111; white-space: nowrap; }
.marca img { height: 100%; width: auto; filter: grayscale(1) brightness(0); opacity: .85; }
.marca--texto { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.marca--serif { font-family: "Didot", "Bodoni 72", "Times New Roman", serif; font-weight: 400; letter-spacing: .14em; font-size: 16px; }
.marca--gruesa { font-size: 24px; font-weight: 900; letter-spacing: -.06em; }
.marca--alta img { height: 30px; }
.marca--baja img { height: 20px; }

/* ---------- Servicios ---------- */
.servicios__lista { margin-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.servicio {
  position: relative;
  height: 446px;
  padding: 6px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  cursor: default;
  outline-offset: 4px;
}
.servicio__img { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #eee; flex: none; transition: width var(--resorte-t) var(--resorte); }
.servicio__img img { width: 100%; height: 100%; object-fit: cover; }
.servicio__cuerpo { margin-top: auto; padding: 0 10px 23px; }
.servicio__desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  font-size: 15px; line-height: 1.3; letter-spacing: -.03em; color: var(--gris);
  transition: max-height var(--resorte-t) var(--resorte), opacity .4s var(--suave), margin .4s var(--suave);
}
.servicio__tiempo {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 10px;
  border-radius: 10px;
  background: #000;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.03em;
  color: #fff;
  transition: height var(--resorte-t) var(--resorte), opacity .4s var(--suave);
}
.servicio__tiempo span { color: var(--gris-claro); }
.servicio.abierto .servicio__img { width: 160px; }
.servicio.abierto .servicio__cuerpo { padding-bottom: 18px; }
.servicio.abierto .servicio__desc { max-height: 100px; opacity: 1; margin-top: 10px; }
.servicio.abierto .servicio__tiempo { height: 40px; opacity: 1; }

/* ---------- Proceso ---------- */
.proceso__cuerpo { margin-top: 72px; display: grid; grid-template-columns: 470px 1fr; }
.proceso__lista { position: sticky; top: var(--paso-top); align-self: start; display: flex; flex-direction: column; gap: 16px; }
.proceso__lista li { display: flex; align-items: flex-start; gap: 8px; color: var(--gris-claro); transition: color .4s var(--suave); }
.proceso__lista li span { font-size: 15px; font-weight: 500; letter-spacing: -.03em; padding-top: 4px; }
.proceso__lista li b { font-size: var(--h2b); line-height: 1.1; font-weight: 600; letter-spacing: -.04em; }
.proceso__lista li.activo { color: #000; }
.proceso__lista li.activo span { color: var(--gris-claro); }
.proceso__pasos { --paso-alto: 432px; }
.proceso__paso { position: sticky; top: var(--paso-top); height: 500px; }
.proceso__paso:last-child { height: var(--paso-alto); }
.paso {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 8px;
  height: var(--paso-alto);
  padding: 6px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .04);
}
.paso--inverso { grid-template-columns: 1fr 420px; }
.paso--inverso .paso__img { order: 2; }
.paso__img { border-radius: 14px; overflow: hidden; background: #111; }
.paso__img img { width: 100%; height: 100%; object-fit: cover; }
.paso__texto { display: flex; flex-direction: column; padding: 14px 14px 20px 20px; }
.paso__arriba { display: flex; justify-content: space-between; align-items: center; }
.paso__num { font-size: 15px; font-weight: 500; color: var(--gris-claro); letter-spacing: -.03em; }
.paso__abajo { margin-top: auto; max-width: 420px; }
.paso__abajo p { margin-top: 10px; }

/* ---------- Pantalla completa con video ---------- */
.pantalla { position: relative; z-index: 4; height: 100vh; min-height: 520px; overflow: hidden; background: #000; }
.pantalla video, .pantalla img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Testimonios ---------- */
.testimonios__ventana { margin-top: 64px; overflow: hidden; }
.testimonios__pista { display: flex; gap: 10px; transition: transform .9s var(--resorte); touch-action: pan-y; }
.testimonio { flex: 0 0 100%; display: grid; grid-template-columns: var(--desplazo) 1fr; align-items: start; }
.testimonio__tarjeta { width: 330px; padding: 6px; border-radius: 16px; background: #fff; }
.testimonio__img { aspect-ratio: 318 / 260; border-radius: 12px; overflow: hidden; background: #ddd; }
.testimonio__img img { width: 100%; height: 100%; object-fit: cover; }
.testimonio__datos { padding: 14px 10px 10px; }
.testimonio__nombre { font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -.04em; }
.testimonio__puesto, .testimonio__empresa { font-size: 15px; line-height: 1.3; letter-spacing: -.03em; color: var(--gris); }
.testimonio__empresa { font-weight: 500; }
.testimonio__cita { max-width: 650px; padding-top: 14px; }
.testimonio__comillas { width: 40px; height: 30px; margin-bottom: 16px; fill: #d9d9d9; }
.testimonios__puntos {
  display: flex;
  gap: 5px;
  width: max-content;
  margin: 48px auto 0;
  padding: 7px 8px;
  border-radius: 20px;
  background: #000;
}
.testimonios__puntos button { width: 6px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .4); transition: width .4s var(--resorte), background .3s; }
.testimonios__puntos button[aria-current="true"] { width: 16px; background: #fff; }

/* ---------- Motion (en lugar del blog) ---------- */
.notas { margin-top: 64px; display: grid; grid-template-columns: 908fr 448fr; gap: 16px; }
.notas > :nth-child(3) { grid-column: 1; }
.notas--invertida { grid-template-columns: 448fr 908fr; margin-top: 16px; }
.nota {
  position: relative;
  display: block;
  height: 446px;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  color: #fff;
  isolation: isolate;
}
.nota__media, .nota__media img, .nota__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nota__media { transition: transform 1s var(--suave); z-index: -1; }
.nota:hover .nota__media { transform: scale(1.05); }
.nota::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .72)); }
.nota__texto { position: absolute; left: 28px; right: 28px; bottom: 28px; max-width: 434px; }
.nota__texto p { margin-top: 12px; font-size: 15px; line-height: 1.3; font-weight: 500; letter-spacing: -.03em; color: rgba(255, 255, 255, .7); }
.nota .pastilla { position: absolute; top: 20px; right: 20px; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.nota__play {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: grid; place-items: center; opacity: 0; transform: scale(.85); transition: opacity .4s var(--suave), transform .5s var(--resorte);
}
.nota__play svg { width: 18px; height: 18px; fill: #fff; margin-left: 3px; }
.nota:hover .nota__play { opacity: 1; transform: none; }

/* ---------- Contacto ---------- */
.contacto { position: relative; z-index: 4; color: #fff; padding: var(--sec) 0; isolation: isolate; }
.contacto__fondo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #000;
  border-radius: calc(50% * var(--c, 0)) calc(50% * var(--c, 0)) 0 0 / calc(220px * var(--c, 0)) calc(220px * var(--c, 0)) 0 0;
}
.contacto__in {
  max-width: calc(1100px + 2 * var(--pad));
  display: grid;
  grid-template-columns: 440px 538px;
  justify-content: space-between;
  gap: 60px;
  transform: scale(calc(1 - .06 * var(--c, 0)));
  transform-origin: 50% 0;
}
.contacto__izq h2 { color: #fff; }
.contacto__izq > p { margin-top: 16px; max-width: 350px; font-size: 16px; line-height: 1.3; font-weight: 500; letter-spacing: -.03em; color: var(--gris-texto); }
.contacto__foto { margin-top: 64px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #111; }
.contacto__foto img { width: 100%; height: 100%; object-fit: cover; }
.contacto__botones { display: flex; gap: 4px; margin-top: 8px; padding: 4px; border-radius: 14px; background: #1a1a1a; }
.contacto__botones .boton { flex: 1; border-radius: 10px; }
.contacto__wa { display: grid; place-items: center; width: 92px; border-radius: 10px; background: #2a2a2a; transition: background .25s; }
.contacto__wa:hover { background: #333; }
.contacto__wa svg { width: 18px; height: 18px; fill: #fff; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; align-content: start; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; letter-spacing: -.03em; }
.form .ancho { grid-column: 1 / -1; }
.campo {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #1c1c1c;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -.02em;
  outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
  appearance: none;
}
.campo::placeholder { color: rgba(255, 255, 255, .38); }
.campo:focus { border-color: rgba(255, 255, 255, .35); background-color: #222; }
select.campo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23fff' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 32px;
}
textarea.campo { height: 100px; padding: 10px 12px; resize: vertical; }
.form .boton { grid-column: 1 / -1; margin-top: 18px; height: 40px; border-radius: 8px; }
.form__ok { grid-column: 1 / -1; font-size: 15px; color: rgba(255, 255, 255, .75); }

/* ---------- Pie ---------- */
.pie { position: relative; z-index: 4; background: var(--fondo); padding-top: 80px; overflow: hidden; }
.pie__arriba { display: flex; justify-content: space-between; gap: 40px; }
.pie__boletin { width: 500px; max-width: 100%; }
.pie__boletin h2 { font-size: var(--h2b); line-height: 1.1; font-weight: 600; letter-spacing: -.04em; }
.pie__boletin p { margin-top: 13px; }
.pie__form { margin-top: 28px; display: flex; flex-direction: column; gap: 8px; }
.pie__campo { height: 44px; border: 0; border-radius: 10px; background: #e6e6e6; padding: 0 14px; font-size: 15px; outline: none; }
.pie__campo:focus { background: #dedede; }
.pie__form .boton { height: 44px; border-radius: 10px; box-shadow: none; }
.pie__links { display: flex; gap: 72px; }
.pie__links div { display: flex; flex-direction: column; gap: 7px; min-width: 113px; }
.pie__titulo { font-size: 15px; font-weight: 500; color: var(--gris-claro); margin-bottom: 6px; }
.pie__links a { font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -.04em; --tinta: #000; }
.pie__medio { margin-top: 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.pie__correo { display: flex; align-items: flex-start; gap: 10px; }
.pie__correo > span { font-size: 15px; color: var(--gris-claro); }
.pie__correo a { font-size: 28px; font-weight: 500; letter-spacing: -.04em; --tinta: #000; }
.pie__redes { display: flex; gap: 8px; }
.pie__redes a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #000; transition: transform .3s var(--resorte); }
.pie__redes a:hover { transform: translateY(-3px); }
.pie__redes svg { width: 18px; height: 18px; fill: #fff; }
.pie__nombre {
  width: max-content;
  margin: 48px auto 0;
  font-size: 19.4vw;
  line-height: .8;
  font-weight: 600;
  letter-spacing: -.055em;
  color: #e5e5e5;
  white-space: nowrap;
  text-align: center;
  user-select: none;
}
.pie__legal { position: absolute; left: var(--pad); bottom: 14px; font-size: 13px; color: #b5b5b5; }

/* =========================================================
   PÁGINAS INTERIORES
   ========================================================= */
.cabeza { padding: 220px 0 0; position: relative; z-index: 4; }
.cabeza__fila { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.cabeza h1 { font-size: var(--h2); line-height: var(--h2-l); font-weight: 600; letter-spacing: -.04em; }
.cabeza p { margin-top: 16px; }
.filtros { display: flex; gap: 8px; }
.filtros .campo { background-color: #fff; color: #000; width: 200px; border: 1px solid transparent; }
.filtros .campo::placeholder { color: #9a9a9a; }
.filtros .campo:focus { border-color: #d5d5d5; background-color: #fff; }
.filtros select.campo { width: 180px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.buscar { position: relative; }
.buscar svg { position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px; fill: none; stroke: #9a9a9a; stroke-width: 1.6; }
.buscar .campo { padding-left: 32px; }

.rejilla { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: var(--sec); }
.tarjeta-obra { display: block; padding: 6px; border-radius: 18px; background: #fff; }
.tarjeta-obra[hidden] { display: none; }
.tarjeta-obra__img { aspect-ratio: 4 / 3; border-radius: 13px; overflow: hidden; background: #ddd; }
.tarjeta-obra__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--suave); }
.tarjeta-obra:hover .tarjeta-obra__img img { transform: scale(1.04); }
.tarjeta-obra__pie { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 10px 10px; }
.tarjeta-obra__nombre { font-size: 20px; font-weight: 500; letter-spacing: -.04em; }
.tarjeta-obra__meta { font-size: 15px; color: var(--gris-claro); letter-spacing: -.03em; white-space: nowrap; }
.rejilla__vacio { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--gris); }

.rejilla-notas { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: var(--sec); }
.rejilla-notas .nota { height: auto; aspect-ratio: 4 / 4.2; }
.rejilla-notas .nota[hidden] { display: none; }

/* Página de un proyecto / una pieza */
.caso__cabeza { position: relative; padding: 220px 0 0; z-index: 4; }
.caso__col { margin-left: var(--desplazo); max-width: 640px; }
.caso__fecha { font-size: 15px; color: var(--gris-claro); margin-bottom: 18px; letter-spacing: -.03em; }
.caso__col h1 { font-size: var(--h2); line-height: var(--h2-l); font-weight: 600; letter-spacing: -.04em; }
.caso__sub { margin-top: 20px; font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -.04em; }
.caso__intro { margin-top: 14px; }
.volver {
  position: absolute;
  left: var(--pad);
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--gris);
  --tinta: var(--gris);
}
.volver svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--resorte); }
.volver:hover svg { transform: translateX(-3px); }
.caso__cabeza .contenedor { position: relative; padding-bottom: 2px; }
.caso__portada { margin-top: 64px; position: relative; border-radius: 16px; overflow: hidden; background: #111; aspect-ratio: 16 / 9; }
.caso__portada img, .caso__portada video { width: 100%; height: 100%; object-fit: cover; }
.caso__portada--video { background: #0b0b0b; }
.caso__portada--video video { object-fit: contain; }
.caso__portada .pastilla { position: absolute; top: 20px; right: 20px; background: rgba(0, 0, 0, .6); }
.caso__meta { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.caso__datos { display: flex; flex-direction: column; }
.caso__dato { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--linea); font-size: 15px; letter-spacing: -.03em; }
.caso__dato span:first-child { color: var(--gris-claro); }
.caso__dato span:last-child { font-weight: 500; }
.caso__meta .boton { height: 44px; }
.boton--apagado { background: #e2e2e2; color: #8a8a8a; box-shadow: none; cursor: default; }
.caso__cuerpo { padding: 96px 0 0; }
.caso__seccion { margin-left: var(--desplazo); max-width: 906px; }
.caso__seccion + .caso__seccion { margin-top: 56px; }
.caso__seccion h2 { font-size: var(--h3); line-height: var(--h3-l); font-weight: 600; letter-spacing: -.04em; }
.caso__seccion p { margin-top: 16px; font-size: 16px; line-height: 1.45; font-weight: 500; letter-spacing: -.02em; color: var(--gris); }
.caso__seccion ul { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.caso__seccion li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.4; color: var(--gris); letter-spacing: -.02em; }
.caso__seccion li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #000; }
.caso__par { margin: 96px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.caso__par figure { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #ddd; }
.caso__par img { width: 100%; height: 100%; object-fit: cover; }
.mas { padding: 40px 0 var(--sec); position: relative; z-index: 4; }
.mas .rejilla, .mas .rejilla-notas { padding-bottom: 0; }

/* Pieza de motion: barra lateral + artículo */
.articulo { padding: 96px 0 0; }
.articulo__in { display: grid; grid-template-columns: var(--desplazo) 1fr; }
.autor {
  position: sticky;
  top: 120px;
  align-self: start;
  width: 300px;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
}
.autor__fila { display: flex; align-items: center; gap: 10px; }
.autor__fila img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.autor__fila b { display: block; font-size: 15px; font-weight: 500; letter-spacing: -.03em; }
.autor__fila span { font-size: 13px; color: var(--gris-claro); }
.autor h3 { margin-top: 40px; font-size: 20px; font-weight: 500; letter-spacing: -.04em; }
.autor p { margin-top: 8px; font-size: 15px; line-height: 1.3; color: var(--gris); letter-spacing: -.03em; }
.autor .boton { margin-top: 24px; padding: 10px 14px; }
.articulo__texto { max-width: 906px; }
.articulo__texto .caso__seccion { margin-left: 0; }

/* =========================================================
   SOBRE MÍ (página)
   ========================================================= */
.s-hero { position: relative; z-index: 4; padding: 180px 0 80px; }
.s-hero__in { display: grid; grid-template-columns: 666px 1fr; gap: 38px; align-items: start; }
.s-hero h1 { font-size: var(--h1); line-height: var(--h1-l); font-weight: 600; letter-spacing: -.05em; }
.rota { display: inline-grid; vertical-align: top; overflow: hidden; height: 1.1em; clip-path: inset(0 -.2em); contain: paint; }
.rota > span { grid-area: 1 / 1; transition: transform .8s var(--resorte), opacity .5s var(--suave); white-space: nowrap; }
.rota > span:not(.actual) { transform: translateY(105%); opacity: 0; }
.rota > span.sale { transform: translateY(-105%); opacity: 0; }
.s-hero__texto > p { margin-top: 32px; max-width: 520px; }
.s-hero__texto .boton { margin-top: 32px; }
.s-hero__texto .marquesina { margin-top: 100px; max-width: 560px; }
.s-hero__fotos { display: grid; grid-template-columns: 390px 1fr; gap: 20px; }
.s-hero__grande { height: 480px; border-radius: 16px; overflow: hidden; background: #ddd; }
.s-hero__grande img { width: 100%; height: 100%; object-fit: cover; }
.s-hero__lado { display: flex; flex-direction: column; justify-content: space-between; }
.sello { padding-top: 4px; }
.sello__caras { display: flex; }
.sello__caras span {
  display: grid; place-items: center; width: 36px; height: 36px; margin-right: -8px;
  border-radius: 50%; background: #fff; border: 2px solid var(--fondo); overflow: hidden;
}
.sello__caras img { width: 70%; height: 70%; object-fit: contain; }
.sello p { margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--gris); letter-spacing: -.03em; max-width: 180px; }
.s-hero__chica { height: 240px; border-radius: 16px; overflow: hidden; background: #ddd; }
.s-hero__chica img { width: 100%; height: 100%; object-fit: cover; }

.estudio__img { position: relative; margin-top: 64px; height: 820px; border-radius: 16px; overflow: hidden; background: #111; }
.estudio__img img { width: 100%; height: 100%; object-fit: cover; }
.estudio__img .pastilla { position: absolute; top: 20px; right: 20px; background: rgba(0, 0, 0, .55); }
.estudio__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .65)); }
.estudio__cita { position: absolute; z-index: 1; left: 48px; bottom: 48px; max-width: 600px; color: #fff; }
.estudio__parrafos { margin: 56px 0 0 var(--desplazo); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; max-width: 906px; }

.trayecto__in { display: grid; grid-template-columns: 433px 60px 443px; justify-content: center; gap: 0 0; }
.trayecto__lista { display: flex; flex-direction: column; gap: 20px; padding: 40px 0; }
.etapa { padding: 20px; border-radius: 16px; background: #fff; transition: opacity .3s linear; }
.etapa__fila { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.etapa__lugar { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gris); white-space: nowrap; }
.etapa p { margin-top: 10px; }
.etapa .pastilla { margin-top: 16px; font-size: 13px; padding: 4px 8px; border-radius: 6px; }
.trayecto__linea { position: relative; }
.trayecto__linea::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: #dcdcdc; }
.trayecto__punto { position: absolute; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #000; }
.trayecto__fijo { position: sticky; top: 30vh; align-self: start; padding-top: 40px; }
.trayecto__fijo h2 { font-size: var(--h2); line-height: var(--h2-l); font-weight: 600; letter-spacing: -.04em; }
.trayecto__fijo > p { margin-top: 16px; }
.trayecto__fijo .boton { margin-top: 28px; }
.trayecto__fijo h5 { margin-top: 48px; font-size: 20px; font-weight: 500; letter-spacing: -.04em; }
.herramientas { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.herramienta { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff; }
.herramienta img { width: 20px; height: 20px; }
.herramienta--texto { width: auto; padding: 0 12px; font-size: 14px; font-weight: 600; letter-spacing: -.03em; }

.clientes { position: relative; z-index: 4; background: #000; color: #fff; padding: var(--sec) 0; overflow: hidden; }
.clientes::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 15% 30%, rgba(255, 255, 255, .07), transparent 70%),
    radial-gradient(35% 30% at 80% 75%, rgba(255, 255, 255, .06), transparent 70%);
  pointer-events: none;
}
.clientes .contenedor { position: relative; }
.clientes__in { margin-left: 26.7%; }
.clientes .encabezado h2 { color: #fff; }
.clientes .encabezado p { color: var(--gris-texto); }
.clientes__rejilla { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cliente {
  position: relative;
  height: 330px;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background .4s var(--suave);
}
.cliente:hover { background: rgba(255, 255, 255, .11); }
.cliente__mas { position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; stroke: rgba(255, 255, 255, .7); stroke-width: 1.5; fill: none; transition: transform .5s var(--resorte); }
.cliente:hover .cliente__mas { transform: rotate(45deg); }
.cliente__logo { flex: 1; display: grid; place-items: center; transition: transform .6s var(--resorte), opacity .4s var(--suave); }
.cliente__logo img { max-width: 62%; max-height: 40px; filter: brightness(0) invert(1); }
.cliente__logo b { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.cliente__logo b.gruesa { font-size: 40px; font-weight: 900; letter-spacing: -.06em; }
.cliente__logo b.serif { font-family: "Didot", "Bodoni 72", "Times New Roman", serif; font-weight: 400; letter-spacing: .14em; font-size: 19px; }
.cliente__desc { position: absolute; left: 18px; right: 18px; bottom: 44px; font-size: 15px; line-height: 1.3; opacity: 0; transform: translateY(10px); transition: opacity .4s var(--suave), transform .6s var(--resorte); }
.cliente:hover .cliente__logo { transform: translateY(-40px); opacity: .25; }
.cliente:hover .cliente__desc { opacity: 1; transform: none; }
.cliente__pie { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .6); letter-spacing: -.01em; }
.cifras { margin-top: 120px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cifra b { display: block; font-size: var(--h2); line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.cifra span { display: block; margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: rgba(255, 255, 255, .6); max-width: 220px; }

.principios { margin-top: 56px; display: flex; flex-direction: column; gap: 8px; }
.principio {
  display: grid;
  grid-template-columns: 1fr 1fr 40px;
  gap: 32px;
  align-items: center;
  padding: 24px 24px 24px 28px;
  border-radius: 16px;
  background: #fff;
}
.principio__num { display: block; font-size: 13px; color: var(--gris-claro); margin-bottom: 6px; }
.principio h4 { font-size: 20px; font-weight: 500; letter-spacing: -.04em; }
.principio p { font-size: 15px; line-height: 1.3; color: var(--gris); letter-spacing: -.03em; }
.principio__icono { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #f2f2f2; transition: background .3s, transform .5s var(--resorte); }
.principio__icono svg { width: 15px; height: 15px; fill: none; stroke: #000; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.principio:hover .principio__icono { background: #000; transform: rotate(-45deg); }
.principio:hover .principio__icono svg { stroke: #fff; }

.galeria { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.galeria figure { aspect-ratio: 678 / 513; border-radius: 16px; overflow: hidden; background: #ddd; }
.galeria img { width: 100%; height: 100%; object-fit: cover; }

.preguntas { margin: 48px auto 0; max-width: 560px; display: flex; flex-direction: column; gap: 8px; }
.pregunta { border-radius: 14px; background: #fff; }
.pregunta button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; text-align: left; font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -.04em; }
.pregunta button svg { flex: none; width: 14px; height: 14px; stroke: #000; stroke-width: 1.6; fill: none; transition: transform .5s var(--resorte); }
.pregunta[data-abierta="true"] button svg { transform: rotate(45deg); }
.pregunta__resp { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--resorte-t) var(--resorte); }
.pregunta[data-abierta="true"] .pregunta__resp { grid-template-rows: 1fr; }
.pregunta__resp > div { overflow: hidden; }
.pregunta__resp p { padding: 0 20px 20px; font-size: 15px; line-height: 1.3; color: var(--gris); letter-spacing: -.03em; }

/* =========================================================
   ENTRADA
   ========================================================= */
.js-intro [data-appear] { opacity: 0; }

/* =========================================================
   iPad (810 – 1199 px)
   ========================================================= */
@media (max-width: 1199px) {
  :root {
    --pad: 40px; --sec: 100px; --desplazo: 0px;
    --h1: 56px; --h2: 48px; --h2b: 40px; --h3: 26px; --h4: 22px;
  }
  .portada { height: 100vh; height: 100svh; }
  .portada__escenario { position: absolute; inset: 0; height: auto; }
  .portada__fondo, .portada__deco-entrada { height: 100%; }
  .obras { display: none; }
  .obras-lista { display: block; }
  .bokeh { opacity: .8; }

  .sobre__caja { grid-template-columns: 1fr; padding: 0 40px 48px; gap: 32px; margin-top: 100px; }
  .perfil { margin: -50px 0 0; width: 300px; }
  .sobre__der h3 { font-size: 24px; }

  .servicios__lista { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .servicio { height: 460px; }

  .proceso__cuerpo { grid-template-columns: 220px 1fr; margin-top: 56px; }
  .proceso__lista li b { font-size: 34px; }
  .proceso__pasos { --paso-alto: 560px; }
  .proceso__paso { height: 620px; }
  .paso, .paso--inverso { grid-template-columns: 1fr; grid-template-rows: 300px 1fr; }
  .paso--inverso .paso__img { order: 0; }

  .testimonio { grid-template-columns: 1fr; gap: 24px; }
  .testimonio__tarjeta { width: 260px; }
  .testimonio__cita { padding-top: 0; }

  .notas, .notas--invertida { grid-template-columns: 1fr 1fr; }
  .nota { height: 420px; }

  .contacto__in { grid-template-columns: 1fr 1.2fr; gap: 40px; }
  .contacto__foto { margin-top: 48px; }

  .pie__arriba { flex-direction: column; gap: 56px; }
  .pie__links { gap: 48px; }

  .cabeza__fila { flex-direction: column; align-items: flex-start; }
  .caso__col { max-width: none; }
  .volver { position: static; margin-top: 28px; }
  .caso__meta { grid-template-columns: 1fr; gap: 20px; }
  .articulo__in { grid-template-columns: 1fr; gap: 40px; }
  .autor { position: static; width: auto; }

  .s-hero { padding-top: 150px; }
  .s-hero__in { grid-template-columns: 1fr; gap: 48px; }
  .s-hero__texto .marquesina { margin-top: 56px; }
  .s-hero__fotos { grid-template-columns: 1fr 1fr; }
  .estudio__img { height: 560px; }
  .estudio__parrafos { margin-left: 0; }
  .trayecto__in { grid-template-columns: 1fr; }
  .trayecto__linea { display: none; }
  .trayecto__fijo { position: static; order: -1; padding-top: 0; }
  .clientes__in { margin-left: 0; }
  .cifras { grid-template-columns: 1fr 1fr; gap: 40px 24px; margin-top: 80px; }
  .principio { grid-template-columns: 1fr; gap: 10px; }
  .principio__icono { display: none; }
}

/* =========================================================
   Celular (≤ 809 px)
   ========================================================= */
@media (max-width: 809px) {
  :root {
    --pad: 20px; --margen: 16px; --sec: 100px;
    --h1: 44px; --h2: 34px; --h2b: 32px; --h3: 22px; --h4: 20px;
  }
  .nav { top: 16px; right: 16px; }
  .nav__caja { display: none; }
  .nav__menu {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  }
  .nav__menu i { position: relative; width: 16px; height: 10px; }
  .nav__menu i::before, .nav__menu i::after, .nav__menu i b { content: ""; position: absolute; left: 0; width: 16px; height: 1.6px; border-radius: 2px; background: #000; transition: transform .45s var(--resorte), opacity .2s; }
  .nav__menu i::before { top: 0; }
  .nav__menu i b { top: 4.2px; }
  .nav__menu i::after { bottom: 0; }
  .nav__menu[aria-expanded="true"] i::before { transform: translateY(4.2px) rotate(45deg); }
  .nav__menu[aria-expanded="true"] i::after { transform: translateY(-4.2px) rotate(-45deg); }
  .nav__menu[aria-expanded="true"] i b { opacity: 0; }

  .tarjeta, .tarjeta-atras { transform: none; }
  .tarjetas__mov--atras { display: none; }
  .tarjetas { width: 400px; margin-left: -200px; }
  .portada__deco { display: none; }

  .obras-lista__items { margin-top: 40px; }

  .sobre__caja { padding: 0 16px 32px; border-radius: 20px; }
  .perfil { width: 100%; margin-top: -30px; transform: rotate(-3deg); }
  .sobre__der h3 { font-size: 22px; }

  .servicios__lista { grid-template-columns: 1fr; }
  .servicio { height: auto; min-height: 0; }
  .servicio .servicio__img, .servicio.abierto .servicio__img { width: 120px; }
  .servicio .servicio__cuerpo { margin-top: 90px; padding-bottom: 18px; }
  .servicio .servicio__desc { max-height: 100px; opacity: 1; margin-top: 10px; }
  .servicio .servicio__tiempo { height: 40px; opacity: 1; }

  .proceso__cuerpo { grid-template-columns: 1fr; }
  .proceso__lista { display: none; }
  .proceso__paso, .proceso__paso:last-child { position: relative; top: auto; height: auto; margin-bottom: 16px; }
  .paso, .paso--inverso { height: auto; grid-template-rows: auto auto; }
  .paso__img { aspect-ratio: 1; }
  .paso__texto { min-height: 260px; }

  .testimonio__tarjeta { width: 100%; }
  .testimonio__cita .t-h3 { font-size: 22px; }

  .notas, .notas--invertida { grid-template-columns: 1fr; }
  .notas--invertida { margin-top: 16px; }
  .nota { height: 440px; }

  .contacto__in { grid-template-columns: 1fr; gap: 48px; }
  .contacto__foto { margin-top: 32px; }
  .form { grid-template-columns: 1fr; }

  .pie__links { gap: 32px; }
  .pie__links a { font-size: 22px; }
  .pie__medio { flex-direction: column; align-items: flex-start; margin-top: 48px; }
  .pie__correo { flex-direction: column; gap: 4px; }
  .pie__correo a { font-size: 22px; }

  .cabeza, .caso__cabeza { padding-top: 130px; }
  .filtros { width: 100%; }
  .filtros .buscar, .filtros .campo { flex: 1; width: auto; min-width: 0; }
  .rejilla, .rejilla-notas { grid-template-columns: 1fr; }
  .caso__portada { margin-top: 40px; }
  .caso__par { grid-template-columns: 1fr; margin: 56px 0; }
  .caso__cuerpo { padding-top: 56px; }

  .s-hero { padding-top: 130px; }
  .s-hero__fotos { grid-template-columns: 1fr; }
  .s-hero__grande { height: 420px; }
  .s-hero__lado { flex-direction: row; gap: 16px; align-items: center; }
  .s-hero__chica { width: 50%; height: 180px; flex: none; order: 2; }
  .estudio__img { height: 460px; }
  .estudio__cita { left: 20px; right: 20px; bottom: 20px; }
  .estudio__cita.t-h3 { font-size: 22px; }
  .estudio__parrafos { grid-template-columns: 1fr; }
  .clientes__rejilla { grid-template-columns: 1fr 1fr; }
  .cliente { height: 220px; }
  .cliente__desc { display: none; }
  .cliente:hover .cliente__logo { transform: none; opacity: 1; }
  .cifras { grid-template-columns: 1fr 1fr; }
  .galeria { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 0px) /* 19-nov: nunca se quita el movimiento */ {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-revela], .js [data-palabras] .palabra { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* Ninguna columna crece más que la pantalla (la marquesina y los textos
   largos empujaban las cuadrículas hacia los lados). */
.sobre__caja > *, .s-hero__in > *, .s-hero__fotos > *, .rejilla > *, .rejilla-notas > *, .notas > *,
.testimonio > *, .contacto__in > *, .proceso__cuerpo > *, .trayecto__in > *, .caso__meta > *,
.articulo__in > *, .servicios__lista > *, .clientes__rejilla > *, .cifras > *, .galeria > *, .caso__par > * { min-width: 0; }
.tarjeta-obra__meta, .obra-fila__meta { white-space: normal; text-align: right; }
