/* ==========================================================================
   MOXIFY · SISTEMA VISUAL
   Negro, blanco y el rojo del logo. Nada más.
   Un solo archivo: aquí vive todo el diseño del sitio.
   ========================================================================== */

:root {
  /* ---- Marca ---- */
  --red: #e81010;          /* el rojo del logo */
  --red-hi: #ff2323;       /* hover y brillos */
  --red-text: #ff2b2b;     /* rojo para texto pequeño sobre negro */
  --red-deep: #a30a0a;     /* presionado y degradados */
  --red-ink: #4a0505;      /* rojo casi negro */
  --red-glow: rgba(232, 16, 16, 0.34);

  --black: #000000;
  --ink: #0a0a0a;          /* fondo de página */
  --ink-2: #101012;        /* superficie elevada */
  --ink-3: #17171a;        /* tarjeta */
  --ink-4: #202024;        /* tarjeta en hover */

  --white: #ffffff;
  --w-90: #ededee;
  --w-70: #b6b6ba;         /* párrafo sobre negro */
  --w-50: #8b8b92;         /* texto secundario */
  --w-35: #5f5f66;

  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.26);
  --line-red: rgba(232, 16, 16, 0.45);
  --line-dark: rgba(0, 0, 0, 0.12);
  --line-dark-strong: rgba(0, 0, 0, 0.24);

  /* ---- Tipografía ---- */
  --font-display: "Anton", "Archivo Black", "Arial Narrow", Impact, sans-serif;
  --font-body: "Archivo", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", monospace;

  /* ---- Layout ---- */
  --shell: min(1200px, calc(100% - 44px));
  --section-y: clamp(84px, 11vw, 150px);

  /* ---- Geometría ---- */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --cut: 18px;             /* corte diagonal, guiño al logo */

  --shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
  --shadow-red: 0 14px 40px var(--red-glow);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
picture {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

::selection {
  color: var(--white);
  background: var(--red);
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  color: var(--white);
  background: var(--red);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  position: relative;
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   Texturas de marca
   ========================================================================== */

/* Retícula técnica, la misma sensación de los posts de Instagram. */
.home-hero::before,
.page-hero::before,
.about-hero-page::before,
.grid-tex::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}

/* Píxeles que se desprenden, como en el logotipo. */
.pixels {
  position: absolute;
  z-index: 0;
  width: 9px;
  height: 9px;
  background: var(--red);
  content: "";
  pointer-events: none;
  box-shadow:
    16px -16px 0 0 var(--red),
    32px -6px 0 0 rgba(232, 16, 16, 0.85),
    -4px -30px 0 0 rgba(232, 16, 16, 0.7),
    26px -34px 0 0 rgba(232, 16, 16, 0.55),
    46px -24px 0 0 rgba(232, 16, 16, 0.4),
    10px -48px 0 0 rgba(232, 16, 16, 0.3),
    40px -52px 0 0 rgba(232, 16, 16, 0.18);
}


/* ==========================================================================
   Tipografía compartida
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--red-text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 3px;
  background: currentColor;
  content: "";
}

.eyebrow--dark {
  color: var(--red);
}

.eyebrow--paper {
  color: var(--white);
}

.eyebrow--paper::before {
  background: var(--white);
}

/* Acento rojo dentro de un titular. Reemplaza al antiguo .serif. */
.hot {
  color: var(--red);
}

.section-title {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 86px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.92;
  text-transform: uppercase;
}

.section-copy {
  max-width: 560px;
  margin: 0;
  color: var(--w-70);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.7;
}

.section-copy--dark {
  color: #4c4c52;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 56px;
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 76px);
}


/* ==========================================================================
   Botones y enlaces
   ========================================================================== */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 54px;
  padding: 0 14px 0 26px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.22s ease, color 0.22s ease,
    border-color 0.22s ease, box-shadow 0.22s ease;
}

.button:not(:has(.button__arrow)) {
  padding-inline: 26px;
}

/* Brillo diagonal que cruza el botón. */
.button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.3) 50%, transparent 64%);
  content: "";
  transform: translateX(-125%);
  transition: transform 0.55s var(--ease);
  pointer-events: none;
}

.button:hover::after {
  transform: translateX(125%);
}

.button:hover {
  transform: translateY(-3px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button__arrow {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.22s var(--ease);
}

.button:hover .button__arrow {
  transform: translateX(3px);
}

.button--red {
  color: var(--white);
  background: var(--red);
  box-shadow: var(--shadow-red);
}

.button--red:hover {
  background: var(--red-hi);
}

.button--red .button__arrow {
  color: var(--red);
  background: var(--white);
}

.button--ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.button--ghost:hover {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.button--ghost .button__arrow {
  color: var(--white);
  background: var(--red);
}

.button--ink {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.button--ink:hover {
  background: var(--black);
}

.button--paper {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.button--paper:hover {
  background: var(--w-90);
}

.button--paper .button__arrow,
.button--ink .button__arrow {
  color: var(--white);
  background: var(--red);
}

/* Botón fantasma sobre fondo claro. */
.button--outline-dark {
  color: var(--ink);
  background: transparent;
  border-color: rgba(0, 0, 0, 0.28);
}

.button--outline-dark:hover {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.button--outline-dark .button__arrow {
  color: var(--white);
  background: var(--red);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid currentColor;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: gap 0.22s var(--ease), color 0.2s ease;
}

.text-link:hover {
  gap: 16px;
  color: var(--red);
}


/* ==========================================================================
   Cabecera y navegación
   ========================================================================== */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open,
.site-header--solid {
  background: rgba(6, 6, 7, 0.9);
  border-bottom-color: var(--line-red);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  width: var(--shell);
  min-height: 80px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 2px solid var(--red);
  border-radius: 50%;
  transition: box-shadow 0.25s ease;
}

.brand:hover img {
  box-shadow: 0 0 0 4px rgba(232, 16, 16, 0.2);
}

.brand__word {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand__word span {
  color: var(--red);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  position: relative;
  padding-block: 6px;
  color: var(--w-70);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 3px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--white);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta {
  min-height: 44px;
  padding-inline: 20px;
  font-size: 12px;
}

.menu-toggle {
  position: relative;
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(232, 16, 16, 0.2);
  border-color: var(--line-red);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle::before {
  transform: translate(-50%, calc(-50% - 6px));
}

.menu-toggle::after {
  transform: translate(-50%, calc(-50% + 6px));
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: none;
  padding: 116px 24px 34px;
  background:
    radial-gradient(circle at 88% 10%, rgba(232, 16, 16, 0.3), transparent 40%),
    var(--black);
}

.mobile-panel.is-open {
  display: flex;
  flex-direction: column;
}

.mobile-nav {
  display: grid;
  gap: 4px;
}

.mobile-nav a {
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 13vw, 66px);
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  color: var(--red);
  transform: translateX(6px);
}

.mobile-panel__bottom {
  display: grid;
  margin-top: auto;
  gap: 16px;
}


/* ==========================================================================
   Portada
   ========================================================================== */

.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(128px, 15vw, 178px) 0 clamp(64px, 8vw, 88px);
  background:
    radial-gradient(ellipse 60% 50% at 50% -6%, rgba(232, 16, 16, 0.26), transparent 70%),
    radial-gradient(circle at 92% 78%, rgba(232, 16, 16, 0.1), transparent 42%),
    var(--ink);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.home-hero__title {
  max-width: 15ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(58px, 9.4vw, 138px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.86;
  text-transform: uppercase;
}

.home-hero__title .hot {
  position: relative;
  display: inline-block;
}

.home-hero__lead {
  max-width: 66ch;
  margin: 28px 0 0;
  color: var(--w-70);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.7;
}

.home-hero__lead strong {
  color: var(--white);
  font-weight: 700;
}

.home-hero .button-row {
  justify-content: center;
  margin-top: 30px;
}

/* Baraja de proyectos */
.project-deck {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1120px, calc(100% - 32px));
  margin: clamp(52px, 7vw, 84px) auto 0;
  grid-template-columns: 0.92fr 1.16fr 0.92fr;
  gap: 18px;
  align-items: center;
}

.deck-card {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.deck-card:hover {
  z-index: 3;
  border-color: var(--red);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--red);
  transform: rotate(0deg) translateY(-10px);
}

.deck-card:nth-child(1) {
  --tilt: -4deg;
}

.deck-card:nth-child(2) {
  z-index: 2;
  --tilt: 0deg;
  transform: translateY(-18px);
}

.deck-card:nth-child(2):hover {
  transform: translateY(-28px);
}

.deck-card:nth-child(3) {
  --tilt: 4deg;
}

.deck-card__bar {
  display: flex;
  height: 32px;
  padding: 0 13px;
  align-items: center;
  gap: 6px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.deck-card__bar i {
  display: block;
  width: 7px;
  height: 7px;
  background: #3a3a40;
  border-radius: 50%;
}

.deck-card__bar i:first-child {
  background: var(--red);
}

.deck-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}

.deck-card__label {
  display: flex;
  padding: 13px 15px 15px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.deck-card__label span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--red-text);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}

.deck-card__label span:last-child::before {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  content: "";
  animation: pulse 2s var(--ease) infinite;
}

/* Barra de cifras */
.proof-bar {
  position: relative;
  z-index: 3;
  display: grid;
  width: var(--shell);
  margin: clamp(46px, 6vw, 66px) auto 0;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-item {
  padding: 28px 30px 0 0;
}

.proof-item + .proof-item {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.proof-item__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--red-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.proof-item__label::before {
  width: 7px;
  height: 7px;
  background: var(--red);
  content: "";
  transform: rotate(45deg);
}

.proof-item__text {
  max-width: 32ch;
  margin: 0;
  color: var(--w-70);
  font-size: 15px;
  line-height: 1.6;
}


/* ==========================================================================
   Marquesina de marca
   ========================================================================== */

.marquee {
  display: flex;
  overflow: hidden;
  padding: 16px 0;
  color: var(--white);
  background: var(--red);
  user-select: none;
}

.marquee__track {
  display: flex;
  flex: 0 0 auto;
  gap: 0;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
}

.marquee__group span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__group span::after {
  width: 9px;
  height: 9px;
  background: var(--black);
  content: "";
  transform: rotate(45deg);
}

@keyframes marquee {
  to {
    /* Un cuarto de la pista = exactamente una copia. Al terminar, el fotograma
       final es idéntico al inicial y el salto no se percibe. */
    transform: translateX(-25%);
  }
}


/* ==========================================================================
   Proyectos publicados (bloque claro)
   ========================================================================== */

.selected-work,
.archive-work {
  position: relative;
  padding: var(--section-y) 0;
  color: var(--ink);
  background: var(--white);
}

.project-list {
  display: grid;
  gap: 20px;
}

.case {
  display: grid;
  min-height: 520px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.case:hover {
  border-color: var(--red);
  box-shadow: 0 20px 50px rgba(232, 16, 16, 0.18);
}

.case:nth-child(even) {
  grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1.3fr);
}

.case:nth-child(even) .case__visual {
  order: 2;
}

.case__visual {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: var(--black);
}

.case__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 42%);
  content: "";
  pointer-events: none;
}

.case__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s var(--ease);
}

.case:hover .case__image {
  transform: scale(1.03);
}

.case__live {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  display: inline-flex;
  padding: 8px 14px;
  align-items: center;
  gap: 8px;
  color: var(--white);
  background: var(--red);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(232, 16, 16, 0.4);
}

.case__live::before {
  width: 7px;
  height: 7px;
  background: var(--white);
  border-radius: 50%;
  content: "";
  animation: pulse 2s var(--ease) infinite;
}

.case__copy {
  display: flex;
  padding: clamp(32px, 4.4vw, 56px);
  flex-direction: column;
  justify-content: center;
}

.case__index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case__title {
  margin: 16px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(46px, 5.4vw, 74px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.94;
  text-transform: uppercase;
}

.case__description {
  margin: 0;
  color: var(--w-70);
  font-size: 16px;
  line-height: 1.7;
}

.case__chips {
  display: flex;
  flex-wrap: wrap;
  margin: 22px 0 28px;
  gap: 8px;
}

.case__chips span {
  padding: 8px 12px;
  color: var(--w-90);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.case .text-link {
  align-self: flex-start;
  color: var(--white);
}

.case .text-link:hover {
  color: var(--red);
}


/* ==========================================================================
   Capítulo oscuro: laboratorio y capacidades
   ========================================================================== */

.dark-chapter,
.archive-lab {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(232, 16, 16, 0.12), transparent 38%),
    var(--ink);
}

.dark-chapter > *,
.archive-lab > * {
  position: relative;
  z-index: 1;
}

.archive-lab__note {
  margin: -34px 0 42px;
  color: var(--w-50);
  font-family: var(--font-mono);
  font-size: 12px;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lab-card {
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.3s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

.lab-card:hover {
  background: var(--ink-4);
  border-color: var(--red);
  transform: translateY(-8px);
}

.lab-card__image-wrap {
  position: relative;
  overflow: hidden;
}

.lab-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  transition: transform 0.55s var(--ease);
}

.lab-card:hover .lab-card__image {
  transform: scale(1.05);
}

.lab-card__badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 7px 11px;
  color: var(--white);
  background: var(--red);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lab-card__body {
  padding: 24px;
}

.lab-card__body h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.lab-card__body p {
  margin: 0;
  color: var(--w-50);
  font-size: 14px;
  line-height: 1.6;
}

.chapter-divider {
  height: 1px;
  margin: clamp(72px, 9vw, 120px) 0;
  background: linear-gradient(90deg, var(--red), transparent 46%);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.capability {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 340px;
  padding: 30px;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.capability::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
  content: "";
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.capability:hover {
  border-color: var(--line-strong);
  transform: translateY(-6px);
}

.capability:hover::before {
  transform: scaleX(1);
}

.capability__number {
  color: var(--red-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.capability h3 {
  max-width: 12ch;
  margin: auto 0 16px;
  padding-top: 48px;
  font-family: var(--font-display);
  font-size: clamp(36px, 3.5vw, 50px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.96;
  text-transform: uppercase;
}

.capability p {
  max-width: 34ch;
  margin: 0;
  color: var(--w-70);
  font-size: 15px;
  line-height: 1.7;
}


/* ==========================================================================
   Sobre Diego (portada)
   ========================================================================== */

.about-preview {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) 0;
  background: var(--black);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.portrait {
  position: relative;
  max-width: 470px;
}

.portrait::before {
  position: absolute;
  z-index: 0;
  top: -5%;
  right: -8%;
  width: 56%;
  aspect-ratio: 1;
  background: var(--red);
  border-radius: 50%;
  content: "";
  filter: blur(2px);
}

.portrait::after {
  position: absolute;
  z-index: 2;
  bottom: 6%;
  left: -7%;
  width: 108px;
  height: 108px;
  border: 3px solid var(--red);
  border-radius: 50%;
  content: "";
}

.portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--r-lg);
  filter: grayscale(0.15) contrast(1.06);
  box-shadow: var(--shadow);
}

.portrait__tag {
  position: absolute;
  z-index: 3;
  right: -14px;
  bottom: 28px;
  padding: 11px 18px;
  color: var(--white);
  background: var(--red);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-red);
}

.about-copy h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(50px, 6.6vw, 92px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-transform: uppercase;
}

.about-copy > p {
  max-width: 62ch;
  margin: 0 0 18px;
  color: var(--w-70);
  font-size: 17px;
  line-height: 1.75;
}

.commitment {
  margin: 32px 0;
  padding: 4px 0 4px 26px;
  border-left: 4px solid var(--red);
}

.commitment small {
  display: block;
  margin-bottom: 10px;
  color: var(--red-text);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.commitment p {
  max-width: 34ch;
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.04;
  text-transform: uppercase;
}


/* ==========================================================================
   Cartel de contacto (bloque rojo)
   ========================================================================== */

.contact-poster {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.18), transparent 38%),
    radial-gradient(circle at 88% 96%, rgba(0, 0, 0, 0.34), transparent 46%),
    var(--red);
}

.contact-poster__ring {
  position: absolute;
  top: 50%;
  right: -5vw;
  width: min(46vw, 560px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: ring-drift 12s ease-in-out infinite alternate;
}

.contact-poster__ring::before,
.contact-poster__ring::after {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  content: "";
}

.contact-poster__ring::before {
  inset: 15%;
}

.contact-poster__ring::after {
  inset: 32%;
  background: rgba(0, 0, 0, 0.14);
}

.contact-poster__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.contact-poster .eyebrow {
  color: var(--white);
}

.contact-poster .eyebrow::before {
  background: var(--white);
}

.contact-poster h2 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 8.4vw, 118px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.88;
  text-transform: uppercase;
}

.contact-poster h2 .hot {
  color: var(--black);
}

.contact-poster p {
  max-width: 58ch;
  margin: 26px 0 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.65;
}

.contact-poster .button--ghost {
  border-color: rgba(255, 255, 255, 0.6);
}

.contact-poster .button--ghost:hover {
  color: var(--red);
  background: var(--white);
}

.contact-poster .button--ghost .button__arrow {
  color: var(--red);
  background: var(--white);
}


/* ==========================================================================
   Pie de página
   ========================================================================== */

.site-footer {
  padding: 66px 0 28px;
  background: var(--black);
  border-top: 3px solid var(--red);
}

.footer-grid {
  display: grid;
  padding-bottom: 52px;
  grid-template-columns: 1.35fr 0.6fr 0.6fr;
  gap: 54px;
}

.footer-brand p {
  max-width: 44ch;
  margin: 20px 0 0;
  color: var(--w-50);
  font-size: 15px;
  line-height: 1.7;
}

.footer-heading {
  display: block;
  margin-bottom: 16px;
  color: var(--red-text);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 11px;
}

.footer-links a {
  width: fit-content;
  color: var(--w-70);
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-base {
  display: flex;
  padding-top: 24px;
  color: var(--w-50);
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Botón flotante de WhatsApp */
.whatsapp-fab {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--black);
  border-radius: 50%;
  box-shadow: 0 14px 32px rgba(232, 16, 16, 0.42);
  transition: transform 0.25s var(--ease), background 0.2s ease;
}

.whatsapp-fab:hover {
  background: var(--red-hi);
  transform: translateY(-5px) scale(1.05);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}


/* ==========================================================================
   Cabeceras de páginas interiores
   ========================================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(146px, 17vw, 208px) 0 clamp(72px, 9vw, 112px);
  background:
    radial-gradient(ellipse 55% 60% at 82% 6%, rgba(232, 16, 16, 0.24), transparent 70%),
    var(--ink);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 17ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(58px, 10vw, 142px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.86;
  text-transform: uppercase;
}

.page-hero__intro {
  display: grid;
  margin-top: 34px;
  grid-template-columns: minmax(0, 640px) auto;
  gap: 44px;
  align-items: end;
}

.page-hero__intro p {
  margin: 0;
  color: var(--w-70);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.68;
}

.page-stats {
  display: flex;
  gap: 30px;
}

.page-stat strong {
  display: block;
  color: var(--red-text);
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 400;
  line-height: 0.9;
}

.page-stat span {
  display: block;
  margin-top: 7px;
  color: var(--w-50);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ==========================================================================
   Servicios
   ========================================================================== */

.services-page {
  padding: var(--section-y) 0;
  color: var(--ink);
  background: var(--white);
}

.service-detail-grid {
  display: grid;
  gap: 16px;
}

.service-detail {
  display: grid;
  padding: clamp(30px, 4.4vw, 58px);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  grid-template-columns: 0.14fr 0.76fr 1fr;
  gap: 36px;
  align-items: start;
  color: var(--white);
  transition: border-color 0.25s ease;
}

.service-detail:hover {
  border-color: var(--red);
}

.service-detail__number {
  color: var(--red-text);
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 0.9;
}

.service-detail h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

.service-detail__body p {
  margin: 0 0 22px;
  color: var(--w-70);
  font-size: 16px;
  line-height: 1.75;
}

.clean-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 11px;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 24px;
  color: var(--w-90);
  font-size: 15px;
  line-height: 1.5;
}

.clean-list li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--red);
  content: "";
  transform: rotate(45deg);
}

/* Tipos de proyecto */
.types-section {
  padding: var(--section-y) 0;
  background: var(--ink);
}

.project-types {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-type {
  display: inline-flex;
  padding: 15px 22px;
  align-items: center;
  gap: 12px;
  color: var(--w-90);
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.project-type:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-3px);
}

.project-type span {
  color: var(--red-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.project-type:hover span {
  color: var(--white);
}

/* Proceso */
.process-section {
  position: relative;
  padding: var(--section-y) 0;
  background: var(--black);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-step {
  position: relative;
  display: flex;
  min-height: 290px;
  padding: 28px;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.process-step:hover {
  border-color: var(--red);
  transform: translateY(-6px);
}

.process-step__number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.process-step h3 {
  margin: auto 0 10px;
  padding-top: 44px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.process-step p {
  margin: 0;
  color: var(--w-50);
  font-size: 14px;
  line-height: 1.65;
}

/* Preguntas frecuentes */
.faq-section {
  padding: var(--section-y) 0;
  color: var(--ink);
  background: var(--white);
}

.faq-list {
  display: grid;
  max-width: 900px;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-md);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item[open] {
  background: var(--white);
  border-color: var(--red);
}

.faq-item summary {
  display: flex;
  padding: 22px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  content: "+";
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 24px 24px;
  color: #4c4c52;
  font-size: 16px;
  line-height: 1.75;
}


/* ==========================================================================
   Sobre Diego
   ========================================================================== */

.about-hero-page {
  position: relative;
  overflow: hidden;
  padding: clamp(140px, 16vw, 190px) 0 clamp(72px, 9vw, 110px);
  background:
    radial-gradient(ellipse 50% 60% at 88% 10%, rgba(232, 16, 16, 0.22), transparent 70%),
    var(--ink);
}

.about-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.68fr);
  gap: clamp(46px, 8vw, 100px);
  align-items: center;
}

.about-hero-page h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(64px, 10.5vw, 148px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.85;
  text-transform: uppercase;
}

.about-hero-page__lead {
  max-width: 60ch;
  margin: 28px 0 0;
  color: var(--w-70);
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.7;
}

.about-facts {
  display: flex;
  flex-wrap: wrap;
  margin-top: 28px;
  gap: 8px;
}

.about-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--w-90);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.about-facts span::before {
  width: 5px;
  height: 5px;
  background: var(--red);
  content: "";
  transform: rotate(45deg);
}

.manifesto-section {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) 0;
  background: var(--black);
}

.manifesto-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: clamp(44px, 7vw, 96px);
}

.manifesto-grid h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 6.2vw, 80px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.92;
  text-transform: uppercase;
}

.manifesto-copy {
  display: grid;
  gap: 24px;
}

.manifesto-copy p {
  margin: 0;
  color: var(--w-70);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.68;
}

.manifesto-copy strong {
  color: var(--white);
  font-weight: 700;
}

.manifesto-quote {
  position: relative;
  margin: 16px 0 0;
  padding: 34px 34px 34px 40px;
  color: var(--white);
  background: var(--red);
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.06;
  text-transform: uppercase;
  box-shadow: var(--shadow-red);
}

.manifesto-quote::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--black);
  content: "";
}

/* Principios */
.principles-section {
  padding: var(--section-y) 0;
  color: var(--ink);
  background: var(--white);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.principle {
  display: flex;
  min-height: 280px;
  padding: 30px;
  flex-direction: column;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-md);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.principle:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-6px);
}

.principle > span {
  color: var(--red-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  transition: color 0.25s ease;
}

.principle:hover > span {
  color: var(--red-text);
}

.principle h3 {
  margin: auto 0 12px;
  padding-top: 52px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.principle p {
  margin: 0;
  color: #55555b;
  font-size: 15px;
  line-height: 1.65;
  transition: color 0.25s ease;
}

.principle:hover h3 {
  color: var(--white);
}

.principle:hover p {
  color: var(--w-70);
}

/* Origen del nombre */
.origin-section {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) 0;
  background:
    radial-gradient(circle at 22% 50%, rgba(232, 16, 16, 0.22), transparent 46%),
    var(--ink);
}

.origin-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(46px, 8vw, 100px);
  align-items: center;
}

.origin-grid img {
  width: min(320px, 100%);
  margin-inline: auto;
  border-radius: 50%;
  filter: drop-shadow(0 22px 50px rgba(232, 16, 16, 0.35));
}

.origin-grid h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(46px, 6.4vw, 88px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-transform: uppercase;
}

.origin-grid p {
  max-width: 60ch;
  margin: 0;
  color: var(--w-70);
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.7;
}


/* ==========================================================================
   Contacto
   ========================================================================== */

.contact-page {
  padding: var(--section-y) 0;
  background: var(--ink);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.6fr);
  gap: 18px;
  align-items: start;
}

.quote-form {
  padding: clamp(26px, 4vw, 48px);
  color: var(--ink);
  background: var(--white);
  border-radius: var(--r-lg);
}

.form-step {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.quote-form h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.option-fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.option {
  position: relative;
  cursor: pointer;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option span {
  display: flex;
  min-height: 58px;
  padding: 12px 16px;
  align-items: center;
  background: #f2f2f2;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.option:hover span {
  border-color: rgba(232, 16, 16, 0.4);
}

.option input:focus-visible + span {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.option input:checked + span {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.form-divider {
  height: 1px;
  margin: 36px 0;
  background: rgba(0, 0, 0, 0.1);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  margin-top: 14px;
}

.field > span {
  color: #45454a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  color: var(--ink);
  background: #f2f2f2;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  outline: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8d8d93;
}

.field input:focus,
.field textarea:focus {
  background: var(--white);
  border-color: var(--red);
}

.field input:disabled {
  color: #6d6d73;
  cursor: not-allowed;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-actions {
  display: flex;
  margin-top: 24px;
  align-items: center;
  gap: 16px;
}

.form-status {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.contact-aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 14px;
}

.contact-card {
  padding: 30px;
  color: var(--white);
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.contact-card--red {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background: linear-gradient(145deg, var(--red), var(--red-ink));
  border-color: transparent;
  box-shadow: var(--shadow-red);
}

.contact-card--red::before,
.contact-card--red::after {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  content: "";
}

.contact-card--red::before {
  right: -66px;
  bottom: -70px;
  width: 210px;
  height: 210px;
}

.contact-card--red::after {
  right: -6px;
  bottom: -8px;
  width: 86px;
  height: 86px;
  background: rgba(0, 0, 0, 0.14);
}

.contact-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.contact-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  color: var(--w-50);
  font-size: 15px;
  line-height: 1.65;
}

.contact-card--red p {
  color: rgba(255, 255, 255, 0.92);
}

.contact-card--red .button--paper .button__arrow {
  color: var(--white);
  background: var(--red);
}

.form-noscript {
  padding: 15px 18px;
  margin: 20px 0 0;
  color: var(--white);
  background: var(--red);
  border-radius: var(--r-sm);
  font-size: 14px;
}

.form-noscript a {
  font-weight: 800;
  text-decoration: underline;
}

.contact-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
}

.contact-list a {
  display: flex;
  padding: 13px 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.contact-list a:hover {
  color: var(--red);
}


/* ==========================================================================
   404
   ========================================================================== */

.not-found {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 100svh;
  padding: 110px 20px 60px;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(232, 16, 16, 0.26), transparent 52%),
    var(--ink);
}

.not-found > div {
  position: relative;
  z-index: 1;
}

.not-found__code {
  margin: 0;
  color: var(--red);
  font-family: var(--font-display);
  font-size: clamp(140px, 28vw, 380px);
  line-height: 0.76;
  text-shadow: 0 20px 60px rgba(232, 16, 16, 0.4);
}

.not-found h1 {
  margin: 30px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 400;
  line-height: 0.96;
  text-transform: uppercase;
}

.not-found p {
  max-width: 52ch;
  margin: 0 auto 28px;
  color: var(--w-70);
  line-height: 1.7;
}


/* ==========================================================================
   Movimiento
   ========================================================================== */

/* El contenido nunca depende de la animación: entra visible y se acomoda. */
.enter {
  animation: enter 0.66s var(--ease) both;
  animation-delay: var(--delay, 0ms);
}

@keyframes enter {
  from {
    transform: translateY(16px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

@keyframes ring-drift {
  from { transform: translateY(-50%) rotate(0deg) scale(0.96); }
  to { transform: translateY(-47%) rotate(16deg) scale(1.04); }
}


/* ==========================================================================
   Adaptación a pantallas
   ========================================================================== */

@media (max-width: 1080px) {
  .nav {
    gap: 20px;
  }

  .case,
  .case:nth-child(even) {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  }

  .service-detail {
    grid-template-columns: 0.1fr 0.8fr 1fr;
    gap: 26px;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 32px, 720px);
  }

  .nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .section-heading,
  .page-hero__intro,
  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading {
    align-items: start;
  }

  .project-deck {
    width: calc(100% - 24px);
    padding: 18px 6vw 28px;
    overflow-x: auto;
    grid-template-columns: repeat(3, minmax(290px, 76vw));
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .project-deck::-webkit-scrollbar {
    display: none;
  }

  .deck-card,
  .deck-card:nth-child(2),
  .deck-card:nth-child(3) {
    scroll-snap-align: center;
    transform: none;
  }

  .deck-card:hover,
  .deck-card:nth-child(2):hover {
    transform: translateY(-6px);
  }

  .proof-bar {
    grid-template-columns: 1fr;
  }

  .proof-item {
    padding: 24px 0 0;
  }

  .proof-item + .proof-item {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .case,
  .case:nth-child(even) {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .case:nth-child(even) .case__visual {
    order: 0;
  }

  .case__visual {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .lab-grid,
  .capability-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .lab-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
  }

  .lab-card__image {
    height: 100%;
    aspect-ratio: auto;
  }

  .capability {
    min-height: 0;
  }

  .capability h3 {
    padding-top: 30px;
  }

  .about-grid,
  .about-hero-grid,
  .origin-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-hero-grid .portrait {
    order: -1;
  }

  .portrait {
    width: min(440px, 88%);
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .service-detail {
    grid-template-columns: 0.12fr 0.88fr;
  }

  .service-detail__body {
    grid-column: 2;
  }

  .contact-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principle,
  .process-step {
    min-height: 0;
  }

  .principle h3,
  .process-step h3 {
    padding-top: 34px;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 26px);
    --r-lg: 16px;
    --r-md: 12px;
    --section-y: 76px;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand__word {
    font-size: 22px;
  }

  .home-hero {
    padding-top: 118px;
  }

  .home-hero__title {
    font-size: clamp(46px, 15vw, 76px);
  }

  .home-hero__lead {
    font-size: 16px;
  }

  .button-row,
  .home-hero .button-row {
    width: 100%;
  }

  .button-row .button {
    flex: 1 1 210px;
  }

  .project-deck {
    padding-inline: 3vw;
    grid-template-columns: repeat(3, minmax(276px, 84vw));
  }

  .proof-item__number {
    font-size: 38px;
  }

  .section-title {
    font-size: clamp(36px, 12vw, 56px);
  }

  .case__copy {
    padding: 28px 22px 32px;
  }

  .case__title {
    font-size: clamp(38px, 12vw, 54px);
  }

  .lab-card {
    display: block;
  }

  .lab-card__image {
    aspect-ratio: 16 / 10;
  }

  .marquee__group span {
    font-size: 18px;
    gap: 18px;
  }

  .marquee__group {
    gap: 18px;
    padding-right: 18px;
  }

  .portrait__tag {
    right: 0;
    font-size: 10px;
  }

  .contact-poster__ring {
    top: auto;
    right: -30vw;
    bottom: -24vw;
    width: 90vw;
    transform: none;
  }

  .contact-poster h2 {
    font-size: clamp(42px, 15vw, 68px);
  }

  .footer-grid,
  .footer-base {
    grid-template-columns: 1fr;
  }

  .footer-base {
    display: grid;
    gap: 8px;
  }

  .page-hero {
    padding: 126px 0 72px;
  }

  .page-hero h1,
  .about-hero-page h1 {
    font-size: clamp(46px, 16vw, 78px);
  }

  .about-hero-page {
    padding: 118px 0 72px;
  }

  .page-stats {
    gap: 22px;
  }

  .page-stat strong {
    font-size: 38px;
  }

  .service-detail {
    padding: 26px 20px 30px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-detail__body {
    grid-column: auto;
  }

  .service-detail h3 {
    font-size: 40px;
  }

  .service-detail__number {
    font-size: 32px;
  }

  .process-grid,
  .option-grid,
  .field-grid,
  .contact-aside {
    grid-template-columns: 1fr;
  }

  .manifesto-quote {
    padding: 26px 24px 26px 30px;
  }

  .quote-form {
    padding: 24px 18px 28px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }

  .faq-item summary {
    padding: 18px 18px;
    gap: 14px;
  }

  .faq-item p {
    padding: 0 18px 20px;
  }

  .whatsapp-fab {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .marquee__track {
    animation: none;
    transform: none;
  }
}
