/* =====================================================================
   1. styles.css (base)
   ===================================================================== */
:root {
  --blue: #0d5f6b;
  --blue2: #0e7a89;
  --ink: #06111d;
  --black: #02060a;
  --slate: #17232d;
  --paper: #f4f5f2;
  --white: #fff;
  --muted: #7c8790;
  --line: rgba(6, 17, 29, 0.12);
  --green: #2d6955;
  --max: 1500px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  /* Evita el desplazamiento horizontal provocado por las órbitas y el logo
     animado del hero, sin romper position: sticky ni las animaciones. */
  overflow-x: clip;
}
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.container {
  width: min(calc(100% - 60px), var(--max));
  margin: auto;
}
/* Progress bar top*/
.progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #fff;
  mix-blend-mode: difference;
}
.progress {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #fff);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}
@supports (animation-timeline: scroll(root)) {
  .progress {
    animation: progressGrow linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes progressGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("./img_webp/grain.png");
  background-size: 140px 140px;
  mix-blend-mode: soft-light;
}

.topbar {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 64px);
  color: #fff;
  background: rgba(2, 6, 10, 0.62);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar a {
  font-size: large;
}

.brand-mini {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1;
  white-space: nowrap;
}

.brand-mini__word {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.brand-mini__word span {
  color: var(--accent);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 12px;
  font-weight: 600;
  color: #c9d0d5;
}
.nav a {
  position: relative;
  transition: 0.25s;
}
.nav a:hover {
  color: #fff;
}
.nav-cta {
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  color: #fff;
  transition:
    background 0.35s var(--ease-out-expo),
    color 0.35s var(--ease-out-expo),
    border-color 0.35s var(--ease-out-expo);
}
.nav-cta b {
  font-size: 15px;
  margin-left: 7px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out-expo);
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav .nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo small {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: #9eabb6;
  max-width: 150px;
  line-height: 1.2;
}

.menu {
  margin-left: auto;
  display: none;
  border: 0;
  background: transparent;
}
.menu i {
  display: block;
  width: 24px;
  height: 1px;
  background: #fff;
  margin: 5px;
}

.hero-stage {
  position: relative;
  height: 160svh;
  background: #02070d;
}

.hero {
  color: #fff;
  position: sticky;
  top: 0;
  height: auto;
  min-height: 100svh;
  padding: 100px 0 96px;
  perspective: 1200px;
}

.hero:before {
  background:
    radial-gradient(
      circle at 72% 44%,
      rgba(13, 95, 107, 0.42),
      transparent 32%
    ),
    radial-gradient(
      circle at 48% 104%,
      rgba(42, 167, 184, 0.18),
      transparent 44%
    ),
    linear-gradient(115deg, #02060b 0%, #04101d 52%, #061624 100%);
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 70% 48%,
      rgba(13, 95, 107, 0.38),
      transparent 33%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(42, 167, 184, 0.14),
      transparent 40%
    );
}
.hero-lines {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(90deg, black, transparent 75%);
}
.hero-copy {
  position: relative;
  z-index: 3;
  width: min(740px, calc(100% - 64px));
  margin-left: max(32px, calc((100vw - var(--max)) / 2));
  padding-top: 80px;
}

/* 1. Aumentamos el tiempo a 0.8s y usamos cubic-bezier para que frene suavemente */
.hero-orbit,
.hero-lines {
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(173, 252, 255, 0.42);
  border-radius: 50%;
  animation: spin 25s linear infinite;
}

@keyframes spin {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}

.orbit-a {
  width: 50vw;
  height: 50vw;
  right: 0;
  top: 8%;
  /* 2. Reducimos la rotación a 5deg (antes 15) y el desplazamiento a 15px (antes 30) */
  transform: rotateX(calc(var(--mouse-y) * -5deg))
    rotateY(calc(var(--mouse-x) * 5deg))
    translate3d(calc(var(--mouse-x) * 15px), calc(var(--mouse-y) * 15px), 40px);
}

.orbit-b {
  width: 70vw;
  height: 70vw;
  right: -10%;
  top: -2%;
  animation-duration: 42s;
  animation-direction: reverse;
  /* 2. Reducimos la rotación a 3deg (antes 8) y el desplazamiento a 20px (antes 40) */
  transform: rotateX(calc(var(--mouse-y) * -3deg))
    rotateY(calc(var(--mouse-x) * 3deg))
    translate3d(
      calc(var(--mouse-x) * -20px),
      calc(var(--mouse-y) * -20px),
      -60px
    );
}

.hero-lines {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(90deg, black, transparent 75%);
  /* Reducimos el movimiento del fondo para que sea casi imperceptible */
  transform: translate3d(
    calc(var(--mouse-x) * 5px),
    calc(var(--mouse-y) * 5px),
    0
  );
}
.kicker {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.17em;
  color: #adfcff;
  margin-bottom: 22px;
}
.kicker span {
  display: inline-block;
  width: 30px;
  height: 1px;
  vertical-align: middle;
  background: #adfcff;
  margin-right: 10px;
}

/* Secciones claras: el cian de marca se oscurece para mantener contraste. */
.experience .kicker,
.compliance .kicker {
  color: var(--blue2);
}

.experience .kicker span,
.compliance .kicker span {
  background: var(--blue2);
}

.experience .display span {
  color: var(--blue);
}
.hero h1 {
  font-size: clamp(54px, 7.2vw, 110px);
  line-height: 0.88;
  letter-spacing: -0.075em;
}
.hero h1 em {
  font-style: normal;
  color: #adfcff;
}
.hero-lead {
  max-width: 530px;
  color: #aab5bf;
  margin-top: 30px;
  font-size: 18px;
}
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 34px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border-radius: 99px;
  padding: 14px 20px;
  font-size: large;
  font-weight: 700;
}
.pill span {
  font-size: 17px;
}
.primary {
  background: #fff;
  color: #07121d;
}
.text-link {
  font-size: 12px;
  color: #c3cbd2;
}
.text-link span {
  margin-left: 8px;
}
.hero-system {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0;
  width: min(52vw, 720px);
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-system svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(173, 252, 255, 0.25);
  stroke-width: 1;
}
.hero-system svg circle:first-child {
  stroke-dasharray: 2 10;
}
.hero-system svg path {
  stroke: rgba(173, 252, 255, 0.38);
}
.node {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 2px;
  color: #fff;
  font-size: 11px;
}
.node b {
  font-size: 15px;
  color: #adfcff;
}
.node small {
  font-size: 7px;
  letter-spacing: 0.16em;
  color: #8395a5;
}
.node-1 {
  top: 16%;
  left: 48%;
}
.node-2 {
  top: 47%;
  right: 6%;
}
.node-3 {
  bottom: 16%;
  left: 47%;
}
.node-4 {
  top: 47%;
  left: 6%;
}
.hero-orbit {
  position: absolute;
  border: 2px solid rgba(173, 252, 255, 0.42);
  border-radius: 50%;

  /* Mantenemos la transición suave del mouse */
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);

  /* Mantenemos la animación de giro continuo */
  animation: spin 25s linear infinite;
  -webkit-mask-image: repeating-conic-gradient(
    black 0deg,
    black 15deg,
    transparent 15deg,
    transparent 30deg
  );
  mask-image: repeating-conic-gradient(
    black 0deg,
    black 15deg,
    transparent 15deg,
    transparent 30deg
  );
}
.orbit-a {
  width: 50vw;
  height: 50vw;
  right: 0;
  top: 8%;
}
.orbit-b {
  width: 70vw;
  height: 70vw;
  right: -10%;
  top: -2%;
  animation-duration: 42s;
  animation-direction: reverse;
}
@keyframes spin {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}
.hero-bottom {
  position: absolute;
  z-index: 4;
  bottom: 25px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 32px;
  color: #687784;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.section-dark {
  background: var(--black);
  color: #fff;
}
.statement {
  padding: 170px 0;
}
.statement-grid {
  text-align: center;
}
.statement-grid .display,
.statement-grid .large-copy {
  width: 100%;
  max-width: 850px;
  margin-inline: auto;
}
.logos {
  margin-top: 110px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}
.marquee-track {
  display: flex;
  width: max-content;
  list-style: none;
  animation: marquee 70s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track li {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 92px;
  margin-right: 24px;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
}
.marquee-track img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.display {
  font-size: clamp(48px, 6.8vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.07em;
}
.display span {
  color: #adfcff;
}
.large-copy {
  max-width: 650px;
  color: #8996a1;
  font-size: 20px;
  margin-top: 34px;
}
.experience {
  padding: 100px 0 0;
  background: var(--paper);
}
.experience-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 80px;
}

.muted {
  color: var(--muted);
}
.capabilities {
  margin: 0px 10px 0px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.capability {
  min-height: 650px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.capability::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  /* Transición suave y lenta para el zoom al hacer hover (no brusco) */
  transition:
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.8s ease;
  will-change: transform;
}
.capability:hover::before {
  transform: scale(1.06);
  filter: brightness(1.1);
}
.cap-blue::before {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.85)),
    url("./img_webp/backbone_de_fibra_optica.webp");
}
.cap-black::before {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.85)),
    url("./img_webp/tablero.webp");
}
.cap-slate::before {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.85)),
    url("./img_webp/telecomunicaciones.webp");
}
.cap-green::before {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.85)),
    url("./img_webp/altura\ \(2\).webp");
}
.cap-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cap-link:focus-visible {
  outline: none;
}
.cap-link:focus-visible::after {
  outline: 2px solid #fff;
  outline-offset: -8px;
}
.experience-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 24px;
  padding: 40px 20px 40px 10px;
}
.experience-cta p {
  font-size: large;
  color: #02060a;
}
.capability h3 {
  font-size: 35px;
  line-height: 0.96;
  letter-spacing: -0.055em;
  margin-top: auto;
}
.capability p {
  font-size: large;
  color: rgba(255, 255, 255, 0.63);
  margin-top: 18px;
  max-width: 280px;
}
.gallery {
  padding: 130px 0 120px;
  scroll-margin-top: 72px;
}
.gallery-tabs {
  display: flex;
  gap: 10px;
  margin: 50px 0 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-tabs::-webkit-scrollbar {
  display: none;
}
.gallery-tab {
  flex: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 99px;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.gallery-tab:hover {
  border-color: #fff;
}
.gallery-tab.is-active {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
/*.gallery-panel {
  counter-reset: item;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}*/
.gallery-panel[hidden] {
  display: none;
}
.gallery-panel:not([hidden]) {
  animation: galleryIn 0.5s ease both;
}
@keyframes galleryIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/*
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #101820;
  counter-increment: item;
}*/

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  min-width: 0;
  background: #101820;
  counter-increment: item;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35),
    transparent 30%,
    transparent 55%,
    rgba(0, 0, 0, 0.75)
  );
  pointer-events: none;
}
.gallery-item::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.8);
}
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.story {
  padding: 150px 0 150px 0;
  overflow: hidden;
}
.story-intro {
  display: grid;
}
.story-rail {
  display: flex;
  justify-content: center;
  gap: 3px;
  overflow-x: auto;
  overflow-y: hidden;
  color: white;
}
.story-card {
  width: 470px;
  min-height: 380px;
  padding: 20px;
  background: #101820;
  position: relative;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    scale 0.3s ease !important;
}
.story-card:hover {
  scale: 1.03;
}
.story-card > span {
  font-size: 10px;
  color: #8fd9e0;
}
.story-card h3 {
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-top: 30px;
}
.story-card p {
  font-size: 20px;
  max-width: 310px;
  margin-top: 40px;
}
/*
.orden-convectividad {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6)),
    url("./img_webp/orden_conectividad.webp");
  background-size: cover;
}
.energia-llegue {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6)),
    url("./img_webp/energia_llegue.webp");
  background-size: cover;
}
.llegar-operacion {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6)),
    url("./img_webp/altura2.webp");
  background-size: cover;
}*/
.compliance {
  padding: 160px 0;
  background: #e9ebe7;
}
.compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}
.compliance .large-copy.muted {
  color: #02060a;
}
.cert-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.cert-card {
  min-height: 230px;
  background: #fff;
  padding: 27px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--black);
}
.cert-card.big {
  grid-row: span 2;
  min-height: 463px;
  background: var(--blue);
  color: #fff;
}
.cert-card.dark {
  background: #111b23;
  color: #fff;
}
.cert-card.green {
  background: var(--green);
  color: #fff;
}
.cert-card small {
  font-size: 15px;
  letter-spacing: 0.15em;
  opacity: 0.55;
}
.cert-card strong {
  font-size: 42px;
  line-height: 0.88;
  letter-spacing: -0.07em;
}
.mission {
  padding: 100px 0 120px 0;
  background: var(--paper);
}
.mission-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mission-main > div {
  color: var(--ink);
  padding: clamp(28px, 4vw, 52px);
  min-width: 0;
}
.mission-main > div + div {
  border-left: 1px solid var(--line);
}
.mission-label {
  display: block;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1;
  letter-spacing: 0.17em;
  color: var(--blue2);
  font-weight: 800;
  margin-bottom: 12px;
}
.mission h2 {
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.07em;
  color: var(--ink);
  max-width: 470px;
}
.mission p {
  color: #02060a;
  font-size: 17px;
  line-height: 1.5;
  max-width: 450px;
  margin-top: 25px;
}
.dark-pill {
  background: var(--ink);
  color: #fff;
}
.contact {
  padding: 160px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px 64px;
}
.contact-details {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
}
.contact-details > * {
  display: block;
  padding: 27px 0;
  border-top: 1px solid #27333c;
}
.contact-details small {
  display: block;
  color: #657581;
  font-size: 8px;
  letter-spacing: 0.15em;
  margin-bottom: 7px;
}
.contact-details strong {
  display: block;
  font-size: 18px;
}
.contact-details span {
  display: block;
  color: #77848e;
  font-size: 10px;
  margin-top: 7px;
}
.contact-details a:hover strong {
  color: #adfcff;
}
.contact-form {
  display: grid;
  gap: 22px;
  border-top: 1px solid #27333c;
  padding-top: 27px;
  width: 100%;
  min-width: 0;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 0;
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #27333c;
  border-radius: 0;
  outline: none;
  transition: border-color 0.25s;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #4a5a66;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-bottom-color: #adfcff;
  box-shadow: 0 1px 0 #adfcff;
}
.contact-form .pill {
  justify-self: start;
  border: 0;
  cursor: pointer;
}
.form-status {
  min-height: 1.5em;
  font-size: 12px;
  color: #8996a1;
}
.form-status.ok {
  color: #adfcff;
}
.form-status.error {
  color: #e48a8a;
}
footer {
  background: #02060a;
  color: #67747e;
  padding: 35px 0;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.footer .logo img {
  display: block;
  height: 56px;
  width: auto;
}
.footer p,
.footer > a {
  font-size: 9px;
  margin-right: 7%;
}
.footer > a:hover {
  color: #fff;
}
.reveal {
  animation: enter 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 95;
  display: flex;
  align-items: center;
  border-radius: 99px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transform-origin: right center;
  transition: transform 0.3s ease;
}
.wa-icon {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
}
.wa-icon svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}
.wa-label {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  transition:
    max-width 0.35s ease,
    opacity 0.25s ease,
    padding 0.35s ease;
}
.wa-float:hover,
.wa-float:focus-visible {
  transform: scale(1.05);
}
.wa-float:hover .wa-label,
.wa-float:focus-visible .wa-label {
  max-width: 150px;
  opacity: 1;
  padding: 0 20px 0 12px;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    animation: none;
  }
}
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 12px;
    right: 12px;
    padding: 15px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(3, 8, 13, 0.97);
    border: 1px solid #26323c;
  }
  .nav.open {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav a {
    padding: 12px 14px;
    border-radius: 10px;
    text-align: left;
  }
  .nav a:hover {
    background: rgba(255, 255, 255, 0.06);
  }
  .nav .nav-cta {
    margin-top: 6px;
    text-align: center;
    border-radius: 99px;
  }
  .menu {
    display: block;
    margin-left: auto;
    padding: 12px 6px;
    cursor: pointer;
  }
  .menu i {
    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }
  .menu[aria-expanded="true"] i:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .menu[aria-expanded="true"] i:nth-child(2) {
    opacity: 0;
  }
  .menu[aria-expanded="true"] i:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-system {
    opacity: 0.25;
    width: min(100vw, 600px);
    right: -20vw;
  }
  .hero-copy {
    padding-top: 70px;
  }
  .compliance-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .capabilities {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .capability {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
  .story-rail {
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
  }
  .story-card {
    width: 380px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  .contact-details {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 32px), var(--max));
  }
  .topbar {
    padding: 0 16px;
  }
  .hero-copy {
    width: calc(100% - 32px);
    margin-left: 16px;
  }
  .hero h1 {
    font-size: clamp(40px, 13vw, 54px);
  }
  .hero-bottom {
    padding: 0 16px;
  }
  .statement,
  .story,
  .compliance,
  .mission,
  .contact {
    padding: 100px 0;
  }
  .experience {
    padding-top: 100px;
  }
  .display {
    font-size: clamp(34px, 11vw, 48px);
  }
  .capability {
    min-height: 530px;
  }
  .gallery {
    padding: 100px 0;
  }
  .gallery-panel {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .gallery-item figcaption {
    padding: 14px 10px;
    font-size: 11px;
  }
  .gallery-item::before {
    top: 10px;
    left: 10px;
  }
  .story-rail {
    gap: 16px;
    padding: 0 16px;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }
  .story-rail::-webkit-scrollbar {
    display: none;
  }
  .story-card {
    flex: 0 0 calc(100vw - 48px);
    min-height: 0;
  }
  .story-card h3 {
    margin-top: 40px;
  }
  .cert-stack {
    grid-template-columns: 1fr;
  }
  .cert-card.big {
    grid-row: auto;
    min-height: 300px;
  }
  .mission-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .mission-main > div {
    padding: 28px 24px;
  }
  .mission-main > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Composición de cada capítulo */
.story-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Texto en el lado izquierdo */
.story-content {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(24px, 5vw, 80px);
}

/* Imagen ocupando todo el lado derecho */
.story-media {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.story-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Diseño vertical para móviles */
@media (max-width: 700px) {
  .story-card {
    grid-template-columns: 1fr;
    grid-template-rows: 0.85fr 1.15fr;
  }

  .story-content {
    grid-column: 1;
    grid-row: 2;
    padding: 24px;
  }

  .story-media {
    grid-column: 1;
    grid-row: 1;
  }
}

/* =====================================================================
   2. logo-anim.css
   ===================================================================== */
.logo-anim {
  --la-color: #adfcff;
  --la-text: #111;
  --la-bg: #f3ffff;
  --la-shadow: #000;
  --la-ew: 14;
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(10px, 2vw, 22px);
  border-radius: 18px;
  line-height: 0;
}
.logo-anim.la-pending .la-svg {
  visibility: hidden;
}
.logo-anim .la-svg {
  display: block;
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  max-width: none;
  transform: none;
  animation: none;
  overflow: visible;
}
.logo-anim .la-svg * {
  animation: none;
}
.logo-anim .la-svg .la-n,
.logo-anim .la-svg .la-cdot {
  fill: var(--la-color);
  stroke: none;
}
.logo-anim .la-svg .la-e,
.logo-anim .la-svg .la-carc,
.logo-anim .la-svg .la-ctail {
  fill: none;
  stroke: var(--la-color);
  stroke-linecap: butt;
}
.logo-anim .la-svg .la-e {
  stroke-width: var(--la-ew);
}
.logo-anim .la-svg .la-carc {
  stroke-width: 18;
}
.logo-anim .la-svg .la-ctail {
  stroke-width: 14;
}
.logo-anim .la-svg .la-t {
  fill: var(--la-text);
  stroke: none;
  font-weight: 900;
  font-family:
    Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
}

/* =====================================================================
   3. cinematic.css
   ===================================================================== */
:root {
  --font-display: Inter, system-ui, sans-serif;
  --accent: #adfcff;
  --accent-deep: #0e7a89;
  --accent-ink: #06111d;
  --paper-warm: #e9ebe7;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cine: cubic-bezier(0.76, 0, 0.24, 1);
  --page-pad: max(clamp(20px, 7vw, 120px), calc((100vw - var(--max)) / 2));
  --header-h: 74px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

body {
  overflow-x: clip;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.js [data-rise] {
  opacity: 0;
  transform: translate3d(0, 44px, 0);
}

.js [data-rise].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 1.15s var(--ease-out-expo);
  transition-delay: var(--rd, 0ms);
}

.hero-copy .kicker {
  animation: heroFadeUp 0.9s 0.1s var(--ease-out-expo) both;
}

.hero-copy .kicker span {
  transform-origin: left center;
  animation: kickerLineIn 1s 0.2s var(--ease-out-expo) both;
}

.hero h1 {
  font-size: clamp(54px, 7.1vw, 108px);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.09em;
  margin-bottom: -0.05em;
}

.hero-line > span {
  display: block;
  transform: translate3d(0, 118%, 0);
  animation: heroLineIn 1.15s var(--ease-out-expo) both;
}

.hero-line:nth-child(1) > span {
  animation-delay: 0.22s;
}
.hero-line:nth-child(2) > span {
  animation-delay: 0.34s;
}

.hero h1 em {
  color: var(--accent);
  text-shadow: 0 0 60px rgba(173, 252, 255, 0.18);
}

.hero-lead {
  color: #a7b3bd;
  animation: heroFadeUp 1s 0.58s var(--ease-out-expo) both;
}

.hero-buttons {
  animation: heroFadeUp 1s 0.72s var(--ease-out-expo) both;
}

.hero-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  gap: 17px;
  padding: 7px 7px 7px 23px;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition:
    color 0.4s var(--ease-out-expo),
    border-color 0.4s var(--ease-out-expo),
    box-shadow 0.45s var(--ease-out-expo);
}

.hero-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease-out-expo);
}

.hero-cta:hover {
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(173, 252, 255, 0.22);
}

.hero-cta:hover::before {
  transform: scaleY(1);
}

.hero-cta__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #06111d;
  color: #fff;
  overflow: hidden;
}

.hero-cta__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: arrowDrop 2.2s var(--ease-cine) infinite;
}

.hero-cta:hover .hero-cta__icon svg {
  animation: none;
  transform: translateY(4px);
  transition: transform 0.35s var(--ease-out-expo);
}

.hero-system {
  z-index: 1;
}

.hero-meta {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 100px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 30px;
  padding: 0 var(--page-pad);
  translate: 0 calc(var(--hp, 0) * 46px);
  opacity: calc(1 - var(--hp, 0) * 1.15);
  will-change: translate, opacity;
  color: #adfcff;
}

.hero-stat {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  animation: heroFadeUp 1s 0.9s var(--ease-out-expo) backwards;
}

.hero-stat__num {
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.08em;
  color: var(--accent);
}

.hero-stat__label {
  font-size: 8px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8494a0;
}

.hero-film {
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74px;
  overflow: hidden;
  opacity: 0.38;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
}

.hero-film__track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: heroFilm 85s linear infinite;
}

.hero-film img {
  width: 148px;
  height: 100%;
  object-fit: cover;
  border-right: 1px solid #02070d;
  filter: grayscale(1) contrast(1.12) brightness(0.72);
}

.statement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 170px 0 150px;
}

.statement-glow {
  position: absolute;
  z-index: 0;
  top: 8%;
  left: 50%;
  width: min(1000px, 90vw);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(
    closest-side,
    rgba(42, 167, 184, 0.16),
    transparent 72%
  );
  opacity: calc(0.4 + var(--sp, 0.5) * 0.45);
  pointer-events: none;
}

.statement-grid {
  position: relative;
  z-index: 2;
}

.statement-grid .display,
.statement-grid .large-copy {
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
}

.statement .display span {
  color: var(--accent);
}

.statement .large-copy {
  color: #8f9ba6;
}

.logos {
  position: relative;
  z-index: 2;
}

.statement-watermark {
  position: absolute;
  right: 1.5vw;
  bottom: -7vw;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(220px, 34vw, 560px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(173, 252, 255, 0.13);
  pointer-events: none;
  user-select: none;
  translate: 0 calc(var(--sp, 0.5) * -46px);
  will-change: translate;
}

.experience-head {
  position: relative;
  align-items: flex-end;
  gap: 40px;
  padding-bottom: 70px;
}

.capabilities {
  position: relative;
  margin: 0 clamp(10px, 2vw, 28px);
  padding-bottom: 76px;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: start;
}

.capability {
  min-height: min(690px, 78vh);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    border-color 0.45s var(--ease-out-expo),
    box-shadow 0.5s var(--ease-out-expo);
}

.capability:nth-child(2),
.capability:nth-child(4) {
  margin-top: 64px;
}

.capability::before {
  transform: none;
  scale: 1.1;
  translate: 0 var(--cap-par, 0px);
  transition:
    scale 0.85s var(--ease-out-expo),
    filter 0.75s ease;
  will-change: scale, translate;
}

.capability:hover::before {
  transform: none;
  scale: 1.16;
  filter: brightness(1.12) saturate(1.05);
}

.capability:hover {
  border-color: rgba(173, 252, 255, 0.42);
  box-shadow: 0 30px 70px rgba(2, 6, 10, 0.24);
}

.capability::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(2, 6, 10, 0.78), transparent);
  pointer-events: none;
}

.cap-ghost {
  position: absolute;
  z-index: 0;
  top: 42px;
  right: 18px;
  font-size: clamp(86px, 9vw, 148px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.45s ease;
}

.capability:hover .cap-ghost {
  -webkit-text-stroke-color: rgb(255, 255, 255);
}

.capability h3 {
  position: relative;
  z-index: 2;
  font-size: clamp(29px, 2.35vw, 39px);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.capability p {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.72);
}

.experience-cta {
  position: relative;
  margin-top: 0;
  padding: 34px 20px 40px 10px;
  border-top: 1px solid var(--line);
}

.dark-pill {
  transition:
    background 0.35s var(--ease-out-expo),
    color 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-expo);
}

.dark-pill:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 16px 36px rgba(13, 95, 107, 0.22);
}

@keyframes heroLineIn {
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes kickerLineIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes arrowDrop {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes cueLine {
  0% {
    transform: translateX(-101%);
  }
  55%,
  100% {
    transform: translateX(101%);
  }
}

@keyframes heroFilm {
  to {
    transform: translateX(-50%);
  }
}

/* =====================================================================
   4. cinematic-gallery.css
   ===================================================================== */
.gallery {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 0;
  background: #040a10;
  scroll-margin-top: 0;
}

.gallery-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: max(82px, 9vh) 0 16px;
}

.gallery-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      circle at 78% 16%,
      rgba(42, 167, 184, 0.18),
      transparent 34%
    ),
    radial-gradient(
      circle at 14% 82%,
      rgba(173, 252, 255, 0.08),
      transparent 38%
    ),
    linear-gradient(180deg, #050c14 0%, #03080d 100%);
}

.gallery-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: linear-gradient(
    100deg,
    transparent 8%,
    #000 46%,
    transparent 96%
  );
  mask-image: linear-gradient(
    100deg,
    transparent 8%,
    #000 46%,
    transparent 96%
  );
}

.gallery-ghost {
  position: absolute;
  z-index: 0;
  top: 52%;
  left: 0;
  font-size: clamp(140px, 22vw, 360px);
  font-weight: 800;
  line-height: 0.72;
  letter-spacing: -0.085em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(173, 252, 255, 0.08);
  translate: var(--ghost-x, 0px) -50%;
  pointer-events: none;
  user-select: none;
  will-change: translate;
}

.gallery-head {
  position: relative;
  z-index: 2;
  flex: none;
}

.gallery-head__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 15px;
}

.gallery .kicker {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.2em;
}

.gallery-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: clamp(12px, 2vh, 24px);
}

.gallery .display {
  font-size: clamp(40px, 5.2vw, 78px);
  line-height: 0.9;
}

.gallery-tabs {
  margin: clamp(14px, 2.4vh, 28px) 0 0;
  padding-bottom: 2px;
  gap: 8px;
}

.gallery-tab {
  padding: 8px 15px;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-color: rgba(255, 255, 255, 0.22);
  transition:
    background 0.35s var(--ease-out-expo),
    color 0.35s var(--ease-out-expo),
    border-color 0.35s var(--ease-out-expo);
}

.gallery-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.gallery-viewport {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.gallery-viewport:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -6px;
}

/* Las cuatro fotografías aparecen juntas en un único barrido vertical. */
.js .gallery-panel:not(.is-in):not([hidden]) {
  opacity: 0;
  translate: 0 clamp(32px, 6vh, 64px);
  animation: none;
}

.gallery-panel.is-in:not([hidden]) {
  animation: galleryGroupIn 1.2s var(--ease-out-expo) both;
}

/*
.gallery-panel {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 70px);
  width: max-content;
  padding: 0 var(--page-pad);
  transform: translate3d(var(--gx, 0px), 0, 0);
  will-change: transform;
}
*/

.gallery-panel[hidden] {
  display: none !important;
}

.gallery-item {
  position: relative;
  flex: none;
  width: clamp(300px, 42vw, 680px);
  height: min(56vh, 620px);
  aspect-ratio: auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a1219;
  clip-path: inset(0);
}

.gallery-item:nth-child(1) {
  width: clamp(230px, 29vw, 480px);
  height: min(44vh, 500px);
  margin-top: -2vh;
}

.gallery-item:nth-child(2) {
  width: clamp(230px, 29vw, 480px);
  height: min(44vh, 500px);
  margin-top: -2vh;
}

.gallery-item:nth-child(3) {
  width: clamp(230px, 29vw, 480px);
  height: min(44vh, 500px);
  margin-top: -2vh;
}

.gallery-item:nth-child(4) {
  width: clamp(230px, 29vw, 480px);
  height: min(44vh, 500px);
  margin-top: -2vh;
}

.gallery-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-item .gallery-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.03);
  transition:
    filter 0.6s ease,
    transform 1.1s var(--ease-out-expo);
  will-change: transform;
}

.gallery-item:hover .gallery-media img {
  transform: scale(1.1);
  filter: saturate(1.02) contrast(1.05) brightness(1.04);
}

.gallery-item::before {
  content: none;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 10, 0.12) 0%,
    transparent 38%,
    rgba(2, 6, 10, 0.86) 100%
  );
  pointer-events: none;
}

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "no title"
    "no meta";
  align-items: end;
  gap: 2px 14px;
  padding: clamp(16px, 2vw, 26px);
  color: #fff;
  pointer-events: none;
}

.gi-no {
  grid-area: no;
  align-self: end;
  padding-right: 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.gi-title {
  grid-area: title;
  font-size: clamp(17px, 1.55vw, 24px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  transition: color 0.4s var(--ease-out-expo);
}

.gallery-item:hover .gi-title {
  color: var(--accent);
}

.gi-meta {
  grid-area: meta;
  margin-top: 4px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.19em;
  color: #94a1ab;
}

.gallery-footer {
  position: relative;
  z-index: 3;
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding-top: 12px;
  padding-bottom: 2px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #71808b;
}

.gallery-footer__hint b {
  display: inline-block;
  margin-left: 4px;
  color: var(--accent);
  animation: hintArrow 2.6s var(--ease-cine) infinite;
}

.gallery-progress {
  width: min(340px, 42vw);
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.gallery-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}

.gallery-footer__drag {
  justify-self: end;
}

.gallery.is-natural {
  height: auto !important;
}

.gallery.is-natural .gallery-pin {
  position: relative;
  height: auto;
  padding: 120px 0 44px;
}

.gallery.is-natural .gallery-viewport {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 26px 0 22px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery.is-natural .gallery-viewport::-webkit-scrollbar {
  display: none;
}

.gallery.is-natural .gallery-panel {
  transform: none !important;
  gap: 16px;
  padding-inline: var(--page-pad);
}

.gallery.is-natural .gallery-item,
.gallery.is-natural .gallery-item:nth-child(n) {
  width: min(78vw, 520px);
  height: min(58svh, 600px);
  margin-top: 0;
  scroll-snap-align: center;
}

.gallery.is-natural .gallery-item:nth-child(even) {
  height: min(50svh, 520px);
  margin-top: 38px;
}

.gallery.is-natural .gallery-footer {
  padding-inline: var(--page-pad);
}

.story {
  position: relative;
  overflow: clip;
  padding: 170px 0 0;
  background: #02060a;
}

.story-intro {
  position: relative;
  z-index: 2;
}

.story-intro__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.story-intro__note {
  padding-bottom: 8px;
  text-align: right;
  font-size: 11px;
  line-height: 1.8;
  color: #74828d;
}

.story-stage {
  position: relative;
  height: 340svh;
}

.story-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 0 54px;
  overflow: hidden;
}

.story-progress {
  position: absolute;
  z-index: 5;
  left: clamp(18px, 3vw, 46px);
  top: 50%;
  width: 1px;
  height: 160px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
}

.story-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(var(--sp, 0));
  transform-origin: top center;
  background: linear-gradient(var(--accent), transparent);
}

.story-rail {
  position: relative;
  width: min(calc(100% - 96px), 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  counter-reset: story;
  overflow: visible;
}

.story-no {
  display: none;
}

.story-tag {
  display: inline-block;
  margin-top: 26px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.story-card h3 {
  margin-top: 0;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-wrap: balance;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.story-card p {
  max-width: 490px;
  margin-top: 22px;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.5;
  color: #b3bdc6;
}

.story-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.story-dots i {
  display: block;
  width: 7px;
  height: 2px;
  background: rgba(255, 255, 255, 0.24);
  transition:
    width 0.45s var(--ease-out-expo),
    background 0.45s ease;
}

.story-dots i.is-active {
  width: 30px;
  background: var(--accent);
}

.story-stage.is-live .story-rail {
  display: block;
  height: min(68svh, 680px);
}

.story-stage.is-live .story-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  transform-origin: center bottom;
  transition: none !important;
  scale: 1 !important;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.story-stage.is-live .story-card:hover {
  scale: 1 !important;
}

@keyframes galleryGroupIn {
  from {
    opacity: 0;
    translate: 0 clamp(36px, 6vh, 72px);
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes hintArrow {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

@media (max-width: 900px) {
  .gallery {
    height: auto !important;
  }

  .gallery-pin {
    position: relative;
    height: auto;
    padding: 118px 0 40px;
  }

  .gallery-ghost {
    top: 45%;
    font-size: 34vw;
  }

  .gallery-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .gallery-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 24px 0 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-viewport::-webkit-scrollbar {
    display: none;
  }

  .gallery-panel {
    transform: none !important;
    gap: 14px;
    padding-inline: var(--page-pad);
  }

  .gallery-item,
  .gallery-item:nth-child(n) {
    width: min(80vw, 520px);
    height: min(58svh, 600px);
    margin-top: 0;
    scroll-snap-align: center;
  }

  .gallery-item:nth-child(even) {
    height: min(50svh, 520px);
    margin-top: 34px;
  }

  .gallery-footer {
    margin-top: 8px;
    padding-inline: var(--page-pad);
  }

  .gallery-progress {
    width: 100%;
    max-width: 220px;
  }

  .gallery-footer__drag {
    display: none;
  }

  .gallery-footer {
    grid-template-columns: auto 1fr;
  }

  .gallery-footer .gallery-progress {
    justify-self: end;
  }

  .story {
    padding-top: 120px;
  }

  .story-intro__row {
    display: block;
  }

  .story-intro__note {
    margin-top: 22px;
    text-align: left;
  }

  .story-stage,
  .story-stage.is-live {
    height: auto;
  }

  .story-sticky,
  .story-stage.is-live .story-sticky {
    position: relative;
    top: auto;
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .story-rail,
  .story-stage.is-live .story-rail {
    display: grid;
    height: auto;
    width: 100%;
    padding: 0 var(--page-pad);
  }

  .story-stage.is-live .story-card,
  .story-card {
    position: relative;
    inset: auto;
    height: min(72svh, 620px);
    min-height: 0;
    transform: none !important;
    opacity: 1 !important;
    z-index: auto !important;
    transition: none !important;
  }

  .story-progress {
    display: none;
  }
}

@media (max-width: 560px) {
  .gallery-pin {
    padding-top: 98px;
  }

  .gallery .display {
    font-size: clamp(36px, 10.5vw, 48px);
  }

  .gallery-tab {
    font-size: 10px;
    padding: 8px 13px;
  }

  .gallery-item,
  .gallery-item:nth-child(n) {
    width: 82vw;
    height: min(56svh, 540px);
  }

  .gallery-item:nth-child(even) {
    height: min(48svh, 460px);
    margin-top: 26px;
  }

  .gallery-item figcaption {
    padding: 16px;
  }

  .story-card h3 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .story-card p {
    font-size: 15px;
  }
}

/* En escritorio las cuatro fotografías de cada área se muestran a la vez.
   El recorrido vertical sigue funcionando, pero sin desplazamiento horizontal. */
@media (min-width: 901px) {
  .gallery:not(.is-natural) .gallery-viewport {
    align-items: stretch;
    overflow: hidden;
  }

  .gallery:not(.is-natural) .gallery-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(10px, 1.2vw, 22px);
    width: 100%;
    height: 100%;
    padding: 0 22px;
    transform: none !important;
    will-change: auto;
  }

  .gallery:not(.is-natural) .gallery-item,
  .gallery:not(.is-natural) .gallery-item:nth-child(n) {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin-top: 0;
  }

  .gallery:not(.is-natural) .gallery-item figcaption {
    padding: clamp(14px, 1.4vw, 22px);
  }

  .gallery:not(.is-natural) .gi-title {
    font-size: clamp(15px, 1.15vw, 20px);
  }
}

@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .gallery.is-natural .gallery-viewport {
    overflow: visible;
    padding: 24px 0 0;
    scroll-snap-type: none;
  }

  .gallery.is-natural .gallery-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.2vw, 22px);
    width: 100%;
  }

  .gallery.is-natural .gallery-item,
  .gallery.is-natural .gallery-item:nth-child(n) {
    width: 100%;
    height: clamp(300px, 42vw, 520px);
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery {
    height: auto !important;
  }

  .gallery-pin {
    position: relative;
    height: auto;
  }

  .gallery-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .gallery-panel {
    transform: none !important;
  }

  .gallery-item {
    animation: none !important;
    clip-path: none !important;
  }

  .gallery-panel,
  .js .gallery-panel:not(.is-in):not([hidden]) {
    opacity: 1 !important;
    translate: none !important;
    clip-path: none !important;
    animation: none !important;
  }

  .story-stage,
  .story-stage.is-live {
    height: auto;
  }

  .story-sticky,
  .story-stage.is-live .story-sticky {
    position: relative;
    height: auto;
    padding: 0;
  }

  .story-rail,
  .story-stage.is-live .story-rail {
    display: grid;
    height: auto;
    width: 100%;
    padding: 0 var(--page-pad);
  }

  .story-stage.is-live .story-card,
  .story-card {
    position: relative;
    inset: auto;
    height: min(72svh, 620px);
    transform: none !important;
    opacity: 1 !important;
    z-index: auto !important;
  }

  .story-progress {
    display: none;
  }
}

/* =====================================================================
   5. cinematic-sections.css
   ===================================================================== */
.compliance {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 180px 0 170px;
  background: var(--paper-warm);
}

.compliance-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(6, 17, 29, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 17, 29, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(
    ellipse at 72% 44%,
    #000,
    transparent 70%
  );
  mask-image: radial-gradient(ellipse at 72% 44%, #000, transparent 70%);
}

.compliance-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}

.compliance-copy {
  position: sticky;
  top: 120px;
}

.compliance .display span {
  color: var(--blue);
}

.compliance .large-copy.muted {
  color: #3f4c56;
}

.compliance-meter {
  position: relative;
  width: min(360px, 100%);
  height: 1px;
  margin-top: 42px;
  overflow: hidden;
  background: rgba(6, 17, 29, 0.16);
}

.compliance-meter i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.compliance-caption {
  margin-top: 13px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #6c7983;
  text-transform: uppercase;
}

.cert-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  perspective: 1200px;
}

.cert-card {
  position: relative;
  min-height: 252px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  color: var(--black);
  border: 1px solid rgba(6, 17, 29, 0.09);
  opacity: var(--in, 1);
  transform: translate3d(0, calc((1 - var(--in, 1)) * 88px), 0);
  transition:
    border-color 0.45s var(--ease-out-expo),
    box-shadow 0.5s var(--ease-out-expo);
  will-change: transform, opacity;
}

.cert-card.big {
  grid-row: span 2;
  min-height: 514px;
  background: var(--blue);
  color: #fff;
}

.cert-card.dark {
  background: #111b23;
  color: #fff;
}

.cert-card.green {
  background: var(--green);
  color: #fff;
}

.cert-card::before {
  content: attr(data-cert-index);
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 20px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: currentColor;
  opacity: 0.45;
}

.cert-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    280px circle at var(--px, 50%) var(--py, 50%),
    rgba(173, 252, 255, 0.34),
    transparent 68%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.cert-card.is-hover .cert-glow {
  opacity: 1;
}

.cert-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: inherit;
  height: 100%;
  padding: 27px;
  transform: perspective(1000px) rotateX(calc(var(--my, 0) * -4deg))
    rotateY(calc(var(--mx, 0) * 4deg));
  transform-style: preserve-3d;
  transition: transform 0.24s ease-out;
  will-change: transform;
}

.cert-card.is-hover {
  border-color: rgba(13, 95, 107, 0.3);
  box-shadow: 0 34px 80px rgba(6, 17, 29, 0.17);
}

.cert-card.big.is-hover,
.cert-card.dark.is-hover,
.cert-card.green.is-hover {
  border-color: rgba(173, 252, 255, 0.55);
}

.cert-card small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
  opacity: 0.56;
}

.cert-card strong {
  display: block;
  margin-top: auto;
  font-size: clamp(28px, 3.1vw, 45px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.cert-card.big strong {
  font-size: clamp(58px, 6.2vw, 86px);
  line-height: 0.82;
}

.cert-card.dark strong,
.cert-card.green strong {
  max-width: 310px;
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 0.98;
}

.cert-card .cert-inner > span {
  display: block;
  width: 44px;
  height: 1px;
  margin-top: 18px;
  background: currentColor;
  opacity: 0.4;
}

.mission {
  position: relative;
  overflow: hidden;
  padding: 150px 0 180px;
  background: var(--paper);
}

.mission-main {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mission-main > .mission-block {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: clamp(32px, 4.6vw, 62px);
  padding-bottom: clamp(56px, 7vw, 92px);
}

.mission-main > .mission-block + .mission-block {
  border-left: 1px solid var(--line);
}

.mission-ghost {
  position: absolute;
  z-index: 0;
  top: -0.13em;
  right: 0.05em;
  font-size: clamp(120px, 16vw, 250px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(13, 95, 107, 0.13);
  pointer-events: none;
  user-select: none;
  translate: 0 calc((1 - var(--mp, 0.5)) * 28px);
}

.mission-label {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 16px;
  font-size: clamp(24px, 2.9vw, 40px);
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--blue2);
  font-weight: 800;
}

.mission h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(28px, 2.7vw, 42px);
  line-height: 0.99;
  letter-spacing: -0.065em;
  color: var(--ink);
  max-width: 500px;
}

.mission p {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin-top: 26px;
  color: #2b3740;
  font-size: 16px;
  line-height: 1.6;
}

.mission-block::after {
  content: "";
  position: absolute;
  left: clamp(32px, 4.6vw, 62px);
  bottom: 30px;
  width: 48px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(calc(0.3 + var(--mp, 0.5) * 0.7));
  transform-origin: left;
  opacity: 0.5;
}

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(120px, 12.5vw, 185px) 0 clamp(110px, 11vw, 165px);
  background: #02060a;
}

.contact-orbit {
  position: absolute;
  z-index: 0;
  top: -24vw;
  right: -22vw;
  width: 64vw;
  height: 64vw;
  border: 1px solid rgba(173, 252, 255, 0.11);
  border-radius: 50%;
  pointer-events: none;
  -webkit-mask-image: repeating-conic-gradient(
    #000 0deg,
    #000 14deg,
    transparent 14deg,
    transparent 28deg
  );
  mask-image: repeating-conic-gradient(
    #000 0deg,
    #000 14deg,
    transparent 14deg,
    transparent 28deg
  );
}

.contact-orbit::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(42, 167, 184, 0.2);
  border-radius: 50%;
}

.contact-layout {
  display: flex;
  justify-content: space-between;
  /*
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, 0.85fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "intro intro"
    "form card";
  gap: clamp(28px, 3.2vw, 50px) clamp(32px, 4.2vw, 68px);
  align-items: start;
  */
}

.contact-intro {
  grid-area: intro;
  max-width: 70%;
}

.contact .display {
  font-size: clamp(48px, 6.4vw, 98px);
}

.contact .large-copy {
  max-width: 620px;
  margin-top: clamp(16px, 2vw, 24px);
  color: #8b98a3;
}

.contact-availability {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 34px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #82919c;
}

.contact-availability span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ee0a0;
  box-shadow: 0 0 0 4px rgba(78, 224, 160, 0.12);
  animation: statusPulse 2.6s ease-in-out infinite;
}

.contact-form {
  grid-area: form;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 24px clamp(22px, 2.6vw, 42px);
  width: 100%;
  min-width: 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #96a2ac;
}

.field input,
.field textarea {
  padding: 14px 0;
  font-size: 17px;
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.field textarea {
  min-height: 130px;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}

.contact-form__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.contact-form__actions .form-status {
  margin: 0;
}

.contact-submit {
  gap: 18px;
  padding: 7px 7px 7px 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 15px;
  transition:
    background 0.4s var(--ease-out-expo),
    color 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo);
}

.contact-submit:hover {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 18px 48px rgba(173, 252, 255, 0.2);
}

.contact-submit__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #06111d;
  color: #fff;
  overflow: hidden;
}

.contact-submit__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease-out-expo);
}

.contact-submit:hover .contact-submit__icon svg {
  transform: translateX(4px);
}

/* Tarjeta de presentación */
.contact-vcard {
  width: 45%;
  height: 50%;
  grid-area: card;
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /*gap: clamp(22px, 2.4vw, 34px);*/
  padding: clamp(26px, 2.6vw, 40px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(173, 252, 255, 0.22);
  background:
    radial-gradient(
      circle at 88% 4%,
      rgba(173, 252, 255, 0.14),
      transparent 42%
    ),
    linear-gradient(155deg, rgba(42, 167, 184, 0.1), rgba(4, 12, 20, 0.94) 48%),
    #050d15;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.contact-vcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.contact-vcard::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 78%);
}

.contact-vcard__brand {
  display: grid;
  gap: 10px;
  padding-bottom: clamp(20px, 2vw, 26px);
}

.contact-vcard__logo img {
  width: 50%;
}

.contact-vcard__person {
  display: grid;
  gap: 7px;
}

.contact-vcard__role {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-vcard__person h3 {
  font-size: clamp(22px, 1.9vw, 30px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: #fff;
  text-wrap: balance;
}

.contact-vcard__list {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}

.contact-vcard__list li {
  display: grid;
  gap: 5px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.contact-vcard__list small {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-vcard__list a,
.contact-vcard__list li > span {
  font-size: 14px;
  line-height: 1.4;
  color: #eaf3f8;
  overflow-wrap: anywhere;
  transition: color 0.35s var(--ease-out-expo);
}

.contact-vcard__list li > span:last-child {
  font-size: 12px;
  color: #8b98a3;
}

.contact-vcard__list a:hover {
  color: var(--accent);
}

footer {
  overflow: hidden;
  padding: 0;
  background: #02060a;
}

.footer-mega {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(150px, 21vw, 330px);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-mega span {
  display: block;
  font-size: clamp(180px, 29vw, 520px);
  font-weight: 800;
  line-height: 0.7;
  letter-spacing: -0.09em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(173, 252, 255, 0.19);
  transform: translateY(0.07em);
  user-select: none;
}

.footer {
  padding: 38px 0 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer p,
.footer > a {
  margin-right: 0;
}

.footer > a {
  transition: color 0.3s ease;
}

.footer > a:hover {
  color: var(--accent);
}

@media (max-width: 1180px) {
  .hero-copy {
    width: min(700px, calc(100% - 64px));
  }

  .gallery-title-row {
    gap: 20px;
  }

  .story-rail {
    width: min(calc(100% - 64px), 1100px);
  }
}

@media (max-width: 900px) {
  :root {
    --page-pad: 10px;
  }

  .hero-stage {
    height: auto;
  }

  .hero {
    position: relative;
    top: auto;
    height: auto;
    min-height: 100svh;
    padding: 118px 0 150px;
  }

  .hero-copy {
    width: calc(100% - 40px);
    margin-left: 20px;
    translate: none;
    opacity: 1;
  }

  .hero-copy .kicker {
    font-size: 11px;
  }

  .hero h1 {
    font-size: clamp(46px, 12.5vw, 74px);
  }

  .hero-lead {
    max-width: 420px;
    font-size: 16px;
  }

  .hero-system {
    top: 56%;
    right: -30vw;
    width: 100vw;
    opacity: 0.22;
  }

  .hero-meta {
    left: 20px;
    right: 20px;
    bottom: 92px;
    grid-template-columns: 1fr auto;
    padding: 0;
    translate: none;
    opacity: 1;
  }

  .hero-stat__label {
    font-size: 7px;
  }

  .hero-film {
    height: 64px;
  }

  .hero-film img {
    width: 124px;
  }

  .statement {
    padding: 120px 0 110px;
  }

  .statement-watermark {
    right: 0;
    bottom: -8vw;
  }

  .logos {
    margin-top: 76px;
  }

  .experience {
    padding-top: 120px;
  }

  .experience-head {
    display: block;
    padding-bottom: 46px;
  }

  .capabilities {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 20px 52px;
    margin: 0;
    gap: 10px;
  }

  .capabilities::-webkit-scrollbar {
    display: none;
  }

  .capability,
  .capability:nth-child(2),
  .capability:nth-child(4) {
    flex: 0 0 82vw;
    min-height: 540px;
    margin-top: 0;
    scroll-snap-align: start;
  }

  .capability p {
    max-width: 300px;
  }

  .experience-cta {
    padding-inline: 20px;
  }

  .compliance {
    padding: 120px 0;
  }

  .compliance-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .compliance-copy {
    position: relative;
    top: auto;
  }

  .cert-stack {
    gap: 8px;
  }

  .cert-card {
    min-height: 230px;
  }

  .cert-card.big {
    min-height: 470px;
  }

  .cert-inner {
    padding: 22px;
  }

  .story-sticky {
    display: block;
  }

  .story-sticky .story-rail {
    width: 100%;
    flex: 0 0 auto;
  }

  .mission {
    padding: 110px 0 120px;
  }

  .mission-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .mission-main > .mission-block + .mission-block {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .contact {
    padding: 120px 0 110px;
  }

  .contact-orbit {
    width: 110vw;
    height: 110vw;
    top: -34vw;
    right: -48vw;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-layout {
    flex-direction: column;
    gap: 40px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "intro"
      "form"
      "card";
  }

  .contact-intro {
    max-width: 100%;
  }

  .contact-vcard {
    width: 100%;
    height: auto;
    max-width: 620px;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .footer-mega {
    height: clamp(120px, 32vw, 220px);
  }

  .footer-mega span {
    font-size: clamp(150px, 38vw, 320px);
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 108px;
    padding-bottom: 138px;
  }

  .hero h1 {
    font-size: clamp(41px, 13vw, 60px);
  }

  .hero-cta {
    padding-left: 18px;
    font-size: 13px;
  }

  .hero-cta__icon {
    width: 42px;
    height: 42px;
  }

  .hero-stat__num {
    font-size: 40px;
  }

  .hero-meta {
    bottom: 82px;
  }

  .statement {
    padding: 94px 0 88px;
  }

  .statement-watermark {
    font-size: 210px;
    bottom: -42px;
  }

  .experience {
    padding-top: 100px;
  }

  .capability {
    flex-basis: 86vw;
    min-height: 490px;
  }

  .capability h3 {
    font-size: 28px;
  }

  .compliance {
    padding: 94px 0;
  }

  .cert-stack {
    grid-template-columns: 1fr;
  }

  .cert-card.big {
    grid-row: auto;
    min-height: 320px;
  }

  .cert-card {
    min-height: 190px;
  }

  .cert-card.dark strong,
  .cert-card.green strong {
    font-size: 30px;
  }

  .mission-main > .mission-block {
    padding: 34px 22px 66px;
  }

  .mission h2 {
    font-size: 30px;
  }

  .mission-ghost {
    font-size: 120px;
    opacity: 0.75;
  }

  .contact {
    padding: 94px 0 90px;
  }

  .contact .display {
    font-size: clamp(38px, 12vw, 54px);
  }

  .footer-mega span {
    -webkit-text-stroke-width: 1px;
  }

  footer .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 80px;
  }
}

@media (max-width: 640px) {
  .contact-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .contact-form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-submit {
    justify-content: space-between;
    width: 100%;
  }

  .contact-vcard {
    max-width: none;
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .gallery-pin {
    padding-top: 76px;
    padding-bottom: 10px;
  }

  .gallery .display {
    font-size: clamp(34px, 4.4vw, 58px);
  }

  .gallery-tabs {
    margin-top: 12px;
  }

  .gallery-item:nth-child(n) {
    height: min(54vh, 430px);
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    height: min(56vh, 450px);
  }

  .story-sticky {
    padding-top: 82px;
    padding-bottom: 42px;
  }

  .story-stage.is-live .story-rail {
    height: min(64svh, 500px);
  }

  .story-card h3 {
    font-size: clamp(30px, 3.8vw, 52px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-rise],
  .js [data-rise].is-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-stage {
    height: auto !important;
  }

  .hero {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 100svh;
  }

  .hero-copy,
  .hero-meta {
    translate: none !important;
    opacity: 1 !important;
  }

  .hero-copy .kicker,
  .hero-copy .kicker span,
  .hero-line > span,
  .hero-lead,
  .hero-buttons,
  .hero-stat {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-cta__icon svg,
  .hero-film__track,
  .hero-orbit,
  .marquee-track,
  .gallery-footer__hint b,
  .contact-availability span {
    animation: none !important;
  }

  .statement-watermark,
  .gallery-ghost,
  .mission-ghost {
    translate: none !important;
  }

  .capability::before {
    translate: none !important;
    scale: 1.1 !important;
  }

  .capability:hover::before {
    scale: 1.1 !important;
  }

  .cert-card {
    opacity: 1 !important;
    transform: none !important;
  }

  .cert-inner {
    transform: none !important;
  }

  .contact-submit__icon svg,
  .gallery-item .gallery-media img,
  .gallery-item:hover .gallery-media img {
    transition: none !important;
  }

  .footer-mega span {
    transform: none;
  }
}
.thanks {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
}
.thanks .pill {
  margin-top: 40px;
}

/* Escritorio: formulario sí, WhatsApp no */
@media (min-width: 901px) {
  .wa-float {
    display: none;
  }
}

/* Móvil: WhatsApp sí, formulario no */
@media (max-width: 900px) {
  .contact-form {
    display: none;
  }
}

/* Fila del botón y la nota */
.contact-form__actions {
  justify-content: flex-start;
  gap: 14px 28px;
  margin-top: 8px;
}

.form-note {
  max-width: 300px;
  font-size: 15px;
  line-height: 1.45;
  color: #a7b3bd;
}

/* Menos aire vacío entre el último campo y el botón */
.contact-form .field textarea {
  min-height: 100px;
}

/* Mismo borde sutil que el botón del hero */
.contact-form .contact-submit {
  border: 1px solid rgba(255, 255, 255, 0.25);
}
