/* =========================================================
   VARIABLES
========================================================= */

:root {
  color-scheme: dark;

  --paper: #0b0b0d;
  --surface: #121216;
  --surface-2: #1a1a20;

  --ink: #f3f1ea;
  --muted: #9b988f;
  --line: #26262d;
  --acid: #ff5c35;

  --chip: #191920;

  --poster-height: clamp(340px, calc(100svh - 16rem), 700px);

  /* Espacio lateral reservado para las flechas del visor */
  --arrow-space: 4rem;

  --radius: 6px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);

  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", Arial, Helvetica, sans-serif;

  --page-padding: 5vw;
}


/* =========================================================
   RESET / BASE
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background:
    radial-gradient(
      90% 60% at 12% -10%,
      rgba(255, 92, 53, .10) 0%,
      transparent 55%
    ),
    var(--paper);

  background-attachment: fixed;

  color: var(--ink);

  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;

  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--acid);
  color: #fff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.manifesto,
.footer-statement {
  font-family: var(--serif);
  letter-spacing: -.04em;
  font-weight: 400;
}


/* =========================================================
   ACCESIBILIDAD / FOCUS
========================================================= */

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  min-height: 84px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 var(--page-padding);

  position: sticky;
  top: 0;
  z-index: 100;

  border-bottom: 1px solid var(--line);

  background: color-mix(
    in srgb,
    var(--paper) 82%,
    transparent
  );

  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}


/* =========================================================
   LOGO
========================================================= */

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  display: block;

  width: auto;
  height: 26px;

  max-width: 180px;
}


/* =========================================================
   NAVEGACIÓN
========================================================= */

.site-nav {
  display: flex;
  align-items: center;

  gap: 2.2rem;

  font-size: .69rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 700;
}

.site-nav a {
  padding: .3rem 0;

  color: var(--muted);

  border-bottom: 1px solid transparent;

  transition:
    border-color .25s ease,
    color .25s ease;
}

.site-nav a:hover,
.site-nav .is-active {
  border-color: var(--acid);
  color: var(--ink);
}


/* =========================================================
   BOTÓN MENÚ
========================================================= */

.menu-toggle {
  display: none;

  padding: .5rem 0;

  border: 0;
  background: transparent;

  font-weight: 700;

  cursor: pointer;
}

.menu-toggle span {
  display: inline-block;
  width: 1rem;

  margin-left: .25rem;

  text-align: center;
}


/* =========================================================
   LAYOUT GENERAL
========================================================= */

.hero,
.featured-work,
.portfolio,
.logo-carousel {
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}


/* =========================================================
   HERO
========================================================= */

.hero {
  display: grid;

  grid-template-columns:
    minmax(280px, .95fr)
    minmax(300px, 1.05fr);

  gap: 5vw;

  align-items: center;

  padding-top: clamp(3.5rem, 6vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.hero-copy {
  max-width: 560px;
}


/* =========================================================
   EYEBROW
========================================================= */

.eyebrow,
.section-label {
  font-size: .65rem;

  text-transform: uppercase;
  letter-spacing: .14em;

  font-weight: 700;
}

.eyebrow {
  color: var(--muted);
  margin: 0 0 1rem;
}


/* =========================================================
   TITULARES
========================================================= */

h1 {
  max-width: 1000px;

  font-size: clamp(
    3rem,
    6vw,
    5.5rem
  );

  line-height: .95;

  margin-bottom: 1.5rem;
}

h2 {
  line-height: 1;
}


/* =========================================================
   TEXTO HERO
========================================================= */

.intro-copy {
  max-width: 490px;

  color: var(--muted);

  font-size: 1.08rem;
}


/* =========================================================
   LINK TEXTUAL
========================================================= */

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;

  border-bottom: 1px solid var(--ink);

  margin-top: 1rem;

  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .13em;

  padding-bottom: .3rem;

  transition:
    opacity .25s ease,
    gap .25s ease;
}

.text-link:hover {
  opacity: .65;
  gap: .75rem;
}


/* =========================================================
   COLLAGE HERO
========================================================= */

.hero-collage {
  position: relative;

  width: 100%;

  min-height: min(60vh, 520px);
}

.hero-plate {
  position: absolute;

  width: 42%;
  aspect-ratio: 3 / 4;

  overflow: hidden;

  padding: 0;

  border: 1px solid var(--line);
  border-radius: var(--radius);

  background: var(--surface-2);

  cursor: pointer;

  box-shadow: var(--shadow);
}

.hero-plate img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: saturate(.9) brightness(.92);

  transition:
    transform .45s ease,
    filter .45s ease;
}

.hero-plate:hover img {
  transform: scale(1.03);
  filter: none;
}

.hero-plate:focus-visible {
  z-index: 20;
}


/* =========================================================
   POSICIONES COLLAGE
========================================================= */

.hero-plate--1 {
  left: 10%;
  top: 6%;
  z-index: 3;
}

.hero-plate--2 {
  right: 4%;
  top: 0;

  width: 36%;

  z-index: 2;
}

.hero-plate--3 {
  left: 0;
  bottom: 6%;

  width: 32%;

  z-index: 1;
}

.hero-plate--4 {
  right: 16%;
  bottom: 0;

  width: 38%;

  z-index: 4;
}

.hero-plate--5 {
  left: 38%;
  top: 30%;

  width: 26%;

  z-index: 5;
}


/* =========================================================
   ENCABEZADOS DE CARRUSELES
========================================================= */

.carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 2rem;

  margin-bottom: 2rem;

  flex-wrap: wrap;
}

.carousel-header h2 {
  font-size: clamp(
    2rem,
    4vw,
    3.5rem
  );

  line-height: 1;

  margin: .5rem 0 0;
}


/* =========================================================
   CONTROLES SLIDER
========================================================= */

.slider-controls {
  display: flex;
  gap: .5rem;

  flex-shrink: 0;
}

.slider-button {
  width: 2.6rem;
  height: 2.6rem;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid var(--line);
  border-radius: 50%;

  background: var(--surface);

  color: var(--ink);

  cursor: pointer;

  font-size: 1.1rem;

  transition:
    border-color .3s ease,
    background .3s ease,
    color .3s ease;
}

.slider-button:hover {
  border-color: var(--ink);

  background: var(--ink);

  color: var(--paper);
}

.slider-button:disabled {
  opacity: .3;

  cursor: not-allowed;

  pointer-events: none;
}


/* =========================================================
   ARCHIVO DE LOGOS
========================================================= */

.logo-carousel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  padding-top: 3rem;
  padding-bottom: 3.5rem;

  background: var(--surface);
}

.logo-track {
  display: flex;

  gap: 2rem;

  width: 100%;

  overflow-x: auto;
  overflow-y: hidden;

  overscroll-behavior-x: contain;

  scrollbar-width: none;

  scroll-behavior: smooth;

  align-items: center;

  padding: .5rem 0;

  cursor: grab;

  -webkit-overflow-scrolling: touch;
}


/* =========================================================
   ARRASTRE DE LOS CARRUSELES
========================================================= */

.logo-track.is-dragging,
.works-grid.is-dragging {
  cursor: grabbing;

  scroll-behavior: auto;

  user-select: none;
}

.logo-track.is-dragging img,
.works-grid.is-dragging img {
  pointer-events: none;
}

.logo-track:focus-visible,
.works-grid:focus-visible {
  outline-offset: 2px;
}


/* =========================================================
   IMÁGENES QUE NO SE ENCONTRARON
========================================================= */

img.is-missing {
  min-height: 60px;

  background: repeating-linear-gradient(
    45deg,
    var(--surface-2) 0 10px,
    var(--surface) 10px 20px
  );
}

.logo-track::-webkit-scrollbar {
  display: none;
}


/* =========================================================
   ITEM LOGO
========================================================= */

.logo-item {
  flex: 0 0 auto;

  width: 180px;
  min-height: 100px;

  padding: 1rem;

  display: grid;
  place-items: center;

  background: transparent;

  border: 1px solid transparent;

  cursor: pointer;

  transition:
    border-color .3s ease,
    background .3s ease;
}

.logo-item img {
  max-width: 100%;
  height: 60px;

  object-fit: contain;

  opacity: .55;

  transition:
    transform .3s ease,
    opacity .3s ease;
}

.logo-item:hover,
.logo-item.is-selected {
  border-color: var(--acid);

  background: var(--surface-2);

  border-radius: var(--radius);
}

.logo-item:hover img,
.logo-item.is-selected img {
  opacity: 1;
}

.logo-item:hover img {
  transform: scale(1.05);
}


/* =========================================================
   CASO DE ESTUDIO
========================================================= */

.featured-work {
  border-top: 1px solid var(--line);

  padding-top: 3rem;
  padding-bottom: 6rem;
}

.section-label {
  display: flex;
  align-items: center;

  gap: .75rem;

  color: var(--muted);
}

.section-label span {
  color: var(--ink);
}

.section-label p {
  margin: 0;
}


/* =========================================================
   LAYOUT DEL CASO
========================================================= */

.work-layout {
  display: grid;

  grid-template-columns:
    auto
    minmax(0, 1fr);

  gap: clamp(1.5rem, 3vw, 3.5rem);

  margin-top: 2.5rem;

  align-items: start;
}


/* =========================================================
   FICHA DE LA OBRA

   Ocupa el espacio disponible a la derecha de la
   galería y desplaza su propio contenido cuando el
   texto es más alto que las imágenes.
========================================================= */

.work-panel {
  position: relative;

  min-width: 0;

  padding-left: clamp(1rem, 2vw, 2rem);

  border-left: 1px solid var(--line);
}

.work-panel::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 4rem;

  pointer-events: none;

  background: linear-gradient(
    to bottom,
    transparent,
    var(--paper)
  );
}

.work-description {
  max-height: calc(var(--poster-height) + 4.5rem);

  overflow-y: auto;

  overscroll-behavior-y: contain;

  padding-right: 1.25rem;
  padding-bottom: 2.5rem;

  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.work-description::-webkit-scrollbar {
  width: 6px;
}

.work-description::-webkit-scrollbar-track {
  background: transparent;
}

.work-description::-webkit-scrollbar-thumb {
  border-radius: 999px;

  background: var(--line);
}

.work-description:hover::-webkit-scrollbar-thumb {
  background: color-mix(
    in srgb,
    var(--muted) 60%,
    transparent
  );
}

.work-description h2 {
  font-size: clamp(
    2.2rem,
    4vw,
    4rem
  );

  line-height: 1;

  margin-bottom: .5rem;
}

.work-description .work-heading {
  font-size: clamp(
    2.2rem,
    4vw,
    4rem
  );

  line-height: 1;

  margin-bottom: 1.25rem;
}

.work-description .work-subheading {
  margin-top: 2rem;
  margin-bottom: .75rem;

  font-size: 1.25rem;

  font-family: var(--serif);

  font-style: italic;
}

.work-description > p {
  color: var(--muted);

  max-width: 62ch;

  margin-bottom: 1rem;
}

.work-title__subtitle {
  display: block;

  margin-top: .35rem;

  font-size: .38em;

  font-style: italic;

  color: var(--muted);

  letter-spacing: -.01em;
}

.author {
  font-family: var(--serif);

  font-style: italic;

  font-size: 1.1rem;

  margin-bottom: 1.5rem;
}

#selected-description p {
  color: var(--muted);

  max-width: 62ch;

  margin-bottom: 1rem;
}

#selected-description p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   CONCEPTOS
========================================================= */

.concept-list {
  display: flex;

  flex-wrap: wrap;

  gap: .5rem;

  list-style: none;

  margin: 1.75rem 0 0;
  padding: 0;
}

.concept-list[hidden] {
  display: none;
}

.concept-list li {
  padding: .35rem .7rem;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: var(--chip);

  color: var(--muted);

  font-size: .62rem;

  letter-spacing: .12em;

  text-transform: uppercase;
}


/* =========================================================
   VISOR DE PROCESO
========================================================= */

.process-viewer {
  min-width: 0;

  /*
   * La columna se ajusta al ancho real del afiche
   * (2:3) y reserva a los costados el espacio de
   * las flechas.
   */

  width: max-content;
  max-width: 100%;

  padding-inline: var(--arrow-space);

  align-self: start;
}


/* =========================================================
   AÑO · DIRECCIÓN · TEATRO
========================================================= */

.work-facts {
  margin: .35rem 0 0;

  color: var(--muted);

  font-size: .68rem;

  letter-spacing: .14em;

  text-transform: uppercase;
}

.process-image-wrapper {
  position: relative;

  /*
   * La celda toma exactamente el alto y el ancho
   * de la imagen, sin franjas alrededor.
   */

  height: var(--poster-height);

  width: max-content;
  max-width: 100%;

  touch-action: pan-y;

  background: transparent;
}

.process-image-button {
  display: block;

  width: auto;
  height: 100%;

  padding: 0;

  border: 0;

  background: transparent;

  cursor: zoom-in;
}

.process-image-button img {
  width: auto;
  height: 100%;

  max-width: 100%;

  object-fit: contain;

  border-radius: var(--radius);

  box-shadow: var(--shadow);

  transition:
    transform .45s ease;
}

.process-image-button:hover img {
  transform: scale(1.015);
}


/* =========================================================
   FLECHAS DEL VISOR
========================================================= */

.process-arrow {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 3rem;
  height: 3rem;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid var(--line);

  border-radius: 50%;

  background: var(--surface);

  color: var(--ink);

  font-size: 1.2rem;

  cursor: pointer;

  transition:
    background .25s ease,
    transform .25s ease;
}

.process-arrow:hover {
  background: var(--acid);

  border-color: var(--acid);
}

.process-arrow--prev {
  left: calc(var(--arrow-space) * -1 + .5rem);
}

.process-arrow--next {
  right: calc(var(--arrow-space) * -1 + .5rem);
}

.process-arrow[hidden] {
  display: none;
}


/* =========================================================
   FOOTER DEL VISOR
========================================================= */

.process-footer {
  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 1rem;

  padding-top: 1rem;
}

.process-footer p {
  margin: 0;

  color: var(--muted);

  font-size: .65rem;

  letter-spacing: .12em;

  text-transform: uppercase;
}


/* =========================================================
   DOTS
========================================================= */

.process-dots {
  display: flex;
  align-items: center;

  gap: .55rem;
}

.process-dot {
  width: .55rem;
  height: .55rem;

  padding: 0;

  border: 1px solid var(--muted);

  border-radius: 50%;

  background: transparent;

  cursor: pointer;

  transition:
    background .2s ease,
    transform .2s ease;
}

.process-dot:hover {
  transform: scale(1.2);
}

.process-dot.is-active {
  background: var(--acid);

  border-color: var(--acid);
}


/* =========================================================
   MANIFIESTO
========================================================= */

.manifesto {
  margin: 0;

  padding:
    clamp(4rem, 8vw, 8rem)
    10vw;

  text-align: center;

  border-block: 1px solid var(--line);

  background:
    radial-gradient(
      120% 140% at 50% 0%,
      rgba(255, 92, 53, .10) 0%,
      transparent 60%
    ),
    var(--surface);

  font-size: clamp(
    2rem,
    4vw,
    4rem
  );

  line-height: 1.1;

  font-style: italic;
}


/* =========================================================
   PORTFOLIO / AFICHES
========================================================= */

.portfolio {
  padding-top: 6rem;
  padding-bottom: 8rem;
}

.works-grid {
  display: flex;

  gap: 2rem;

  width: 100%;

  overflow-x: auto;
  overflow-y: hidden;

  overscroll-behavior-x: contain;

  scrollbar-width: none;

  scroll-behavior: smooth;

  cursor: grab;

  -webkit-overflow-scrolling: touch;

  padding: .5rem 0 1rem;
}

.works-grid::-webkit-scrollbar {
  display: none;
}


/* =========================================================
   TILE
========================================================= */

.poster-tile {
  flex: 0 0 auto;

  width: 220px;
  min-width: 220px;
}

.poster-tile h3 {
  font-size: 1.05rem;

  margin:
    .8rem 0
    .2rem;

  line-height: 1.2;
}

.poster-tile p {
  font-family: var(--sans);

  font-size: .65rem;

  letter-spacing: .12em;

  text-transform: uppercase;

  color: var(--muted);

  margin: 0;
}


/* =========================================================
   BOTÓN DEL AFICHE
========================================================= */

.poster-tile__button {
  display: block;

  width: 100%;

  padding: 0;

  border: 0;

  background: none;

  cursor: pointer;

  text-align: left;
}

.poster-tile__frame {
  display: block;

  width: 100%;

  aspect-ratio: 3 / 4;

  overflow: hidden;

  background: var(--surface-2);

  border: 1px solid var(--line);
  border-radius: var(--radius);

  transition:
    border-color .3s ease;
}

.poster-tile__frame img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform .3s ease;
}

.poster-tile__button:hover
.poster-tile__frame {
  border-color: var(--acid);
}

.poster-tile__button:hover
.poster-tile__frame img {
  transform: scale(1.04);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding: 5vw;

  display: grid;

  grid-template-columns:
    1.25fr
    1fr
    auto;

  gap: 2rem;

  align-items: end;

  border-top: 1px solid var(--line);

  background: var(--surface);

  color: var(--ink);
}

.footer-statement {
  font-size: clamp(
    2rem,
    3.5vw,
    3.5rem
  );

  line-height: 1;

  margin: 0;
}

.brand--footer {
  display: inline-flex;

  margin-bottom: 1rem;
}

.brand--footer img {
  max-width: 180px;
  height: 24px;
}

.site-footer > div > p {
  margin: 0;

  color: var(--muted);

  font-size: .7rem;
}

.site-footer nav {
  display: flex;

  flex-direction: column;

  gap: .5rem;

  font-size: .67rem;

  text-transform: uppercase;

  letter-spacing: .05em;
}

.site-footer nav a {
  color: var(--muted);

  transition: color .25s ease;
}

.site-footer nav a:hover {
  color: var(--ink);
}


/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {
  width: min(
    92vw,
    1100px
  );

  max-width: 1100px;

  max-height: 92vh;

  padding: 3rem 2rem 2rem;

  border: 1px solid var(--line);

  border-radius: var(--radius);

  background: var(--surface);

  color: var(--ink);

  box-shadow: var(--shadow);

  overflow: auto;
}

.lightbox::backdrop {
  background: rgba(
    5,
    5,
    7,
    .88
  );

  backdrop-filter: blur(6px);
}

.lightbox img {
  max-width: 100%;
  max-height: 75vh;

  width: auto;
  height: auto;

  margin: 0 auto;

  object-fit: contain;
}

.lightbox p {
  text-align: center;

  margin:
    1rem 0 0;

  font-family: var(--serif);

  font-size: 1.1rem;
}

.lightbox-close {
  position: absolute;

  right: .75rem;
  top: .5rem;

  width: 2.5rem;
  height: 2.5rem;

  display: grid;
  place-items: center;

  padding: 0;

  border: 0;

  background: transparent;

  color: var(--ink);

  font-size: 2rem;

  line-height: 1;

  cursor: pointer;
}

.lightbox-close:hover {
  opacity: .6;
}


/* =========================================================
   PÁGINAS INTERIORES
========================================================= */

.inner-page {
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}


/* =========================================================
   SOBRE MÍ
========================================================= */

.about-hero {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(280px, 480px);

  align-items: end;

  gap: 6vw;

  padding-top: clamp(
    4rem,
    8vw,
    8rem
  );

  padding-bottom: clamp(
    4rem,
    7vw,
    7rem
  );
}

.about-hero h1 {
  max-width: 900px;
}

.about-hero img {
  width: 100%;

  aspect-ratio: 4 / 5;

  object-fit: cover;

  border: 1px solid var(--line);
  border-radius: var(--radius);

  background: var(--surface-2);
}

.about-text {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 6vw;

  padding-top: clamp(
    4rem,
    7vw,
    7rem
  );

  padding-bottom: clamp(
    5rem,
    9vw,
    9rem
  );

  border-top: 1px solid var(--line);
}

.about-text .lead {
  max-width: 700px;

  font-family: var(--serif);

  font-size: clamp(
    1.8rem,
    3vw,
    3rem
  );

  line-height: 1.2;
}

.about-text > div {
  max-width: 600px;

  color: var(--muted);
}


/* =========================================================
   CONTACTO
========================================================= */

.contact-hero {
  padding-top: clamp(
    4rem,
    8vw,
    8rem
  );

  padding-bottom: clamp(
    3rem,
    6vw,
    5rem
  );
}

.contact-hero h1 {
  margin-bottom: 0;
}

.contact-grid {
  display: grid;

  grid-template-columns:
    .8fr
    1.2fr;

  gap: 8vw;

  padding-top: 4rem;

  padding-bottom: clamp(
    6rem,
    10vw,
    10rem
  );

  border-top: 1px solid var(--line);
}

.contact-intro {
  max-width: 500px;
}

.email-link {
  display: inline-block;

  color: var(--ink);

  font-family: var(--serif);

  font-size: clamp(
    1.5rem,
    2.5vw,
    2.5rem
  );

  border-bottom: 1px solid var(--ink);

  transition: opacity .25s ease;
}

.email-link:hover {
  color: var(--acid);

  border-color: var(--acid);

  opacity: 1;
}

.contact-note {
  max-width: 420px;

  margin-top: 2rem;

  color: var(--muted);
}


/* =========================================================
   FORMULARIO
========================================================= */

#contactForm {
  display: grid;

  gap: 2rem;

  max-width: 700px;
}

.form-field {
  display: grid;

  gap: .6rem;
}

.form-field label {
  font-size: .67rem;

  font-weight: 700;

  letter-spacing: .12em;

  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;

  padding: .85rem 0;

  border: 0;

  border-bottom: 1px solid var(--line);

  border-radius: 0;

  background: transparent;

  color: var(--ink);

  outline: none;

  transition: border-color .25s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--acid);
}

.form-field textarea {
  min-height: 150px;

  resize: vertical;
}

.primary-button {
  justify-self: start;

  padding:
    .9rem
    1.4rem;

  border: 1px solid var(--ink);

  background: var(--ink);

  color: var(--paper);

  font-size: .7rem;

  font-weight: 700;

  letter-spacing: .12em;

  text-transform: uppercase;

  cursor: pointer;

  transition:
    background .25s ease,
    color .25s ease;
}

.primary-button {
  border-radius: 999px;
}

.primary-button:hover {
  background: var(--acid);

  border-color: var(--acid);

  color: #fff;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 960px) {

  .hero {
    grid-template-columns:
      minmax(260px, .9fr)
      minmax(280px, 1.1fr);

    gap: 4vw;
  }

  .work-layout {
    grid-template-columns: 1fr;

    gap: 2.5rem;
  }

  .work-panel {
    padding-left: 0;

    border-left: 0;
  }

  .work-panel::after {
    display: none;
  }

  .work-description {
    max-height: none;

    overflow: visible;

    padding-right: 0;
    padding-bottom: 0;
  }

  .site-footer {
    grid-template-columns:
      1fr
      1fr;
  }

  .site-footer nav {
    grid-column: 2;
  }

}


/* =========================================================
   RESPONSIVE — MÓVIL
========================================================= */

@media (max-width: 720px) {

  /* -----------------------------------------------
     HEADER
  ----------------------------------------------- */

  .site-header {
    min-height: 72px;
  }

  .brand img {
    height: 23px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    padding:
      1.5rem
      var(--page-padding);

    flex-direction: column;

    align-items: flex-start;

    gap: 1rem;

    background: var(--surface);

    border-bottom: 1px solid var(--line);

    box-shadow:
      0 18px 40px rgba(
        0,
        0,
        0,
        .55
      );
  }

  .site-nav.is-open {
    display: flex;
  }


  /* -----------------------------------------------
     HERO
  ----------------------------------------------- */

  .hero {
    grid-template-columns: 1fr;

    gap: 3rem;

    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }

  h1 {
    font-size: clamp(
      3rem,
      14vw,
      4.5rem
    );
  }

  .intro-copy {
    font-size: 1rem;
  }

  .hero-collage {
    min-height: 330px;

    margin-top: .5rem;
  }

  .hero-plate--1,
  .hero-plate--2,
  .hero-plate--3,
  .hero-plate--4 {
    width: 30%;
  }

  .hero-plate--1 {
    left: 5%;
    top: 10%;
  }

  .hero-plate--2 {
    right: 5%;
    top: 0;
  }

  .hero-plate--3 {
    left: 0;
    bottom: 10%;
  }

  .hero-plate--4 {
    right: 10%;
    bottom: 0;
  }

  .hero-plate--5 {
    left: 30%;
    top: 25%;

    width: 20%;
  }


  /* -----------------------------------------------
     CARRUSELES
  ----------------------------------------------- */

  .carousel-header {
    flex-direction: column;

    align-items: flex-start;

    gap: 1rem;
  }

  .logo-item {
    width: 140px;
    min-width: 140px;
    min-height: 90px;
  }

  .logo-item img {
    height: 50px;
  }


  /* -----------------------------------------------
     CASO DE ESTUDIO
  ----------------------------------------------- */

  .featured-work {
    padding-top: 2.5rem;
    padding-bottom: 4.5rem;
  }

  .work-layout {
    grid-template-columns: 1fr;

    gap: 3rem;

    margin-top: 2rem;
  }

  .process-viewer {
    width: 100%;

    padding-inline: 0;
  }

  .process-image-wrapper {
    height: auto;
    width: 100%;
  }

  .process-image-button,
  .process-image-button img {
    width: 100%;
    height: auto;
  }

  .process-arrow--prev {
    left: .75rem;
  }

  .process-arrow--next {
    right: .75rem;
  }

  .process-arrow {
    width: 2.6rem;
    height: 2.6rem;
  }


  /* -----------------------------------------------
     MANIFIESTO
  ----------------------------------------------- */

  .manifesto {
    padding:
      4rem
      7vw;
  }


  /* -----------------------------------------------
     PORTFOLIO
  ----------------------------------------------- */

  .portfolio {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
  }

  .works-grid {
    gap: 1.25rem;
  }

  .poster-tile {
    width: 160px;
    min-width: 160px;
  }


  /* -----------------------------------------------
     FOOTER
  ----------------------------------------------- */

  .site-footer {
    grid-template-columns: 1fr;

    gap: 2.5rem;

    padding: 3.5rem var(--page-padding);
  }

  .site-footer nav {
    grid-column: auto;
  }


  /* -----------------------------------------------
     PÁGINAS INTERIORES
  ----------------------------------------------- */

  .about-hero,
  .about-text,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-hero {
    align-items: start;

    gap: 3rem;

    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }

  .about-hero img {
    max-width: 500px;
  }

  .about-text {
    gap: 2rem;

    padding-top: 4rem;
    padding-bottom: 5rem;
  }

  .contact-hero {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .contact-grid {
    gap: 4rem;

    padding-top: 3rem;
    padding-bottom: 6rem;
  }


  /* -----------------------------------------------
     LIGHTBOX
  ----------------------------------------------- */

  .lightbox {
    width: 94vw;

    padding:
      3rem
      1rem
      1.5rem;
  }

  .lightbox img {
    max-height: 72vh;
  }

}


/* =========================================================
   RESPONSIVE — TELÉFONOS PEQUEÑOS
========================================================= */

@media (max-width: 420px) {

  .hero-collage {
    min-height: 280px;
  }

  .poster-tile {
    width: 145px;
    min-width: 145px;
  }

  .process-footer {
    align-items: flex-start;
  }

  .process-arrow--prev {
    left: .6rem;
  }

  .process-arrow--next {
    right: .6rem;
  }

}


/* =========================================================
   REDUCIR MOVIMIENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition-duration: .01ms !important;

    animation-duration: .01ms !important;

    animation-iteration-count: 1 !important;
  }

}