/* Portfolio UGC. Móvil primero; escritorio a partir de 900 px.
   Base crema y tinta. El color son dos cosas: --pop (el fuerte: la palabra de la portada
   y los botones) y un pastel por sección (--t1 a --t5), siempre detrás de texto oscuro.
   El movimiento son tres gestos: bloques que se hunden al pulsar, cintas que se pintan
   al llegar y la pila de fotos. */

@font-face {
  font-family: "Imbue";
  src: url("fonts/imbue.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-roman.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --paper: oklch(0.965 0.012 85);
  --paper-deep: oklch(0.92 0.018 85);
  --ink: oklch(0.21 0.015 60);
  --ink-soft: oklch(0.43 0.015 60);
  --line: oklch(0.21 0.015 60 / 0.18);
  --on-ink-soft: oklch(0.965 0.012 85 / 0.68);
  --on-ink-line: oklch(0.965 0.012 85 / 0.22);
  --on-ink-field: oklch(0.965 0.012 85 / 0.5);
  --print: oklch(0.992 0.004 85);
  --shade: oklch(0.21 0.015 60 / 0.14);

  --amarillo: oklch(0.935 0.085 98);

  /* Todo en amarillo mantequilla (Adrián, 25 nov 2026): --t1..--t5 son las cintas de cada sección. */
  --pop: oklch(0.92 0.125 100);
  --pop-soft: var(--amarillo);
  --t1: var(--amarillo);
  --t2: var(--amarillo);
  --t3: var(--amarillo);
  --t4: var(--amarillo);
  --t5: var(--amarillo);

  --display: "Imbue", "Fraunces", Georgia, serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --pad: max(var(--gutter), calc((100% - 1180px) / 2));
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Nada se ve hasta que app.js pinta el contenido: evita el salto de textos vacíos. */
body > :not(noscript) { opacity: 0; }
.listo body > :not(noscript) { opacity: 1; transition: opacity 0.4s var(--ease); }

h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--pop); color: var(--ink); }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

/* Las secciones reciben el foco al llegar desde el menú; el anillo sobra en un bloque tan grande. */
[tabindex="-1"]:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.label {
  font: 400 0.6875rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
}
.skip:focus { top: 8px; }

.noscript { padding: 24px var(--gutter); }

/* ---------- Barra fija: el contacto siempre a mano ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 var(--pad);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.bar__name {
  font: 500 1.0625rem/1.2 var(--serif);
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 12px 0;
}
.bar__nav { display: flex; align-items: center; gap: 6px; }
.bar__menu {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.bar__menu:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bar__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .bar__cta:hover { background: var(--pop); }
}

/* ---------- Portada ---------- */
/* Titular condensado a todo el ancho y la foto recortada montada encima, como una cubierta de revista. */

.cover {
  --title: calc((100vw - 2 * var(--gutter)) / 3.36);
  padding: 16px var(--pad) 36px;
  overflow: hidden;
}

.cover__title {
  font: 700 var(--title)/0.86 var(--display);
  letter-spacing: -0.005em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.cover__title span { display: block; }
/* --pop es un pastel: sin el filete de tinta no se lee sobre crema. */
.cover__title .pop {
  color: var(--pop);
  -webkit-text-stroke: max(1.5px, 0.008em) var(--ink);
  paint-order: stroke fill;
}

.cover__stage {
  display: grid;
  grid-template-columns: 1fr 54% 1fr;
  grid-template-areas: "name figure ." "pitch pitch pitch";
  column-gap: 8px;
  margin-top: 10px;
}
/* En móvil el nombre ya va en la barra, justo encima: la portada lo enseña solo en escritorio. */
.cover__name { grid-area: name; display: none; color: var(--ink); }

.cover__figure {
  grid-area: figure;
  position: relative;
  z-index: 1;
  aspect-ratio: 3 / 4;
  margin-top: calc(var(--title) * -0.62);
}
.cover__figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}
/* Silueta de relleno hasta que haya foto. */
.cover__figure svg { width: 100%; height: 100%; fill: var(--paper-deep); }
.cover__figure .frame__ph { background: none; align-items: end; padding-bottom: 22%; }

.cover__pitch {
  grid-area: pitch;
  margin-top: 16px;
  text-align: center;
}
.cover__line {
  max-width: 16ch;
  margin: 0 auto 18px;
  font: italic 400 1.5rem/1.12 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  background: var(--pop);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
}
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }

.cover__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 4px;
  font-size: 0.9375rem;
  text-decoration: none;
}
.cover__more span:first-child {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Marco 9:16 de cada vídeo. */
.frame {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-deep);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hueco de relleno: rayado fino y etiqueta, para que no pase por una foto real. */
.frame__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg, transparent 0 9px, var(--line) 9px 10px);
}
.frame__ph span {
  padding: 4px 8px;
  background: var(--paper-deep);
  font: 400 0.6875rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Menú: el sumario de la página ---------- */
/* Un bloque por sección, con el pastel de su título, que se hunde al pulsarlo. */

/* Capa a pantalla completa (un <dialog>): tapa la página y se cierra con Esc o con «Cerrar». */
.menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0 var(--pad) 40px;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu::backdrop { background: var(--paper); }
.menu[open] { animation: aparecer 0.25s var(--ease); }
@keyframes aparecer { from { opacity: 0; } }
/* Con el menú abierto, la página de debajo no se mueve. */
html:has(.menu[open]) { overflow: hidden; }
.menu__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: 56px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.menu__close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-right: -12px;
  padding: 0 12px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.menu__figure { display: none; }
.menu__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  padding-right: 4px;
}

.menu__link {
  --hondo: 4px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: end;
  gap: 6px 8px;
  min-height: 78px;
  padding: 10px 12px 8px;
  background: var(--tint, var(--paper));
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--hondo) var(--hondo) 0 -1px var(--sombra, var(--ink)), var(--hondo) var(--hondo) 0 0 var(--ink);
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .menu__link:hover { --hondo: 2px; transform: translate(2px, 2px); }
}
.menu__link:active { --hondo: 0px; transform: translate(4px, 4px); }
.menu__link[href="#videos"] { --tint: var(--t1); }
.menu__link[href="#sobre-mi"] { --tint: var(--t2); }
.menu__link[href="#por-que"] { --tint: var(--t3); }
.menu__link[href="#servicios"] { --tint: var(--t4); }
.menu__link[href="#marcas"] { --tint: var(--t5); }
/* El contacto es la sección oscura: su bloque también. */
.menu__link[href="#contacto"] { --tint: var(--ink); --sombra: var(--pop); color: var(--paper); }

.menu__name {
  order: 2;
  grid-column: 1 / -1;
  font: 600 2rem/0.95 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
/* En móvil, una columna de bloques que llena el alto de la capa. */
@media (max-width: 899px) {
  .menu[open] { display: flex; flex-direction: column; }
  .menu__list { flex: 1; grid-template-columns: 1fr; grid-auto-rows: minmax(78px, 1fr); max-height: 42rem; }
  .menu__list li { display: grid; }
  .menu__name { font-size: 2.75rem; }
}
/* ---------- Secciones ---------- */

.sec {
  padding: 0 var(--pad) 72px;
  overflow-x: clip; /* la foto de la pila sale por un lado sin ensanchar la página */
}
#videos { --tint: var(--t1); }
#sobre-mi { --tint: var(--t2); }
#por-que { --tint: var(--t3); }
#servicios { --tint: var(--t4); }
#marcas { --tint: var(--t5); }

.sec__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 16px;
  margin-bottom: 24px;
  border-top: 1px solid var(--ink);
}
/* Título condensado sobre su pastel, como cinta: cada línea lleva su trozo. */
.sec__head h2 {
  font: 600 clamp(3.25rem, 15vw, 4.75rem)/1.02 var(--display);
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.sec__head h2 span {
  padding: 0 0.14em;
  background: var(--tint);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* Botón de contacto junto a los vídeos: solo en escritorio (en móvil la barra ya lo lleva). */
.sec__cta { display: none; }
.sec__count { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }

h3 {
  font: 400 1.5rem/1.1 var(--serif);
  letter-spacing: -0.02em;
  margin: 48px 0 12px;
}

/* ---------- Vídeos ---------- */

.chips {
  display: flex;
  gap: 8px;
  margin: 0 calc(var(--gutter) * -1) 24px;
  padding: 4px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .chip:hover { background: var(--tint); }
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 12px;
}
/* En móvil, carrusel: se pasa con el dedo y el siguiente asoma por la derecha. */
@media (max-width: 639px) {
  .videos {
    display: flex;
    gap: 18px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 10px var(--gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .videos::-webkit-scrollbar { display: none; }
  .video { flex: 0 0 64%; scroll-snap-align: start; }
}

/* Puntos del carrusel: uno por vídeo visible y un indicador que sigue el scroll. */
.dots {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.dots__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(0.21 0.015 60 / 0.3);
}
/* Zona táctil de 24×24 sin agrandar el punto. */
.dots__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  translate: -50% -50%;
}
.dots__worm {
  position: absolute;
  z-index: 1;
  top: 50%;
  height: 8px;
  translate: 0 -50%;
  border-radius: 999px;
  background: var(--ink);
  pointer-events: none;
}

/* Cada vídeo va dentro de un móvil: marco de tinta, isla arriba y botones en los cantos.
   Las medidas van en cqi (centésimas del ancho de la tarjeta) para que el móvil guarde
   la proporción de 170 a 400 px de ancho. */
.video { container-type: inline-size; }

.video__play {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 13cqi;
  text-align: left;
  transition: transform 0.3s var(--ease);
}
.video__play:disabled { cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .video__play:not(:disabled):hover { transform: translateY(-1.5cqi) rotate(-1.5deg); }
  .video:nth-child(even) .video__play:not(:disabled):hover { transform: translateY(-1.5cqi) rotate(1.5deg); }
}
.video__play:not(:disabled):active { transform: none; }

.video__play .frame {
  border: 2.6cqi solid var(--ink);
  border-radius: 13cqi;
}
.video__play .frame::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 2.6cqi;
  left: 50%;
  width: 27cqi;
  height: 6.4cqi;
  background: var(--ink);
  border-radius: 999px;
  translate: -50% 0;
}
/* Botones del canto: volumen a la izquierda (dos, el segundo con sombra) y encendido a la derecha. */
.video__play::before,
.video__play::after {
  content: "";
  position: absolute;
  width: max(2px, 1cqi);
  background: var(--ink);
}
.video__play::before {
  right: 100%;
  top: 26cqi;
  height: 9cqi;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 12cqi 0 var(--ink);
}
.video__play::after {
  left: 100%;
  top: 34cqi;
  height: 15cqi;
  border-radius: 0 2px 2px 0;
}

.video__dur {
  position: absolute;
  z-index: 3;
  top: 3.2cqi;
  left: 6cqi;
  padding: 1cqi 2.2cqi;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  font: 400 max(0.5625rem, 4.2cqi)/1.2 var(--mono);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* Pegatina torcida que pisa el borde del móvil. */
.video__tag {
  position: absolute;
  z-index: 2;
  right: -3cqi;
  bottom: 9cqi;
  padding: 1.6cqi 4cqi;
  background: var(--tint);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: 400 max(0.625rem, 4.6cqi)/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  rotate: -7deg;
}

/* El vídeo dentro del marco (escritorio): tapa el póster mientras está vivo. */
.video__clip {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video__hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 6cqi;
  padding: 1.6cqi 3.6cqi;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  font: 400 max(0.625rem, 3.8cqi)/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  translate: -50% 0;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.video--vivo:not(.video--suena) .video__hint { opacity: 1; }
.video__bar {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.8cqi;
  /* pista oscura y, encima, lo que lleva reproducido */
  background: linear-gradient(var(--pop), var(--pop)) no-repeat 0 0 / var(--avance, 0%) 100%, oklch(0.21 0.015 60 / 0.55);
  opacity: 0;
}
.video--suena .video__bar { opacity: 1; }
.video--vivo:not(.video--suena) .video__icon { opacity: 0; }
.video--vivo.video--pausa .video__icon { opacity: 1; }
/* Mientras suena, el móvil se queda levantado y derecho. */
.video.video--suena .video__play { transform: translateY(-1.5cqi); }
@media (hover: hover) and (pointer: fine) {
  .video.video--suena .video__play:hover { transform: translateY(-1.5cqi); }
}

.video__icon {
  position: absolute;
  z-index: 2;
  left: 6cqi;
  bottom: 6cqi;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--pop);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease),
    transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (hover: hover) and (pointer: fine) {
  .video__play:hover .video__icon { background: var(--ink); color: var(--paper); }
}
/* Al pulsar, el círculo se aplasta y al soltar vuelve con un rebote. */
.video__play:not(:disabled):active .video__icon {
  transform: scale(1.12, 0.88);
  transition: transform 0.1s cubic-bezier(0.2, 0, 0, 1);
}

/* Play y pausa se cruzan: opacity, escala y desenfoque. */
.video__ico-play,
.video__ico-pausa {
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.2s cubic-bezier(0.2, 0, 0, 1), transform 0.2s cubic-bezier(0.2, 0, 0, 1),
    filter 0.2s cubic-bezier(0.2, 0, 0, 1);
}
.video__ico-pausa { opacity: 0; transform: scale(0.25); filter: blur(4px); }
.video--suena:not(.video--pausa) .video__ico-play { opacity: 0; transform: scale(0.25); filter: blur(4px); }
.video--suena:not(.video--pausa) .video__ico-pausa { opacity: 1; transform: none; filter: blur(0); }

.video__meta { margin-top: 10px; }
.video__hook {
  margin-top: 4px;
  font: italic 400 1.125rem/1.2 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.video__hook::before { content: "“"; }
.video__hook::after { content: "”"; }

/* ---------- Sobre mí ---------- */

.about { max-width: 36rem; }
.about p + p { margin-top: 16px; color: var(--ink-soft); }
.about p:first-child {
  font: 400 1.5rem/1.22 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

/* Pila de fotos: copias de papel torcidas; al tocar, la de arriba se va al fondo. */
.stack {
  width: min(74%, 270px);
  margin: 40px 0 0 5%;
}
.stack__cards { display: grid; isolation: isolate; }
.stack__cards--toca { cursor: pointer; }
.stack__card {
  grid-area: 1 / 1;
  z-index: calc(4 - var(--pos, 0));
  padding: 8px 8px 0;
  background: var(--print);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px var(--shade);
  transform: var(--pose);
  transition: transform 0.45s var(--ease);
}
.stack__card[data-pos="0"] { --pos: 0; --pose: rotate(-2deg); }
.stack__card[data-pos="1"] { --pos: 1; --pose: translate(12px, 8px) rotate(3.5deg); }
.stack__card[data-pos="2"] { --pos: 2; --pose: translate(-10px, 14px) rotate(-5deg); }
.stack__card[data-pos="3"] { --pos: 3; --pose: translate(6px, 18px) rotate(6deg); }
/* Sin pie de foto, el marco de papel necesita su borde abajo; si no, la imagen lo toca. */
.stack__card:not(:has(.stack__pie)) { padding-bottom: 8px; }
.stack__card.fuera { transform: translate(62%, -6%) rotate(14deg); }
.stack__card .frame { aspect-ratio: 4 / 5; border-radius: 2px; }
.stack__pie {
  display: block;
  padding: 9px 0 10px;
  font: 400 0.6875rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stack__ctl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}
.stack__next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.stack__next span:first-child {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ---------- Por qué y material ---------- */

.why li {
  display: grid;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.why li:first-child { border-top: 0; padding-top: 0; }
.why strong {
  display: block;
  font: 400 1.3125rem/1.2 var(--serif);
  letter-spacing: -0.015em;
}
.why span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}

.kit div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.kit dt {
  font: 400 0.6875rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kit dd { font-size: 1rem; line-height: 1.45; }

/* ---------- Servicios ---------- */

/* Cada servicio es un enlace al contacto: deja marcada su casilla en el formulario. */
.services li { border-top: 1px solid var(--line); }
.services li:first-child { border-top: 0; }
.services__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 16px 0;
  text-decoration: none;
}
.services li:first-child .services__row { padding-top: 0; }
.services strong {
  font: 400 1.3125rem/1.2 var(--serif);
  letter-spacing: -0.015em;
}
/* Al pasar por encima, el nombre se subraya con la cinta de la sección. */
.services strong span {
  background: linear-gradient(var(--tint), var(--tint)) no-repeat 0 100% / 0% 100%;
  transition: background-size 0.45s var(--ease);
}
.services__row:focus-visible strong span { background-size: 100% 100%; }
@media (hover: hover) and (pointer: fine) {
  .services__row:hover strong span { background-size: 100% 100%; }
}
.services b {
  font: 400 0.875rem/1.4 var(--mono);
  white-space: nowrap;
}
.services__inc {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}
.services__go {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.rights {
  margin-top: 16px;
  padding: 16px;
  background: var(--tint);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.rights .label { margin-bottom: 6px; color: var(--ink); }

/* ---------- Marcas y testimonios (oculta mientras no haya) ---------- */

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}
.brands li { font: 400 1.5rem/1.2 var(--serif); letter-spacing: -0.02em; }
.brands img { height: 36px; width: auto; }

.quotes figure {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.quotes blockquote {
  font: italic 400 1.375rem/1.25 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.quotes figcaption { margin-top: 10px; }

/* ---------- Contacto ---------- */

.contact {
  padding: 56px var(--pad) 48px;
  background: var(--ink);
  color: var(--paper);
}
.contact .label { color: var(--on-ink-soft); }
.contact :focus-visible { outline-color: var(--paper); }
.contact input,
.contact textarea { caret-color: var(--pop); }

/* Sobre fondo oscuro el pastel sí funciona como color de letra. */
.contact h2 {
  margin-top: 10px;
  color: var(--pop-soft);
  font: 600 clamp(5rem, 25vw, 9rem)/0.88 var(--display);
  text-transform: uppercase;
}
.contact__text {
  max-width: 26rem;
  margin-top: 16px;
  color: var(--on-ink-soft);
}
.contact__email {
  display: inline-block;
  padding: 10px 0;
  font: italic 400 clamp(1.375rem, 5.6vw, 2rem)/1.15 var(--serif);
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.socials { margin-top: 20px; }
.socials li { border-top: 1px solid var(--on-ink-line); }
.socials li:last-child { border-bottom: 1px solid var(--on-ink-line); }
.socials a,
.socials div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  text-decoration: none;
}

.contact__alt { margin-top: 48px; }

/* Formulario: campos de una línea sobre el fondo tinta. */
.form { margin-top: 36px; }
.field + .field,
.form__pair + .field { margin-top: 22px; }
.form__pair { display: grid; gap: 22px; }
.field label {
  display: block;
  font-size: 0.9375rem;
  color: var(--on-ink-soft);
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 8px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--on-ink-field);
  border-radius: 0;
  color: var(--paper);
  font: inherit;
  font-size: 1.0625rem;
}
.field textarea { resize: vertical; line-height: 1.5; }

/* Casillas de servicio, como pastillas. Marcada: fondo claro y una ✓, no solo el color. */
.picks { min-width: 0; margin: 22px 0 0; padding: 0; border: 0; }
.picks + .field { margin-top: 22px; }
.picks legend { padding: 0; font-size: 0.9375rem; color: var(--on-ink-soft); }
.picks__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pick { position: relative; }
.pick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pick span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--on-ink-field);
  border-radius: 999px;
  font-size: 0.9375rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.pick input:checked + span { background: var(--pop-soft); border-color: var(--pop-soft); color: var(--ink); }
.pick input:checked + span::before { content: "✓"; margin-right: 8px; }
.pick input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 3px; }
@keyframes latido { 40% { transform: scale(1.1); } }
.pick--nueva { animation: latido 0.5s var(--ease) 0.5s; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 0;
  border-bottom-color: var(--pop-soft);
  box-shadow: 0 2px 0 var(--pop-soft);
}
.field input:user-invalid,
.field textarea:user-invalid { border-bottom-style: dashed; border-bottom-color: var(--paper); }

.form__send {
  display: grid;
  grid-template-columns: auto 20px;
  column-gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 28px;
  padding: 0 28px;
  background: var(--pop);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .form__send:hover { background: var(--paper); }
}
.form__send:disabled { opacity: 0.6; cursor: default; }
/* Las dos caras y los dos iconos van superpuestos: el ancho no cambia al pasar de «Enviar» a «Enviado». */
.form__send__texto,
.form__send__hecho,
.form__send__medida,
.form__send__avion,
.form__send__check { grid-row: 1; }
.form__send__texto { grid-column: 1; transition: opacity 0.2s var(--ease), visibility 0s 0.2s; }
.form__send__hecho {
  grid-column: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0s 0.2s;
}
.form__send__medida { grid-column: 1; visibility: hidden; }
.form__send__avion,
.form__send__check { grid-column: 2; }
.form__send__check { opacity: 0; transform: scale(0.25); filter: blur(4px); }
.form__send[data-estado="enviado"] { background: var(--paper); }
.form__send[data-estado="enviado"] .form__send__texto { opacity: 0; visibility: hidden; }
.form__send[data-estado="enviado"] .form__send__hecho {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.form__send[data-estado="enviado"] .form__send__avion { opacity: 0; }
.form__send[data-estado="enviado"] .form__send__check {
  opacity: 1;
  transform: none;
  filter: none;
  animation: entrar-check 0.25s var(--ease) both;
}
/* El avión despega una sola vez al confirmar el envío. */
.form__send--vuela .form__send__texto { opacity: 0; }
.form__send--vuela .form__send__avion { animation: despegar 0.65s cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes despegar {
  to { transform: translate(120px, -60px) rotate(-12deg); opacity: 0; }
}
@keyframes entrar-check {
  from { transform: scale(0.25); opacity: 0; filter: blur(4px); }
}
.form__status { margin-top: 14px; min-height: 1.6em; font-size: 0.9375rem; }

.foot {
  padding: 20px var(--pad) 28px;
  background: var(--ink);
  border-top: 1px solid var(--on-ink-line);
}
.foot .label { color: var(--on-ink-soft); }

/* ---------- Reproductor ---------- */

.player {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--paper);
}
.player[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.player::backdrop { background: var(--ink); }
.player :focus-visible { outline-color: var(--paper); }
.player .label { color: var(--on-ink-soft); }

.player__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px var(--gutter);
}
.player__close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* Siempre 9:16: el ancho sale del alto libre (pantalla menos cabecera y pie). */
.player video {
  width: min(calc(100% - var(--gutter) * 2), calc((100dvh - 200px) * 9 / 16));
  height: auto;
  aspect-ratio: 9 / 16;
  margin: auto;
  object-fit: contain;
  background: #000;
  border-radius: var(--radius);
}

.player__bottom {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 14px var(--gutter) max(14px, env(safe-area-inset-bottom));
}
.player__hook {
  font: italic 400 1.25rem/1.2 var(--serif);
  letter-spacing: -0.01em;
}
.player__hook::before { content: "“"; }
.player__hook::after { content: "”"; }

.player__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.player__nav button {
  min-height: 44px;
  padding: 0 4px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.player__nav button:disabled { opacity: 0.35; cursor: default; }

/* ---------- Tablet: el titular cabe en una línea ---------- */

@media (min-width: 640px) {
  .cover { --title: min(calc((100vw - 2 * var(--gutter)) / 4.62), 255px); }
  .cover__title span { display: inline-block; }
  .cover__stage { grid-template-columns: 1fr minmax(260px, 34%) 1fr; column-gap: 24px; }
  .cover__line { max-width: none; }
  .btn { display: inline-flex; }
  .cover__more { margin-left: 16px; }

  .videos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
  .dots { display: none; }
}

/* ---------- Escritorio ---------- */
/* A pantalla completa: sin columna central estrecha, y cada sección ocupa al menos una pantalla
   (la altura visible menos la barra fija). Por encima de 1440 px todo crece con el ancho,
   porque los tamaños van en rem y el rem sigue a la ventana. */

@media (min-width: 900px) {
  :root {
    --pad: clamp(32px, 4vw, 80px);
    --barra: 4rem;
    --pantalla: calc(100svh - var(--barra));
  }
  html { font-size: clamp(100%, 1.111vw, 137.5%); scroll-padding-top: var(--barra); }
  body { font-size: 1.125rem; }

  .bar { min-height: var(--barra); }

  /* Portada: el titular llena el ancho y la foto se mide por el alto que queda, para que
     todo quepa en la primera pantalla. */
  .cover {
    --title: calc((100vw - 2 * var(--pad)) / 4.45);
    --foto: clamp(420px, calc(var(--pantalla) - 84px - var(--title) * 0.24), 1000px);
    min-height: var(--pantalla);
    padding-top: 28px;
    padding-bottom: 40px;
  }
  /* Nombre junto a la foto; el texto y el botón abajo a la izquierda. */
  .cover__stage {
    grid-template-columns: 1fr calc(var(--foto) * 0.75) 1fr;
    grid-template-areas: "name figure ." "pitch figure .";
    grid-template-rows: auto 1fr;
    column-gap: 40px;
    margin-top: 16px;
  }
  .cover__name { display: block; }
  .cover__pitch { align-self: end; margin: 0; text-align: left; }
  .cover__line { max-width: 13ch; margin: 0 0 28px; font-size: 2.75rem; }
  .cover__more { font-size: 1.0625rem; }
  .btn { min-height: 3.5rem; padding: 0 2rem; font-size: 1.125rem; }
  .label { font-size: 0.75rem; }

  /* Menú como en la referencia: la foto en medio y los bloques a los lados, al tresbolillo.
     La foto marca el alto y los bloques se reparten por él. */
  .menu[open] {
    --foto: clamp(380px, calc(100svh - var(--barra) - 170px), 900px);
    display: grid;
    grid-template-columns: 1fr calc(var(--foto) * 0.75) 1fr;
    grid-template-rows: auto;
    grid-auto-rows: 1fr;
    column-gap: clamp(40px, 5vw, 96px);
    padding-bottom: 56px;
  }
  .menu__top { grid-column: 1 / -1; min-height: var(--barra); margin-bottom: 28px; }
  .menu__list { display: contents; }
  .menu__list li {
    grid-column: var(--col);
    grid-row: var(--fila) / span 2;
    align-self: center;
    justify-self: end;
    width: min(100%, 32rem);
  }
  .menu__list li.menu__der { justify-self: start; }
  .menu__link { --hondo: 6px; min-height: 8rem; padding: 1rem 1.25rem 0.875rem; }
  @media (hover: hover) and (pointer: fine) {
    .menu__link:hover { --hondo: 3px; transform: translate(3px, 3px); }
  }
  .menu__link:active { --hondo: 0px; transform: translate(6px, 6px); }
  .menu__name { font-size: 3.75rem; }
  .menu__figure {
    display: block;
    position: relative;
    grid-column: 2;
    grid-row: 2 / span var(--filas);
    align-self: center;
    height: var(--foto);
  }
  /* Arco de color detrás de la foto recortada. */
  .menu__figure::before {
    content: "";
    position: absolute;
    inset: 16% 0 0;
    background: var(--pop-soft);
    border: 1px solid var(--ink);
    border-radius: 999px 999px 0 0;
  }
  .menu__figure img,
  .menu__figure svg {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
  }
  .menu__figure svg { fill: var(--paper-deep); }
  .menu__figure .frame__ph { background: none; align-items: end; padding-bottom: 22%; }

  /* Sin foto: los bloques en una fila, centrada en la pantalla. */
  .menu--sinfoto { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .menu--sinfoto .menu__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 24px;
    align-self: center;
  }
  .menu--sinfoto .menu__list li { grid-column: auto; grid-row: auto; width: auto; justify-self: stretch; }
  .menu--sinfoto .menu__link { min-height: 14rem; }

  /* Secciones: una pantalla cada una. Título arriba a la izquierda; el contenido, centrado
     en el alto que queda. Si el contenido no cabe, la sección crece. */
  .sec { min-height: var(--pantalla); padding-bottom: 56px; }
  .sec__head { margin-bottom: 36px; }
  .sec__head h2 { font-size: 6.25rem; }

  .sec--split {
    display: grid;
    grid-template-columns: 4fr 8fr;
    grid-template-rows: auto 1fr;
    column-gap: clamp(40px, 5vw, 96px);
    align-items: start;
  }
  /* La regla de arriba cruza las dos columnas; el título se queda en la izquierda. */
  .sec--split::before {
    content: "";
    grid-column: 1 / -1;
    border-top: 1px solid var(--ink);
  }
  .sec--split .sec__head { border-top: 0; margin-bottom: 0; }
  .sec--split > :last-child { align-self: center; padding: 32px 0; }
  /* La fila de puntos (oculta aquí) es el último hijo: los vídeos guardan su centrado. */
  .sec--split > .videos { align-self: center; padding: 32px 0; }
  /* El título acompaña mientras se recorre su columna. */
  .sec--split > :first-child { position: sticky; top: calc(var(--barra) + 20px); }
  /* Salvo donde la columna del título lleva algo debajo que no va con él (foto, nota de tarifa):
     al deslizar, eso se metía por debajo del título fijo. Ahí el título se queda quieto. */
  #sobre-mi > :first-child,
  #servicios > :first-child { position: static; }

  /* Vídeos: tres por fila, y nunca más altos que la pantalla. Con uno o dos, más grandes. */
  .videos {
    --carta: calc((var(--pantalla) - 15rem) * 9 / 16);
    grid-template-columns: repeat(3, minmax(0, var(--carta)));
    gap: 48px clamp(20px, 2.2vw, 40px);
  }
  .videos:not(:has(> :nth-child(3))) { grid-template-columns: repeat(2, minmax(0, var(--carta))); }
  .video__hook { font-size: 1.375rem; }
  .video__icon { width: 3.5rem; height: 3.5rem; }
  .chips { flex-wrap: wrap; margin: 28px 0 0; padding: 0; overflow: visible; }
  .btn.sec__cta { display: inline-flex; margin-top: 40px; }
  .chip { min-height: 3rem; padding: 0 1.375rem; font-size: 1.0625rem; }

  /* Sobre mí: la foto baja a la columna del título, que estaba vacía, y la frase ocupa la otra. */
  #sobre-mi { grid-template-rows: auto auto 1fr; }
  .about-wrap { display: contents; }
  .about { grid-column: 2; grid-row: 2 / span 2; align-self: center; max-width: none; padding: 32px 0; }
  #fotos { grid-column: 1; grid-row: 3; align-self: start; width: min(100%, 22rem); margin-top: 40px; }
  .about p:first-child { font-size: 2.75rem; line-height: 1.12; letter-spacing: -0.02em; }
  .about p + p { max-width: 34rem; margin-top: 28px; font-size: 1.25rem; }
  .stack { margin-left: 0; }
  .stack__card { padding: 12px 12px 0; }

  /* Por qué y material, lado a lado. */
  .duo {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: clamp(48px, 5vw, 96px);
    align-items: start;
  }
  .duo h3 { margin: 0 0 16px; font-size: 2rem; }
  .why li { padding: 24px 0; }
  .why strong { font-size: 1.875rem; }
  .why span { margin-top: 6px; font-size: 1.125rem; }
  .kit div { padding: 18px 0; }
  .kit dd { font-size: 1.125rem; }

  /* Servicios: el nombre a un lado y lo que incluye al otro. */
  .services__row,
  .services li:first-child .services__row {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
    column-gap: 48px;
    align-items: center;
    padding: 28px 0;
  }
  .services strong { font-size: 2.5rem; line-height: 1.05; letter-spacing: -0.02em; }
  .services b { grid-column: 1; grid-row: 2; }
  .services__inc { grid-column: 2; grid-row: 1 / span 2; font-size: 1.125rem; }
  .services__go { grid-column: 3; grid-row: 1 / span 2; margin: 0; font-size: 1.0625rem; white-space: nowrap; }
  /* La nota de tarifa va bajo el título, en la columna que quedaba vacía. */
  #servicios { grid-template-rows: auto auto 1fr; }
  #servicios > div:last-child { display: contents; }
  .services { grid-column: 2; grid-row: 2 / span 2; align-self: center; padding: 32px 0; }
  .rights { grid-column: 1; grid-row: 3; align-self: start; margin-top: 40px; padding: 24px 28px; font-size: 1.0625rem; }

  .contact {
    display: grid;
    grid-template-columns: 5fr 7fr;
    grid-template-areas: "intro form" "alt form";
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: clamp(48px, 6vw, 112px);
    min-height: var(--pantalla);
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .contact h2 { font-size: clamp(8rem, 13vw, 13rem); }
  .contact__text { max-width: 30rem; font-size: 1.25rem; }
  .contact__intro { grid-area: intro; }
  .contact__alt { grid-area: alt; }
  .form { grid-area: form; align-self: center; margin-top: 0; }
  .form__pair { grid-template-columns: 1fr 1fr; gap: 28px; }
  .form__pair .field + .field { margin-top: 0; }
  .field + .field,
  .form__pair + .field { margin-top: 32px; }
  .field label,
  .picks legend { font-size: 1.0625rem; }
  .picks,
  .picks + .field { margin-top: 32px; }
  .pick span { min-height: 3rem; padding: 0 1.25rem; font-size: 1.0625rem; }
  .field input,
  .field textarea { min-height: 3.5rem; font-size: 1.25rem; }
  .form__send { width: auto; min-height: 3.5rem; padding: 0 2.25rem; font-size: 1.125rem; }
}

/* ---------- Entradas ---------- */
/* Solo con .anim, que pone app.js si hay JS y no se pidió reducir el movimiento. */

@keyframes subir {
  from { opacity: 0; transform: translateY(var(--desde, 20px)); }
}
.anim.listo .cover__title span { --desde: 0.3em; animation: subir 0.9s var(--ease) both; }
.anim.listo .cover__title span + span { animation-delay: 0.09s; }
.anim.listo .cover__figure { --desde: 8%; animation: subir 1s var(--ease) 0.2s both; }
.anim.listo .cover__pitch,
.anim.listo .cover__stage > .label { animation: subir 0.8s var(--ease) 0.35s both; }

/* La cinta del título se pinta de izquierda a derecha al llegar a la sección. */
.anim .sec__head h2 span {
  background: linear-gradient(var(--tint), var(--tint)) no-repeat 0 0 / 0% 100%;
  transition: background-size 0.8s var(--ease) 0.1s;
}
.anim .visto .sec__head h2 span { background-size: 100% 100%; }

@media (min-width: 900px) {
  .anim .sec--split::before { transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease); }
  .anim .sec--split.visto::before { transform: none; }
}

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