/* Hoplita Technology — styles.css v78 */

:root {
  --ink: #050505;
  --ink-soft: #0d0c0b;
  --ink-raised: #151310;
  --paper: #f4f1ea;
  --paper-soft: #cbc7be;
  --orange: #ff5a14;
  --orange-bright: #ff6b1a;
  --amber: #ffad33;
  --line: rgba(244, 241, 234, 0.16);
  --line-dark: rgba(5, 5, 5, 0.17);
  --gutter: clamp(1.25rem, 4vw, 5rem);
  --header-height: 5.6rem;
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #000;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.motion-is-paused,
.motion-is-paused *,
.motion-is-paused::before,
.motion-is-paused::after,
.motion-is-paused *::before,
.motion-is-paused *::after {
  animation-play-state: paused !important;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

::selection {
  color: var(--ink);
  background: var(--orange);
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.7rem 1rem;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

#servicios {
  scroll-margin-top: calc(var(--header-height) + 1.25rem);
}

#servicios:focus {
  outline: none;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  height: var(--header-height);
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand__mark--eyes {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  display: inline-block;
  pointer-events: none;
}

.brand__eyes-closed,
.brand__eyes-open {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.brand__eyes-closed {
  opacity: 1;
  transition: opacity 200ms ease 0ms;
}

.brand__eyes-open {
  opacity: 0;
  transition: opacity 200ms ease 400ms;
}

.brand:hover .brand__eyes-closed {
  opacity: 0;
  transition: opacity 200ms ease 0ms;
}

.brand:hover .brand__eyes-open {
  opacity: 1;
  transition: opacity 200ms ease 0ms;
}

.brand:active .brand__eyes-closed,
.brand:focus .brand__eyes-closed {
  opacity: 0;
  transition: opacity 200ms ease 0ms;
}

.brand:active .brand__eyes-open,
.brand:focus .brand__eyes-open {
  opacity: 1;
  transition: opacity 200ms ease 0ms;
}

.brand {
  position: relative;
  z-index: 102;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem;
  margin: -0.8rem;
  outline: none;
}

.brand__name {
  display: grid;
  line-height: 1;
}

.brand__name strong {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.27em;
}

.brand__name small {
  margin-top: 0.36rem;
  color: rgba(244, 241, 234, 0.55);
  font-size: 0.52rem;
  letter-spacing: 0.38em;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 2.35vw, 2.6rem);
}

.site-nav__panel,
.site-nav__links,
.site-nav__meta {
  display: contents;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2rem;
  color: rgba(244, 241, 234, 0.68);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -0.3rem;
  left: 0;
  height: 1px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 240ms ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-link__symbol {
  color: var(--orange);
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(5px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.nav-link:hover .nav-link__symbol,
.nav-link.is-active .nav-link__symbol {
  opacity: 1;
  transform: translateX(0);
}

.nav-link__label {
  position: relative;
  display: block;
  overflow: hidden;
  height: 1.15rem;
}

.nav-link__normal,
.nav-link__archaic {
  display: block;
  transition: transform 260ms cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-link__archaic {
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  transform: translateY(35%);
}

.nav-link:hover .nav-link__normal {
  transform: translateY(-130%);
}

.nav-link:hover .nav-link__archaic {
  transform: translateY(-100%);
}

.nav-link.is-active {
  color: var(--paper);
}

.header-actions {
  position: relative;
  z-index: 102;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid rgba(244, 241, 234, 0.24);
  border-radius: 999px;
  color: var(--paper);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    color 200ms ease,
    border-color 200ms ease,
    background-color 200ms ease;
}

.header-contact span:last-child {
  color: var(--orange);
  font-size: 0.86rem;
}

.header-contact:hover,
.header-contact:focus-visible {
  border-color: var(--orange);
  color: var(--ink);
  background: var(--orange);
}

.header-contact:hover span:last-child,
.header-contact:focus-visible span:last-child {
  color: var(--ink);
}

.site-nav__contact {
  display: none;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(244, 241, 234, 0.33);
  font-size: 0.66rem;
}

.language-switch button {
  padding: 0.2rem;
  border: 0;
  color: rgba(244, 241, 234, 0.42);
  background: transparent;
  cursor: pointer;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-switch button:hover,
.language-switch button.is-active {
  color: var(--orange);
}

.menu-toggle {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle i {
  position: absolute;
  left: 0.86rem;
  width: 1.1rem;
  height: 1px;
  background: var(--paper);
  transition: transform 250ms ease;
}

.menu-toggle i:first-child {
  transform: translateY(-4px);
}

.menu-toggle i:last-child {
  transform: translateY(4px);
}

.menu-toggle--open i:first-child {
  transform: rotate(45deg);
}

.menu-toggle--open i:last-child {
  transform: rotate(-45deg);
}

body.intro-is-playing {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  background: #000;
}

/* ========================================================================== 
   INTRO HOPLITA — mirada viva, trazo del casco y barrido
   ========================================================================== */
.intro.intro--cinematic {
  position: fixed;
  z-index: 1000;
  inset: 0;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  color: var(--paper);
  background:
    radial-gradient(
      ellipse 32% 22% at 50% 43%,
      rgba(255, 90, 20, 0.035),
      transparent 76%
    ),
    #000;
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translate3d(0, 0, 0);
  visibility: visible;
  transition:
    clip-path 880ms cubic-bezier(0.76, 0, 0.24, 1),
    opacity 720ms 80ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 920ms step-end;
  contain: layout paint;
  will-change: opacity, clip-path;
}

.intro.intro--cinematic[hidden] {
  display: none;
}

.intro.intro--cinematic.intro--hidden {
  pointer-events: none;
  opacity: 0;
  clip-path: inset(0 0 0 100%);
  visibility: hidden;
}

.intro__stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min(92vw, 34rem);
  min-height: min(58vh, 25rem);
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 360ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.intro--cinematic.intro--hidden .intro__stage {
  opacity: 0;
  transform: translateX(1.35rem) scale(0.994);
}

.intro__mark {
  position: relative;
  display: block;
  width: clamp(18rem, 31vw, 25rem);
  aspect-ratio: 1216 / 873;
  overflow: visible;
}

.intro__helmet-canvas {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  mix-blend-mode: screen;
}

.intro__real-eyes {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  clip-path: polygon(
    7% 46%,
    42% 43%,
    50% 47%,
    58% 43%,
    93% 46%,
    90% 49%,
    58% 47%,
    50% 49%,
    42% 47%,
    10% 49%
  );
  transform: translateY(0.08rem) scale(1.008);
  transform-origin: 50% 48%;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(
    ellipse 49% 31% at 50% 43%,
    #000 26%,
    rgba(0, 0, 0, 0.98) 48%,
    rgba(0, 0, 0, 0.42) 68%,
    transparent 84%
  );
  mask-image: radial-gradient(
    ellipse 49% 31% at 50% 43%,
    #000 26%,
    rgba(0, 0, 0, 0.98) 48%,
    rgba(0, 0, 0, 0.42) 68%,
    transparent 84%
  );
  filter:
    brightness(0.94)
    saturate(0.82)
    contrast(1.2)
    drop-shadow(0 0 0.72rem rgba(255, 90, 20, 0.16));
  will-change: opacity, transform, clip-path, filter;
}

.intro--cinematic.intro--playing .intro__real-eyes {
  animation: hoplita-eye-life 2.66s 70ms linear both;
}

.intro__eyelid {
  display: none;
}

.intro__helmet-trace {
  fill: none;
  stroke: #ff8a52;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  vector-effect: non-scaling-stroke;
  filter: blur(4px) drop-shadow(0 0 0.65rem rgba(255, 90, 20, 0.3));
  will-change: opacity, stroke-dashoffset, filter;
}

.intro--cinematic.intro--playing .intro__helmet-trace {
  animation: hoplita-helmet-trace 1.02s 700ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

.intro__helmet {
  fill: url(#helmet-metal);
  opacity: 0;
  transform: scale(0.996);
  transform-box: fill-box;
  transform-origin: 50% 50%;
  filter: blur(9px) drop-shadow(0 0 0.72rem rgba(255, 90, 20, 0.08));
  will-change: opacity, transform, filter;
}

.intro--cinematic.intro--playing .intro__helmet {
  animation: hoplita-helmet 1.28s 890ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro__sweep {
  opacity: 0;
  transform: translateX(0);
  transform-box: fill-box;
  will-change: opacity, transform;
}

.intro--cinematic.intro--playing .intro__sweep {
  animation: hoplita-sweep 430ms 1.48s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.intro__word {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 2.65rem;
  margin-top: -0.5rem;
  opacity: 0;
  filter: blur(9px);
  transform: translateY(0.35rem) scale(0.992);
  transform-origin: 50% 50%;
  will-change: opacity, filter, transform;
}

.intro__word strong {
  display: block;
  color: rgba(244, 241, 234, 0.96);
  font-family: var(--display);
  font-size: clamp(0.96rem, 1.5vw, 1.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: clamp(0.42em, 1.12vw, 0.72em);
  white-space: nowrap;
}

.intro__word small {
  display: block;
  margin-top: 0.7rem;
  color: rgba(255, 90, 20, 0.78);
  font-family: var(--body);
  font-size: clamp(0.42rem, 0.66vw, 0.54rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: clamp(0.38em, 0.8vw, 0.56em);
  white-space: nowrap;
}

.intro--cinematic.intro--playing .intro__word {
  animation: hoplita-word-sequence 1.75s 790ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hoplita-eye-life {
  0% {
    opacity: 0;
    clip-path: polygon(7% 46%, 42% 43%, 50% 47%, 58% 43%, 93% 46%, 90% 49%, 58% 47%, 50% 49%, 42% 47%, 10% 49%);
    transform: translateY(0.08rem) scale(1.008);
    filter: brightness(0.55) saturate(0.76) contrast(1.2) drop-shadow(0 0 0 rgba(255, 90, 20, 0));
  }
  6% {
    opacity: 0.18;
    clip-path: polygon(7% 41%, 42% 36%, 50% 43%, 58% 36%, 93% 41%, 90% 54%, 58% 56%, 50% 51%, 42% 56%, 10% 54%);
  }
  13%,
  23% {
    opacity: 0.92;
    clip-path: polygon(7% 35%, 42% 28%, 50% 39%, 58% 28%, 93% 35%, 90% 58%, 58% 64%, 50% 53%, 42% 64%, 10% 58%);
    transform: translateY(0) scale(1);
    filter: brightness(0.96) saturate(0.84) contrast(1.2) drop-shadow(0 0 0.7rem rgba(255, 90, 20, 0.16));
  }
  26% {
    opacity: 0.84;
    clip-path: polygon(7% 41%, 42% 36%, 50% 43%, 58% 36%, 93% 41%, 90% 54%, 58% 56%, 50% 51%, 42% 56%, 10% 54%);
  }
  28% {
    opacity: 0.48;
    clip-path: polygon(7% 46%, 42% 43%, 50% 47%, 58% 43%, 93% 46%, 90% 49%, 58% 47%, 50% 49%, 42% 47%, 10% 49%);
  }
  31% {
    opacity: 0.82;
    clip-path: polygon(7% 40%, 42% 35%, 50% 42%, 58% 35%, 93% 40%, 90% 55%, 58% 57%, 50% 51%, 42% 57%, 10% 55%);
  }
  34%,
  72% {
    opacity: 0.94;
    clip-path: polygon(7% 35%, 42% 28%, 50% 39%, 58% 28%, 93% 35%, 90% 58%, 58% 64%, 50% 53%, 42% 64%, 10% 58%);
    transform: translateY(-0.02rem) scale(1.004);
  }
  78% {
    opacity: 0.82;
    clip-path: polygon(7% 39%, 42% 34%, 50% 42%, 58% 34%, 93% 39%, 90% 55%, 58% 57%, 50% 51%, 42% 57%, 10% 55%);
    transform: translateY(-0.01rem) scale(1.003);
  }
  82% {
    opacity: 0.64;
    clip-path: polygon(7% 44%, 42% 40.5%, 50% 45.5%, 58% 40.5%, 93% 44%, 90% 51.5%, 58% 51.5%, 50% 49.5%, 42% 51.5%, 10% 51.5%);
    transform: translateY(0.01rem) scaleY(0.72);
  }
  85% {
    opacity: 0.34;
    clip-path: polygon(7% 47.6%, 42% 47.2%, 50% 47.8%, 58% 47.2%, 93% 47.6%, 90% 48.4%, 58% 48.3%, 50% 48.2%, 42% 48.3%, 10% 48.4%);
    transform: translateY(0.02rem) scaleY(0.18);
    filter: brightness(0.48) saturate(0.72) contrast(1.35) drop-shadow(0 0 0.12rem rgba(255, 90, 20, 0.04));
  }
  87%,
  100% {
    opacity: 0;
    visibility: hidden;
    clip-path: polygon(7% 48%, 42% 48%, 50% 48%, 58% 48%, 93% 48%, 90% 48%, 58% 48%, 50% 48%, 42% 48%, 10% 48%);
    transform: translateY(0.02rem) scaleY(0.01);
    filter: brightness(0) drop-shadow(0 0 0 transparent);
  }
}

@keyframes hoplita-helmet-trace {
  0% {
    opacity: 0;
    stroke-dashoffset: 1;
    filter: blur(4px) drop-shadow(0 0 0.7rem rgba(255, 90, 20, 0.15));
  }
  18% {
    opacity: 0.44;
  }
  72% {
    opacity: 0.86;
    stroke-dashoffset: 0.08;
    filter: blur(0.35px) drop-shadow(0 0 0.62rem rgba(255, 90, 20, 0.38));
  }
  100% {
    opacity: 0;
    stroke-dashoffset: 0;
    filter: blur(0) drop-shadow(0 0 0.35rem rgba(255, 90, 20, 0.12));
  }
}

@keyframes hoplita-word-sequence {
  0% {
    opacity: 0;
    filter: blur(9px);
    transform: translateY(0.35rem) scale(0.992);
  }
  29% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
  76% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(-0.14rem) scale(0.998);
  }
}

@keyframes hoplita-helmet {
  0% {
    opacity: 0;
    transform: scale(0.996);
    filter: blur(9px) drop-shadow(0 0 0.75rem rgba(255, 90, 20, 0.04));
  }
  26% {
    opacity: 0.08;
    filter: blur(5px) drop-shadow(0 0 0.7rem rgba(255, 90, 20, 0.06));
  }
  68% {
    opacity: 0.62;
    transform: scale(1);
    filter: blur(0.35px) drop-shadow(0 0 0.52rem rgba(255, 90, 20, 0.12));
  }
  100% {
    opacity: 0.68;
    transform: scale(1.001);
    filter: blur(0.15px) drop-shadow(0 0 0.42rem rgba(255, 90, 20, 0.09));
  }
}

@keyframes hoplita-sweep {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  18% {
    opacity: 0.78;
  }
  74% {
    opacity: 0.42;
  }
  100% {
    opacity: 0;
    transform: translateX(620%);
  }
}

body[data-page="inicio"].intro-is-playing .site-header,
body[data-page="inicio"].intro-is-playing #contenido {
  opacity: 0.18;
  transform: translateY(1.05rem) scale(0.998);
}

body[data-page="inicio"].intro-is-complete .site-header {
  animation: hoplita-index-reveal 940ms 70ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body[data-page="inicio"].intro-is-complete #contenido {
  animation: hoplita-index-reveal 1020ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hoplita-index-reveal {
  0% {
    opacity: 0.18;
    transform: translateY(1.05rem) scale(0.998);
  }
  72% {
    opacity: 1;
    transform: translateY(-0.12rem) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Entrada ligera al recargar cuando la intro ya fue mostrada. */
body.page-is-entering:not(.intro-is-playing) #contenido,
body.page-is-entering:not(.intro-is-playing) .site-footer {
  opacity: 0;
  transform: translateY(0.9rem) scale(0.998);
}

body.page-is-entering.page-is-ready:not(.intro-is-playing) #contenido,
body.page-is-entering.page-is-ready:not(.intro-is-playing) .site-footer {
  animation: hoplita-page-arrival 840ms cubic-bezier(0.2, 0.9, 0.22, 1.08) both;
}

body.page-is-entering.page-is-ready:not(.intro-is-playing) #contenido {
  animation-duration: 940ms;
}

body.page-is-leaving #contenido,
body.page-is-leaving .site-footer {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-0.45rem);
  transition:
    opacity 360ms ease,
    transform 420ms cubic-bezier(0.76, 0, 0.24, 1);
}

@keyframes hoplita-page-arrival {
  0% {
    opacity: 0;
    transform: translateY(0.9rem) scale(0.998);
  }
  72% {
    opacity: 1;
    transform: translateY(-0.1rem) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .intro__stage {
    width: 94vw;
    min-height: 21rem;
  }

  .intro__mark {
    width: min(86vw, 20rem);
  }

  .intro__word {
    margin-top: -0.15rem;
  }

  .intro__word strong {
    font-size: clamp(0.88rem, 4vw, 1rem);
  }

  .intro__word small {
    font-size: 0.42rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro.intro--cinematic,
  .intro__stage {
    transition-duration: 20ms;
  }

  .intro__real-eyes,
  .intro__helmet-trace,
  .intro__helmet,
  .intro__word {
    opacity: 1;
    clip-path: none;
    filter: none;
    transform: none;
    animation: none !important;
  }

  .intro__eyelid {
    display: none;
  }

  .intro__sweep {
    display: none;
  }

  body.page-is-entering,
  body.page-is-ready,
  body.page-is-leaving {
    animation: none;
    transition: none;
  }
}

.eyebrow {
  margin-bottom: 1.1rem;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.4rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid rgba(244, 241, 234, 0.28);
  border-radius: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-align: center;
  text-transform: uppercase;
  transition: color 230ms ease, background 230ms ease, border-color 230ms ease, transform 230ms ease;
}

.button:hover {
  border-color: var(--paper);
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-2px);
}

.button--orange {
  border-color: var(--orange);
  color: var(--ink);
  background: var(--orange);
}

.button--orange:hover {
  border-color: var(--orange-bright);
  background: var(--orange-bright);
  box-shadow: 0 0.8rem 2.4rem rgba(255, 90, 20, 0.18);
}

.text-link {
  display: inline-flex;
  padding-bottom: 0.32rem;
  border-bottom: 1px solid currentColor;
  color: var(--orange);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.text-link:hover {
  color: var(--paper);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(28rem, 1.08fr);
  min-height: 100svh;
  padding: calc(var(--header-height) + clamp(2rem, 6vh, 5rem)) var(--gutter) clamp(2.5rem, 7vh, 5rem);
  overflow: hidden;
  background: #050505;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(90deg, black, transparent 75%);
}

.hero::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 25%;
  background: linear-gradient(transparent, rgba(244, 241, 234, 0.3));
  content: "";
}

.hero__copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 46rem;
}

.glass {
  padding: clamp(1.2rem, 3.4vw, 3.4rem);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014));
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3.8rem, 7.3vw, 8.2rem);
}

.hero h1 span {
  display: block;
}

.hero h1 span:nth-child(2) {
  color: var(--orange);
}

.hero__lead {
  max-width: 39rem;
  margin-bottom: 2.2rem;
  color: rgba(244, 241, 234, 0.64);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero__visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 40rem;
}

.eclipse {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  display: grid;
  place-items: center;
  width: min(12.5vw, 12.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  perspective: 900px;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1.06);
  transition: transform 180ms ease-out;
}

.eclipse::before,
.eclipse::after {
  display: none;
  position: absolute;
  border: 1px solid rgba(244, 241, 234, 0.12);
  border-radius: 50%;
  content: "";
}

.eclipse::before {
  inset: 1%;
}

.eclipse::after {
  inset: 12%;
  border-style: dashed;
}

.eclipse__disc {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 90%;
  aspect-ratio: 1;
  overflow: visible;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, #121212, #050505 62%, #020202);
  box-shadow:
    0 0 0.65rem rgba(255, 90, 20, 0.85),
    0 0 2.4rem rgba(255, 90, 20, 0.3),
    inset 0 0 2.2rem rgba(0, 0, 0, 0.9);
  scale: 1.1475;
}

.eclipse__disc img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity 300ms ease, transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.eclipse__mark {
  z-index: 1;
  opacity: 1;
  animation: helmet-float-pulse 3.2s ease-in-out infinite;
}

.helmet-crest,
.helmet-shell {
  fill: #d8d2c8;
}

.helmet-cut {
  fill: #050505;
}

.eclipse b {
  position: absolute;
  z-index: 7;
  top: var(--cursor-y, 50%);
  left: var(--cursor-x, 50%);
  width: max-content;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(244, 241, 234, 0.3);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(5, 5, 5, 0.8);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.82);
  translate: -50% -50%;
  transition: opacity 240ms ease, transform 240ms ease, color 240ms ease, background 240ms ease;
}

.eclipse:hover b {
  color: var(--ink);
  background: var(--orange);
  opacity: 1;
  transform: scale(1);
}

@media (pointer: fine) {
  .eclipse,
  .eclipse * {
    cursor: none;
  }
}

.eclipse:hover .eclipse__mark {
  opacity: 0.2;
}

.orbit {
  position: absolute;
  z-index: 4;
  width: min(80vw, 37.5rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 90, 20, 0.78);
  border-radius: 50%;
  box-shadow: none;
}

.orbit--outer {
  animation: orbit-spin-clockwise 32s linear infinite;
}

.orbit--inner {
  width: min(50vw, 23rem);
  border-style: dashed;
  animation: orbit-spin-counterclockwise 21s linear infinite;
}

.orbit--outer .orbit__label {
  animation: orbit-label-counter-clockwise 32s linear infinite;
}

.orbit--inner .orbit__label {
  animation: orbit-label-clockwise 21s linear infinite;
}

.orbit > span {
  position: absolute;
  width: 0;
  height: 0;
  transform-origin: center;
}

.orbit__label {
  display: block;
  width: max-content;
  padding: 0.52em 0.78em;
  border: 1px solid rgba(244, 241, 234, 0.18);
  color: rgba(244, 241, 234, 0.82);
  background: rgba(8, 8, 8, 0.94);
  box-shadow: 0 0.35rem 0.85rem rgba(0, 0, 0, 0.5);
  clip-path: polygon(
    0.42rem 0,
    100% 0,
    100% calc(100% - 0.42rem),
    calc(100% - 0.42rem) 100%,
    0 100%,
    0 0.42rem
  );
  font-family: var(--display);
  font-size: clamp(0.6rem, 0.72vw, 0.76rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    scale 180ms ease;
}

.orbit--outer .orbit__label {
  border-color: rgba(255, 90, 20, 0.52);
  color: var(--paper);
  background: linear-gradient(135deg, rgba(255, 90, 20, 0.14), rgba(8, 8, 8, 0.97) 55%);
  font-size: clamp(0.64rem, 0.78vw, 0.8rem);
}

.orbit--outer .orbit__label::before {
  margin-right: 0.62em;
  color: var(--orange);
  font-size: 0.52em;
  content: "◆";
  vertical-align: 0.16em;
}

.orbit--inner .orbit__label::before,
.orbit--inner .orbit__label::after {
  color: var(--orange);
}

.orbit--inner .orbit__label::before {
  margin-right: 0.32em;
  content: "[";
}

.orbit--inner .orbit__label::after {
  margin-left: 0.32em;
  content: "]";
}

.orbit__label:hover {
  border-color: var(--orange);
  color: #fff;
  background: #17110e;
  box-shadow:
    0 0 0 1px rgba(255, 90, 20, 0.2),
    0 0 1.1rem rgba(255, 90, 20, 0.2),
    0 0.45rem 1rem rgba(0, 0, 0, 0.6);
  scale: 1.08;
}

.orbit:has(.orbit__label:hover),
.orbit:has(.orbit__label:hover) .orbit__label {
  animation-play-state: paused;
}

.orbit > span:nth-child(1) {
  --label-angle: 0deg;
  top: 0;
  left: 50%;
  transform: rotate(var(--label-angle));
}

.orbit > span:nth-child(2) {
  --label-angle: 45deg;
  top: 14.645%;
  left: 85.355%;
  transform: rotate(var(--label-angle));
}

.orbit > span:nth-child(3) {
  --label-angle: 90deg;
  top: 50%;
  left: 100%;
  transform: rotate(var(--label-angle));
}

.orbit > span:nth-child(4) {
  --label-angle: 135deg;
  top: 85.355%;
  left: 85.355%;
  transform: rotate(var(--label-angle));
}

.orbit > span:nth-child(5) {
  --label-angle: 180deg;
  top: 100%;
  left: 50%;
  transform: rotate(var(--label-angle));
}

.orbit > span:nth-child(6) {
  --label-angle: 225deg;
  top: 85.355%;
  left: 14.645%;
  transform: rotate(var(--label-angle));
}

.orbit > span:nth-child(7) {
  --label-angle: 270deg;
  top: 50%;
  left: 0;
  transform: rotate(var(--label-angle));
}

.orbit > span:nth-child(8) {
  --label-angle: 315deg;
  top: 14.645%;
  left: 14.645%;
  transform: rotate(var(--label-angle));
}

@keyframes orbit-spin-clockwise {
  to { transform: rotate(360deg); }
}

@keyframes orbit-spin-counterclockwise {
  to { transform: rotate(-360deg); }
}

@keyframes orbit-label-counter-clockwise {
  from {
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--label-angle)));
  }

  to {
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--label-angle) - 360deg));
  }
}

@keyframes orbit-label-clockwise {
  from {
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--label-angle)));
  }

  to {
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--label-angle) + 360deg));
  }
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes helmet-float-pulse {
  0%,
  100% {
    transform: translateY(2.5%) scale(1.204);
  }

  50% {
    transform: translateY(-3.5%) scale(1.288);
  }
}

@keyframes corona-pulse {
  50% {
    box-shadow:
      0 0 1.8rem rgba(255, 90, 20, 1),
      0 0 6.5rem rgba(255, 90, 20, 0.65),
      0 0 12rem rgba(255, 90, 20, 0.34);
  }
}

.manifesto {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(5rem, 11vw, 10rem) var(--gutter);
  color: var(--ink);
  background: var(--paper);
}

.manifesto p {
  max-width: 70rem;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6.5vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.manifesto > small {
  grid-column: 2;
  color: rgba(5, 5, 5, 0.45);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.spear-symbol {
  position: relative;
  width: 3.5rem;
  height: 19rem;
}

.spear-symbol::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1.1rem;
  height: 2.6rem;
  background: var(--orange);
  clip-path: polygon(50% 0, 100% 76%, 58% 100%, 42% 100%, 0 76%);
  content: "";
  transform: translateX(-50%);
}

.spear-symbol i {
  position: absolute;
  top: 2.35rem;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(var(--orange), currentColor);
  transform: translateX(-50%);
}

.section {
  position: relative;
  padding: clamp(5.5rem, 9vw, 10rem) var(--gutter);
}

.section--raised {
  background: var(--ink-soft);
}

.section-heading {
  max-width: 68rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.section-heading h2 {
  max-width: 58rem;
  margin-bottom: 1.4rem;
  font-size: clamp(3.2rem, 7vw, 7.8rem);
}

.section-heading > p:last-child:not(.eyebrow),
.section-heading > div > p:last-child:not(.eyebrow) {
  max-width: 43rem;
  color: rgba(244, 241, 234, 0.58);
  font-size: clamp(0.98rem, 1.5vw, 1.18rem);
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.6fr);
  align-items: end;
  max-width: none;
  gap: 4rem;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 32rem;
  padding: clamp(1.25rem, 2.5vw, 2.3rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: color 350ms ease, background 350ms ease, transform 350ms ease;
}

.service-card:hover {
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-0.5rem);
}

.service-card__top {
  display: flex;
  justify-content: space-between;
  color: rgba(244, 241, 234, 0.4);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.service-card:hover .service-card__top {
  color: rgba(5, 5, 5, 0.5);
}

.service-icon {
  color: var(--orange);
  font-family: monospace;
  font-size: 1.4rem;
}

.service-card h3 {
  margin: auto 0 1.5rem;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
}

.service-card p {
  min-height: 7rem;
  margin-bottom: 1.8rem;
  color: rgba(244, 241, 234, 0.57);
}

.service-card:hover p {
  color: rgba(5, 5, 5, 0.68);
}

.service-card ul {
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-card:hover ul {
  border-color: var(--line-dark);
}

.service-card li {
  position: relative;
  padding: 0.38rem 0 0.38rem 1rem;
  font-size: 0.75rem;
}

.service-card li::before {
  position: absolute;
  top: 0.77rem;
  left: 0;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

/* ==========================================================================
   TRABAJO SELECCIONADO — PROYECTOS EN CAMPO
   ========================================================================== */
.work-showcase {
  --work-accent-rgb: 255, 90, 20;
  overflow: clip;
}

.work-showcase__intro {
  align-self: end;
  max-width: 35rem;
}

.work-showcase__intro p {
  margin-bottom: 1.35rem;
}

.work-spectrum {
  position: relative;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: rgba(244, 241, 234, 0.42);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
}

.work-spectrum__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: work-spectrum-marquee 32s linear infinite;
}

.work-spectrum__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.6rem);
  padding: 1rem clamp(1.25rem, 3vw, 2.6rem);
  white-space: nowrap;
}

.work-spectrum span {
  flex: none;
}

.work-spectrum i {
  flex: none;
  width: 0.34rem;
  height: 0.34rem;
  border: 1px solid var(--orange);
  transform: rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
  .work-spectrum:hover .work-spectrum__track {
    animation-play-state: paused;
  }
}

@keyframes work-spectrum-marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.case-stack {
  display: grid;
}

.case-panel {
  --project-accent-rgb: var(--work-accent-rgb);
  position: sticky;
  top: calc(var(--header-height) + 1.2rem);
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(30rem, 1.16fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 6.5rem);
  min-height: calc(100vh - var(--header-height) - 2.4rem);
  padding: clamp(2rem, 4vw, 4.5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(55rem 28rem at 82% 42%, rgba(255, 90, 20, 0.055), transparent 62%),
    #080808;
  box-shadow: 0 -2.5rem 6rem rgba(0, 0, 0, 0.58);
}

.work-case--radio {
  --project-accent-rgb: 222, 31, 43;
}

.work-case--isic {
  --project-accent-rgb: 35, 198, 207;
}

.work-case--gcp {
  --project-accent-rgb: 255, 0, 145;
}

.case-panel::before {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 20, 0.78) 24%, rgba(255, 255, 255, 0.2) 50%, transparent 82%);
  content: "";
  opacity: 0.5;
}

.case-panel + .case-panel {
  z-index: 2;
  margin-top: 5rem;
}

.case-panel--alt {
  background:
    radial-gradient(52rem 30rem at 84% 48%, rgba(255, 90, 20, 0.075), transparent 65%),
    #0a0a0a;
}

.case-panel__content {
  position: relative;
  z-index: 3;
}

.work-case__identity,
.work-case__links {
  display: flex;
  align-items: center;
}

.work-case__identity {
  gap: 1rem;
  min-height: 4rem;
  margin-bottom: 1.45rem;
}

.work-case__identity small {
  color: rgba(244, 241, 234, 0.36);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
}

.work-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.65rem;
  height: 3.65rem;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 234, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 0 0 rgba(var(--project-accent-rgb), 0);
  transform: translateZ(0);
  transition:
    border-color 420ms ease,
    box-shadow 520ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-logo img {
  position: absolute;
  z-index: 2;
  inset: 8%;
  width: 84%;
  height: 84%;
  border-radius: 50%;
  background: #090909;
  object-fit: contain;
  transform: translateZ(0);
  transform-origin: 50% 50%;
  transition:
    filter 520ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-logo__fallback {
  color: var(--orange);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.work-logo--radio::after,
.work-logo--isic::after,
.work-logo--gcp::after {
  position: absolute;
  z-index: 3;
  content: "";
  pointer-events: none;
}

.work-logo--radio::after {
  inset: 0.28rem;
  border: 1px solid rgba(255, 90, 20, 0.25);
  border-radius: 50%;
}

.work-logo--isic {
  border-color: rgba(35, 198, 207, 0.2);
  background: rgba(35, 198, 207, 0.045);
}

.work-logo--gcp {
  border-color: rgba(255, 0, 145, 0.48);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 0, 145, 0.94), rgba(88, 0, 111, 0.88) 64%, rgba(0, 218, 255, 0.7));
  box-shadow: 0 0 2.2rem rgba(255, 0, 145, 0.14);
}

.work-logo--gcp::after {
  inset: -45%;
  background: conic-gradient(
    from 0deg,
    transparent 0 34%,
    rgba(0, 218, 255, 0.7) 43%,
    rgba(255, 255, 255, 0.86) 49%,
    rgba(255, 0, 145, 0.78) 56%,
    transparent 66% 100%
  );
  opacity: 0.48;
  animation: work-gcp-orbit 5.4s linear infinite;
}

.work-logo--gcp img {
  z-index: 4;
  inset: 8%;
  width: 84%;
  height: 84%;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 0 0.65rem rgba(255, 0, 145, 0.45));
  object-fit: cover;
  opacity: 0;
  animation: work-gcp-float 3.8s ease-in-out infinite;
}

.work-logo--gcp img.is-loaded {
  opacity: 1;
}

.work-logo--gcp .work-logo__fallback {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.work-logo--isic::after {
  top: -25%;
  bottom: -25%;
  left: -45%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.44), transparent);
  transform: skewX(-18deg);
}

.case-panel__content h3 {
  margin-bottom: 1.35rem;
  overflow: hidden;
  font-size: clamp(2.6rem, 5vw, 5.3rem);
}

.case-panel__content h3 > span {
  display: block;
}

.case-panel__content > p {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: rgba(244, 241, 234, 0.61);
}

.case-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 0 0 2.2rem;
  padding: 0;
  list-style: none;
}

.case-panel__meta li {
  position: relative;
  padding-left: 1rem;
  color: rgba(244, 241, 234, 0.52);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-panel__meta li::before {
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.work-case__links {
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
}

.text-link--quiet {
  color: rgba(244, 241, 234, 0.48);
}

.case-panel__stage {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 1.3rem;
  min-height: 31rem;
}

.case-panel__stage--hybrid {
  grid-template-columns: minmax(0, 1fr) clamp(7.5rem, 9vw, 9.5rem);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "browser mobile"
    "navigation mobile";
  column-gap: clamp(1rem, 2vw, 1.7rem);
}

.case-panel__stage--hybrid > .work-viewer--browser {
  grid-area: browser;
  width: 100%;
}

.case-panel__stage--hybrid > .work-shot-nav {
  grid-area: navigation;
}

.case-panel__stage::before {
  position: absolute;
  z-index: 0;
  width: min(38rem, 92%);
  aspect-ratio: 1.35;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(var(--project-accent-rgb), 0.18),
    rgba(var(--project-accent-rgb), 0.05) 42%,
    transparent 72%
  );
  filter: blur(18px);
  content: "";
  pointer-events: none;
}

.case-panel__index {
  display: none;
}

/* Los índices gigantes competían con las marcas y se eliminan en ambos casos. */

.work-viewer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 234, 0.14);
  background: #090909;
  box-shadow:
    0 2.6rem 5rem rgba(0, 0, 0, 0.58),
    0 0 4rem rgba(255, 90, 20, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transform:
    perspective(1200px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    skewY(var(--warp, 0deg));
  transition:
    border-color 450ms ease,
    box-shadow 450ms ease,
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-viewer[href] {
  cursor: pointer;
}

.work-viewer[href]::after {
  position: absolute;
  z-index: 8;
  right: 0.7rem;
  bottom: 0.7rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(244, 241, 234, 0.34);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(5, 5, 5, 0.78);
  box-shadow: 0 0.55rem 1.4rem rgba(0, 0, 0, 0.32);
  content: "\2197\FE0E";
  font-size: 0.82rem;
  line-height: 1;
  opacity: 0.78;
  pointer-events: none;
  transform: translateZ(0);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-viewer[href]:hover::after,
.work-viewer[href]:focus-visible::after {
  border-color: var(--orange);
  color: var(--ink);
  background: var(--orange);
  opacity: 1;
  transform: translate(0.12rem, -0.12rem);
}

.work-viewer[href]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 0.3rem;
}

.work-viewer--browser {
  width: min(100%, 650px);
  aspect-ratio: 16 / 10;
  border-radius: 0.65rem;
}

.work-viewer--phone {
  width: min(62%, 310px);
  aspect-ratio: 9 / 17.6;
  padding: 0.5rem;
  border-radius: 2.15rem;
}

.work-viewer__browser-bar,
.work-viewer__phone-bar,
.work-viewer__caption {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  flex: none;
}

.work-viewer__browser-bar {
  gap: 0.75rem;
  height: 2.35rem;
  padding: 0 0.8rem;
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
}

.work-viewer__browser-bar > span {
  display: flex;
  gap: 0.32rem;
}

.work-viewer__browser-bar i {
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(244, 241, 234, 0.16);
}

.work-viewer__browser-bar i:first-child {
  background: rgba(255, 90, 20, 0.72);
}

.work-viewer__browser-bar em {
  flex: 1;
  max-width: 72%;
  padding: 0.24rem 0.8rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(244, 241, 234, 0.31);
  font-size: 0.54rem;
  font-style: normal;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-viewer__phone-bar {
  justify-content: space-between;
  min-height: 1.75rem;
  padding: 0 0.65rem;
  color: rgba(244, 241, 234, 0.48);
  font-size: 0.48rem;
}

.work-viewer__phone-bar i {
  position: absolute;
  top: 0.28rem;
  left: 50%;
  width: 3.6rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #161616;
  transform: translateX(-50%);
}

.work-viewer__phone-bar em {
  font-style: normal;
  letter-spacing: 0.08em;
}

.work-viewer__screen {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 90, 20, 0.06), transparent 42%),
    #0d0d0d;
}

.work-viewer--phone .work-viewer__screen {
  border-radius: 1.35rem;
}

.work-shot {
  position: absolute;
  z-index: 1;
  inset: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.7rem) scale(1.025);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 950ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-shot.is-active {
  z-index: 2;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.work-shot__placeholder {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.45rem;
  background:
    linear-gradient(135deg, rgba(255, 90, 20, 0.11), transparent 48%),
    repeating-linear-gradient(135deg, #111 0 1px, #0b0b0b 1px 12px);
  color: rgba(244, 241, 234, 0.36);
  text-align: center;
  transition: opacity 350ms ease;
}

.work-shot__placeholder small {
  color: var(--orange);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
}

.work-shot__placeholder strong {
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  letter-spacing: 0.18em;
}

.work-shot img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  filter: brightness(0.88) saturate(0.9) contrast(1.02);
  transform: scale(1.012);
  transition:
    opacity 420ms ease,
    filter 650ms ease,
    transform 6.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/*
 * Las capturas de perfil y cuadrícula de ISIC son más cortas
 * que la pantalla del mockup. Se muestran completas para no
 * cortar el avatar, las estadísticas ni las publicaciones.
 */
.work-case--isic .work-shot:nth-child(1) img,
.work-case--isic .work-shot:nth-child(2) img {
  object-fit: contain;
  object-position: center;
  background: #090c12;
}

.work-case--isic .work-shot:nth-child(3) img {
  object-fit: cover;
  object-position: top center;
  background: #090c12;
}

.work-shot.is-loaded img {
  opacity: 1;
}

.work-shot.is-loaded .work-shot__placeholder {
  opacity: 0;
}

.work-shot.is-active.is-loaded img {
  transform: scale(1.04) translateY(-0.65%);
}

.work-viewer__reflection {
  position: absolute;
  z-index: 3;
  inset: -30%;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, 0.06) 48%, transparent 58%);
  pointer-events: none;
  transform: translateX(-42%);
  transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-viewer__caption {
  gap: 0.42rem;
  min-height: 2.35rem;
  padding: 0 0.8rem;
  border-top: 1px solid rgba(244, 241, 234, 0.07);
  color: var(--orange);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.work-viewer__caption small {
  color: rgba(244, 241, 234, 0.24);
}

.work-viewer__caption em {
  margin-left: auto;
  color: rgba(244, 241, 234, 0.42);
  font-style: normal;
  text-transform: uppercase;
}

.work-shot-nav {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 0.5rem;
}

.work-shot-nav button {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(244, 241, 234, 0.15);
  border-radius: 50%;
  color: rgba(244, 241, 234, 0.4);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  font-size: 0.54rem;
  transition:
    color 260ms ease,
    border-color 260ms ease,
    background 260ms ease,
    transform 260ms ease;
}

.work-shot-nav button:hover,
.work-shot-nav button:focus-visible,
.work-shot-nav button.is-active {
  border-color: rgba(var(--project-accent-rgb), 0.92);
  color: var(--paper);
  background: rgba(var(--project-accent-rgb), 0.14);
  transform: translateY(-0.16rem);
}

.rf-mobile-demo {
  position: relative;
  z-index: 5;
  width: clamp(7.4rem, 9vw, 9.4rem);
  margin: 0;
}

.rf-mobile-demo--featured {
  grid-area: mobile;
  align-self: center;
  justify-self: center;
}

.rf-mobile-demo__shell {
  position: relative;
  padding: 0.42rem;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 234, 0.16);
  border-radius: 1.72rem;
  background: #090909;
  box-shadow:
    0 1.7rem 4rem rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rf-mobile-demo__notch {
  position: absolute;
  z-index: 3;
  top: 0.58rem;
  left: 50%;
  width: 30%;
  height: 0.3rem;
  border-radius: 999px;
  background: #050505;
  transform: translateX(-50%);
}

.rf-mobile-demo video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 1.34rem;
  background: #050505;
  object-fit: cover;
  object-position: center top;
}

.rf-mobile-demo figcaption {
  width: max-content;
  max-width: 100%;
  margin: 0.8rem auto 0;
  padding: 0.4rem 0.58rem;
  border: 1px solid rgba(255, 90, 20, 0.2);
  border-radius: 999px;
  color: rgba(244, 241, 234, 0.82);
  background: rgba(5, 5, 5, 0.84);
  font-size: 0.48rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.work-case:hover .work-viewer,
.work-case:focus-within .work-viewer {
  border-color: rgba(var(--project-accent-rgb), 0.42);
  box-shadow:
    0 2.8rem 6rem rgba(0, 0, 0, 0.64),
    0 0 4.5rem rgba(var(--project-accent-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.work-case:hover .work-viewer__reflection,
.work-case:focus-within .work-viewer__reflection {
  transform: translateX(42%);
}

.work-case--radio:hover .work-logo--radio,
.work-case--radio:focus-within .work-logo--radio,
.work-case--isic:hover .work-logo--isic,
.work-case--isic:focus-within .work-logo--isic,
.work-case--gcp:hover .work-logo--gcp,
.work-case--gcp:focus-within .work-logo--gcp {
  border-color: rgba(var(--project-accent-rgb), 0.48);
  box-shadow:
    0 0 0 0.38rem rgba(var(--project-accent-rgb), 0.07),
    0 0 1.8rem rgba(var(--project-accent-rgb), 0.18);
  transform: translateY(-0.08rem) scale(1.035);
}

.work-case--radio:hover .work-logo--radio img,
.work-case--radio:focus-within .work-logo--radio img {
  animation: work-radio-spin 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.work-case--isic:hover .work-logo--isic::after,
.work-case--isic:focus-within .work-logo--isic::after {
  animation: work-isic-shine 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.work-case--isic:hover .work-logo--isic img,
.work-case--isic:focus-within .work-logo--isic img {
  animation: work-isic-breathe 1.4s ease-in-out both;
}

.work-case--gcp:hover .work-logo--gcp img,
.work-case--gcp:focus-within .work-logo--gcp img {
  animation: work-gcp-signal 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.js-ready .case-panel__content h3 > span {
  transform: translateY(115%);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 90ms;
}

.js-ready .case-panel.is-visible .case-panel__content h3 > span {
  transform: translateY(0);
}

.js-ready .case-panel__meta li {
  opacity: 0;
  transform: translateY(0.65rem);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.js-ready .case-panel.is-visible .case-panel__meta li {
  opacity: 1;
  transform: none;
}

.js-ready .case-panel.is-visible .case-panel__meta li:nth-child(1) {
  transition-delay: 360ms;
}

.js-ready .case-panel.is-visible .case-panel__meta li:nth-child(2) {
  transition-delay: 450ms;
}

.js-ready .case-panel.is-visible .case-panel__meta li:nth-child(3) {
  transition-delay: 540ms;
}

@keyframes work-radio-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  68% {
    transform: rotate(372deg) scale(1.06);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes work-isic-shine {
  from {
    transform: translateX(0) skewX(-18deg);
  }
  to {
    transform: translateX(620%) skewX(-18deg);
  }
}

@keyframes work-isic-breathe {
  0%,
  100% {
    filter: brightness(1) saturate(1);
    transform: scale(1);
  }

  52% {
    filter: brightness(1.08) saturate(1.08);
    transform: scale(1.045);
  }
}

@keyframes work-gcp-orbit {
  to {
    transform: rotate(1turn);
  }
}

@keyframes work-gcp-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-0.08rem) scale(1.025);
  }
}

@keyframes work-gcp-signal {
  0% {
    filter: drop-shadow(0 0 0.3rem rgba(255, 0, 145, 0.28));
    transform: scale(1);
  }

  48% {
    filter:
      brightness(1.12)
      drop-shadow(0 0 0.9rem rgba(0, 218, 255, 0.68));
    transform: scale(1.08) rotate(-1.5deg);
  }

  100% {
    filter: drop-shadow(0 0 0.68rem rgba(255, 0, 145, 0.5));
    transform: scale(1);
  }
}

.team {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.team-card__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 90, 20, 0.1), transparent 50%),
    repeating-linear-gradient(135deg, #111 0 1px, #0a0a0a 1px 10px);
  transition: border-color 300ms ease, background 300ms ease;
}

.team-card:hover .team-card__photo {
  border-color: var(--orange);
  background:
    linear-gradient(160deg, rgba(255, 90, 20, 0.25), transparent 60%),
    repeating-linear-gradient(135deg, #111 0 1px, #0a0a0a 1px 10px);
}

.team-card__photo i {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--orange);
  font-size: 0.62rem;
  font-style: normal;
}

.team-card h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.035em;
}

.team-card p {
  color: rgba(244, 241, 234, 0.48);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-cta,
.inner-cta,
.next-mission {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 34rem;
  padding: clamp(4rem, 9vw, 9rem) var(--gutter);
  gap: clamp(2rem, 6vw, 7rem);
  overflow: hidden;
  color: var(--ink);
  background: var(--orange);
}

.contact-cta__symbol {
  color: var(--ink);
  font-size: clamp(5rem, 10vw, 10rem);
  line-height: 1;
  opacity: 0.78;
  filter: drop-shadow(0 0.35rem 0 rgba(0, 0, 0, 0.12));
}

.contact-cta .eyebrow,
.inner-cta .eyebrow {
  color: var(--ink);
}

.contact-cta h2,
.inner-cta h2,
.next-mission h2 {
  max-width: 55rem;
  margin-bottom: 1rem;
  font-size: clamp(3.4rem, 7.5vw, 8rem);
}

.contact-cta p:last-child,
.inner-cta p:last-child {
  max-width: 41rem;
}

.contact-cta .button--orange,
.inner-cta .button--orange {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.contact-cta .button--orange:hover,
.inner-cta .button--orange:hover {
  color: var(--ink);
  background: var(--paper);
}

.inner-page {
  padding-top: var(--header-height);
}

.inner-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.6fr);
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: clamp(4rem, 9vw, 9rem) var(--gutter);
  gap: 4rem;
  overflow: hidden;
  background: var(--ink);
}

.inner-hero article {
  position: relative;
  z-index: 2;
  max-width: 70rem;
}

.inner-hero h1 {
  max-width: 63rem;
  margin-bottom: 1.7rem;
  font-size: clamp(4.2rem, 9vw, 10rem);
}

.inner-hero article > p:last-child {
  max-width: 43rem;
  color: rgba(244, 241, 234, 0.58);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.inner-hero--stars {
  background:
    radial-gradient(circle at 76% 42%, rgba(255, 90, 20, 0.12), transparent 23rem),
    #050505;
}

.constellations {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 37% 68%, rgba(255, 255, 255, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 59% 23%, rgba(255, 90, 20, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 78%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 91% 31%, rgba(255, 255, 255, 0.65) 0 1px, transparent 2px);
  background-size: 13rem 12rem, 17rem 15rem, 19rem 16rem, 21rem 18rem, 15rem 14rem;
  opacity: 0.55;
  animation: star-drift 35s linear infinite;
}

.constellations::before,
.constellations::after {
  position: absolute;
  right: 6%;
  width: 35%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  content: "";
  transform-origin: right center;
}

.constellations::before {
  top: 27%;
  transform: rotate(26deg);
}

.constellations::after {
  top: 62%;
  transform: rotate(-18deg);
}

@keyframes star-drift {
  to {
    background-position: 13rem 5rem, -17rem 7rem, 19rem -3rem, -21rem 4rem, 15rem -8rem;
  }
}

.legacy-seal {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(29vw, 25rem);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid rgba(244, 241, 234, 0.28);
  border-radius: 50%;
}

.legacy-seal::before,
.legacy-seal::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.legacy-seal::before {
  inset: 12%;
  border: 1px dashed rgba(255, 90, 20, 0.65);
  animation: orbit-spin 20s linear infinite;
}

.legacy-seal::after {
  inset: 29%;
  background: var(--orange);
  box-shadow: 0 0 4rem rgba(255, 90, 20, 0.45);
}

.legacy-seal span {
  position: relative;
  z-index: 2;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 700;
}

.about-manifesto {
  position: relative;
  padding: clamp(6rem, 10vw, 10rem) var(--gutter) clamp(4.5rem, 8vw, 7rem);
  overflow: hidden;
  border-top: 1px solid rgba(5, 5, 5, 0.14);
  border-bottom: 1px solid rgba(5, 5, 5, 0.14);
  color: var(--ink);
  background: var(--paper);
}

.about-manifesto::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--gutter);
  width: 1px;
  background: rgba(255, 90, 20, 0.34);
  content: "";
  pointer-events: none;
}

.about-manifesto__body {
  width: min(100%, 88rem);
  margin: 0 auto;
}

.about-manifesto__statement {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 7vw, 7rem);
  margin: 0;
  font-family: var(--display);
}

.about-manifesto__line {
  display: block;
  width: 100%;
  max-width: 19ch;
  min-width: 0;
  font-size: clamp(2.75rem, 4.6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.052em;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: pretty;
}

.about-manifesto__line--identity {
  align-self: flex-start;
}

.about-manifesto__line--action {
  align-self: flex-end;
  max-width: 17ch;
}

.about-manifesto__purpose {
  display: grid;
  grid-template-columns: minmax(12rem, 0.34fr) minmax(0, 1fr);
  align-items: end;
  padding-top: clamp(1.5rem, 2.5vw, 2.5rem);
  gap: clamp(2rem, 5vw, 6rem);
  border-top: 1px solid rgba(5, 5, 5, 0.2);
}

.about-manifesto__purpose-intro {
  max-width: 18rem;
  margin: 0;
  padding-bottom: clamp(0.6rem, 1vw, 1rem);
  color: rgba(5, 5, 5, 0.58);
  font-family: var(--display);
  font-size: clamp(0.88rem, 1.15vw, 1.2rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.about-manifesto__purpose strong {
  display: block;
  color: var(--orange);
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.065em;
  white-space: normal;
  text-wrap: balance;
}

.about-manifesto__footer {
  display: grid;
  grid-template-columns: minmax(3rem, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(4rem, 7vw, 7rem);
}

.about-manifesto__footer > span {
  height: 1px;
  background: linear-gradient(90deg, var(--orange), rgba(5, 5, 5, 0.16));
}

.about-manifesto__footer blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.7vw, 3.15rem);
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.js-ready .about-manifesto .about-manifesto__line,
.js-ready .about-manifesto .about-manifesto__purpose-intro,
.js-ready .about-manifesto .about-manifesto__purpose strong,
.js-ready .about-manifesto .about-manifesto__footer {
  opacity: 0;
  transform: translateY(2rem);
}

.js-ready .about-manifesto.is-visible .about-manifesto__line,
.js-ready .about-manifesto.is-visible .about-manifesto__purpose-intro,
.js-ready .about-manifesto.is-visible .about-manifesto__purpose strong,
.js-ready .about-manifesto.is-visible .about-manifesto__footer {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 720ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js-ready .about-manifesto.is-visible .about-manifesto__line--action {
  transition-delay: 100ms;
}

.js-ready .about-manifesto.is-visible .about-manifesto__purpose-intro,
.js-ready .about-manifesto.is-visible .about-manifesto__purpose strong {
  transition-delay: 190ms;
}

.js-ready .about-manifesto.is-visible .about-manifesto__footer {
  transition-delay: 280ms;
}

.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.values article {
  min-height: 22rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  border-right: 1px solid var(--line);
}

.values article:last-child {
  border-right: 0;
}

.values span {
  color: var(--orange);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
}

.values h3 {
  margin: 7rem 0 1rem;
  font-size: clamp(2rem, 3.8vw, 4rem);
}

.values p {
  color: rgba(244, 241, 234, 0.55);
}

.inner-cta {
  grid-template-columns: minmax(0, 1fr) auto;
}

.inner-cta .constellations {
  opacity: 0.15;
}

.inner-cta > *:not(.constellations) {
  position: relative;
  z-index: 2;
}

.inner-hero--work {
  background:
    linear-gradient(120deg, transparent 55%, rgba(255, 90, 20, 0.07));
}

.work-spear {
  position: absolute;
  top: -12%;
  right: 17%;
  width: 2px;
  height: 128%;
  background: linear-gradient(transparent, var(--orange) 18%, var(--orange) 82%, transparent);
  transform: rotate(18deg);
  box-shadow: 0 0 3rem rgba(255, 90, 20, 0.3);
}

.work-spear::before {
  position: absolute;
  top: 6%;
  left: 50%;
  width: 3rem;
  height: 6rem;
  background: var(--orange);
  clip-path: polygon(50% 0, 100% 78%, 55% 100%, 45% 100%, 0 78%);
  content: "";
  transform: translateX(-50%);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.75fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
}

.project--reverse {
  grid-template-columns: minmax(22rem, 0.75fr) minmax(0, 1.15fr);
}

.project--reverse .project__visual {
  order: 2;
}

.project article h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 6vw, 6.6rem);
}

.project article p:not(.eyebrow) {
  margin-bottom: 2rem;
  color: rgba(244, 241, 234, 0.56);
}

.project__visual {
  position: relative;
  aspect-ratio: 1.16;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
}

.project__visual::before,
.project__visual::after {
  position: absolute;
  content: "";
}

.project__visual--radio::before {
  inset: 9%;
  border: 1px solid rgba(244, 241, 234, 0.25);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 20, 0.8), transparent 55%);
  box-shadow: 0 0 0 3rem rgba(255, 255, 255, 0.025);
}

.project__visual--radio::after {
  inset: 23% 14%;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  background: repeating-linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.08) 8% 9%);
}

.project__visual--isic {
  background:
    radial-gradient(circle at center, rgba(255, 90, 20, 0.25), transparent 34%),
    repeating-linear-gradient(0deg, transparent 0 2.8rem, rgba(255, 255, 255, 0.05) 2.8rem calc(2.8rem + 1px)),
    repeating-linear-gradient(90deg, transparent 0 2.8rem, rgba(255, 255, 255, 0.05) 2.8rem calc(2.8rem + 1px)),
    #111;
}

.project__visual--isic::before {
  top: 50%;
  left: 50%;
  width: 42%;
  aspect-ratio: 1;
  border: 2px solid var(--orange);
  border-radius: 10%;
  box-shadow:
    0 0 0 1.2rem rgba(255, 90, 20, 0.05),
    0 0 4rem rgba(255, 90, 20, 0.25);
  transform: translate(-50%, -50%) rotate(45deg);
}

.project__visual--isic::after {
  top: 50%;
  left: 50%;
  width: 1rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
  box-shadow:
    -8rem 0 var(--orange),
    8rem 0 var(--orange),
    0 -8rem var(--orange),
    0 8rem var(--orange);
  transform: translate(-50%, -50%);
}

.next-mission {
  grid-template-columns: auto minmax(0, 1fr) auto;
  color: var(--paper);
  background: var(--ink);
}

.next-mission p:not(.eyebrow) {
  max-width: 41rem;
  color: rgba(244, 241, 234, 0.57);
}

.contact-page {
  background: var(--ink);
}

/* ==========================================================================
   CONTACTO — fogata protagonista, composición abierta
   ========================================================================== */

.contact-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(24rem, 0.85fr);
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: clamp(5rem, 8vw, 8.5rem) var(--gutter);
  gap: clamp(3.5rem, 7vw, 8rem);
  overflow: hidden;
  isolation: isolate;
}

.contact-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(
      circle at 73% 50%,
      rgba(255, 90, 20, 0.08),
      transparent 29rem
    );
  content: "";
  pointer-events: none;
}

.contact-hero__copy {
  min-width: 0;
  max-width: 64rem;
}

.contact-hero__copy .eyebrow {
  margin-bottom: 2rem;
}

.contact-hero h1 {
  max-width: 10.6ch;
  margin-bottom: 2rem;
  font-size: clamp(4.5rem, 7.7vw, 9rem);
  line-height: 0.91;
  text-wrap: balance;
}

.contact-hero__lead {
  max-width: 38rem;
  margin-bottom: 1.8rem;
  color: rgba(244, 241, 234, 0.58);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.7;
}

.contact-hero__link {
  display: inline-flex;
}

/* Fogata grande: eje visual, pero no divide el hero. */
.campfire {
  position: relative;
  display: grid;
  place-items: center;
  width: min(34vw, 31rem);
  aspect-ratio: 1;
  justify-self: center;
  isolation: isolate;
}

.campfire::before,
.campfire::after {
  position: absolute;
  z-index: 3;
  bottom: 22%;
  width: 6.2rem;
  height: 15.7rem;
  border-radius: 58% 42% 62% 38% / 68% 54% 46% 32%;
  background:
    linear-gradient(
      var(--paper) 0 9%,
      var(--amber) 27%,
      var(--orange) 72%
    );
  filter: drop-shadow(0 0 1.7rem rgba(255, 90, 20, 0.78));
  content: "";
  transform-origin: bottom center;
  animation: contact-flame 1.75s ease-in-out infinite alternate;
}

.campfire::after {
  width: 3.7rem;
  height: 10.3rem;
  background: linear-gradient(var(--paper), var(--amber));
  animation-delay: -0.68s;
}

.campfire__glow {
  position: absolute;
  z-index: 1;
  inset: -2%;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255, 90, 20, 0.34) 0,
      rgba(255, 90, 20, 0.12) 37%,
      transparent 70%
    );
  animation: corona-pulse 5s ease-in-out infinite;
}

.campfire__glow::before,
.campfire__glow::after {
  position: absolute;
  z-index: 2;
  bottom: 17%;
  left: 50%;
  width: 17rem;
  height: 0.82rem;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      #281b12,
      #6a482e 48%,
      #281b12
    );
  content: "";
  transform: translateX(-50%) rotate(18deg);
}

.campfire__glow::after {
  transform: translateX(-50%) rotate(-18deg);
}

.campfire > i,
.campfire > span {
  position: absolute;
  z-index: 4;
  width: 0.3rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0.8rem rgba(255, 90, 20, 0.82);
  opacity: 0;
  animation: contact-ember 3.8s ease-out infinite;
}

.campfire > i:nth-of-type(1) {
  left: 43%;
  bottom: 39%;
  animation-delay: -0.4s;
}

.campfire > i:nth-of-type(2) {
  left: 55%;
  bottom: 43%;
  animation-delay: -1.8s;
}

.campfire > span:nth-of-type(1) {
  left: 48%;
  bottom: 38%;
  animation-delay: -2.7s;
}

.campfire > span:nth-of-type(2) {
  left: 59%;
  bottom: 40%;
  animation-delay: -3.3s;
}

@keyframes contact-flame {
  to {
    transform: scaleX(0.84) scaleY(1.08) rotate(3deg);
  }
}

@keyframes contact-ember {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.7);
  }

  18% {
    opacity: 0.95;
  }

  72% {
    opacity: 0.45;
  }

  100% {
    opacity: 0;
    transform: translate3d(0.9rem, -5rem, 0) scale(0.3);
  }
}

/* ==========================================================================
   FORMULARIO + CONTACTO DIRECTO
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(31rem, 0.95fr);
  align-items: start;
  gap: clamp(3rem, 5vw, 5.5rem);
  background: var(--paper);
}

.project-form {
  min-width: 0;
  max-width: 58rem;
  color: var(--ink);
}

.project-form .eyebrow {
  color: var(--orange);
}

.project-form h2 {
  max-width: 10ch;
  margin-bottom: 3rem;
  font-size: clamp(3.1rem, 5.3vw, 5.8rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.7rem 2rem;
}

.form-grid label {
  display: grid;
  min-width: 0;
  gap: 0.6rem;
  color: rgba(5, 5, 5, 0.68);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-width: 0;
  padding: 1rem 0;
  border: 0;
  border-bottom: 1px solid rgba(5, 5, 5, 0.28);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  transition: border-color 200ms ease;
}

.form-grid select {
  cursor: pointer;
}

.form-grid textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--orange);
}

.form-grid .checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

.checkbox input {
  flex: 0 0 auto;
  width: 1rem;
  accent-color: var(--orange);
}

.project-form > .button {
  margin-top: 2rem;
}

.project-form > small {
  display: block;
  max-width: 34rem;
  margin-top: 1rem;
  color: rgba(5, 5, 5, 0.5);
}

.contact-aside {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  min-width: 0;
  width: 100%;
  padding: clamp(2.5rem, 4vw, 4rem);
  color: var(--paper);
  background:
    radial-gradient(
      circle at 18% 8%,
      rgba(255, 90, 20, 0.095),
      transparent 13rem
    ),
    var(--ink);
}

.contact-aside__flame {
  position: relative;
  width: 3rem;
  height: 4.2rem;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.contact-aside__flame::before,
.contact-aside__flame::after,
.contact-aside__flame span {
  position: absolute;
  bottom: 0;
  left: 50%;
  content: "";
  transform: translateX(-50%);
}

.contact-aside__flame::before {
  width: 2rem;
  height: 4rem;
  border-radius: 58% 42% 65% 35% / 70% 52% 48% 30%;
  background: linear-gradient(var(--amber), var(--orange));
  filter: drop-shadow(0 0 0.8rem rgba(255, 90, 20, 0.4));
}

.contact-aside__flame::after {
  width: 0.95rem;
  height: 2.2rem;
  border-radius: 60% 40% 62% 38% / 70% 54% 46% 30%;
  background: var(--paper);
}

.contact-aside__flame span {
  bottom: -0.35rem;
  width: 3rem;
  height: 0.28rem;
  border-radius: 999px;
  background: #59402a;
}

.contact-aside .eyebrow {
  margin-bottom: 1.2rem;
}

/* Una sola línea en desktop. */
.contact-email {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-bottom: 1.8rem;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.75rem, 2.15vw, 2.7rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  transition: color 200ms ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--orange);
}

.contact-aside > p:not(.eyebrow) {
  max-width: 30rem;
  margin-bottom: 2rem;
  color: rgba(244, 241, 234, 0.57);
}

.contact-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3.25rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  gap: 1.5rem;
}

.contact-facts > div {
  min-width: 0;
}

.contact-facts span {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(244, 241, 234, 0.42);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-facts p {
  margin-bottom: 0;
  color: rgba(244, 241, 234, 0.72);
  font-size: 0.82rem;
  line-height: 1.5;
}



.site-footer {
  position: relative;
  padding: clamp(5rem, 9vw, 9rem) var(--gutter) 2rem;
  overflow: hidden;
  color: var(--paper);
  background: #020202;
}

.planet-word {
  display: inline-block;
  position: relative;
  margin: 0 0.5rem;
  padding: 1rem;
  border-radius: 50%;
  min-width: 4rem;
  min-height: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  color: var(--paper);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 40%),
    radial-gradient(circle at 70% 70%, var(--orange), transparent 50%),
    var(--ink-raised);
  box-shadow:
    0 0 0.5rem rgba(255, 90, 20, 0.5),
    0 0 1.5rem rgba(255, 90, 20, 0.3),
    inset 0 0 1rem rgba(0, 0, 0, 0.5);
  animation: planetFloat 6s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.planet-word:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow:
    0 0 1rem var(--orange),
    0 0 2rem rgba(255, 90, 20, 0.6),
    inset 0 0 1rem rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.planet-word::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 60%);
  opacity: 0.3;
  z-index: -1;
}

.planet-word.orbit {
  animation: planetOrbit 20s linear infinite;
}

.planet-word.ring {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 40%),
    radial-gradient(circle at 70% 70%, var(--amber), transparent 50%),
    var(--ink-raised);
}

.planet-word.ring::after {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  right: -0.5rem;
  bottom: -0.5rem;
  border: 2px solid var(--paper-soft);
  border-radius: 50%;
  opacity: 0.3;
  z-index: -1;
}

.planet-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  min-height: 30vh;
}

@keyframes planetFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes planetOrbit {
  0% {
    transform: rotate(0deg) translateX(10px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(10px) rotate(-360deg);
  }
}

.planet-word.earth {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 40%),
    radial-gradient(circle at 70% 70%, #4a9fe3, transparent 50%),
    #1e3a5f;
}

.planet-word.fire {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 40%),
    radial-gradient(circle at 70% 70%, #ff6b1a, transparent 50%),
    #7a2a0a;
}

.planet-word.water {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 40%),
    radial-gradient(circle at 70% 70%, #1e90ff, transparent 50%),
    #0a3a5a;
}

.planet-word.air {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 40%),
    radial-gradient(circle at 70% 70%, #87ceeb, transparent 50%),
    #5a7a8c;
}

.planet-word.ice {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 40%),
    radial-gradient(circle at 70% 70%, #afefff, transparent 50%),
    #7ab0c9;
}

.planet-word.metal {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 40%),
    radial-gradient(circle at 70% 70%, #c0c0c0, transparent 50%),
    #5a5a5a;
}

.planet-trail {
  position: relative;
}

.planet-trail::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 2rem;
  height: 100%;
  background: linear-gradient(to right, var(--orange), transparent);
  transform: translateY(-50%);
  opacity: 0.7;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
  align-items: start;
  max-width: 90rem;
  gap: clamp(3rem, 8vw, 9rem);
}

.footer-statement h2 {
  margin-bottom: 0;
  font-size: clamp(4rem, 8vw, 8.5rem);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-contact > a,
.footer-contact > span {
  color: rgba(244, 241, 234, 0.58);
  font-size: 0.86rem;
  transition: color 200ms ease;
}

.footer-contact > a:hover {
  color: var(--orange);
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}

.social-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.social-icon--instagram {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.social-icon--instagram .social-icon__dot {
  fill: currentColor;
  stroke: none;
}

.social-icon--fiverr {
  fill: currentColor;
}

.footer-socials a:hover {
  border-color: var(--orange);
  color: var(--ink);
  background: var(--orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: clamp(5rem, 10vw, 10rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: rgba(244, 241, 234, 0.33);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(2.2rem);
  transition:
    opacity 700ms var(--reveal-delay, 0ms) ease,
    transform 700ms var(--reveal-delay, 0ms) cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1250px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(26rem, 0.85fr);
  }

  .eclipse {
    width: min(46vw, 39rem);
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  :root {
    --header-height: 4.8rem;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding-inline: var(--gutter);
  }

  .site-nav {
    position: fixed;
    z-index: 99;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100vw;
    max-width: none;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    background:
      radial-gradient(circle at 100% 0%, rgba(255, 90, 20, 0.12), transparent 32rem),
      var(--paper);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.8rem);
    transition:
      opacity 260ms ease,
      transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 520ms step-end;
    will-change: opacity, transform;
  }

  .site-nav--open,
  body.menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      opacity 260ms ease,
      transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s;
  }

  .site-nav__panel {
    display: flex;
    flex-direction: column;
    width: min(100%, 48rem);
    height: 100%;
    margin: 0 auto;
    padding:
      clamp(2rem, 7vh, 4rem)
      var(--gutter)
      calc(1.25rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav__panel::-webkit-scrollbar {
    display: none;
  }

  .site-nav__links {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .site-nav__meta {
    display: block;
    width: 100%;
    margin-top: auto;
    padding-top: clamp(2rem, 7vh, 4rem);
  }

  .nav-link {
    width: 100%;
    height: auto;
    padding: clamp(0.5rem, 1.8vh, 0.85rem) 0;
    border-bottom: 1px solid rgba(5, 5, 5, 0.14);
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(2.15rem, 9vw, 3.85rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.045em;
    text-transform: none;
    opacity: 0;
    transform: translateY(1.2rem);
    transition:
      color 180ms ease,
      opacity 360ms ease,
      transform 430ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-nav--open .nav-link {
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav--open .nav-link:nth-child(1) {
    transition-delay: 110ms;
  }

  .site-nav--open .nav-link:nth-child(2) {
    transition-delay: 155ms;
  }

  .site-nav--open .nav-link:nth-child(3) {
    transition-delay: 200ms;
  }

  .nav-link__label {
    flex: 1;
    height: auto;
    overflow: visible;
  }

  .nav-link__archaic {
    display: none;
  }

  .nav-link__normal {
    transform: none !important;
  }

  .nav-link__symbol {
    display: none;
  }

  .nav-link::after {
    position: static;
    display: block;
    flex: none;
    width: auto;
    height: auto;
    margin-left: 1rem;
    color: var(--orange);
    background: transparent;
    content: "\2197\FE0E";
    font-family: var(--body);
    font-size: 0.9rem;
    letter-spacing: 0;
    opacity: 0;
    transform: translate(-0.4rem, 0.4rem);
    transition:
      opacity 180ms ease,
      transform 220ms ease;
  }

  .nav-link:hover,
  .nav-link:focus-visible,
  .nav-link.is-active {
    color: var(--orange);
  }

  .nav-link:hover::after,
  .nav-link:focus-visible::after,
  .nav-link.is-active::after {
    opacity: 1;
    transform: translate(0, 0);
  }

  .site-nav__contact {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 4rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--ink);
    border-radius: 0.75rem;
    color: var(--paper);
    background: var(--ink);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(1rem);
    transition:
      color 180ms ease,
      background-color 180ms ease,
      opacity 360ms 280ms ease,
      transform 430ms 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-nav--open .site-nav__contact {
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav__contact:hover,
  .site-nav__contact:focus-visible {
    color: var(--ink);
    background: var(--orange);
  }

  .site-nav__contact:hover span:last-child,
  .site-nav__contact:focus-visible span:last-child {
    color: var(--ink);
  }

  .site-nav__contact span:last-child {
    color: var(--orange);
    font-size: 1rem;
  }

  .language-switch {
    display: flex;
    flex: none;
  }

  .menu-toggle {
    position: relative;
    display: block;
    flex: none;
  }

  .header-contact {
    display: none;
  }

  body.menu-open .site-header {
    height: var(--header-height);
    min-height: 0;
    overflow: visible;
    border-bottom-color: rgba(244, 241, 234, 0.12);
    background: #050505;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--header-height) + clamp(2.5rem, 8vw, 4rem));
    padding-bottom: clamp(4rem, 10vw, 6rem);
  }

  .hero::after {
    display: none;
  }

  .hero__copy {
    width: min(100%, 56rem);
    max-width: none;
  }

  .hero__visual {
    min-height: clamp(29rem, 80vw, 39rem);
    padding: 2rem 0 0;
  }

  .eclipse {
    width: min(17vw, 9.5rem);
  }

  .manifesto {
    grid-template-columns: clamp(2.5rem, 7vw, 4rem) minmax(0, 1fr);
    align-items: center;
    min-height: 68svh;
  }

  .manifesto > small {
    grid-column: 2;
  }

  .spear-symbol {
    width: 3rem;
    height: clamp(15rem, 42vw, 19rem);
  }

  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .work-showcase__intro {
    align-self: start;
    max-width: 42rem;
  }

  .work-spectrum {
    margin-bottom: 2.5rem;
  }

  .case-panel {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: auto;
    padding: clamp(1.7rem, 5vw, 3.2rem);
  }

  .case-panel + .case-panel {
    margin-top: 2rem;
  }

  .case-panel__stage {
    min-height: 28rem;
  }

  .work-case--isic .case-panel__stage {
    min-height: 39rem;
  }

  .work-viewer--browser {
    width: min(100%, 720px);
  }

  .work-viewer--phone {
    width: min(56vw, 310px);
  }

  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-cta,
  .next-mission {
    grid-template-columns: 1fr;
  }

  .contact-cta__symbol {
    display: none;
  }

  .inner-hero {
    grid-template-columns: 1fr;
  }

  .legacy-seal {
    width: min(55vw, 23rem);
  }

  .about-manifesto {
    min-height: auto;
    padding-top: clamp(4.75rem, 10vw, 6.5rem);
    padding-bottom: clamp(4.5rem, 9vw, 6rem);
    background: var(--paper);
  }

  .about-manifesto__body {
    display: block;
    width: 100%;
    max-width: none;
  }

  .about-manifesto__statement {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: clamp(3.5rem, 8vw, 5rem);
  }

  .about-manifesto__line,
  .about-manifesto__line--identity,
  .about-manifesto__line--action {
    align-self: flex-start;
    width: 100%;
    max-width: 18ch;
    margin: 0;
    font-size: clamp(2.35rem, 7vw, 3.8rem);
    line-height: 1.02;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
  }

  .about-manifesto__purpose {
    display: block;
    width: 100%;
    padding-top: clamp(1.35rem, 3vw, 1.8rem);
  }

  .about-manifesto__purpose-intro {
    max-width: 25rem;
    margin: 0 0 1.5rem;
    padding: 0;
  }

  .about-manifesto__purpose strong {
    display: block;
    max-width: 8ch;
    font-size: clamp(3.8rem, 12vw, 7rem);
    white-space: normal;
  }

  .about-manifesto__footer {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1rem;
    margin-top: clamp(3.75rem, 8vw, 5.5rem);
  }

  .about-manifesto__footer blockquote {
    font-size: clamp(1.4rem, 4vw, 2.1rem);
    line-height: 1.08;
    white-space: normal;
  }

  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .values article:nth-child(2) {
    border-right: 0;
  }

  .inner-cta {
    grid-template-columns: 1fr;
  }

  .project,
  .project--reverse {
    grid-template-columns: 1fr;
  }

  .project--reverse .project__visual {
    order: 0;
  }

  .contact-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: clamp(1.5rem, 5vw, 3rem);
    padding-top: clamp(4.5rem, 9vw, 6.5rem);
    padding-bottom: clamp(4rem, 9vw, 6rem);
  }

  .contact-hero__copy {
    max-width: 58rem;
  }

  .contact-hero h1 {
    max-width: 10ch;
  }

  .contact-hero .campfire {
    width: min(42vw, 17rem);
    justify-self: center;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .contact-aside {
    position: relative;
    top: auto;
    padding: clamp(2rem, 6vw, 3.25rem);
  }

  .contact-email {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    white-space: nowrap;
  }
.footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.5fr);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 1rem;
  }

  .brand__mark--eyes {
    width: 3rem;
    height: 3rem;
  }

  .brand__name {
    display: grid;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand__name strong {
    font-size: 0.74rem;
    letter-spacing: 0.2em;
  }

  .brand__name small {
    margin-top: 0.25rem;
    font-size: 0.38rem;
    letter-spacing: 0.25em;
  }

  .header-actions {
    gap: 0.52rem;
  }

  .language-switch {
    gap: 0.08rem;
  }

  .language-switch button {
    padding: 0.16rem;
    font-size: 0.58rem;
  }

  .menu-toggle {
    width: 2.7rem;
    height: 2.7rem;
  }

  .menu-toggle i {
    left: 0.78rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 1.8rem);
    padding-bottom: 4.5rem;
  }

  .glass {
    padding: 1.2rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 13.5vw, 4.8rem);
  }

  .hero__actions {
    display: grid;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__visual {
    min-height: clamp(25rem, 112vw, 31rem);
    margin: 0;
    padding-top: 1.25rem;
  }

  .eclipse {
    width: min(25vw, 7.5rem);
  }

  .orbit {
    width: min(74vw, 25rem);
  }

  .orbit--inner {
    width: min(46vw, 15rem);
  }

  .orbit__label {
    padding: 0.42em 0.55em;
    font-size: 0.4rem;
    letter-spacing: 0.08em;
  }

  .orbit--outer .orbit__label {
    font-size: 0.42rem;
  }

  .eclipse b {
    display: none;
  }

  .manifesto {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: 1.25rem;
    min-height: 72svh;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .manifesto p {
    font-size: clamp(2.45rem, 11vw, 3.9rem);
  }

  .manifesto .spear-symbol {
    width: 2.6rem;
    height: clamp(15rem, 62vw, 18rem);
  }

  .about-manifesto {
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
  }

  .about-manifesto__statement {
    gap: 3.5rem;
  }

  .about-manifesto__line,
  .about-manifesto__line--identity,
  .about-manifesto__line--action {
    max-width: none;
    font-size: clamp(2.15rem, 10vw, 3.25rem);
    line-height: 1.03;
  }

  .about-manifesto__purpose strong {
    font-size: clamp(3.7rem, 16vw, 5.8rem);
  }

  .services,
  .values {
    grid-template-columns: 1fr;
  }

  body[data-page="inicio"] .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.1rem 0.85rem;
  }

  body[data-page="inicio"] .team-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 0.425rem);
    justify-self: center;
  }

  body[data-page="inicio"] .team-card__photo {
    margin-bottom: 0.85rem;
  }

  body[data-page="inicio"] .team-card h3 {
    margin-bottom: 0.25rem;
    font-size: clamp(1.05rem, 5.3vw, 1.45rem);
    line-height: 1.02;
  }

  body[data-page="inicio"] .team-card p {
    font-size: 0.58rem;
    line-height: 1.4;
  }

  .work-spectrum {
    width: calc(100% + (var(--gutter) * 2));
    margin-right: calc(var(--gutter) * -1);
    margin-left: calc(var(--gutter) * -1);
    overflow: hidden;
  }

  .work-spectrum__track {
    animation-duration: 25s;
  }

  .work-spectrum__group {
    gap: 1.25rem;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .case-panel {
    gap: 2.25rem;
    padding: 1.15rem;
  }

  .case-panel__stage--hybrid {
    grid-template-columns: minmax(0, 1fr) 5.8rem;
    grid-template-rows: auto auto;
    grid-template-areas:
      "browser browser"
      "navigation mobile";
    min-height: auto;
    column-gap: 0.8rem;
    row-gap: 1.35rem;
  }

  .case-panel__stage--hybrid > .work-shot-nav {
    align-self: center;
    justify-self: start;
  }

  .rf-mobile-demo--featured {
    width: 5.8rem;
    align-self: start;
  }

  .work-case__identity {
    margin-bottom: 1.1rem;
  }

  .work-logo {
    width: 3.3rem;
    height: 3.3rem;
  }

  .work-case__identity small {
    max-width: 11rem;
    line-height: 1.45;
  }

  .case-panel__content h3 {
    margin-bottom: 1rem;
    font-size: clamp(2.4rem, 11vw, 3.7rem);
  }

  .case-panel__content > p {
    margin-bottom: 1.5rem;
  }

  .case-panel__meta {
    gap: 0.45rem 1rem;
    margin-bottom: 1.7rem;
  }

  .case-panel__stage {
    min-height: 18.5rem;
  }

  .case-panel__stage--hybrid {
    min-height: auto;
  }

  .work-case--isic .case-panel__stage {
    min-height: 31rem;
  }

  .work-viewer--browser {
    width: min(94%, 34rem);
    justify-self: center;
  }

  .work-viewer--phone {
    width: min(62vw, 14.5rem);
  }

  .work-viewer__browser-bar {
    height: 2rem;
  }

  .work-viewer__browser-bar em {
    font-size: 0.46rem;
  }

  .work-viewer__caption {
    min-height: 2.05rem;
    font-size: 0.5rem;
  }

  .work-viewer__caption em {
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .work-shot-nav button {
    width: 2.55rem;
    height: 2.55rem;
  }

  .service-card {
    min-height: 27rem;
  }

  .values article,
  .values article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-cta,
  .inner-cta,
  .next-mission {
    min-height: auto;
  }

  .inner-hero {
    min-height: auto;
  }

  .inner-hero h1,
  .contact-hero h1 {
    font-size: clamp(3.5rem, 17vw, 6rem);
  }

  .contact-hero h1 {
    max-width: 10ch;
    font-size: clamp(3.15rem, 12.8vw, 4.75rem);
  }

  .legacy-seal {
    width: 76vw;
  }

  .work-spear {
    right: 7%;
    opacity: 0.55;
  }

  .project__visual {
    aspect-ratio: 0.95;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .wide {
    grid-column: auto;
  }

  .contact-hero .campfire {
    width: min(46vw, 10.5rem);
  }

  .campfire::before {
    bottom: 20%;
    width: 3.35rem;
    height: 8.6rem;
  }

  .campfire::after {
    width: 2.05rem;
    height: 5.65rem;
  }

  .campfire__glow::before,
  .campfire__glow::after {
    bottom: 15%;
    width: 8.7rem;
    height: 0.5rem;
  }

  .contact-layout.section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .project-form h2 {
    margin-bottom: 2.2rem;
    font-size: clamp(2.85rem, 12vw, 4.3rem);
  }

  .form-grid input,
  .form-grid select,
  .form-grid textarea {
    font-size: 1rem;
  }

  .contact-aside__flame {
    margin-bottom: 2rem;
  }

  .contact-email {
    width: auto;
    font-size: clamp(1.55rem, 7.2vw, 2.25rem);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .contact-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

.footer-main {
    grid-template-columns: 1fr;
  }

  .footer-statement {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-ready .reveal {
    opacity: 1;
    transform: none;
  }

  .work-spectrum {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
  }

  .work-spectrum::-webkit-scrollbar {
    display: none;
  }

  .work-spectrum__track {
    animation: none !important;
    transform: none !important;
  }

  .work-spectrum__group[aria-hidden="true"] {
    display: none;
  }

  .js-ready .about-manifesto .about-manifesto__line,
  .js-ready .about-manifesto .about-manifesto__purpose-intro,
  .js-ready .about-manifesto .about-manifesto__purpose strong,
  .js-ready .about-manifesto .about-manifesto__footer {
    opacity: 1;
    transform: none;
  }
}

.team-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  transform: translate3d(0, var(--portrait-y, 0%), 0)
    scale(var(--portrait-scale, 1));
  transform-origin: center center;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.team-card:hover .team-card__photo img {
  transform: translate3d(0, var(--portrait-y, 0%), 0)
    scale(var(--portrait-scale-hover, 1.035));
}

.formation span {
  display: block;
  margin-bottom: 0.5rem;
}

.word-with-background {
  display: inline;
}

.word-with-background span {
  display: inline-block;
  padding: 0.2em 0.4em;
  margin: 0 0.1em;
  background: var(--ink-raised);
  border-radius: 4px;
  line-height: 1.5;
}

/* ==========================================================================
   TEAM WORKFLOW — Cómo trabajamos juntos
   ========================================================================== */

.team-workflow {
  position: relative;
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.team-workflow .section-heading {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.team-workflow .section-heading h2 {
  font-size: clamp(2.8rem, 6vw, 6.5rem);
}

.team-workflow__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.85fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.team-workflow__stages {
  display: flex;
  flex-direction: column;
}

/* --- Stage --- */
.stage {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
}

.stage:last-child {
  border-bottom: 1px solid var(--line);
}

.stage__number {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.stage h3 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.04em;
}

.stage p {
  max-width: 38rem;
  margin-bottom: 2rem;
  color: rgba(244, 241, 234, 0.62);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.6;
}

.stage__phrase {
  display: block;
  margin-bottom: 2rem;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-style: italic;
}

.stage__people {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.stage__people span {
  color: rgba(244, 241, 234, 0.48);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage--finale h3 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

/* --- Visual (sticky) --- */
.team-workflow__visual {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  height: calc(100vh - var(--header-height) - 4rem);
  min-height: 32rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-workflow__gallery {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 42rem;
}

/* --- Composition --- */
.composition {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.composition.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.composition__frame {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0a;
}

.composition__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(0.92);
  transition: filter 600ms ease;
}

.composition__frame figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem 1.5rem;
  background: linear-gradient(transparent, rgba(5, 5, 5, 0.95));
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.composition__name {
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.composition__role {
  color: var(--orange);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* --- Split (2 personas) --- */
.composition__frame--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.composition__split {
  position: relative;
  overflow: hidden;
}

.composition__split img {
  width: 100%;
  height: 100%;
}

.composition__split + .composition__split {
  border-left: 1px solid var(--line);
}

.composition__split figcaption {
  padding: 1rem 1.2rem;
}

/* --- Trio (3 personas) --- */
.composition__frame--trio {
  display: grid;
  grid-template-rows: 1.2fr 1fr;
}

.composition__trio-top {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.composition__trio-top img {
  width: 100%;
  height: 100%;
}

.composition__trio-top figcaption {
  padding: 1.2rem 1.5rem;
}

.composition__trio-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* --- Ensemble (5 personas) --- */
.composition__frame--ensemble {
  display: grid;
  grid-template-rows: 1.3fr 1fr;
}

.composition__ensemble-row {
  display: grid;
}

.composition__ensemble-row--top {
  grid-template-columns: 1fr 1.4fr 1fr;
  border-bottom: 1px solid var(--line);
}

.composition__ensemble-row--bottom {
  grid-template-columns: 1fr 1fr;
}

.composition__split--wide {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* --- Mobile --- */
@media (max-width: 940px) {
  .team-workflow__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-workflow__visual {
    position: relative;
    top: auto;
    height: auto;
    min-height: auto;
    order: -1;
  }

  .team-workflow__gallery {
    position: relative;
    height: auto;
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .composition {
    position: absolute;
  }

  .composition.is-active {
    position: relative;
  }

  .stage {
    padding: clamp(2rem, 5vw, 3.5rem) 0;
  }

  .composition__frame--split,
  .composition__trio-bottom,
  .composition__ensemble-row--bottom {
    grid-template-columns: 1fr 1fr;
  }

  .composition__ensemble-row--top {
    grid-template-columns: 1fr 1fr;
  }

  .composition__ensemble-row--top .composition__split:last-child {
    display: none;
  }
}

@media (max-width: 640px) {
  .composition__frame--split,
  .composition__trio-bottom,
  .composition__ensemble-row--bottom,
  .composition__ensemble-row--top {
    grid-template-columns: 1fr;
  }

  .composition__split + .composition__split,
  .composition__split--wide {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .composition__trio-top {
    border-bottom: 1px solid var(--line);
  }

  .composition__ensemble-row--top .composition__split:last-child {
    display: block;
    border-top: 1px solid var(--line);
  }

  .team-workflow__gallery {
    aspect-ratio: 3 / 4;
  }
}
/* ==========================================================================
   TEAM FORMATION — La Formación (Nosotros)
   Minimalista / negro + blanco + naranja
   ========================================================================== */

.team-formation {
  position: relative;
  scroll-margin-top: var(--header-height);
  padding-bottom: clamp(6rem, 10vw, 10rem);
  border-top: 1px solid var(--line);
  background: var(--ink);
}

/* Encabezado: misma lógica visual que "Nuestro código" */
/* =========================================================
   LA FORMACIÓN — ENCABEZADO
   ========================================================= */

.team-formation__heading {
  width: 100%;
  max-width: 82rem;
  margin-bottom: clamp(4.5rem, 8vw, 8rem);
}

.team-formation__heading .eyebrow {
  margin-bottom: clamp(1.8rem, 3vw, 2.6rem);
}

.team-formation__heading h2 {
  width: 100%;
  max-width: 22ch;
  margin-bottom: 2rem;

  font-size: clamp(3.2rem, 6.6vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.055em;

  text-wrap: balance;
}

.team-formation__heading > p:last-child {
  max-width: 42rem;
  margin-bottom: 0;

  color: rgba(244, 241, 234, 0.62);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .team-formation__heading h2 {
    max-width: 100%;
    font-size: clamp(3.15rem, 14vw, 5rem);
    line-height: 0.94;
  }
}

/* --- 01. COMPOSICIÓN DEL EQUIPO --- */
.formation-carousel__toolbar {
  --formation-progress: 20%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  margin: -1.5rem 0 clamp(2rem, 4vw, 3rem);
  padding: 1.15rem 0 1.1rem;
  border-top: 1px solid rgba(244, 241, 234, 0.12);
  border-bottom: 1px solid rgba(244, 241, 234, 0.12);
}

.formation-carousel__toolbar::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: var(--formation-progress);
  height: 2px;
  background: var(--orange);
  content: "";
  transition: width 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.formation-carousel__toolbar > p {
  max-width: 26rem;
  margin: 0;
  color: rgba(244, 241, 234, 0.58);
  font-size: 0.78rem;
  line-height: 1.45;
}

.formation-carousel__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: end;
  padding: 0.32rem;
  border: 1px solid rgba(244, 241, 234, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.formation-carousel__counter {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  min-width: 4.4rem;
  padding: 0 0.55rem 0 0.65rem;
  color: rgba(244, 241, 234, 0.4);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
}

.formation-carousel__counter strong {
  color: var(--paper);
  font-size: 0.78rem;
}

.formation-carousel__counter i {
  font-style: normal;
}

.formation-carousel__controls button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(244, 241, 234, 0.2);
  border-radius: 50%;
  color: var(--paper);
  background: #0a0a0a;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.formation-carousel__controls button svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.formation-carousel__controls button:focus-visible,
.formation-carousel__controls button:not(:disabled):hover {
  border-color: var(--orange);
  color: var(--ink);
  background: var(--orange);
  transform: translateY(-1px);
}

.formation-carousel__controls button:disabled {
  color: rgba(244, 241, 234, 0.28);
  border-color: rgba(244, 241, 234, 0.1);
  background: transparent;
  opacity: 1;
  cursor: default;
}

.formation-composition {
  --formation-card-width: clamp(16rem, 27vw, 24rem);
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  width: calc(100% + (var(--gutter) * 2));
  height: auto;
  margin-right: calc(var(--gutter) * -1);
  margin-bottom: clamp(6rem, 10vw, 10rem);
  margin-left: calc(var(--gutter) * -1);
  padding: 0 calc((100vw - var(--formation-card-width)) / 2) 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-x;
}

.formation-composition::-webkit-scrollbar {
  display: none;
}

.formation-composition__item {
  position: relative;
  display: flex;
  flex: 0 0 var(--formation-card-width);
  flex-direction: column;
  justify-content: flex-end;
  width: var(--formation-card-width);
  min-width: var(--formation-card-width);
  aspect-ratio: 4 / 5;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  outline: none;
  cursor: pointer;
  border: 1px solid rgba(244, 241, 234, 0.13);
  background: #070707;
  opacity: 0.34;
  transform: scale(0.76);
  transform-origin: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 320ms ease;
}

.formation-composition__item:last-child {
  border-right: 1px solid rgba(244, 241, 234, 0.13);
}

.formation-composition__item.is-current {
  z-index: 2;
  border-color: rgba(255, 90, 20, 0.62);
  opacity: 1;
  transform: scale(1);
}

/* Una sola interacción de marca: línea naranja */
.formation-composition__item::after {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  content: "";
  transition: width 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.formation-composition__item:hover::after,
.formation-composition__item:focus-within::after,
.formation-composition__item.is-selected::after,
.formation-composition__item.is-current::after {
  width: 100%;
}

.formation-composition__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.05) brightness(0.58) blur(2.4px);
  transform: translate3d(0, var(--portrait-y, 0%), 0)
    scale(var(--portrait-scale, 1));
  transform-origin: center center;
  transition:
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 500ms ease;
}

.formation-composition__item.is-current img {
  filter: grayscale(100%) contrast(1.08) brightness(0.86) blur(0);
}

.formation-composition__item.is-current:hover img,
.formation-composition__item.is-current:focus-within img {
  transform: translate3d(0, var(--portrait-y, 0%), 0)
    scale(var(--portrait-scale-hover, 1.035));
  filter: grayscale(100%) contrast(1.1) brightness(0.94) blur(0);
}

/* Agustín es la referencia de escala en Inicio y Nosotros. */
.team-card:nth-child(1) .team-card__photo img,
.formation-composition__item--1 img {
  --portrait-scale: 1.1;
  --portrait-scale-hover: 1.135;
  --portrait-y: 2.5%;
}

.team-card:nth-child(2) .team-card__photo img,
.formation-composition__item--2 img {
  --portrait-scale: 1.13;
  --portrait-scale-hover: 1.165;
  --portrait-y: 0%;
}

.team-card:nth-child(3) .team-card__photo img,
.formation-composition__item--3 img {
  --portrait-scale: 1.15;
  --portrait-scale-hover: 1.185;
  --portrait-y: 0%;
}

.team-card:nth-child(4) .team-card__photo img,
.formation-composition__item--4 img {
  --portrait-scale: 1;
  --portrait-scale-hover: 1.035;
  --portrait-y: 0%;
}

.team-card:nth-child(5) .team-card__photo img,
.formation-composition__item--5 img {
  --portrait-scale: 1.1;
  --portrait-scale-hover: 1.135;
  --portrait-y: 0%;
}

.formation-composition__num {
  position: absolute;
  z-index: 3;
  top: 1.4rem;
  left: 1.4rem;
  color: rgba(244, 241, 234, 0.35);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.formation-composition__item figcaption {
  position: relative;
  z-index: 3;
  padding: 4rem 1.4rem 1.4rem;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(5, 5, 5, 0.92) 58%,
    rgba(5, 5, 5, 0.98)
  );
}

.formation-composition__name {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(0.9rem, 1.15vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.formation-composition__role {
  display: block;
  color: var(--orange);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- 02. LISTA INTERACTIVA --- */
.team-formation__list {
  display: flex;
  flex-direction: column;
  max-width: 65rem;
  margin: 0 auto clamp(6rem, 10vw, 10rem);
  border-top: 1px solid var(--line);
}

.formation-member {
  position: relative;
  padding: 2rem 0;
  outline: none;
  cursor: pointer;
  transition: opacity 300ms ease;
}

.formation-member__header {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.formation-member__num {
  min-width: 2rem;
  color: rgba(244, 241, 234, 0.3);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: color 300ms ease;
}

.formation-member__identity h3 {
  margin: 0 0 0.3rem;
  color: rgba(244, 241, 234, 0.88);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  transition: color 300ms ease;
}

.formation-member__role {
  color: rgba(244, 241, 234, 0.46);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 300ms ease;
}

.formation-member__details {
  display: block;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 500ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 350ms ease,
    margin-top 350ms ease;
}

.formation-member.is-active .formation-member__details {
  max-height: 9rem;
  margin-top: 1.4rem;
  opacity: 1;
}

.formation-member.is-active .formation-member__header {
  transform: translateX(0.45rem);
}

.formation-member.is-active .formation-member__identity h3 {
  color: var(--paper);
}

.formation-member.is-active .formation-member__role {
  color: rgba(244, 241, 234, 0.62);
}

.formation-member.is-active .formation-member__line {
  background: rgba(255, 90, 20, 0.78);
}

.formation-member__quote {
  max-width: 36rem;
  margin: 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--orange);
  color: rgba(244, 241, 234, 0.68);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.65;
}

.formation-member__line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  transition: background-color 300ms ease;
}

@media (hover: hover) and (pointer: fine) {
  /* Hover = solo feedback visual. No abre ni cambia la selección. */
  .formation-member:hover .formation-member__header,
  .formation-member:focus .formation-member__header,
  .formation-member.is-active .formation-member__header {
    transform: translateX(0.45rem);
  }

  .formation-member:hover .formation-member__identity h3,
  .formation-member:focus .formation-member__identity h3,
  .formation-member.is-active .formation-member__identity h3 {
    color: var(--paper);
  }

  .formation-member:hover .formation-member__role,
  .formation-member:focus .formation-member__role,
  .formation-member.is-active .formation-member__role {
    color: rgba(244, 241, 234, 0.62);
  }

  /* Hover discreto; selección persistente en naranja. */
  .formation-member:hover .formation-member__line,
  .formation-member:focus .formation-member__line {
    background: rgba(244, 241, 234, 0.34);
  }

  .team-formation__list:hover
    .formation-member:not(:hover):not(:focus):not(.is-active) {
    opacity: 0.38;
  }
}

/* --- 03. VALOR PARA EL CLIENTE --- */
.team-formation__value {
  max-width: 75rem;
  margin: 0 auto clamp(6rem, 10vw, 9rem);
  padding-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}

.team-formation__value .section-heading {
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.team-formation__value .section-heading h2 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 5.8vw, 6rem);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.value-item {
  min-width: 0;
  padding: 0 2.4rem;
  border-right: 1px solid var(--line);
}

.value-item:first-child {
  padding-left: 0;
}

.value-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.value-item h3 {
  margin-bottom: 1.2rem;
  color: var(--paper);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.value-item p {
  margin-bottom: 0;
  color: rgba(244, 241, 234, 0.58);
  font-size: clamp(0.94rem, 1.15vw, 1.06rem);
  line-height: 1.65;
}

/* --- 04. CIERRE --- */
.team-formation__closing {
  max-width: 75rem;
  margin: 0 auto;
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

.team-formation__closing h2 {
  max-width: 39rem;
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.9rem, 3.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

/* --- TABLET / MOBILE --- */
@media (max-width: 940px) {
  .team-formation__heading {
    margin-bottom: clamp(3.5rem, 8vw, 6rem);
  }

  .formation-composition {
    --formation-card-width: min(70vw, 22rem);
    gap: clamp(1.15rem, 4vw, 2.25rem);
  }

  .formation-composition__item {
    transform: scale(0.74);
  }

  .formation-composition__item.is-current {
    transform: scale(1);
  }

  .team-formation__list {
    margin-bottom: 5rem;
  }

  .formation-member {
    padding: 1.55rem 0;
    cursor: pointer;
  }

  .formation-member__header {
    gap: 1.2rem;
  }

  .formation-member__details {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
  }

  .formation-member.is-active .formation-member__details {
    max-height: 10rem;
    margin-top: 1.15rem;
    opacity: 1;
  }

  .formation-member__quote {
    max-width: 34rem;
    padding-left: 1.1rem;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-item {
    padding: 0 0 2.5rem;
    margin-bottom: 2.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .value-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .team-formation {
    padding-bottom: 5.5rem;
  }

  .team-formation__heading h2 {
    max-width: 10ch;
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .formation-composition {
    --formation-card-width: min(72vw, 19.5rem);
    gap: 0.9rem;
    margin-bottom: 5rem;
  }

  .formation-member__identity h3 {
    font-size: 1.65rem;
  }

  .formation-member__role {
    font-size: 0.66rem;
  }

  .team-formation__value .section-heading h2 {
    max-width: 10ch;
    font-size: clamp(2.7rem, 12vw, 4.4rem);
  }

  .team-formation__closing h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}

@media (max-width: 360px) {
  .formation-carousel__toolbar {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.85rem;
  }

  .formation-carousel__toolbar > p {
    max-width: 18rem;
  }

  .formation-carousel__controls {
    width: 100%;
    justify-content: flex-end;
    justify-self: stretch;
  }
}


/* ==========================================================================
   TRABAJOS / PORTAFOLIO — estilos consolidados
   Solo afecta body[data-page="trabajos"].
   ========================================================================== */

body[data-page="trabajos"] .portfolio-page {
  --portfolio-panel: #0a0a0a;
  --portfolio-panel-raised: #0e0d0c;
  --portfolio-muted: rgba(244, 241, 234, 0.58);
  background: var(--ink);
}

body[data-page="trabajos"] .portfolio-hero {
  isolation: isolate;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(3.5rem, 7vw, 8.25rem);
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-top: clamp(4rem, 7vw, 8rem);
  padding-bottom: clamp(4rem, 7vw, 8rem);
  background: radial-gradient(circle at 20% 50%, rgba(255, 90, 20, 0.09), transparent 22rem),
    linear-gradient(90deg, rgba(255, 90, 20, 0.05), transparent 34%),
    var(--ink);
}

body[data-page="trabajos"] .portfolio-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(244, 241, 234, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.025) 1px, transparent 1px);
  content: "";
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 62%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 10%, #000 62%, #000 100%);
  background: linear-gradient(90deg, rgba(255, 90, 20, 0.03), transparent 28%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: auto, 5.2rem 5.2rem, 5.2rem 5.2rem;
  opacity: 0.42;
}

body[data-page="trabajos"] .portfolio-hero__copy {
  max-width: 76rem;
  width: min(100%, 48rem);
  justify-self: end;
  text-align: left;
}

body[data-page="trabajos"] .portfolio-hero__copy .eyebrow {
  margin-bottom: 2rem;
}

body[data-page="trabajos"] .portfolio-hero__copy h1 {
  margin-bottom: 2.4rem;
  max-width: 11.3ch;
  font-size: clamp(4.4rem, 8.1vw, 8.8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

body[data-page="trabajos"] .portfolio-hero__copy > p:last-child {
  margin-bottom: 0;
  color: rgba(244, 241, 234, 0.56);
  line-height: 1.65;
  max-width: 34rem;
  margin-top: 2rem;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
}

body[data-page="trabajos"] .portfolio-case {
  --project-accent-rgb: 255, 90, 20;
  position: relative;
  display: grid;
  min-height: 92svh;
  padding: clamp(6rem, 10vw, 10rem) var(--gutter);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #070707;
  gap: clamp(4rem, 6vw, 7rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

body[data-page="trabajos"] .portfolio-case--radio {
  --project-accent-rgb: 218, 42, 47;
}

body[data-page="trabajos"] .portfolio-case--isic {
  --project-accent-rgb: 35, 198, 207;
  background: radial-gradient(circle at 76% 48%, rgba(35, 198, 207, 0.035), transparent 28rem),
    #0a0908;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

body[data-page="trabajos"] .portfolio-case--gcp {
  --project-accent-rgb: 255, 0, 145;
  background:
    linear-gradient(90deg, transparent 0 50%, #0a0908 50% 100%),
    radial-gradient(circle at 22% 48%, rgba(255, 0, 145, 0.07), transparent 30rem),
    radial-gradient(circle at 34% 20%, rgba(0, 218, 255, 0.035), transparent 24rem),
    #0a0908;
}

body[data-page="trabajos"] .portfolio-case::after {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  left: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 241, 234, 0.09), transparent);
  content: "";
}

body[data-page="trabajos"] .portfolio-case__visual,
body[data-page="trabajos"] .portfolio-case__content {
  position: relative;
  z-index: 2;
  min-width: 0;
}

body[data-page="trabajos"] .portfolio-case__content {
  max-width: 43rem;
}

body[data-page="trabajos"] .portfolio-case__content .eyebrow {
  margin-bottom: 1.7rem;
}

body[data-page="trabajos"] .portfolio-case__content h2 {
  margin-bottom: 1.8rem;
  letter-spacing: -0.06em;
  max-width: 12.6ch;
  font-size: clamp(3.1rem, 4.6vw, 5.7rem);
  line-height: 0.96;
  text-wrap: balance;
}

body[data-page="trabajos"] .portfolio-case__content > p:not(.eyebrow) {
  margin-bottom: 2.1rem;
  color: var(--portfolio-muted);
  max-width: 39rem;
  margin-top: 1.55rem;
  font-size: clamp(0.98rem, 1.08vw, 1.08rem);
  line-height: 1.68;
}

body[data-page="trabajos"] .portfolio-case__services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 2.4rem;
  padding: 0;
  list-style: none;
}

body[data-page="trabajos"] .portfolio-case__services li {
  padding: 0.62rem 0.86rem;
  border: 1px solid rgba(244, 241, 234, 0.11);
  border-radius: 999px;
  color: rgba(244, 241, 234, 0.58);
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.61rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body[data-page="trabajos"] .portfolio-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 234, 0.13);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 42%),
    #0d0d0d;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  min-height: 43rem;
  padding: 2.25rem;
}

body[data-page="trabajos"] .portfolio-stage::before,
body[data-page="trabajos"] .portfolio-stage::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

body[data-page="trabajos"] .portfolio-stage::before {
  top: 9%;
  right: 8%;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid rgba(var(--project-accent-rgb), 0.72);
  transform: rotate(45deg);
  box-shadow: 0 0 1.5rem rgba(var(--project-accent-rgb), 0.16);
}

body[data-page="trabajos"] .portfolio-stage::after {
  right: 8%;
  bottom: 8%;
  width: 5.5rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--project-accent-rgb), 0.9), transparent);
}

body[data-page="trabajos"] .portfolio-stage__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(244, 241, 234, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.038) 1px, transparent 1px);
  background-size: 4.4rem 4.4rem;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(circle at center, #000 20%, transparent 78%);
  mask-image: radial-gradient(circle at center, #000 20%, transparent 78%);
}

body[data-page="trabajos"] .portfolio-stage__halo {
  position: absolute;
  z-index: 0;
  width: min(88%, 46rem);
  aspect-ratio: 1.45;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--project-accent-rgb), 0.17), rgba(var(--project-accent-rgb), 0.045) 43%, transparent 72%);
  filter: blur(20px);
  pointer-events: none;
}

body[data-page="trabajos"] .portfolio-stage__identity {
  position: absolute;
  z-index: 4;
  top: 2.2rem;
  left: 2.2rem;
  right: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

body[data-page="trabajos"] .portfolio-stage__identity .work-logo {
  width: 4.8rem;
  height: 4.8rem;
}

body[data-page="trabajos"] .portfolio-stage__identity > div {
  display: grid;
  gap: 0.25rem;
}

body[data-page="trabajos"] .portfolio-stage__identity strong {
  max-width: 18rem;
  color: rgba(244, 241, 234, 0.78);
  font-family: var(--body);
  font-size: clamp(1.12rem, 1.2vw, 1.36rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

body[data-page="trabajos"] .portfolio-stage__identity small {
  font-weight: 650;
  margin-top: 0.38rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(244, 241, 234, 0.5);
}

body[data-page="trabajos"] .portfolio-viewer {
  z-index: 3;
  width: min(93%, 720px);
  box-shadow: 0 2.8rem 6.8rem rgba(0, 0, 0, 0.64),
    0 0 5.5rem rgba(var(--project-accent-rgb), 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

body[data-page="trabajos"] .portfolio-shot-nav {
  position: absolute;
  z-index: 5;
  right: 1.35rem;
  bottom: 1.25rem;
  padding-right: 16rem;
}

body[data-page="trabajos"] .portfolio-stage--browser .work-shot img {
  filter: brightness(0.94) saturate(0.96) contrast(1.02);
  object-fit: cover;
  object-position: top center;
}

body[data-page="trabajos"] .portfolio-stage--gcp .portfolio-viewer {
  aspect-ratio: 1.95 / 1;
}

body[data-page="trabajos"] .portfolio-stage--gcp .work-shot img {
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.96) saturate(1.05) contrast(1.02);
}

body[data-page="trabajos"] .portfolio-stage--gcp .rf-mobile-demo video {
  aspect-ratio: 720 / 1398;
}


body[data-page="trabajos"] .portfolio-stage--social {
  min-height: clamp(40rem, 58vw, 49rem);
  overflow: hidden;
}

body[data-page="trabajos"] .portfolio-phone {
  z-index: 3;
  width: min(46%, 325px);
  box-shadow: 0 3rem 7rem rgba(0, 0, 0, 0.72),
    0 0 5rem rgba(var(--project-accent-rgb), 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body[data-page="trabajos"] .portfolio-stage__ghost-mark {
  position: absolute;
  z-index: 1;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  filter: grayscale(1) brightness(2.1);
  pointer-events: none;
  top: 10%;
  right: 2.2rem;
  width: 11rem;
  opacity: 0.1;
}

body[data-page="trabajos"] .portfolio-stage__ghost-mark img {
  width: 100%;
  max-height: 26rem;
  object-fit: contain;
}

body[data-page="trabajos"] .portfolio-case--isic .portfolio-shot-nav {
  right: auto;
  left: 1.35rem;
  padding-right: 0;
  transform: none;
}

body[data-page="trabajos"] .portfolio-case--isic .portfolio-case__content {
  justify-self: end;
}

body[data-page="trabajos"].js-ready .portfolio-case__services li {
  opacity: 0;
  transform: translateY(0.55rem);
  transition: opacity 520ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-page="trabajos"].js-ready .portfolio-case__content.is-visible .portfolio-case__services li {
  opacity: 1;
  transform: none;
}

body[data-page="trabajos"].js-ready .portfolio-case__content.is-visible .portfolio-case__services li:nth-child(1) {
  transition-delay: 190ms;
}

body[data-page="trabajos"].js-ready .portfolio-case__content.is-visible .portfolio-case__services li:nth-child(2) {
  transition-delay: 260ms;
}

body[data-page="trabajos"].js-ready .portfolio-case__content.is-visible .portfolio-case__services li:nth-child(3) {
  transition-delay: 330ms;
}

body[data-page="trabajos"] .portfolio-next-mission {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  background: radial-gradient(circle at 13% 52%, rgba(255, 90, 20, 0.12), transparent 24rem),
    var(--ink);
}

body[data-page="trabajos"] .portfolio-next-mission .eyebrow {
  color: var(--orange);
}

body[data-page="trabajos"] .portfolio-shot-nav button {
  width: auto;
  min-width: 4.5rem;
  height: 2.15rem;
  padding: 0 0.85rem;

  border-color: rgba(244, 241, 234, 0.2);
  border-radius: 999px;

  color: rgba(244, 241, 234, 0.7);
  background: rgba(7, 7, 7, 0.72);

  font-size: 0.5rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body[data-page="trabajos"] .portfolio-viewer__caption {
  justify-content: flex-end;
}

body[data-page="trabajos"] .portfolio-viewer__caption em {
  margin-left: 0;
}

body[data-page="trabajos"] .portfolio-hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 38rem;
}

body[data-page="trabajos"] .portfolio-spear {
  position: relative;
  width: min(22vw, 18rem);
  height: min(78vh, 49rem);
  transform: translateX(-0.5rem) rotate(16deg);
  filter: drop-shadow(0 0 3rem rgba(255, 90, 20, 0.16));
  animation: portfolio-spear-breathe 6s ease-in-out infinite;
}

body[data-page="trabajos"] .portfolio-spear__shaft,
body[data-page="trabajos"] .portfolio-spear__head,
body[data-page="trabajos"] .portfolio-spear__trail,
body[data-page="trabajos"] .portfolio-spear__glow,
body[data-page="trabajos"] .portfolio-spear__mark {
  position: absolute;
  content: "";
}

body[data-page="trabajos"] .portfolio-spear__shaft {
  top: 8%;
  bottom: 4%;
  left: 50%;
  width: 2px;
  background: linear-gradient(transparent, rgba(255, 90, 20, 0.4) 8%, rgba(255, 90, 20, 0.95) 28%, rgba(255, 90, 20, 0.65) 74%, transparent);
  transform: translateX(-50%);
}

body[data-page="trabajos"] .portfolio-spear__head {
  top: 0;
  left: 50%;
  width: 4.15rem;
  height: 7.6rem;
  background: linear-gradient(180deg, #ff7e42 0%, #ff5a14 48%, #ad2f00 100%);
  clip-path: polygon(50% 0%, 100% 74%, 63% 100%, 37% 100%, 0% 74%);
  transform: translateX(-50%);
  box-shadow: 0 0 2rem rgba(255, 90, 20, 0.42);
  animation: portfolio-spear-head 3.1s ease-in-out infinite;
}

body[data-page="trabajos"] .portfolio-spear__trail {
  left: -30%;
  right: 44%;
  top: 20%;
  bottom: 14%;
  border-left: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255, 90, 20, 0.28);
  border-radius: 0 0 0 12rem;
  opacity: 0.68;
}

body[data-page="trabajos"] .portfolio-spear__glow {
  inset: 20% 9% 18% 9%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 20, 0.1), transparent 62%);
  animation: portfolio-spear-glow 3.8s ease-in-out infinite;
}

body[data-page="trabajos"] .portfolio-spear__mark {
  border: 1px solid rgba(255, 90, 20, 0.58);
  opacity: 0.88;
}

body[data-page="trabajos"] .portfolio-spear__mark--a {
  left: 6%;
  top: 61%;
  width: 0.85rem;
  height: 0.85rem;
  transform: rotate(45deg);
}

body[data-page="trabajos"] .portfolio-spear__mark--b {
  right: 8%;
  top: 28%;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: rgba(255, 90, 20, 0.88);
  border: none;
  box-shadow: 0 0 1.1rem rgba(255, 90, 20, 0.5);
  animation-delay: 0.6s;
}

body[data-page="trabajos"] .portfolio-spear__mark--c {
  right: -1%;
  bottom: 16%;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  border-color: rgba(255,255,255,0.08);
  animation-delay: 1.2s;
}

body[data-page="trabajos"] .portfolio-stage--browser .portfolio-viewer {
  width: min(80%, 47rem);
  margin-top: 8.8rem;
}

body[data-page="trabajos"] .portfolio-stage__social-card {
  position: absolute;
  z-index: 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1.25rem;
  background: rgba(10,10,10,0.96);
  box-shadow: 0 1.6rem 3.5rem rgba(0, 0, 0, 0.46);
}

body[data-page="trabajos"] .portfolio-stage__social-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page="trabajos"] .portfolio-stage__social-card--feed {
  left: 2.3rem;
  bottom: 2.7rem;
  width: min(23%, 12rem);
  aspect-ratio: 4 / 5;
  transform: rotate(-6deg);
}

body[data-page="trabajos"] .portfolio-stage__social-card--carnet {
  right: 2rem;
  top: 10rem;
  width: min(28%, 14rem);
  aspect-ratio: 1.58 / 1;
  transform: rotate(6deg);
}

body[data-page="trabajos"] .portfolio-case--isic .portfolio-phone {
  width: min(40%, 21rem);
}

body[data-page="trabajos"] .portfolio-next-mission::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 5.4rem 5.4rem;
  opacity: 0.16;
  content: "";
  pointer-events: none;
}

body[data-page="trabajos"] .portfolio-next-mission .spear-symbol {
  width: 4.1rem;
  height: 18.5rem;
  margin-left: clamp(0rem, 1vw, 1rem);
}

body[data-page="trabajos"] .portfolio-next-mission article {
  position: relative;
  z-index: 2;
}

body[data-page="trabajos"] .portfolio-next-mission h2 {
  max-width: 12ch;
}

body[data-page="trabajos"] .portfolio-next-mission p:last-of-type {
  max-width: 44rem;
}

body[data-page="trabajos"] .portfolio-spear__shaft::after {
  position: absolute;
  top: 16%;
  left: 50%;
  width: 0.35rem;
  height: 22%;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,242,232,0.92), rgba(255,255,255,0));
  content: "";
  transform: translateX(-50%);
  filter: blur(1px);
  opacity: 0.9;
  animation: portfolio-spear-sweep 3.4s ease-in-out infinite;
}

body[data-page="trabajos"] .portfolio-spear__mark--a,
body[data-page="trabajos"] .portfolio-spear__mark--b,
body[data-page="trabajos"] .portfolio-spear__mark--c {
  animation: portfolio-spear-spark 4.8s ease-in-out infinite;
}

@keyframes portfolio-spear-breathe {
0%, 100% {
    filter: drop-shadow(0 0 2.3rem rgba(255, 90, 20, 0.14));
  }
  50% {
    filter: drop-shadow(0 0 3.4rem rgba(255, 90, 20, 0.28));
  }
}

@keyframes portfolio-spear-glow {
0%, 100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.06);
  }
}

@keyframes portfolio-spear-head {
0%, 100% {
    box-shadow: 0 0 1.6rem rgba(255, 90, 20, 0.34);
    filter: saturate(1);
  }
  50% {
    box-shadow: 0 0 2.7rem rgba(255, 90, 20, 0.62);
    filter: saturate(1.15) brightness(1.05);
  }
}

@keyframes portfolio-spear-sweep {
0% {
    top: 14%;
    opacity: 0;
  }
  18% {
    opacity: 0.95;
  }
  60% {
    opacity: 0.6;
  }
  100% {
    top: 74%;
    opacity: 0;
  }
}

@keyframes portfolio-spear-spark {
0%, 100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 1rem rgba(255, 90, 20, 0.35);
  }
}


/* =====================================================================
   TRABAJOS / PORTAFOLIO — responsive consolidado
   ===================================================================== */
body[data-page="trabajos"] .portfolio-stage--browser {
  overflow: hidden;
}

body[data-page="trabajos"] .portfolio-stage--browser .portfolio-viewer {
  width: min(72%, 42rem);
  margin-left: -9%;
}

body[data-page="trabajos"] .portfolio-shot-nav {
  right: auto;
  left: 50%;
  padding-right: 0;
  transform: translateX(-62%);
}

body[data-page="trabajos"] .portfolio-stage__device-mockup {
  position: absolute;
  z-index: 6;
  top: 11.25rem;
  right: 1rem;
  width: min(19.5%, 9.6rem);
  margin: 0;
}

@media (max-width: 1180px) {
  body[data-page="trabajos"] .portfolio-case,
  body[data-page="trabajos"] .portfolio-case--isic,
  body[data-page="trabajos"] .portfolio-case--gcp {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 4.5rem;
  }

  body[data-page="trabajos"] .portfolio-case__content,
  body[data-page="trabajos"] .portfolio-case--isic .portfolio-case__content,
  body[data-page="trabajos"] .portfolio-case--gcp .portfolio-case__content {
    order: 1;
    justify-self: start;
    max-width: 58rem;
  }

  body[data-page="trabajos"] .portfolio-case__visual,
  body[data-page="trabajos"] .portfolio-case--isic .portfolio-case__visual,
  body[data-page="trabajos"] .portfolio-case--gcp .portfolio-case__visual {
    order: 2;
  }

  body[data-page="trabajos"] .portfolio-case--gcp {
    background: #0a0908;
  }

  body[data-page="trabajos"] .portfolio-stage {
    min-height: 40rem;
  }
}

@media (max-width: 940px) {
  body[data-page="trabajos"] .portfolio-hero {
    grid-template-columns: minmax(5.5rem, 0.24fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 4vw, 2.75rem);
    min-height: calc(100svh - var(--header-height));
    padding-top: clamp(3rem, 8vw, 5rem);
    padding-bottom: clamp(3rem, 8vw, 5rem);
  }

  body[data-page="trabajos"] .portfolio-hero__visual {
    order: 1;
    min-height: min(70svh, 39rem);
  }

  body[data-page="trabajos"] .portfolio-hero__copy {
    order: 2;
    width: 100%;
    justify-self: stretch;
  }

  body[data-page="trabajos"] .portfolio-hero__copy h1 {
    max-width: 9.4ch;
    font-size: clamp(3.6rem, 9.4vw, 6rem);
  }

  body[data-page="trabajos"] .portfolio-spear {
    width: min(18vw, 10rem);
    height: min(70svh, 40rem);
    transform: rotate(12deg);
  }

  body[data-page="trabajos"] .portfolio-case {
    padding-top: 5.75rem;
    padding-bottom: 5.75rem;
  }

  body[data-page="trabajos"] .portfolio-stage {
    min-height: 36rem;
    padding: 1.35rem;
  }

  body[data-page="trabajos"] .portfolio-stage--browser .portfolio-viewer {
    width: 76%;
    margin-left: -15%;
  }

  body[data-page="trabajos"] .portfolio-stage__device-mockup {
    top: 9.2rem;
    right: 0.8rem;
    width: 7.2rem;
  }

  body[data-page="trabajos"] .portfolio-stage__social-card--feed,
  body[data-page="trabajos"] .portfolio-stage__social-card--carnet {
    display: none;
  }

  body[data-page="trabajos"] .portfolio-case--isic .portfolio-phone {
    width: min(58%, 19rem);
  }

  body[data-page="trabajos"] .portfolio-next-mission {
    grid-template-columns: minmax(0, 1fr) 3rem;
    gap: 1.5rem;
  }

  body[data-page="trabajos"] .portfolio-next-mission article {
    order: 1;
  }

  body[data-page="trabajos"] .portfolio-next-mission .spear-symbol {
    order: 2;
    width: 3rem;
    height: 15rem;
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  body[data-page="trabajos"] .portfolio-hero {
    grid-template-columns: 4.25rem minmax(0, 1fr);
    gap: 0.8rem;
    min-height: calc(100svh - var(--header-height));
    padding: 2.75rem var(--gutter) 4rem;
  }

  body[data-page="trabajos"] .portfolio-hero__visual {
    min-height: 31rem;
  }

  body[data-page="trabajos"] .portfolio-spear {
    width: 5.5rem;
    height: 30rem;
    transform: translateX(-0.65rem) rotate(10deg);
  }

  body[data-page="trabajos"] .portfolio-spear__head {
    width: 2.55rem;
    height: 4.75rem;
  }

  body[data-page="trabajos"] .portfolio-hero__copy .eyebrow {
    margin-bottom: 1.25rem;
  }

  body[data-page="trabajos"] .portfolio-hero__copy h1 {
    max-width: 8.5ch;
    margin-bottom: 1.45rem;
    font-size: clamp(2.75rem, 12.4vw, 4rem);
    line-height: 0.92;
  }

  body[data-page="trabajos"] .portfolio-hero__copy > p:last-child {
    margin-top: 1.4rem;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  body[data-page="trabajos"] .portfolio-case,
  body[data-page="trabajos"] .portfolio-case--isic,
  body[data-page="trabajos"] .portfolio-case--gcp {
    gap: 3.75rem;
    padding: 5.5rem var(--gutter);
  }

  body[data-page="trabajos"] .portfolio-case__content h2 {
    max-width: 11ch;
    margin-bottom: 1.4rem;
    font-size: clamp(2.65rem, 11.2vw, 4rem);
  }

  body[data-page="trabajos"] .portfolio-case__content > p:not(.eyebrow) {
    margin-bottom: 1.7rem;
    font-size: 0.96rem;
  }

  body[data-page="trabajos"] .portfolio-case__services {
    gap: 0.45rem;
    margin-bottom: 1.9rem;
  }

  body[data-page="trabajos"] .portfolio-case__services li {
    padding: 0.55rem 0.7rem;
    font-size: 0.56rem;
  }

  body[data-page="trabajos"] .portfolio-stage--browser {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "identity"
      "browser"
      "navigation"
      "device";
    place-items: initial;
    align-items: start;
    gap: 1.45rem;
    min-height: auto;
    padding: 1.2rem;
    border-radius: 0.65rem;
  }

  body[data-page="trabajos"] .portfolio-stage--gcp {
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "identity"
      "browser"
      "device";
  }

  body[data-page="trabajos"] .portfolio-stage--browser .portfolio-stage__identity {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    grid-area: identity;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid rgba(244, 241, 234, 0.1);
  }

  body[data-page="trabajos"] .portfolio-stage--browser .portfolio-viewer {
    grid-area: browser;
    width: 94%;
    margin: 0;
    justify-self: center;
    transform: none;
  }

  body[data-page="trabajos"] .portfolio-stage--browser .portfolio-shot-nav {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-area: navigation;
    align-self: center;
    justify-self: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding: 0;
    transform: none;
  }

  body[data-page="trabajos"] .portfolio-stage__device-mockup {
    position: relative;
    top: auto;
    right: auto;
    grid-area: device;
    align-self: start;
    justify-self: center;
    display: block;
    width: 8rem;
    margin-top: 0.35rem;
  }

  body[data-page="trabajos"] .portfolio-shot-nav button {
    min-width: 0;
    height: 2rem;
    padding: 0 0.62rem;
    font-size: 0.45rem;
  }

  body[data-page="trabajos"] .portfolio-stage--social {
    min-height: 30rem;
    padding: 4.5rem 1.15rem 3.25rem;
    border-radius: 0.65rem;
  }

  body[data-page="trabajos"] .portfolio-stage__identity {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    gap: 0.65rem;
  }

  body[data-page="trabajos"] .portfolio-stage__identity .work-logo {
    width: 3rem;
    height: 3rem;
  }

  body[data-page="trabajos"] .portfolio-stage__identity strong {
    max-width: 13rem;
    font-size: 0.74rem;
  }

  body[data-page="trabajos"] .portfolio-stage__identity small {
    font-size: 0.47rem;
  }

  body[data-page="trabajos"] .portfolio-case--isic .portfolio-phone {
    width: min(58%, 14.5rem);
  }

  body[data-page="trabajos"] .portfolio-next-mission {
    grid-template-columns: minmax(0, 1fr) 2.4rem;
    align-items: start;
    gap: 1rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  body[data-page="trabajos"] .portfolio-next-mission .spear-symbol {
    width: 2.4rem;
    height: 13rem;
  }
}
/* ==========================================================================
   404 — DON HOPLITA
   ========================================================================== */

body[data-page="404"] {
  background: var(--ink);
}


/* ==========================================================================
   ESTRUCTURA
   ========================================================================== */

body[data-page="404"] .not-found {
  position: relative;
  isolation: isolate;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  min-height: 100svh;

  padding:
    calc(var(--header-height) + clamp(1.8rem, 3.5vw, 3rem))
    var(--gutter)
    clamp(3rem, 5vw, 5rem);

  overflow: hidden;

  color: var(--paper);
  background: var(--ink);

  text-align: center;
}


/* ==========================================================================
   GRID DE FONDO
   ========================================================================== */

body[data-page="404"] .not-found::before {
  position: absolute;
  z-index: -5;

  inset: var(--header-height) 0 0;

  background-image:
    linear-gradient(
      rgba(244, 241, 234, 0.018) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(244, 241, 234, 0.018) 1px,
      transparent 1px
    );

  background-size:
    5rem 5rem;

  content: "";

  opacity: 0.44;

  -webkit-mask-image:
    radial-gradient(
      ellipse 70% 64% at 50% 44%,
      #000 0%,
      rgba(0, 0, 0, 0.82) 46%,
      transparent 84%
    );

  mask-image:
    radial-gradient(
      ellipse 70% 64% at 50% 44%,
      #000 0%,
      rgba(0, 0, 0, 0.82) 46%,
      transparent 84%
    );
}


/* ==========================================================================
   CABECERA
   ========================================================================== */

body[data-page="404"] .not-found__top {
  position: relative;
  z-index: 10;

  display: flex;
  align-items: center;

  gap: 1.35rem;

  width: min(100%, 82rem);

  margin:
    0
    auto
    clamp(0.3rem, 1vw, 0.8rem);
}


body[data-page="404"] .not-found__top .eyebrow {
  flex: 0 0 auto;

  margin: 0;

  color: var(--orange);
}


body[data-page="404"] .not-found__top-line {
  display: block;

  width: 100%;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      rgba(255, 90, 20, 0.68),
      rgba(255, 90, 20, 0.15) 55%,
      transparent
    );
}


/* ==========================================================================
   H1 SEMÁNTICO
   ========================================================================== */

body[data-page="404"] .not-found__sr-title {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}


/* ==========================================================================
   ESCENA
   ========================================================================== */

body[data-page="404"] .not-found__stage {
  position: relative;
  z-index: 2;

  display: grid;
  place-items: center;

  width: min(100%, 86rem);

  min-height:
    clamp(25rem, 43vw, 36rem);

  margin: 0 auto;
}


/* ==========================================================================
   404 GIGANTE
   ========================================================================== */

body[data-page="404"] .not-found__number {
  position: absolute;
  z-index: -2;

  top: 49%;
  left: 50%;

  color: transparent;

  font-family: var(--display);

  font-size:
    clamp(18rem, 39vw, 38rem);

  font-weight: 500;

  line-height: 0.72;

  letter-spacing:
    -0.085em;

  white-space: nowrap;

  -webkit-text-stroke:
    1px rgba(255, 90, 20, 0.3);

  opacity: 0.9;

  transform:
    translate(-50%, -50%);

  pointer-events: none;
  user-select: none;
}


/* ==========================================================================
   HALO CENTRAL
   ========================================================================== */

body[data-page="404"] .not-found__halo {
  position: absolute;
  z-index: -1;

  top: 50%;
  left: 50%;

  width:
    min(39vw, 30rem);

  aspect-ratio: 1;

  border:
    1px solid rgba(255, 90, 20, 0.085);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 90, 20, 0.075) 0%,
      rgba(255, 90, 20, 0.025) 42%,
      transparent 70%
    );

  box-shadow:
    0 0 6rem rgba(255, 90, 20, 0.035);

  transform:
    translate(-50%, -50%);

  pointer-events: none;
}


/* ==========================================================================
   DON HOPLITA
   ========================================================================== */

body[data-page="404"] .mascot-scout {
  position: relative;
  z-index: 4;

  display: block;

  width:
    clamp(22rem, 42vw, 38rem);

  aspect-ratio: 1.14;

  transform-origin:
    50% 92%;

  filter:
    drop-shadow(
      0 1.3rem 1.7rem
      rgba(0, 0, 0, 0.72)
    )
    drop-shadow(
      0 0 1.4rem
      rgba(255, 90, 20, 0.09)
    );

  animation:
    hoplita-idle
    3.8s
    ease-in-out
    infinite;

  will-change: transform;
}


/* No usamos el pseudo-elemento viejo */

body[data-page="404"] .mascot-scout::before {
  display: none;
}


/* ==========================================================================
   IMAGEN
   ========================================================================== */

body[data-page="404"] .mascot-scout__image {
  position: absolute;
  z-index: 3;

  inset: 0;

  display: block;

  width: 100%;
  height: 100%;
  max-height: none;

  object-fit: contain;

  object-position:
    center bottom;

  opacity: 1;

  transform:
    translate3d(0, 0, 0)
    scale(1);

  transform-origin:
    50% 92%;

  filter:
    saturate(1.07)
    contrast(1.055)
    brightness(1.015);

  transition:
    opacity 100ms ease,
    transform 160ms
      cubic-bezier(0.22, 1, 0.36, 1),
    filter 160ms ease;

  image-rendering: auto;

  user-select: none;
  pointer-events: none;

  -webkit-user-drag: none;

  will-change:
    opacity,
    transform,
    filter;
}


/* ==========================================================================
   CAMBIO ENTRE FRAMES
   ========================================================================== */

body[data-page="404"]
.mascot-scout__image.is-switching {
  opacity: 0.72;

  transform:
    translate3d(0, 0.12rem, 0)
    scale(0.989);

  filter:
    saturate(1.1)
    contrast(1.07)
    brightness(1.025);
}


/* ==========================================================================
   MICRO REACCIÓN AL CAMBIO
   ========================================================================== */

body[data-page="404"]
.mascot-scout.is-looking {
  animation:
    hoplita-look-settle
    240ms
    cubic-bezier(0.22, 1, 0.36, 1),
    hoplita-idle
    3.8s
    240ms
    ease-in-out
    infinite;
}


/* ==========================================================================
   SOMBRA
   ========================================================================== */

body[data-page="404"]
.mascot-scout__ground {
  position: absolute;
  z-index: 1;

  left: 14%;
  right: 14%;

  bottom: 4%;

  height: 4.5%;

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse at center,
      rgba(255, 90, 20, 0.23) 0%,
      rgba(255, 90, 20, 0.12) 45%,
      rgba(255, 90, 20, 0.035) 72%,
      transparent 100%
    );

  filter:
    blur(1.35rem);

  opacity: 0.72;

  transform:
    scaleX(0.96);

  animation:
    hoplita-ground
    3.8s
    ease-in-out
    infinite;

  pointer-events: none;
}


/* ==========================================================================
   ANIMACIONES
   ========================================================================== */

@keyframes hoplita-idle {

  0%,
  100% {
    transform:
      translate3d(0, 0, 0)
      rotate(0deg);
  }

  30% {
    transform:
      translate3d(0, -2px, 0)
      rotate(-0.12deg);
  }

  50% {
    transform:
      translate3d(0, -5px, 0)
      rotate(0deg);
  }

  72% {
    transform:
      translate3d(0, -2px, 0)
      rotate(0.12deg);
  }
}


@keyframes hoplita-ground {

  0%,
  100% {
    opacity: 0.62;

    transform:
      scaleX(0.94);
  }

  50% {
    opacity: 0.82;

    transform:
      scaleX(1.02);
  }
}


@keyframes hoplita-look-settle {

  0% {
    transform:
      translate3d(0, -3px, 0)
      scale(0.992);
  }

  55% {
    transform:
      translate3d(0, 1px, 0)
      scale(1.003);
  }

  100% {
    transform:
      translate3d(0, 0, 0)
      scale(1);
  }
}


/* ==========================================================================
   COPY
   ========================================================================== */

body[data-page="404"] .not-found__copy {
  position: relative;
  z-index: 8;

  display: flex;
  flex-direction: column;
  align-items: center;

  width:
    min(100%, 44rem);

  margin:
    clamp(-0.3rem, -0.5vw, 0rem)
    auto
    0;
}


body[data-page="404"] .not-found__message {
  max-width: 40rem;

  margin: 0;

  color:
    rgba(244, 241, 234, 0.62);

  font-family:
    var(--body);

  font-size:
    clamp(
      1rem,
      1.25vw,
      1.12rem
    );

  font-weight: 400;

  line-height: 1.65;

  letter-spacing: 0;

  text-wrap: balance;
}


body[data-page="404"] .not-found__name {
  color:
    var(--orange);

  font-weight: 650;
}


/* ==========================================================================
   BOTÓN
   ========================================================================== */

body[data-page="404"] .not-found__return {
  margin-top:
    clamp(1.7rem, 3vw, 2.5rem);
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 940px) {

  body[data-page="404"] .not-found {
    padding-top:
      calc(
        var(--header-height) +
        2.75rem
      );
  }


  body[data-page="404"] .not-found__stage {
    min-height:
      clamp(
        24rem,
        60vw,
        33rem
      );
  }


  body[data-page="404"] .mascot-scout {
    width:
      min(69vw, 34rem);
  }


  body[data-page="404"] .not-found__number {
    font-size:
      clamp(
        16rem,
        60vw,
        30rem
      );
  }

}


/* ==========================================================================
   MÓVIL
   ========================================================================== */

@media (max-width: 640px) {

  body[data-page="404"] .not-found {
    min-height:
      100svh;

    padding:
      calc(
        var(--header-height) +
        1.8rem
      )
      var(--gutter)
      2.75rem;
  }


  body[data-page="404"] .not-found__top {
    margin-bottom: 0;
  }


  body[data-page="404"] .not-found__stage {
    width: 100%;

    min-height:
      23rem;

    margin-top:
      0.5rem;
  }


  body[data-page="404"] .mascot-scout {
    width:
      min(94vw, 28rem);
  }


  body[data-page="404"] .not-found__number {
    top: 49%;

    font-size:
      clamp(
        13rem,
        72vw,
        22rem
      );

    -webkit-text-stroke:
      1px
      rgba(
        255,
        90,
        20,
        0.25
      );
  }


  body[data-page="404"] .not-found__halo {
    width:
      min(76vw, 20rem);
  }


  body[data-page="404"] .not-found__message {
    max-width:
      29rem;

    font-size:
      0.98rem;

    line-height:
      1.6;
  }


  body[data-page="404"] .not-found__return {
    width: 100%;

    max-width:
      20rem;

    margin-top:
      1.75rem;
  }

}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  body[data-page="404"] .mascot-scout,
  body[data-page="404"] .mascot-scout__ground {
    animation: none;
  }


  body[data-page="404"] .mascot-scout__image {
    transition:
      opacity 100ms ease;
  }

}
body[data-page="trabajos"]
.portfolio-case--isic .portfolio-stage__ghost-mark {
  display: none;
}
body[data-page="trabajos"] .portfolio-stage__identity--isic .work-logo--isic .work-logo__fallback {
  display: none;
}

/* ==========================================================================
   PRIVACIDAD — AVISO, PANEL DE PREFERENCIAS Y PÁGINAS LEGALES
   --------------------------------------------------------------------------
   Bloque añadido al final para no alterar ninguna regla anterior.
   Reutiliza los mismos tokens de :root (--ink, --paper, --orange, --line)
   y las clases existentes (.button, .eyebrow, .text-link) para que el
   resultado sea visualmente idéntico al resto del sitio.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) AVISO DE ENTRADA (banner)
   -------------------------------------------------------------------------- */

.consent-banner {
  position: fixed;
  z-index: 900;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(105%);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner.is-visible {
  transform: translateY(0);
}

/* El menú móvil ocupa toda la pantalla: el aviso se aparta mientras dure. */
body.menu-open .consent-banner {
  visibility: hidden;
  pointer-events: none;
}

.consent-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  max-width: 90rem;
  margin: 0 auto;
  padding: 1.6rem var(--gutter);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.consent-banner .eyebrow {
  margin-bottom: 0.6rem;
}

.consent-banner__title {
  margin-bottom: 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.consent-banner__text {
  max-width: 58rem;
  margin-bottom: 0;
  color: rgba(244, 241, 234, 0.58);
  font-size: 0.86rem;
}

.consent-banner__text a {
  border-bottom: 1px solid rgba(255, 90, 20, 0.45);
  color: var(--orange);
  transition: color 200ms ease, border-color 200ms ease;
}

.consent-banner__text a:hover {
  border-color: var(--paper);
  color: var(--paper);
}

.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

/* Aceptar y rechazar comparten tamaño y jerarquía: lo exige el RGPD. */
.consent-banner__actions .button {
  min-width: 10.5rem;
}

/* --------------------------------------------------------------------------
   2) PANEL DE PREFERENCIAS (menú editable)
   -------------------------------------------------------------------------- */

.consent-panel {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(5, 5, 5, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 280ms ease;
}

.consent-panel[hidden] {
  display: none;
}

.consent-panel.is-visible {
  opacity: 1;
}

.consent-panel__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(48rem, 100%);
  max-height: min(86svh, 52rem);
  border: 1px solid var(--line);
  background:
    radial-gradient(
      circle at 18% 0%,
      rgba(255, 90, 20, 0.12),
      transparent 22rem
    ),
    var(--ink-raised);
  transform: translateY(1.4rem);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.consent-panel.is-visible .consent-panel__dialog {
  transform: translateY(0);
}

.consent-panel__head {
  padding: clamp(1.8rem, 3.5vw, 2.6rem) clamp(1.6rem, 3.5vw, 2.6rem) 1.2rem;
  border-bottom: 1px solid var(--line);
}

.consent-panel__head .eyebrow {
  margin-bottom: 0.7rem;
}

.consent-panel__head h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.consent-panel__head p {
  margin-bottom: 0;
  color: rgba(244, 241, 234, 0.58);
  font-size: 0.86rem;
}

.consent-panel__close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: rgba(244, 241, 234, 0.58);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}

.consent-panel__close:hover {
  border-color: var(--orange);
  color: var(--ink);
  background: var(--orange);
}

.consent-panel__body {
  flex: 1 1 auto;
  padding: 0.4rem clamp(1.6rem, 3.5vw, 2.6rem) 0.6rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.consent-group {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.consent-group:last-child {
  border-bottom: 0;
}

.consent-group__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0;
  gap: 1.2rem;
  cursor: pointer;
}

.consent-group__head--locked {
  cursor: default;
}

.consent-group__name {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.consent-group__state {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(244, 241, 234, 0.42);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.consent-group__state input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--orange);
  cursor: pointer;
}

.consent-group__head--locked .consent-group__state input {
  cursor: not-allowed;
}

.consent-group__text {
  max-width: 40rem;
  margin: 0.7rem 0 0;
  color: rgba(244, 241, 234, 0.58);
  font-size: 0.84rem;
}

.consent-group__detail {
  margin: 0.9rem 0 0;
  padding: 0;
  color: rgba(244, 241, 234, 0.42);
  font-size: 0.76rem;
  list-style: none;
}

.consent-group__detail li {
  position: relative;
  margin-bottom: 0.3rem;
  padding-left: 1.1rem;
}

.consent-group__detail li::before {
  content: "✦";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--orange);
  font-size: 0.6rem;
  line-height: 1.7;
}

.consent-panel__links {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.9rem;
  padding-bottom: 1.4rem;
  gap: 0.35rem 1.2rem;
  color: rgba(244, 241, 234, 0.33);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.consent-panel__links a:hover {
  color: var(--orange);
}

.consent-panel__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem clamp(1.6rem, 3.5vw, 2.6rem);
  border-top: 1px solid var(--line);
  gap: 0.8rem;
}

.consent-panel__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.consent-panel__record {
  max-width: 16rem;
  color: rgba(244, 241, 234, 0.33);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   3) ENLACES LEGALES DEL PIE
   -------------------------------------------------------------------------- */

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.4rem;
}

.footer-legal a,
.footer-legal button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 200ms ease;
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: var(--orange);
}

/* --------------------------------------------------------------------------
   4) CONSENTIMIENTO DEL FORMULARIO
   -------------------------------------------------------------------------- */

.form-grid .checkbox--consent {
  align-items: flex-start;
}

.form-grid .checkbox--consent input {
  margin-top: 0.15rem;
}

.form-grid .checkbox--consent > span {
  color: rgba(5, 5, 5, 0.68);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-transform: none;
}

.form-grid .checkbox--consent a {
  border-bottom: 1px solid rgba(255, 90, 20, 0.45);
  color: var(--orange);
}

.form-grid .checkbox--consent a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.form-consent-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.1rem 1.3rem;
  border-left: 2px solid var(--orange);
  background: rgba(5, 5, 5, 0.04);
  color: rgba(5, 5, 5, 0.6);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: normal;
  text-transform: none;
}

.form-consent-note strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.form-consent-note a {
  border-bottom: 1px solid rgba(255, 90, 20, 0.45);
  color: var(--orange);
}

.form-consent-note a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   5) PÁGINAS LEGALES
   -------------------------------------------------------------------------- */

.legal-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.3fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  color: var(--ink);
  background: var(--paper);
}

.legal-index {
  position: sticky;
  top: calc(var(--header-height) + 2.5rem);
}

.legal-index .eyebrow {
  margin-bottom: 1rem;
}

.legal-index ol {
  margin: 0;
  padding: 0;
  counter-reset: legal;
  list-style: none;
}

.legal-index li {
  border-top: 1px solid var(--line-dark);
  counter-increment: legal;
}

.legal-index li:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.legal-index a {
  display: flex;
  padding: 0.7rem 0;
  gap: 0.7rem;
  color: rgba(5, 5, 5, 0.68);
  font-size: 0.78rem;
  transition: color 200ms ease;
}

.legal-index a::before {
  content: counter(legal, decimal-leading-zero);
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.legal-index a:hover {
  color: var(--orange);
}

.legal-doc {
  min-width: 0;
  max-width: 58rem;
}

.legal-doc__lead {
  max-width: 44rem;
  margin-bottom: 2.5rem;
  color: rgba(5, 5, 5, 0.68);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.legal-doc__stamp {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  gap: 0.4rem 2rem;
  color: rgba(5, 5, 5, 0.5);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-article {
  padding-top: 2.6rem;
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

.legal-article h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}

.legal-article h3 {
  margin-top: 2rem;
  margin-bottom: 0.7rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.legal-article p,
.legal-article li {
  color: rgba(5, 5, 5, 0.68);
  font-size: 0.95rem;
}

.legal-article p {
  margin-bottom: 1.1rem;
}

.legal-article ul,
.legal-article ol {
  margin: 0 0 1.4rem;
  padding-left: 1.2rem;
}

.legal-article li {
  margin-bottom: 0.5rem;
}

.legal-article a {
  border-bottom: 1px solid rgba(255, 90, 20, 0.4);
  color: var(--orange);
  transition: color 200ms ease, border-color 200ms ease;
}

.legal-article a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.legal-article strong {
  color: var(--ink);
}

.legal-note {
  margin: 1.6rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 2px solid var(--orange);
  background: rgba(5, 5, 5, 0.04);
}

.legal-note p:last-child {
  margin-bottom: 0;
}

.legal-table-wrap {
  margin-bottom: 1.6rem;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 0.9rem 0.75rem 0;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(5, 5, 5, 0.68);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.legal-table td code {
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.78rem;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  gap: 0.8rem;
}

.legal-actions .button {
  border-color: rgba(5, 5, 5, 0.28);
  color: var(--ink);
}

.legal-actions .button:hover {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.legal-actions .button--orange {
  border-color: var(--orange);
  color: var(--ink);
  background: var(--orange);
}

.legal-actions .button--orange:hover {
  border-color: var(--orange-bright);
  color: var(--ink);
  background: var(--orange-bright);
}

/* --------------------------------------------------------------------------
   6) RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 940px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-index {
    position: static;
  }

  .consent-banner__inner {
    grid-template-columns: 1fr;
    padding-block: 1.3rem;
    gap: 1.2rem;
  }
}

@media (max-width: 640px) {
  .consent-banner {
    max-height: 82svh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .consent-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .consent-banner__actions .button {
    width: 100%;
    min-width: 0;
  }

  .consent-panel__dialog {
    max-height: 88svh;
  }

  .consent-panel__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .consent-panel__record {
    max-width: none;
    order: 2;
  }

  .consent-panel__buttons .button {
    flex: 1 1 12rem;
  }

  .footer-legal {
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   7) MOVIMIENTO REDUCIDO
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .consent-banner,
  .consent-panel,
  .consent-panel__dialog {
    transition: none;
  }
}

/* El panel bloquea el desplazamiento, igual que el menu movil. */
body.consent-panel-open {
  overflow: hidden;
}

/* La clase .button nació para enlaces, que no tienen fondo propio. Al
   usarla sobre <button> aparecía el gris del navegador, así que se
   neutraliza sin tocar la variante naranja ni el resto del sitio. */
button.button:not(.button--orange) {
  background: transparent;
}
