/* Estilo de Álvaro: negro puro, blanco, tipografía condensada tipo DIN,
   texto repetido en contorno e índice con barras ( / y // ). El color lo pone el trabajo. */

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #A6A6A6;
  --line: #2B2B2B;
  --panel: #111;

  --display: "Barlow Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", "DIN Next", Arial, sans-serif;

  --side: 300px;
  --gutter: clamp(16px, 3.4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --stroke: 1.25px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--fg);
}
::selection { background: var(--fg); color: var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3a3a; border: 2px solid var(--bg); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg); }
html { scrollbar-color: #3a3a3a var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
b { font-weight: 600; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 300;
  background: var(--fg); color: var(--bg); padding: 12px 16px; font-weight: 600;
  transform: translateY(-200%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* Subrayado que se dibuja */
.side__nav a, .contact__list a, .foot a, .side__id {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease), color .2s;
}

/* ---------- Índice lateral ---------- */
.side {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
  width: var(--side);
  padding: 44px 0 36px var(--gutter);
  display: flex; flex-direction: column; gap: 40px;
  pointer-events: none;
}
.side > * { pointer-events: auto; }
.side__id { display: grid; gap: 2px; width: max-content; background-size: 0 0; }
.side__id strong { font: 700 1.35rem/1.1 var(--display); letter-spacing: .01em; }
.side__id span { font-size: .95rem; color: var(--muted); font-weight: 400; }
.side__toggle { display: none; }
.side__nav { display: flex; flex-direction: column; gap: 28px; }
.side__nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side__nav li a {
  display: inline-block;
  font-size: 1.15rem; font-weight: 300; letter-spacing: .02em; line-height: 1.5;
  color: #D9D9D9;
  transition: color .2s, font-weight .2s, padding .3s var(--ease);
}
.side__nav li a::before { content: "/ "; }
.side__nav li a:hover { color: var(--fg); background-size: 100% 1px; }
.side__nav li a.is-active {
  color: var(--fg);
  font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: .01em;
  padding-block: 4px;
}
.side__nav li a.is-active::before { content: "// "; }
.side__cv {
  width: max-content; font-weight: 500; font-size: 1rem;
  border: 1px solid var(--fg); padding: 10px 18px; min-height: 44px; display: inline-flex; align-items: center;
  background: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.side__cv:hover { background: var(--fg); color: var(--bg); }
.side__cv:active { transform: scale(.97); }

main { margin-left: var(--side); padding-right: var(--gutter); }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: flex-end;
  padding-block: 28px;
}
.hero__stack {
  display: grid; justify-items: end;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: min(12vw, 15vh); /* main.js lo ajusta al ancho exacto */
  line-height: .86; letter-spacing: .005em;
  user-select: none;
}
.row {
  display: block;
  color: var(--bg);
  -webkit-text-stroke: var(--stroke) var(--fg);
  transition: color .45s var(--ease), -webkit-text-stroke-color .45s var(--ease);
  animation: rowIn .9s var(--ease) var(--in, 0s) both;
}
.row--solid { color: var(--fg); -webkit-text-stroke: 0; }
.row:nth-child(1) { --in: .55s; }
.row:nth-child(2) { --in: .1s; }
.row:nth-child(3) { --in: .18s; }
.row:nth-child(4) { --in: .26s; }
.row:nth-child(5) { --in: .34s; }
.row:nth-child(6) { --in: .42s; }
/* Portada: primero entra la fila y después empieza el ciclo de relleno */
.hero__stack .row.fill-cycle {
  --off: var(--bg);
  animation:
    rowIn .9s var(--ease) var(--in, 0s) both,
    fillCycle 3.6s cubic-bezier(.65, 0, .35, 1) calc(1.4s + var(--k, 0) * .3s) infinite both;
}
.hero__stack .row:not(.row--solid):hover { animation: none; color: var(--fg); }
@keyframes rowIn {
  from { clip-path: inset(0 0 0 100%); }
  to   { clip-path: inset(0 0 0 0); }
}
.hero__year {
  position: absolute; left: calc(-1 * var(--side) + var(--gutter)); bottom: 28px;
  font: 700 clamp(4rem, 9vw, 8.5rem)/.8 var(--display);
  animation: rowIn .9s var(--ease) .7s both;
}

/* ---------- Títulos ---------- */
.ruled {
  display: flex; align-items: center; gap: 24px;
  font: 700 clamp(2rem, 3.4vw, 3rem)/1 var(--display);
}
.ruled::before { content: ""; flex: 1; height: 4px; background: var(--fg); }
.ruled--left { flex-direction: row-reverse; font-size: clamp(1.7rem, 2.6vw, 2.4rem); }

/* Eco: el título sólido y dos repeticiones en contorno, como en los carteles de Gym Bros */
.echo {
  display: grid;
  font: 700 clamp(3rem, 7.4vw, 7.5rem)/.86 var(--display);
  text-transform: uppercase; letter-spacing: .005em;
}
.echo > span:not(:first-child) {
  color: transparent;
  -webkit-text-stroke: var(--stroke) rgba(255, 255, 255, .85);
}
.echo > span:nth-child(3) { -webkit-text-stroke-color: rgba(255, 255, 255, .4); }
.echo > span { overflow-wrap: anywhere; }

/* Filas en contorno: alternan sin relleno / relleno, quietas, en onda de arriba abajo.
   Ciclo de 3,6 s; cada fila empieza 0,3 s después que la anterior. */
.fill-cycle {
  --off: transparent;
  --on: #fff;
  animation: fillCycle 3.6s cubic-bezier(.65, 0, .35, 1) calc(var(--k, 0) * .3s) infinite both;
}
.echo > span.fill-cycle:nth-child(3) { --on: rgba(255, 255, 255, .45); }
.fill-cycle.is-paused { animation-play-state: paused; }
@keyframes fillCycle {
  0%, 30% { color: var(--off); }
  45%, 75% { color: var(--on); }
  90%, 100% { color: var(--off); }
}
.echo--long { font-size: clamp(2.4rem, 5vw, 5.2rem); }
.project .echo--long { font-size: clamp(2.4rem, 5vw, 5.2rem); }

/* ---------- About ---------- */
.about { padding-block: clamp(96px, 12vw, 160px); border-top: 1px solid var(--line); }
.about__top { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.about__title { display: grid; gap: 10px; }
.about__name { font: 700 clamp(2.6rem, 5.6vw, 5.4rem)/.95 var(--display); text-align: right; }
.about__title h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.about__photo {
  width: clamp(96px, 10vw, 148px); aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; filter: grayscale(1) contrast(1.08);
  transition: filter .5s var(--ease);
}
.about__photo:hover { filter: none; }

.about__grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px); margin-top: clamp(48px, 6vw, 80px);
}
.about__bio { display: grid; gap: 1.1em; max-width: 62ch; font-size: 1.125rem; color: #E6E6E6; }
.about__style { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.2; color: var(--fg); margin-top: .4em; }
.about__skills { display: grid; gap: 28px; align-content: start; }

.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tools li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; background: var(--panel); border-radius: 10px;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.tools li:hover { background: #1b1b1b; transform: translateY(-2px); }
.tools img { width: 40px; height: 40px; flex: none; }
.tools span { display: grid; font-size: .9rem; line-height: 1.3; color: var(--muted); }
.tools b { font-size: 1.05rem; color: var(--fg); font-weight: 500; }

.cv { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); margin-top: clamp(72px, 9vw, 128px); }
.cv__block { display: grid; gap: 28px; align-content: start; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; display: grid; gap: 36px; border-left: 1px solid #4a4a4a; }
.timeline li { position: relative; display: grid; gap: 6px; }
.timeline li::before { content: ""; position: absolute; left: -27px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--fg); }
.timeline__when { font-weight: 500; font-size: .95rem; font-variant-numeric: tabular-nums; }
.timeline__when span { color: var(--muted); font-weight: 400; margin-left: 12px; }
.timeline__what { display: grid; color: var(--muted); font-size: .95rem; }
.timeline__what b { font: 700 1.5rem/1.15 var(--display); color: var(--fg); }
.timeline__desc { color: #D0D0D0; max-width: 60ch; }
.edu { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.edu li { display: grid; padding: 18px 20px; background: var(--panel); border-radius: 10px; color: var(--muted); }
.edu b { font: 700 1.4rem/1.15 var(--display); color: var(--fg); }
.edu span { font-size: .9rem; font-weight: 500; color: #D0D0D0; margin-top: 6px; font-variant-numeric: tabular-nums; }
.edu--inline { grid-template-columns: 1fr 1fr; }

/* ---------- Proyectos ---------- */
.project {
  padding-block: clamp(88px, 10vw, 144px);
  border-top: 1px solid var(--line);
  /* Rejilla común de 12 columnas: el texto ocupa siempre 5 y la pieza 7.
     Los proyectos alternan lado (texto a la izquierda / a la derecha), pero el texto
     empieza siempre en la misma columna de su lado, así todos quedan alineados. */
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px); row-gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.project__head {
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; align-self: center;
  grid-column: 1 / span 5; grid-row: 1;
}
.project > :not(.project__head) { grid-column: 6 / -1; grid-row: 1; min-width: 0; }
.project--right > .project__head { grid-column: 8 / -1; }
.project--right > :not(.project__head) { grid-column: 1 / span 7; }
/* Piezas anchas (carteles en fila, identidad): el texto va en su lado y la pieza debajo, a todo el ancho */
.project--wide > :not(.project__head) { grid-column: 1 / -1; grid-row: 2; }
.project .echo { font-size: clamp(2.8rem, 4.6vw, 5.4rem); }
.project .echo--long { font-size: clamp(2.2rem, 3.2vw, 3.8rem); }
.project__info { display: grid; gap: 10px; max-width: 44ch; color: #D6D6D6; padding-bottom: 6px; }
.project__kind { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--fg); letter-spacing: .02em; }
.project__kind::before { content: "// "; }

/* Botón-imagen: abre la ampliación */
.media {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in;
  overflow: hidden; border-radius: 6px; width: 100%;
}
.media img { width: 100%; transition: transform .7s var(--ease), filter .4s var(--ease); }
.media:hover img { transform: scale(1.025); }
.media--poster { border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(255, 255, 255, .08); }
.media--bare { border-radius: 0; }

/* Gym Bros: baraja de carteles a la derecha; el de delante se ve entero y los otros asoman
   detrás, uno a cada lado (intercalados). Pasan solos y se pueden pasar a mano. */
.gym { display: grid; gap: 22px; justify-items: center; }
.gym__deck { position: relative; width: min(64%, 420px); aspect-ratio: 985 / 1378; margin-inline: auto; }
.gym .gym__card {
  position: absolute; inset: 0; max-width: none;
  transition: transform .9s var(--ease), filter .9s var(--ease), opacity .9s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.gym__card[data-pos="0"] { z-index: 3; transform: none; filter: none; }
.gym__card[data-pos="1"] { z-index: 2; transform: translateX(34%) rotate(7deg) scale(.86); filter: brightness(.45) saturate(.8); }
.gym__card[data-pos="2"] { z-index: 1; transform: translateX(-34%) rotate(-7deg) scale(.86); filter: brightness(.45) saturate(.8); }
.gym__card:not([data-pos="0"]):hover { filter: brightness(.7); }
.gym__ui { display: flex; align-items: center; gap: 16px; }
.gym__arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid #4a4a4a; background: transparent;
  color: var(--fg); font-size: 1.1rem; cursor: pointer; transition: background-color .25s, color .25s;
}
.gym__arrow:hover { background: var(--fg); color: var(--bg); }
.gym__arrow:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.gym__count { min-width: 12ch; text-align: center; font: 600 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .05em; color: #bdbdbd; }
.gym__count span { color: var(--fg); }

/* ---------- Libro 3D (Todo sobre Bandle) ---------- */
/* Libro a la izquierda, título y descripción a la derecha */
.project--book .book-stage { --pw: clamp(130px, 17vw, 270px); }
.bookbox { display: grid; justify-items: center; gap: 28px; }
.book-stage {
  --pw: clamp(140px, 27vw, 390px);
  --ph: calc(var(--pw) * 1.414);  /* A4: 595,5 x 842 pt */
  --t: calc(var(--pw) * .094);    /* lomo de 56 pt */
  width: 100%;
  display: grid; place-items: center;
  padding-block: clamp(24px, 4vw, 56px);
  perspective: 2400px;
}
.book {
  position: relative;
  width: var(--pw); height: var(--ph);
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(-30deg) rotateZ(1.5deg);
  transition: transform 1s cubic-bezier(.4, .1, .25, 1);
}
.book:not(.is-open):hover { transform: rotateX(10deg) rotateY(-20deg) rotateZ(1deg) translateY(-8px); }
.book.is-open { transform: translateX(50%) rotateX(16deg); }
.book__base {
  position: absolute; inset: 0;
  background: url(img/book/guardas.jpg) right center / 200% 100% no-repeat #1c1e1d;
  box-shadow: 0 40px 80px -30px rgba(255, 255, 255, .07);
  transform: translateZ(calc(-1 * var(--t)));
  border-radius: 0 4px 4px 0;
}
.book__spine {
  position: absolute; top: 0; left: 0; width: var(--t); height: 100%;
  background: url(img/book/spine.jpg) center / 100% 100%;
  transform-origin: left center;
  transform: translateZ(calc(-1 * var(--t))) rotateY(-90deg);
}
.book__edge {
  position: absolute; top: 1.5%; left: 100%; width: calc(var(--t) * .92); height: 97%;
  background: repeating-linear-gradient(to right, #ECE6D6 0 1px, #CFC7B2 1px 2px);
  transform-origin: left center;
  transform: rotateY(90deg);
  transition: opacity .6s;
}
.book.is-open .book__edge { opacity: .25; }
.leaf {
  position: absolute; inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.4, .1, .25, 1);
}
/* Sombra de la hoja mientras gira y la que proyecta sobre la página de abajo */
.face::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
}
.leaf.is-turning .face::before {
  background: linear-gradient(to right, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15) 60%, rgba(255, 255, 255, .06));
  animation: turnShade 1s var(--delay, 0ms) both;
}
.leaf.is-turning .face--back::before { background: linear-gradient(to left, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15) 60%, rgba(255, 255, 255, .06)); }
.book.is-casting:not(.is-back) .leaf:not(.is-turning) .face--right::before {
  background: linear-gradient(to right, rgba(0, 0, 0, .7), transparent 75%);
  animation: castShade 1s both;
}
.book.is-casting.is-back .leaf:not(.is-turning) .face--left::before {
  background: linear-gradient(to left, rgba(0, 0, 0, .7), transparent 75%);
  animation: castShade 1s both;
}
@keyframes turnShade { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }
@keyframes castShade { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
.book.no-anim, .book.no-anim .leaf { transition: none; }
.face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background-color: #1c1e1d;
}
.face--back { transform: rotateY(180deg); }
.face--cover { background: url(img/book/cover.jpg) center / 100% 100%; border-radius: 0 4px 4px 0; }
.face--left { background: var(--img) left center / 200% 100% no-repeat; }
.face--right { background: var(--img) right center / 200% 100% no-repeat; }
.face--left::after, .face--right::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.face--left::after { background: linear-gradient(to left, rgba(0, 0, 0, .45), transparent 14%); }
.face--right::after { background: linear-gradient(to right, rgba(0, 0, 0, .45), transparent 14%), linear-gradient(to left, rgba(255, 255, 255, .05), transparent 6%); }
.book__hit {
  position: absolute; top: 0; height: 100%; width: 100%; z-index: 5;
  transform: translateZ(40px);
  background: none; border: 0; padding: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.book__hit--next { left: 0; cursor: e-resize; }
.book__hit--prev { left: -100%; display: none; cursor: w-resize; }
.book:not(.is-open) .book__hit--next { cursor: pointer; }
.book.is-open .book__hit--prev { display: block; }
.book__hit:focus-visible { outline: 2px solid var(--fg); outline-offset: -6px; }
.book { touch-action: pan-y; }
.book__label { max-width: 46ch; text-align: center; color: var(--muted); font-size: .95rem; min-height: 3em; }
.btn.btn--ghost { background: transparent; color: var(--fg); }
.btn.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn:disabled { opacity: .3; cursor: default; transform: none; }
.btn--ghost:disabled:hover { background: transparent; color: var(--fg); }

/* ---------- Móvil 3D (apps) ---------- */
.shots { display: flex; flex-wrap: wrap; gap: 12px; }
.shots button {
  width: 62px; padding: 0; border: 1px solid #3a3a3a; border-radius: 10px; overflow: hidden;
  background: none; cursor: pointer; opacity: .5;
  transition: opacity .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.shots button:hover { opacity: .85; transform: translateY(-3px); }
.shots button[aria-pressed="true"] { opacity: 1; border-color: var(--fg); }
.shots img { aspect-ratio: 390 / 844; object-fit: cover; width: 100%; }

.device {
  /* Tamaño del móvil: grande para que el texto de las pantallas se lea bien */
  --w: clamp(270px, min(27vw, 42vh), 390px);
  --d: calc(var(--w) * .085);
  position: relative;
  display: grid; place-items: center;
  min-height: calc(var(--w) * 2.09 + 100px);
  perspective: 1700px;
  cursor: grab; touch-action: pan-y; user-select: none;
}
.device.is-dragging { cursor: grabbing; }
.device::after {
  content: ""; position: absolute; left: 50%; bottom: 18px; width: calc(var(--w) * 1.3); height: 40px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .12), transparent);
  pointer-events: none;
}
.phone {
  position: relative;
  width: var(--w); height: calc(var(--w) * 2.09);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -22deg));
  transition: transform .9s var(--ease);
}
.device.is-dragging .phone { transition: none; }
.phone__slice, .phone__front, .phone__back {
  position: absolute; inset: 0; border-radius: calc(var(--w) * .165);
}
.phone__slice { background: #1a1a1c; border: 1px solid #45454a; }
.phone__front {
  transform: translateZ(calc(var(--d) / 2));
  background: #050505; padding: calc(var(--w) * .038);
  box-shadow: inset 0 0 0 1.5px #5a5a60;
}
.phone__screen {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: calc(var(--w) * .13);
  background: #111;
}
/* Prototipo navegable dentro del móvil */
.proto { position: relative; overflow: hidden; background: #1f1f24; isolation: isolate; touch-action: none; cursor: grab; user-select: none; }
.proto:active { cursor: grabbing; }
.proto__page {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-width: none; background: #1f1f24;
  will-change: transform, opacity;
}
.proto__page::-webkit-scrollbar { display: none; }
.proto__canvas { position: relative; container-type: inline-size; }
.proto__field {
  position: absolute; z-index: 1; pointer-events: none;
  display: flex; align-items: center;
  padding-left: calc(4 / var(--base, 375) * 100cqw);
  background: #1b1c1d; color: #f4f4f5;
  font: 400 calc(14 / var(--base, 375) * 100cqw) / 1 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  white-space: nowrap; overflow: hidden;
}
.proto__field[hidden] { display: none; }
.proto__field.is-typing::after {
  content: ""; width: 1px; height: 1.15em; margin-left: 1px; background: #8b6cf0;
  animation: caret .8s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.proto__canvas img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.proto__hot {
  position: absolute; padding: 0; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer;
  transition: background-color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.proto__hot:hover { background: rgba(255, 255, 255, .07); }
.proto__hot:active { background: rgba(255, 255, 255, .14); }
.proto__hot:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
/* Barra inferior fija: un recorte del final de la misma pantalla que se queda pegado abajo */
.proto__bar {
  position: sticky; bottom: 0; z-index: 3; width: 100%;
  background-repeat: no-repeat; background-size: 100% auto; background-position: center bottom;
}
.proto__bar .proto__hot { position: absolute; }
/* Onda al pulsar */
.proto__hot, .proto__card { overflow: hidden; }
.proto__ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(128, 128, 128, .32); transform: scale(0);
}
/* Panel inferior que sube (copia recortada de la pantalla) */
.proto__sheet {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background-repeat: no-repeat; background-size: 100% auto; background-position: top center;
}
/* Temporizador en vivo */
.proto__live { position: absolute; z-index: 2; pointer-events: none; overflow: visible; }
.proto__live text { font-family: "Manrope", system-ui, sans-serif; }
.proto__live .big { font-weight: 800; font-variant-numeric: tabular-nums; }
.proto__live .sub { font-weight: 500; }
/* Carruseles horizontales */
.proto__strip {
  position: absolute; left: 0; width: 100%; z-index: 2;
  display: flex; align-items: flex-start;
  overflow: hidden; background: #121212; touch-action: pan-y;
}
.proto__track {
  display: flex; align-items: flex-start; flex: 0 0 auto;
  min-width: 100%; will-change: transform;
}
.proto__card {
  flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer;
  position: relative; transform-origin: 50% 40%;
}
.proto__card:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px; }
.proto__dots {
  position: absolute; left: 0; width: 100%; z-index: 2; background: #121212;
  display: flex; justify-content: center; align-items: center;
  gap: calc(16 / 430 * 100cqw); height: calc(8 / 430 * 100cqw);
}
.proto__dots span {
  width: calc(8 / 430 * 100cqw); height: 100%; border-radius: 99px;
  background: #b6b6b7; transition: width .25s var(--ease), background-color .25s;
}
.proto__dots span.is-on { width: calc(25 / 430 * 100cqw); background: #fff; }
.proto__radio {
  position: absolute; width: 5.6%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none;
  background: var(--bg); box-shadow: inset 0 0 0 1.5px #4a4a4a;
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.proto__radio.is-on { background: #1b1c1d; box-shadow: inset 0 0 0 3px #7c56dc; }
.device__hint { color: var(--muted); font-size: .95rem; max-width: 40ch; }
.device__hint::before { content: "/ "; color: var(--fg); }

.phone__island {
  position: absolute; left: 50%; top: calc(var(--w) * .07);
  width: 31%; height: calc(var(--w) * .085); transform: translateX(-50%);
  background: #000; border-radius: 99px;
}
.phone__glare {
  position: absolute; inset: calc(var(--w) * .038); border-radius: calc(var(--w) * .13); pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .14), transparent 32%, transparent 70%, rgba(255, 255, 255, .05));
}
.phone__back {
  transform: translateZ(calc(var(--d) / -2)) rotateY(180deg);
  background: linear-gradient(160deg, #2a2a2e, #121214 60%);
  box-shadow: inset 0 0 0 1.5px #4a4a50;
}
.phone__cam {
  position: absolute; top: calc(var(--w) * .06); left: calc(var(--w) * .06);
  width: 38%; aspect-ratio: 1; border-radius: 26%;
  background: #1d1d20; box-shadow: inset 0 0 0 1px #3c3c42;
}
.phone__cam::before, .phone__cam::after {
  content: ""; position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #0a0a10 40%, #2c2c34 42% 60%, #0a0a0c 62%);
}
.phone__cam::before { top: 8%; left: 8%; }
.phone__cam::after { bottom: 8%; left: 8%; }

.project--poster .media { max-width: 560px; justify-self: center; }

/* Festival: animación de cómo se construyó el cartel */
.pbuild { margin: 0; display: grid; gap: 14px; width: 100%; max-width: 560px; justify-self: center; }
.pbuild__art { position: relative; aspect-ratio: 1417 / 1984; border-radius: 16px; overflow: hidden; background: #0f1519; box-shadow: 0 30px 60px -30px rgba(255,255,255,.08); }
.pbuild__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pbuild__svg [data-pb] { transform-box: fill-box; }
.project--poster .pbuild__final { position: absolute; inset: 0; max-width: none; border-radius: 0; background: none; transition: opacity .9s var(--ease); }
.pbuild__final img { width: 100%; height: 100%; }
.pbuild.is-building .pbuild__final { opacity: 0; pointer-events: none; }
.pbuild__bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px; }
.pbuild__step { font: 600 1rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .05em; color: var(--fg); }
.pbuild__progress { grid-column: 1 / -1; grid-row: 2; height: 2px; background: #262626; border-radius: 2px; overflow: hidden; }
.pbuild__progress span { display: block; height: 100%; width: 100%; background: var(--fg); transform-origin: left; transform: scaleX(1); }
.pbuild__replay {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #4a4a4a; background: transparent;
  color: var(--fg); cursor: pointer; font: 600 .85rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em;
}
.pbuild__replay:hover { background: var(--fg); color: var(--bg); }
.pbuild__replay:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* ---------- Booom Beats: título en cinta ----------
   Cuatro filas a todo el ancho (hasta el borde derecho de la pantalla); cada fila se desliza
   en sentido contrario a la anterior. Cada fila repite el título 6 veces: al moverse la mitad
   exacta, el bucle no tiene salto. */
#discografia > .marquee { grid-column: 1 / -1; grid-row: 1; }
/* la cabecera solo guarda el título oculto para lectores de pantalla: no ocupa fila */
#discografia > .project__head { display: contents; }
#discografia > .brandbook { grid-row: 2; }
.marquee {
  overflow: hidden; display: grid; margin-right: calc(-1 * var(--gutter));
  font: 700 clamp(3.2rem, 8.4vw, 8.6rem)/.88 var(--display); text-transform: uppercase; letter-spacing: .005em;
}
/* 12 repeticiones por fila: media fila (6 títulos) es más ancha que cualquier pantalla,
   así la fila que va al revés no deja hueco a la derecha al empezar */
.marquee__row { display: flex; width: max-content; animation: marquee 68s linear infinite; }
.marquee__row:nth-child(even) { animation-direction: reverse; animation-duration: 80s; }
.marquee__row span { padding-right: .45em; white-space: nowrap; }
/* Filas 2 y 3 en contorno con el mismo ciclo relleno / sin relleno que el resto de títulos
   (cada fila 0,3 s después de la anterior) */
.marquee__row:nth-child(2) span { --k: 1; --on: #fff; -webkit-text-stroke: var(--stroke) rgba(255, 255, 255, .85); }
.marquee__row:nth-child(3) span { --k: 2; --on: rgba(255, 255, 255, .45); -webkit-text-stroke: var(--stroke) rgba(255, 255, 255, .4); }
.marquee__row:nth-child(n+2) span {
  --off: transparent; color: transparent;
  animation: fillCycle 3.6s cubic-bezier(.65, 0, .35, 1) calc(var(--k) * .3s) infinite both;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__row, .marquee__row span { animation: none; } }

/* ---------- Booom Beats: manual de marca ----------
   Cada bloque usa la misma rejilla de 12 columnas que los proyectos:
   texto en 5 columnas y pieza en 7, alternando lado. */
.brandbook { display: grid; gap: clamp(72px, 9vw, 128px); padding-top: clamp(24px, 3vw, 48px); }
.bb-step {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px); row-gap: 32px; align-items: center;
  padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line);
}
.bb-text { grid-column: 1 / span 5; grid-row: 1; display: grid; gap: 14px; color: #D6D6D6; max-width: 46ch; }
.bb-piece { grid-column: 6 / -1; grid-row: 1; min-width: 0; margin: 0; display: grid; gap: 14px; }
.bb-step--right .bb-text { grid-column: 8 / -1; }
.bb-step--right .bb-piece { grid-column: 1 / span 7; }
.bb-step--wide .bb-text { grid-column: 1 / span 5; }
.bb-num { font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .08em; color: #8a8a8a; }
.bb-title { font: 700 clamp(2.2rem, 3.4vw, 3.6rem)/.9 var(--display); text-transform: uppercase; color: var(--fg); }
.bb-text strong { color: var(--fg); font-weight: 600; }
.bb-note { font-size: .95rem; color: #a8a8a8; }
.bb-facts { display: grid; gap: 14px; margin: 6px 0 0; }
.bb-facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.bb-facts dt { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--fg); }
.bb-facts dd { margin: 0; }
/* Las piezas vienen del .ai con el fondo en negro puro (#000): sin caja ni bordes, se funden 1:1 con la página */
.bb-piece .media { border-radius: 0; overflow: visible; background: none; }
.bb-piece .media:hover img { transform: none; filter: brightness(1.08); }
.bb-cap { font-size: .9rem; color: #a8a8a8; }

/* Pestañas (logotipo / versiones) */
.bb-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.bb-tabs::-webkit-scrollbar { display: none; }
.bb-tabs [role="tab"] {
  flex: 0 0 auto; min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid #4a4a4a; background: transparent; color: #D6D6D6;
  font: 600 .95rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.bb-tabs [role="tab"]:hover { border-color: var(--fg); color: var(--fg); }
.bb-tabs [role="tab"][aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.bb-tabs [role="tab"]:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.bb-tabimg img { transition: opacity .25s var(--ease); }
.bb-tabimg.is-swapping img { opacity: 0; }

/* Muestras de color */
.bb-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; }
.bb-swatch {
  display: grid; gap: 4px; text-align: left; padding: 0 0 14px; cursor: pointer;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); color: #bdbdbd;
  font: 400 .85rem/1.35 var(--body, inherit);
}
.bb-swatch strong { color: var(--fg); font-family: var(--display); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .03em; margin-top: 8px; }
.bb-chip { display: block; aspect-ratio: 3 / 4; border-radius: 10px; background: var(--c); transition: transform .35s var(--ease); }
.bb-swatch:hover .bb-chip { transform: translateY(-4px); }
.bb-swatch:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 10px; }
.bb-sun {
  grid-column: 1 / -1; height: 14px; border-radius: 999px;
  background: linear-gradient(90deg, #E72380, #E83389 45%, #FCD4B1);
}
.bb-toast {
  position: absolute; right: 0; top: -40px; padding: 6px 14px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-weight: 600; font-size: .9rem;
  opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease); pointer-events: none;
}
.bb-toast.is-on { opacity: 1; transform: none; }

/* Tipografía y normas */
.bb-type { gap: 16px; }
.bb-dont { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.bb-dont li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: baseline; }
.bb-dont li::before { content: "✕"; color: #ff5c7a; font-weight: 700; }
.bb-reduce { background: none; }

/* Aplicaciones: visor 3D (una pieza cada vez, se gira arrastrando y avanza sola a los 5 s) */
.bb-viewer { grid-column: 1 / -1; grid-row: 2; display: grid; gap: 18px; justify-items: center; overflow-x: clip; overflow-clip-margin: 0; }
.bb-stage {
  position: relative; width: 100%; height: clamp(360px, 46vw, 600px);
  perspective: 1600px; perspective-origin: 50% 40%;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.bb-stage.is-dragging { cursor: grabbing; }
.bb-slide {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center;
  transform-style: preserve-3d; pointer-events: none;
  opacity: 0; transform: translateX(14%) scale(.9); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.bb-slide.is-on { opacity: 1; transform: none; pointer-events: auto; }
.bb-slide.is-out { transform: translateX(-14%) scale(.9); }
.bb-obj { position: relative; transform-style: preserve-3d; will-change: transform; }
.bb-face {
  position: absolute; left: 0; top: 0; background-size: 100% 100%; background-repeat: no-repeat;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.bb-face--front::after, .bb-face--back::after {
  /* brillo que se mueve con el giro */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,var(--sheen, .08)) 48%, transparent 62%);
  background-size: 260% 100%; background-position: var(--sheen-x, 50%) 0;
}
.bb-face--edge { background: #161616; }
.bb-face--edge-light { background: #d9d7d4; }
.bb-disc {
  position: absolute; border-radius: 50%; backface-visibility: hidden;
  background:
    var(--label) center / 34% no-repeat,
    repeating-radial-gradient(circle, #0c0c0e 0 2px, #1c1c20 2px 3px),
    #0c0c0e;
  box-shadow: inset 0 0 0 2px #222;
}
.bb-disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 10%, rgba(255,255,255,.08) 14%, transparent 20% 60%, rgba(255,255,255,.07) 64%, transparent 70%); }
.bb-floor {
  position: absolute; left: 50%; bottom: 4%; width: 46%; height: 34px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(231,35,128,.28), transparent); filter: blur(6px); pointer-events: none;
}
.bb-slide__cap {
  position: absolute; left: 0; bottom: 0; display: grid; gap: 4px; justify-items: start;
  transform: translateZ(0); pointer-events: auto;
}
.bb-slide__name { font: 700 clamp(1.6rem, 2.4vw, 2.4rem)/1 var(--display); text-transform: uppercase; color: var(--fg); }
.bb-slide__size { font-size: .9rem; color: #a8a8a8; }
.bb-zoom {
  margin-top: 8px; display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px;
  border: 1px solid #4a4a4a; border-radius: 999px; background: transparent; color: #D6D6D6; cursor: zoom-in;
  font: 600 .85rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em;
}
.bb-zoom img { width: 46px; height: 32px; object-fit: cover; border-radius: 999px; }
.bb-zoom:hover { border-color: var(--fg); color: var(--fg); }
.bb-ui { display: flex; align-items: center; gap: 14px; max-width: 100%; }
.bb-arrow {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #4a4a4a;
  background: transparent; color: var(--fg); font-size: 1.1rem; cursor: pointer; transition: background-color .25s, color .25s;
}
.bb-arrow:hover { background: var(--fg); color: var(--bg); }
.bb-dots { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.bb-dots::-webkit-scrollbar { display: none; }
.bb-dots [role="tab"] {
  flex: 0 0 auto; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #333;
  background: transparent; color: #a8a8a8; cursor: pointer; font: 600 .82rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em;
}
.bb-dots [role="tab"][aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.bb-arrow:focus-visible, .bb-dots [role="tab"]:focus-visible, .bb-zoom:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.bb-timer { width: min(320px, 70%); height: 2px; background: #262626; border-radius: 2px; overflow: hidden; }
.bb-timer span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #E72380, #FCD4B1); }
.bb-hint { font-size: .85rem; color: #8a8a8a; text-align: center; }


/* ---------- Contacto ---------- */
.contact { min-height: 100svh; padding-block: clamp(96px, 12vw, 160px); border-top: 1px solid var(--line); display: grid; align-content: center; gap: 32px; }
.echo--big { font-size: clamp(4rem, 13vw, 13rem); }
.contact__lede { font-size: clamp(1.15rem, 1.5vw, 1.35rem); max-width: 46ch; color: #D6D6D6; }
.contact__mail {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
  padding-block: 24px; border-block: 1px solid #4a4a4a;
}
.contact__email {
  font: 700 clamp(1.6rem, 4.6vw, 4.4rem)/1 var(--display);
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat;
  padding-bottom: 6px;
  transition: background-size .45s var(--ease);
}
.contact__email:hover { background-size: 100% 3px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg); border-radius: 999px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--bg); color: var(--fg); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.toast { font-weight: 500; opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.toast.is-shown { opacity: 1; transform: none; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 1.1rem; }
.contact__list li { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; min-height: 44px; }
.contact__list span { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.contact__list a { width: max-content; max-width: 100%; overflow-wrap: anywhere; }
.contact__list a:hover, .foot a:hover { background-size: 100% 1px; }

.foot {
  margin-left: var(--side); padding: 24px var(--gutter) 28px 0;
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem;
}
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Ampliación ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  display: none; place-items: center;
}
.lightbox[open] { display: grid; animation: fade .3s var(--ease); }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox img { max-width: min(92vw, 1600px); max-height: 86vh; width: auto; object-fit: contain; border-radius: 6px; }
.lightbox__close {
  position: fixed; top: 18px; right: 18px; min-height: 44px; padding: 0 18px;
  background: var(--fg); color: var(--bg); border: 0; border-radius: 999px; font-weight: 600; cursor: pointer;
}
.lightbox__switch {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.12);
}
.lightbox__switch[hidden] { display: none; }
/* Galería en la vista ampliada (carteles de Gym Bros): flechas, contador y pase automático */
.lightbox__nav { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.12); }
.lightbox__nav[hidden] { display: none; }
.lightbox__arrow { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 1.1rem; cursor: pointer; }
.lightbox__count { min-width: 9ch; text-align: center; color: #fff; font: 600 .95rem/1 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.lightbox img.is-swap { animation: lbswap .45s var(--ease); }
@keyframes lbswap { from { opacity: 0; transform: scale(.98); } }
.lightbox__switch button {
  min-height: 38px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: #fff; font: 600 .95rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
}
.lightbox__switch button[aria-pressed="true"] { background: #fff; color: #000; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --side: 0px; }
  .side {
    position: fixed; inset: 0 0 auto 0; width: auto; bottom: auto;
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 12px var(--gutter); gap: 16px;
    background: rgba(0, 0, 0, .94); border-bottom: 1px solid var(--line);
    pointer-events: auto;
  }
  .side__id strong { font-size: 1.15rem; }
  .side__id span { font-size: .85rem; }
  .side__toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    background: none; border: 1px solid var(--fg); border-radius: 999px; font-weight: 500; cursor: pointer;
  }
  .side__toggle[aria-expanded="true"] { background: var(--fg); color: var(--bg); }
  .side__nav {
    position: fixed; inset: 69px 0 0 0; background: var(--bg);
    padding: 32px var(--gutter); gap: 32px; justify-content: flex-start;
    display: none; overflow-y: auto;
  }
  .side__nav.is-open { display: flex; }
  .side__nav li a { font-size: 1.6rem; line-height: 1.7; }
  .side__nav li a.is-active { font-size: 1.9rem; }
  main { margin-left: 0; padding-inline: var(--gutter); }
  .marquee { margin-inline: calc(-1 * var(--gutter)); }
  .foot { margin-left: 0; padding-inline: var(--gutter); }
  .hero { padding-top: 96px; align-items: flex-end; justify-content: flex-end; flex-direction: column; padding-bottom: 32px; }
  .hero__year { position: static; align-self: flex-start; margin-top: 20px; }
  .about__grid, .cv { grid-template-columns: 1fr; }
  /* Una sola columna: siempre título y texto primero, la pieza debajo, todo alineado a la izquierda */
  .project { grid-template-columns: minmax(0, 1fr); }
  .project > .project__head, .project > :not(.project__head) { grid-column: 1 / -1; grid-row: auto; }
  .project--book .book-stage { --pw: clamp(140px, 36vw, 300px); }
  .project--poster .media { justify-self: start; }
  /* Manual de marca en una columna: texto y luego pieza */
  .bb-step { grid-template-columns: minmax(0, 1fr); }
  .bb-step .bb-text, .bb-step .bb-piece, .bb-viewer { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 560px) {
  .bb-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-chip { aspect-ratio: 4 / 3; }
  .bb-stage { height: 380px; }
  .bb-slide__cap { position: static; justify-items: center; text-align: center; margin-top: 8px; }
  .bb-slide { align-content: center; }
  .bb-facts div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .about__top { grid-template-columns: 1fr; justify-items: start; }
  .about__top .about__photo { order: -1; }
  .about__name { text-align: left; }
  .tools { grid-template-columns: 1fr; }
  .gym__deck { width: 62%; }
  .booom { grid-template-columns: 1fr; }
  .device { --w: min(80vw, 340px); }
  .book-stage { --pw: min(44vw, 200px); }
  .contact__list li { grid-template-columns: 1fr; gap: 0; }
  .contact__mail .btn { width: 100%; }
  .media--poster { border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
