/* ─────────────────────────────────────────────
   Mona Renner — fotógrafa
   Colores y tipografías se cambian aquí arriba.
   ───────────────────────────────────────────── */
:root {
  --paper: #f4f0e6;
  --ink: #13233d;      /* denim */
  --cerulean: #3a4f99;
  --olympic: #6299d0;
  --powder: #b2cee2;
  --lime: #d1d871;     /* key lime */

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --pad: clamp(1rem, 3.2vw, 3rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

/* scroll suave: Lenis (script.js) y, si no carga, el del navegador */
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: var(--ink); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--cerulean); outline-offset: 3px; border-radius: 4px; }

/* ───────── piezas sueltas ───────── */
.pill {
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 0.55rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  transition: background 0.3s, color 0.3s, transform 0.5s var(--ease);
}
.btn span { transition: transform 0.4s var(--ease); }
.btn:hover { background: var(--cerulean); color: var(--paper); }
.btn:hover span { transform: rotate(45deg); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--ink); color: var(--paper); }

.rec {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.5em;
  border-radius: 50%;
  background: var(--cerulean);
  animation: rec 1.6s steps(2, jump-none) infinite;
}
.rec--open { background: var(--olympic); }
@keyframes rec { 50% { opacity: 0.15; } }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--cerulean); }
.dot--lime { background: var(--lime); }

.h2 {
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.h2 em,
.hero__lead em,
.manifesto__text em,
.contact__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
/* subrayado de rotulador lima bajo la cursiva de los títulos */
.h2 em {
  background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 82% / 100% 0.3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.nota {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cerulean);
}

.section { padding: clamp(5rem, 12vw, 11rem) var(--pad); }
.head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }

/* aparecer al hacer scroll */
.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.8s var(--ease) var(--d, 0s), translate 0.9s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ───────── cursor ───────── */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: difference;
  transition: opacity 0.3s;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
.cursor span {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.2s;
}
.cursor.has-label { mix-blend-mode: normal; }
.cursor.has-label span {
  width: 86px;
  height: 86px;
  margin: -43px 0 0 -43px;
  background: var(--lime);
  color: var(--ink);
  rotate: -8deg;
}
@media not ((hover: hover) and (pointer: fine)) { .cursor { display: none; } }

/* ───────── nav ───────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__logo { font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.nav__end { display: flex; align-items: center; gap: 0.5rem; }

/* idioma: ES / EN; el idioma activo en tinta, el otro apagado */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  border: 0;
  font: inherit;
  color: inherit;
  font-weight: 600;
  font-size: 0.85em;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.3s;
}
.lang:hover { background: var(--paper); }
.lang span { opacity: 0.4; transition: opacity 0.3s; }
html:not([lang="en"]) .lang__es,
html[lang="en"] .lang__en { opacity: 1; }
/* en móvil caben logo, idioma y «Hablemos» en una línea */
@media (max-width: 640px) {
  .nav { gap: 0.4rem; }
  .nav__end { gap: 0.3rem; }
  .lang { padding: 0.5rem 0.65rem; }
  .nav__end .btn { padding: 0.6rem 0.9rem; }
  .nav__end .btn span { display: none; }
}
/* móviles muy estrechos: el botón enseña solo el idioma al que cambia */
@media (max-width: 380px) {
  .nav__logo { padding-inline: 0.8rem; }
  .lang > span[aria-hidden],
  html:not([lang="en"]) .lang__es,
  html[lang="en"] .lang__en { display: none; }
  .lang span { opacity: 1; }
}
.nav__links { display: flex; gap: 1.4rem; font-weight: 500; }
.nav__links a { position: relative; }
.nav__links a::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px;
  height: 2px;
  background: var(--cerulean);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ───────── hero ───────── */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  min-height: 100svh;
  padding: 5.5rem var(--pad) var(--pad);
  overflow: hidden;
}

.hero__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__open { white-space: nowrap; }

.hero__title {
  align-self: center;
  font-weight: 800;
  font-size: clamp(4rem, min(22vw, 38svh), 28rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  font-variation-settings: "opsz" 96;
  color: var(--cerulean);
}
.line { display: block; white-space: nowrap; }

.ch {
  display: inline-block;
  transition: transform 0.5s var(--ease), color 0.3s;
  animation: sube 0.9s var(--ease) backwards;
  animation-delay: calc(var(--i) * 55ms + 0.1s);
}
.ch:hover { transform: translateY(-0.05em) rotate(-5deg); color: var(--olympic); }
@keyframes sube {
  from { transform: translateY(0.45em) rotate(8deg); opacity: 0; }
}

/* la O de MONA: una foto que parpadea */
.ojo {
  position: relative;
  width: 0.72em;
  height: 0.72em;
  margin: 0 0.035em 0 0.02em;
  vertical-align: -0.012em;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cerulean);
}
.ojo img { width: 100%; height: 100%; object-fit: cover; }
.ojo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: scaleY(0);
  transform-origin: top;
  animation: parpadeo 5.5s 2s infinite;
}
.ojo:hover { transform: rotate(14deg) scale(1.06); }
@keyframes parpadeo {
  0%, 93%, 100% { transform: scaleY(0); }
  96% { transform: scaleY(1); }
}

/* tarjetas arrastrables */
.hero__cards { position: absolute; inset: 0; pointer-events: none; }
.card {
  position: absolute;
  width: clamp(120px, 14vw, 230px);
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  transform:
    translate(
      calc(var(--dx, 0px) + var(--mx, 0px) * var(--depth, 1)),
      calc(var(--dy, 0px) + var(--my, 0px) * var(--depth, 1))
    )
    rotate(var(--r, 0deg));
  transition: scale 0.4s var(--ease), box-shadow 0.4s;
  animation: cae 1s var(--ease) backwards;
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  pointer-events: none;
}
.card figcaption {
  position: absolute;
  left: -0.6rem;
  bottom: 0.9rem;
  padding: 0.15rem 0.6rem 0.25rem;
  border-radius: 999px;
  background: var(--lime);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.1;
  rotate: -6deg;
}
.card--a { left: 71%; top: 15%; --r: 6deg; animation-delay: 0.7s; }
.card--b { left: 34%; top: 67%; --r: -7deg; width: clamp(100px, 11vw, 180px); animation-delay: 0.85s; }
.card--c { left: 86%; top: 52%; --r: -4deg; width: clamp(90px, 9.5vw, 160px); animation-delay: 1s; }
.card--b figcaption { background: var(--powder); }
.card--c figcaption { background: var(--olympic); }
@keyframes cae {
  from { opacity: 0; scale: 1.3; rotate: 12deg; }
}

@media (hover: hover) and (pointer: fine) {
  .card { cursor: grab; touch-action: none; }
  .card:hover { scale: 1.04; }
  .card.is-drag {
    cursor: grabbing;
    scale: 1.08;
    box-shadow: 0 30px 50px -20px rgb(21 20 18 / 0.55);
  }
}

/* sello giratorio */
.sello {
  position: absolute;
  left: 57%;
  top: 13%;
  width: clamp(84px, 9vw, 140px);
  rotate: 10deg;
  color: var(--ink);
  fill: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  animation: cae 1s var(--ease) 1.15s backwards;
}
.sello__txt { transform-origin: 100px 100px; animation: gira 14s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.hero__lead {
  position: relative;
  max-width: 24ch;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero__lead .nota {
  position: absolute;
  left: 100%;
  bottom: -0.2rem;
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
  margin-left: 0.6rem;
  white-space: nowrap;
  letter-spacing: 0;
  rotate: -4deg;
}
.hero__lead .nota svg { order: -1; width: 2.6rem; }
.hero__scroll { font-weight: 600; white-space: nowrap; }
.hero__scroll span { display: inline-block; animation: bota 1.4s var(--ease) infinite; }
@keyframes bota { 50% { transform: translateY(6px); } }

/* ───────── cinta ───────── */
.marquee {
  margin: 1.5rem -1rem;
  padding: 1.1rem 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-1.5deg);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  font-size: clamp(1.6rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.marquee__group em { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.marquee__group i { color: var(--lime); font-style: normal; font-size: 0.7em; }

/* ───────── mi forma de mirar ─────────
   Texto grande con fotos pequeñas dentro. Encima viaja una lente de cristal
   que sigue al ratón (lente-cristal.js). */
.manifesto { display: grid; gap: 2rem; }
.manifesto__stage { position: relative; }
@media (hover: hover) and (pointer: fine) { .manifesto__stage { cursor: none; } }
.manifesto__lens { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; will-change: transform; }
.manifesto__text {
  font-size: clamp(2.4rem, 6.6vw, 6.8rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: pretty;
}
.mchip {
  display: inline-block;
  width: 1.7em;
  height: 0.82em;
  margin-left: 0.04em;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: -0.08em;
}
.mchip img { width: 100%; height: 100%; object-fit: cover; }

/* ───────── trabajo ───────── */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  transition: background 0.25s, color 0.25s, rotate 0.4s var(--ease);
}
.chip:hover { rotate: -3deg; background: var(--lime); }
.chip[aria-pressed="true"] { background: var(--lime); }

.grid { columns: 3; column-gap: clamp(0.9rem, 2.2vw, 2.2rem); }
.shot {
  display: block;
  break-inside: avoid;
  margin-bottom: clamp(1.6rem, 3vw, 3rem);
}
.shot[hidden] { display: none; }
.shot__img { overflow: hidden; border-radius: 6px; background: var(--ink); }
.shot img {
  width: 100%;
  aspect-ratio: var(--ar, 4 / 5);
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.shot:hover img { transform: scale(1.06) rotate(-1.2deg); }
.shot figcaption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.7rem;
  padding-top: 0.7rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.shot__n { font-size: 0.75rem; color: var(--cerulean); }
.shot__c {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  transition: translate 0.4s var(--ease);
}
.shot:hover .shot__c { translate: -4px 0; }

/* ───────── serie destacada (scroll horizontal) ───────── */
.serie__sticky {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  height: 100svh;
  overflow: hidden;
}
.serie__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 0 var(--pad);
}
.serie__head > div { display: grid; gap: 1rem; }
.serie__lead { max-width: 30ch; font-size: 1.05rem; line-height: 1.35; }
.serie__track {
  display: flex;
  gap: clamp(0.8rem, 1.6vw, 1.6rem);
  width: max-content;
  padding-inline: var(--pad);
  will-change: transform;
}
.serie__item { display: grid; flex: none; gap: 0.6rem; margin: 0; }
.serie__item img {
  width: auto;
  height: min(54svh, 34rem);
  border-radius: 6px;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.serie__item:hover img { transform: scale(1.025); }
.serie__item figcaption { font-size: 0.8rem; font-weight: 600; color: var(--cerulean); }
.serie__progress { height: 2px; margin: 0 var(--pad); background: color-mix(in srgb, var(--ink) 14%, transparent); }
.serie__progress span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
@media (max-width: 760px), (hover: none) {
  .serie__sticky { position: static; height: auto; padding: clamp(4rem, 12vw, 6rem) 0; }
  .serie__head { flex-direction: column; align-items: flex-start; }
  .serie__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .serie__item { scroll-snap-align: start; }
  .serie__item img { height: min(62svh, 26rem); }
  .serie__progress { display: none; }
}

/* ───────── mona ───────── */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
}
.about__pic { position: relative; rotate: -2.5deg; cursor: pointer; }
.about__pic.is-press img { animation: bota-clic 0.45s cubic-bezier(0.3, 1.5, 0.45, 1); }

/* lo que sale al hacer clic en la foto de Mona: destellos, caritas y cámaras */
.burst { position: fixed; inset: 0; z-index: 90; overflow: hidden; pointer-events: none; }
.burst__bit { position: absolute; display: block; will-change: transform, opacity; }
.burst__bit svg { display: block; width: 100%; height: 100%; overflow: visible; }
.about__pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.tape {
  position: absolute;
  z-index: 1;
  width: 5.5rem;
  height: 1.7rem;
  background: color-mix(in srgb, var(--lime) 85%, transparent);
}
.tape--1 { left: -1.6rem; top: 1rem; rotate: -38deg; }
.tape--2 { right: -1.6rem; bottom: 1.2rem; rotate: -38deg; background: color-mix(in srgb, var(--powder) 85%, transparent); }
.nota--pic { position: absolute; right: -1rem; bottom: 100%; margin-bottom: 1.1rem; rotate: 7deg; text-align: center; }

.about__txt { display: grid; gap: 1.5rem; }
.big {
  max-width: 34ch;
  font-size: clamp(1.25rem, 2.1vw, 1.9rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.about__cv {
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--ink);
}
.facts b {
  display: block;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--cerulean);
}
.facts span { display: block; margin-top: 0.5rem; max-width: 18ch; font-size: 0.95rem; line-height: 1.25; }

/* ───────── servicios ───────── */
.serv { border-bottom: 1.5px solid var(--ink); }
.serv__row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 30ch) 2.5rem;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.2rem, 2.6vw, 2.4rem) 0;
  border-top: 1.5px solid var(--ink);
  transition: padding 0.5s var(--ease);
}
.serv__n { font-size: 0.8rem; font-weight: 600; color: var(--cerulean); }
.serv__row h3 {
  font-size: clamp(2rem, 6.5vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}
.serv__row p { font-size: 0.98rem; line-height: 1.3; }
.serv__arrow { font-size: 1.8rem; justify-self: end; transition: rotate 0.5s var(--ease), color 0.3s; }
@media (hover: hover) {
  .serv__row:hover { padding-left: 1.5rem; }
  .serv__row:hover h3 {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--cerulean);
  }
  .serv__row:hover .serv__arrow { rotate: 45deg; color: var(--cerulean); }
}

.peek {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: min(22vw, 280px);
  aspect-ratio: 4 / 5;
  margin: calc(min(22vw, 280px) * -0.62) 0 0 2.5rem;
  border-radius: 8px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  scale: 0.5;
  transition: opacity 0.25s, scale 0.45s var(--ease);
}
.peek.is-on { opacity: 1; scale: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }

.steps { display: grid; gap: 2rem; margin-top: clamp(4rem, 9vw, 8rem); }
.steps__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.5rem);
}
/* Tarjetas de «Cómo va esto»: flotan solas (li), se inclinan hacia el ratón
   (.step__card, con --rx/--ry desde script.js) y botan al hacer clic. */
.step {
  position: relative;
  min-height: 15rem;
  perspective: 900px;
  animation: flota 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.6s);
  transition: opacity 0.8s var(--ease) var(--d, 0s), translate 0.9s var(--ease) var(--d, 0s), rotate 0.5s var(--ease);
}
.js .step[data-reveal] {
  transition: opacity 0.8s var(--ease) var(--d, 0s), translate 0.9s var(--ease) var(--d, 0s), rotate 0.5s var(--ease);
}
@keyframes flota {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(0.9deg); }
}
.step--lime { rotate: -2deg; }
.step--powder { rotate: 1.5deg; }
.step--line { rotate: -1deg; }
.step--blue { rotate: 2deg; }
.step:hover { rotate: 0deg; animation-play-state: paused; }

.step__card {
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  transition: transform 0.35s var(--ease), filter 0.35s;
}
.step:hover .step__card { --s: 1.05; filter: drop-shadow(0 22px 22px rgb(19 35 61 / 0.18)); }
.step__front {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.6rem;
  height: 100%;
  min-height: 15rem;
  padding: 1.4rem;
  border-radius: 14px;
}
.step.is-press .step__front { animation: bota-clic 0.5s cubic-bezier(0.3, 1.5, 0.45, 1); }
@keyframes bota-clic {
  30% { scale: 0.92; }
  65% { scale: 1.05; }
}
.step__front b {
  display: inline-block;
  justify-self: start;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  transform-origin: 20% 80%;
  transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.45, 1);
}
.step:hover .step__front b { transform: translateZ(40px) scale(1.25) rotate(-8deg); }
.step__front h3 { margin-top: auto; font-size: 1.5rem; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.step__front p { font-size: 0.95rem; line-height: 1.3; }
.step--lime .step__front { background: var(--lime); }
.step--powder .step__front { background: var(--powder); }
.step--line .step__front { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.step--blue .step__front { background: var(--cerulean); color: var(--paper); }

/* ───────── contacto ───────── */
.contact {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding: clamp(5rem, 12vw, 10rem) var(--pad) 1.5rem;
  background: var(--cerulean);
  color: var(--paper);
  text-align: center;
}
.contact :focus-visible { outline-color: var(--lime); }
.contact__title {
  font-weight: 800;
  font-size: clamp(3.4rem, 15.5vw, 17rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
}
.contact__title > * { display: block; }
.contact__title em { font-size: 1.12em; letter-spacing: -0.03em; }

/* los ojos de «fotos» */
.eye {
  position: relative;
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin: 0 0.02em;
  border-radius: 50%;
  background: var(--paper);
  overflow: hidden;
  vertical-align: -0.015em;
}
.eye i { position: absolute; inset: 27%; border-radius: 50%; background: var(--ink); }
.eye::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: top;
  animation: parpadeo 4.2s 1s infinite;
}

/* las «o» de «fotos» son objetivos: el diafragma se abre y se cierra al hacer clic.
   --ap = abertura (0 cerrado · 27 abierto), --giro = lo que rotan las palas al cerrar. */
.lens {
  display: inline-block;
  width: 0.44em;
  height: 0.44em;
  margin: 0 0.02em;
  border-radius: 50%;
  background: var(--paper);
  vertical-align: -0.02em;
  --ap: 27;
  --giro: 0deg;
  transition: scale 0.4s var(--ease);
}
.lens.is-closed { --ap: 2; --giro: 55deg; }
/* parpadeo: medio cierre, sin llegar a taparlo del todo */
.lens.is-blink { --ap: 11; --giro: 22deg; }
.lens.is-blink .lens__iris,
.lens.is-blink .lens__blade,
.lens.is-blink .lens__edge { transition-duration: 0.1s; transition-timing-function: ease-in; }
/* cerrar es un chasquido; abrir, un poco más suave */
.lens.is-closed .lens__iris,
.lens.is-closed .lens__blade,
.lens.is-closed .lens__edge { transition-duration: 0.08s; transition-timing-function: ease-in; }
.lens svg { display: block; width: 100%; height: 100%; }
.lens__ring { fill: var(--paper); }
.lens__glass { fill: var(--ink); }
/* el brillo mira hacia el ratón (script.js); en reposo, arriba a la izquierda */
.lens__glint { fill: var(--paper); transform: translate(-10px, -11px); transition: transform 0.35s var(--ease); }
.lens__iris { transform: rotate(var(--giro)); transition: transform 0.22s var(--ease); }
.lens__blade { fill: var(--lime); }
.lens__edge { stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.lens__blade,
.lens__edge {
  transform: translate(calc(var(--ap) * -0.577px), calc(var(--ap) * 1px));
  transition: transform 0.22s var(--ease);
}

.contact__lead { max-width: 30ch; font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1.25; }
.contact__mail {
  margin-top: 1rem;
  font-size: clamp(1.5rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 100% / 100% 0.06em;
  transition: background-size 0.5s var(--ease), color 0.3s;
}
.contact__mail:hover { background-size: 100% 100%; color: var(--ink); }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  width: 100%;
  margin-top: clamp(4rem, 9vw, 8rem);
  padding-top: 1.2rem;
  border-top: 1.5px solid currentColor;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ───────── visor ───────── */
.lb {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--paper);
}
.lb[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.lb::backdrop { background: var(--ink); }
.lb figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1rem;
  height: 100dvh;
  padding: 4.5rem 0.5rem 1.5rem;
}
.lb img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lb figcaption { text-align: center; font-weight: 600; }
.lb figcaption em { font-family: var(--serif); font-weight: 400; font-size: 1.15em; color: var(--lime); }
.lb button { border: 0; background: none; }
.lb__close { position: absolute; right: var(--pad); top: 1.1rem; z-index: 1; font-weight: 600; }
.lb__nav { padding: 1rem var(--pad); font-size: 2rem; transition: color 0.2s, translate 0.3s var(--ease); }
.lb__nav:hover { color: var(--lime); }
.lb__nav[data-step="-1"]:hover { translate: -5px 0; }
.lb__nav[data-step="1"]:hover { translate: 5px 0; }
.lb::after { content: ""; position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.lb.is-flash::after { animation: flash 0.5s ease-out; }
@keyframes flash { from { opacity: 0.95; } to { opacity: 0; } }

/* ───────── tablet ───────── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .grid { columns: 2; }
  .about { grid-template-columns: 1fr; }
  .about__pic { max-width: 26rem; margin-inline: auto; }
  .nota--pic { right: 0; }
  .serv__row { grid-template-columns: 2.2rem minmax(0, 1fr) 2rem; gap: 0.4rem 0.8rem; }
  .serv__row p { grid-column: 2 / -1; grid-row: 2; }
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step,
  .step__front { min-height: 12.5rem; }
  .peek { display: none; }
}

/* ───────── móvil ───────── */
@media (max-width: 640px) {
  .hero { grid-template-rows: auto auto auto 1fr; gap: 1.5rem; padding-top: 5rem; }
  .hero__top { font-size: 0.68rem; }
  .hero__top p:first-child { max-width: 22ch; }
  .hero__title { align-self: start; margin-top: 1rem; font-size: 27vw; }
  .hero__cards {
    position: relative;
    inset: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0;
  }
  .card { position: relative; left: auto; top: auto; width: 35%; }
  .card--b { width: 31%; translate: 0 1.2rem; }
  .card--c { width: 28%; }
  .card figcaption { left: -0.3rem; bottom: 0.5rem; font-size: 1rem; }
  .sello { left: auto; right: var(--pad); top: 8.2rem; width: 74px; }
  .hero__foot { flex-direction: column; align-items: flex-start; align-self: end; gap: 1.6rem; }
  .hero__lead { max-width: 19ch; font-size: 1.7rem; }
  .hero__lead .nota { position: static; display: inline-flex; margin: 0.5rem 0 0; }
  .step__front { padding: 1.1rem; }
  .step__front h3 { font-size: 1.25rem; }
  .step__front p { font-size: 0.88rem; }
  .facts { gap: 0.8rem; }
  .facts span { font-size: 0.82rem; }
  .shot figcaption { grid-template-columns: auto 1fr; font-size: 0.9rem; }
  .shot__c { display: none; }
  .foot { justify-content: center; text-align: center; }
  .lb[open] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .lb figure { grid-column: 1 / -1; grid-row: 1; height: auto; min-height: 0; padding-bottom: 0; }
  .lb__nav { grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; translate: 0 0; }
}

/* ───────── intro: tablero animado ───────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero--board {
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100svh;
  min-height: 34rem;
}
.hero__board {
  --radius-card: 0px;
  --rb-head: var(--cerulean);
  width: auto;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  margin-inline: calc(var(--pad) * -1);
}
.hero--board .hero__foot { padding-top: 1.2rem; border-top: 1.5px solid var(--ink); }
.hero--board .sello { left: auto; right: 5%; top: 17%; z-index: 4; }
@media (max-width: 640px) {
  .hero--board { grid-template-rows: auto minmax(0, 1fr) auto; }
  .hero--board .hero__foot { align-self: auto; }
  .hero--board .sello { right: var(--pad); top: 7.5rem; }
}

/* ───────── galería: mosaico animado ─────────
   Sin WebGL (o sin JS) se queda la galería normal. */
.mosaic,
.work__hint { display: none; }
/* el mosaico llega hasta la sección siguiente, sin hueco debajo */
.work.has-wobble { padding-bottom: 0; }
.has-wobble .mosaic {
  position: relative;
  display: block;
  margin-inline: calc(var(--pad) * -1);
}
.wobble { display: block; width: 100%; height: clamp(34rem, 105svh, 68rem); }

/* final del mosaico: las fotos se desenfocan y se funden con el fondo.
   Tres capas (desenfoque suave, desenfoque fuerte y velo de color) para
   que la transición sea progresiva; no captura el ratón. */
.mosaic__fade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 35%, var(--paper) 96%);
}
.mosaic__fade::before,
.mosaic__fade::after {
  content: "";
  position: absolute;
  inset: 0;
}
.mosaic__fade::before {
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
  mask-image: linear-gradient(to bottom, transparent, #000 40%);
}
.mosaic__fade::after {
  top: 35%;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 55%);
  mask-image: linear-gradient(to bottom, transparent, #000 55%);
}
.has-wobble .work__hint { display: block; rotate: -1.5deg; }
.has-wobble .head { margin-bottom: 1.5rem; }
.has-wobble .grid {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* ───────── idioma ─────────
   Mientras idioma.js traduce al inglés la página no se ve (así no asoma el
   español). Si el script fallara, se enseña igualmente a los 1,5 s. */
html.lang-pending body { visibility: hidden; animation: lang-reveal 0s 1.5s forwards; }
@keyframes lang-reveal { to { visibility: visible; } }
