/* ============================================================
   JFH CAPITAL — Landing
   Paleta oficial
   ============================================================ */
:root {
  --black: #000000;
  --blue-deep: #0B3A9B;
  /* azul real profundo */
  --blue-corp: #0F85F8;
  /* azul corporativo (CAPITAL) */
  --blue-trans: #1579E7;
  /* azul de transición */
  --cyan: #20D1FD;
  /* cian del gradiente */
  --white: #FFFFFF;

  --grad: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue-trans) 45%, var(--cyan) 100%);

  --font-display: "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Tamaño del logo grande del hero (la altura deriva del ratio 396:295) */
  --logo-w: clamp(250px, 35vw, 480px);
  --logo-h: calc(var(--logo-w) * 0.745);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  background: #03060f;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

/* Fondo animado global, fijo detrás de toda la landing */
.silk-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

::selection {
  background: var(--cyan);
  color: var(--black);
}

img {
  display: block;
  max-width: 100%;
}

/* shared layout ------------------------------------------------ */
.section__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}

.section__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.section__eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--cyan);
  display: inline-block;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section__head {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem clamp(1.5rem, 5vw, 5rem);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  will-change: background;
}

.nav.is-scrolled {
  background: rgba(4, 8, 18, 0.92);
  min-height: 72px;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom-color: rgba(32, 209, 253, 0.14);
}

.nav__links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  flex-wrap: wrap;
  justify-content: center;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

/* Al hacer scroll, el menú desaparece y deja sitio al logo en el nav */
.nav.is-scrolled .nav__links {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  transition: color 0.25s var(--ease);
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--cyan);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover {
  color: var(--white);
}

.nav__progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 72px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.nav__progress.is-visible {
  opacity: 1;
}

.nav__progress-fill {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(32, 209, 253, 0.65);
  will-change: transform;
}

.nav__links a:hover::after {
  width: 100%;
}

/* ============================================================
   SIDE NAV (Aparece al hacer scroll)
   ============================================================ */
.side-nav {
  position: fixed;
  top: 50%;
  left: clamp(1.5rem, 3vw, 0rem);
  transform: translateY(-50%) translateX(-20px);
  display: flex;
  flex-direction: column;
  gap: 3rem;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.side-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.side-nav__link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.side-nav__link::before {
  content: '---';
  margin-right: 0.75rem;
  color: rgba(32, 209, 253, 0.5);
  letter-spacing: -1px;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.side-nav__link:hover {
  color: var(--white);
  transform: translateX(5px);
}

.side-nav__link:hover::before {
  color: var(--cyan);
}

.side-nav__link.is-active {
  color: var(--white);
  font-weight: 400;
}

.side-nav__link.is-active::before {
  color: var(--cyan);
}

/* Ocultar el side-nav en dispositivos donde no cabe a la izquierda */
@media (max-width: 1200px) {
  .side-nav {
    display: none;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  width: 100%;
}

/* Logo grande: fijo y centrado en el viewport; GSAP lo encoge al nav */
.hero__logo-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  width: var(--logo-w);
  z-index: 120;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero__logo {
  width: 100%;
  height: auto;
  display: block;
  /* Base shadow muy sutil para que no quede plano */
  filter: drop-shadow(0 0 30px rgba(32, 209, 253, 0.1));
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, filter;
  position: relative;
  z-index: 1;
}

/* Animación simple cuando el logo está en el nav superior */
.hero__logo-wrapper.is-in-nav:hover .hero__logo {
  transform: scale(1.04);
  filter: drop-shadow(0 0 30px rgba(32, 209, 253, 0.2));
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
}

/* Hover grande: Solo escala (sin luces añadidas como pidió el usuario) */
.hero__logo-wrapper:not(.is-in-nav):hover .hero__logo {
  transform: scale(1.05);
}

.hero__eyebrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: auto;
  bottom: calc(50% + (var(--logo-h) / 2) + 1.4rem);
  width: var(--logo-w);
  max-width: calc(100% - 2rem);
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(0.6rem, 0.82vw, 0.72rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  line-height: 1.7;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero__subtitle {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + (var(--logo-h) / 2) + 2.2rem);
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1.5rem;
}

.hero__subtitle .dot {
  color: var(--cyan);
}

.hero__corner {
  position: absolute;
  z-index: 30;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.hero__corner--scroll {
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.3s var(--ease);
}

.hero__corner--scroll:hover {
  color: var(--cyan);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2s var(--ease) infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: rgba(11, 58, 155, 0.88);
  overflow: hidden;
  padding: 1.1rem 0;
  border-block: 1px solid rgba(32, 209, 253, 0.18);
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  animation: marquee 28s linear infinite;
}

.marquee__track .sep {
  color: var(--cyan);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   SEPARADOR HERO → FIRMA
   ============================================================ */
.section-divider {
  position: relative;
  height: clamp(4rem, 8vw, 7rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

.section-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, 80vw);
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(32, 209, 253, 0.08) 15%,
      rgba(32, 209, 253, 0.55) 50%,
      rgba(32, 209, 253, 0.08) 85%,
      transparent 100%);
}

.section-divider::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px 3px rgba(32, 209, 253, 0.6);
  flex-shrink: 0;
}

/* ============================================================
   LA FIRMA
   ============================================================ */
.firma {
  padding: clamp(5rem, 12vw, 9rem) 0;
  /* El tinte oscuro entra de forma gradual desde transparente para que no se
     marque una línea dura con el fondo del hero/separador. */
  background: linear-gradient(to bottom,
      rgba(3, 6, 15, 0) 0,
      rgba(3, 6, 15, 0.55) clamp(120px, 22vh, 260px),
      rgba(3, 6, 15, 0.55) 100%);
}

.firma__statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.3vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 100%;
}

.firma__statement .reveal-line {
  display: block;
}

/* Cada palabra arranca en gris tenue; el scroll la lleva a blanco */
.firma__statement .word {
  display: inline-block;
  opacity: 0.18;
  will-change: opacity;
}

.firma__statement em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.firma__bold {
  font-weight: 600;
}

.firma__lead {
  margin-top: 3rem;
  margin-left: auto;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  border-left: 2px solid var(--cyan);
  padding-left: 1.75rem;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: linear-gradient(180deg, rgba(13, 68, 179, 0.5) 0%, rgba(6, 30, 90, 0.62) 100%);
}

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service {
  background: var(--blue-deep);
  background: linear-gradient(180deg, rgba(13, 68, 179, 0.6), rgba(6, 36, 107, 0.6));
  padding: clamp(2rem, 4vw, 3.25rem);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}

.service:hover {
  background: rgba(0, 0, 0, 0.35);
}

.service__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: auto;
}

.service h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  line-height: 1.1;
}

.service p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  max-width: 38ch;
}

/* ============================================================
   ENFOQUE
   ============================================================ */
.enfoque {
  padding: clamp(6rem, 13vw, 10rem) 0;
  background: rgba(3, 6, 15, 0.55);
}

.enfoque__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.enfoque__intro {
  max-width: 760px;
}

.enfoque__body {
  margin: 1.75rem auto 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.8;
}

/* Timeline horizontal: el raíl se rellena al hacer scroll y los pasos
   se activan progresivamente de izquierda a derecha. */
.enfoque__steps {
  list-style: none;
  position: relative;
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  width: 100%;
  max-width: 1000px;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

.enfoque__steps-track {
  position: absolute;
  z-index: 0;
  top: 20px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  transform: translateY(-1px);
}

.enfoque__steps-fill {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(to right, var(--cyan), var(--blue-trans));
  box-shadow: 0 0 14px rgba(32, 209, 253, 0.55);
}

.enfoque__step {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.enfoque__step-node {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1.75rem;
  background: #0a1326;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: border-color 0.45s var(--ease), background 0.45s var(--ease),
    box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}

.enfoque__step-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.45s var(--ease);
}

.enfoque__step-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.45s var(--ease);
}

.enfoque__step-body p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 30ch;
  margin: 0 auto;
  transition: color 0.45s var(--ease);
}

.enfoque__step.is-active .enfoque__step-node {
  border-color: var(--cyan);
  background: var(--grad);
  box-shadow: 0 0 0 5px rgba(32, 209, 253, 0.12), 0 0 26px rgba(32, 209, 253, 0.55);
  transform: scale(1.08);
}

.enfoque__step.is-active .enfoque__step-num {
  color: #04101f;
}

.enfoque__step.is-active .enfoque__step-body h3 {
  color: var(--white);
}

.enfoque__step.is-active .enfoque__step-body p {
  color: rgba(255, 255, 255, 0.95);
}

/* ============================================================
   POR QUÉ JFH — grid de valores
   ============================================================ */
.porque {
  padding: clamp(5rem, 11vw, 9rem) 0;
  background: rgba(3, 6, 15, 0.55);
  overflow: hidden;
}

/* Contenedor más ancho para que las 4 cards cuadradas tengan presencia en
   escritorio. El header comparte el mismo ancho para alinearse con ellas. */
.porque .section__inner {
  max-width: 1400px;
  padding-left: clamp(1.5rem, 4vw, 3rem);
  padding-right: clamp(1.5rem, 4vw, 3rem);
}

.why-grid {
  list-style: none;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

/* Flipping card: cuadrada; el contenedor crea la perspectiva 3D */
.flip-card {
  position: relative;
  aspect-ratio: 1 / 1;
  perspective: 1600px;
  outline: none;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
}

/* Volteo: en dispositivos con puntero, por hover o foco (teclado).
   En táctiles (sin hover) el volteo lo gestiona un tap que alterna .is-flipped. */
@media (hover: hover) {

  .flip-card:hover .flip-card__inner,
  .flip-card:focus-within .flip-card__inner {
    transform: rotateY(180deg);
  }
}

.flip-card.is-flipped .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__face {
  position: absolute;
  inset: 0;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: linear-gradient(158deg, rgba(20, 64, 142, 0.24), rgba(6, 14, 34, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Halo de borde con degradado en ambas caras */
.flip-card__face::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(158deg, rgba(32, 209, 253, 0.6), transparent 48%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.55s var(--ease);
  z-index: -1;
}

/* Cara frontal: foto a sangre + título sobre un degradado de legibilidad */
.flip-card__front {
  padding: 0;
  justify-content: flex-end;
}

.flip-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Colorimetría unificada: las fotos se llevan a un tono casi monocromo y
     uniforme para que las 4 cards compartan el mismo aspecto sobrio. */
  filter: grayscale(0.85) brightness(0.82) contrast(1.06);
  transition: transform 0.7s var(--ease), filter 0.55s var(--ease);
}

.flip-card__scrim {
  position: absolute;
  inset: 0;
  /* Tinte azul uniforme (uniforma el color de todas las fotos) +
     degradado oscuro inferior para la legibilidad del título. */
  background:
    linear-gradient(to top,
      rgba(3, 6, 15, 0.92) 0%,
      rgba(3, 6, 15, 0.55) 32%,
      rgba(3, 6, 15, 0.12) 62%,
      rgba(8, 24, 56, 0.18) 100%),
    linear-gradient(rgba(18, 58, 130, 0.32), rgba(18, 58, 130, 0.32));
}

.flip-card__title {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Realce de la foto al activar/voltear (mantiene la colorimetría sobria) */
.flip-card:hover .flip-card__img,
.flip-card:focus-within .flip-card__img,
.flip-card.is-flipped .flip-card__img {
  transform: scale(1.05);
  filter: grayscale(0.7) brightness(0.9) contrast(1.06);
}

/* Cara trasera: el texto */
.flip-card__back {
  transform: rotateY(180deg);
  padding: clamp(1.5rem, 2.2vw, 2.1rem);
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  border-color: rgba(32, 209, 253, 0.32);
  background: linear-gradient(158deg, rgba(24, 78, 168, 0.34), rgba(6, 14, 34, 0.55));
  box-shadow: 0 28px 64px -30px rgba(32, 209, 253, 0.55);
}

.flip-card__back::before {
  opacity: 1;
}

/* Elevación al voltear */
.flip-card:hover,
.flip-card:focus-within {
  z-index: 2;
}

.why-card__rule {
  display: block;
  width: 32px;
  height: 2px;
  margin-bottom: 0.9rem;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(32, 209, 253, 0.6);
}

.flip-card__back h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.1rem, 1.45vw, 1.4rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 0.55rem;
}

.flip-card__back p {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.82rem, 0.95vw, 0.95rem);
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.75rem;
  text-align: center;
  overflow: hidden;
  /* Transición inversa de hero → La Firma: el tinte oscuro se desvanece de
     vuelta al fondo animado del hero (transparente) hacia abajo. */
  background: linear-gradient(to bottom,
      rgba(3, 6, 15, 0.55) 0,
      rgba(3, 6, 15, 0.1) clamp(160px, 28vh, 340px),
      rgba(3, 6, 15, 0) 100%);
}

/* Halo de marca detrás del logo */
.footer__glow {
  position: absolute;
  top: 38%;
  left: 50%;
  width: min(720px, 92vw);
  height: 380px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(32, 209, 253, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.9rem;
}

/* Bloque de marca: en móvil apilado y centrado; en escritorio el logo se
   escora a la izquierda con el texto a su derecha, manteniendo el grupo
   (y todo el footer) centrado. */
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .footer__brand {
    flex-direction: row;
    align-items: center;
    gap: clamp(1.75rem, 3vw, 3rem);
  }

  .footer__brand .footer__tagline {
    text-align: left;
  }
}

.footer__logo {
  height: clamp(120px, 17vw, 190px);
  width: auto;
  filter: drop-shadow(0 0 40px rgba(32, 209, 253, 0.3));
}

.footer__tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 3vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white);
}

.footer__nav {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.25rem;
}

.footer__nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color 0.25s var(--ease);
}

.footer__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--cyan);
  transition: width 0.3s var(--ease);
}

.footer__nav a:hover {
  color: var(--white);
}

.footer__nav a:hover::after {
  width: 100%;
}

.footer__divider {
  width: 100%;
  max-width: 680px;
  height: 1px;
  margin-top: 0.75rem;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.footer__bottom {
  width: 100%;
  max-width: 760px;
  display: flex;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
}

@media (max-width: 560px) {
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

/* ============================================================
   REVEAL (animaciones gestionadas por GSAP en script.js)
   ============================================================ */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 700px) {
  .enfoque__steps {
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
    max-width: 420px;
  }

  .enfoque__steps-track {
    display: none;
  }
}

/* En pantallas estrechas, el statement fluye de forma natural en lugar de
   respetar los saltos de línea de diseño (que dejarían palabras huérfanas). */
@media (max-width: 620px) {
  .firma__statement .reveal-line {
    display: inline;
  }

  .firma__statement .reveal-line::after {
    content: " ";
  }
}

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  .nav__links {
    gap: 0.5rem 1.1rem;
    font-size: 0.78rem;
  }

  .nav__links a {
    font-size: 0.8rem;
  }

  .firma__lead {
    margin-left: 0;
  }
}

/* En pantallas pequeñas el logo del hero se reduce para que el conjunto
   (eyebrow + logo + subtítulo + descubrir) quepa sin solaparse ni recortarse. */
@media (max-width: 480px) {
  :root {
    --logo-w: clamp(240px, 72vw, 320px);
  }
}

/* En móvil el eyebrow y el subtítulo se mantienen en UNA sola línea (como en
   escritorio), ajustando tamaño y espaciado al ancho de pantalla en lugar de
   partirse. Se desacoplan del ancho del logo. */
@media (max-width: 600px) {
  .hero__eyebrow {
    width: auto;
    max-width: 96vw;
    white-space: nowrap;
    font-size: clamp(0.5rem, 2.5vw, 0.68rem);
    letter-spacing: 0.12em;
  }

  .hero__subtitle {
    flex-wrap: nowrap;
    gap: clamp(0.4rem, 2vw, 0.85rem);
    padding: 0 0.75rem;
    font-size: clamp(0.62rem, 3vw, 1rem);
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
}

/* Viewports muy bajos (móvil apaisado): no forzamos los 640px del hero y
   reducimos el logo para que el stack vertical entre en altura. */
@media (max-height: 560px) {
  .hero {
    min-height: 0;
  }

  :root {
    --logo-w: clamp(120px, 30vh, 190px);
  }

  /* No hay espacio vertical para el indicador decorativo de scroll. */
  .hero__corner--scroll {
    display: none;
  }
}

/* En apaisado (corto y ancho) el eyebrow va en una sola línea para no
   envolverse sobre el logo. */
@media (max-height: 560px) and (min-width: 560px) {
  .hero__eyebrow {
    width: auto;
    max-width: 92vw;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   COOKIE CONSENT & POLICY MODAL STYLES
   ============================================================ */

/* Footer policy links */
.footer__policy-links {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer__policy-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.25s var(--ease), text-shadow 0.25s var(--ease);
}

.footer__policy-links a:hover {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(32, 209, 253, 0.4);
}

.footer__policy-separator {
  color: rgba(255, 255, 255, 0.12);
  user-select: none;
  font-size: 0.8rem;
}

@media (max-width: 560px) {
  .footer__policy-links {
    margin-top: 0.75rem;
    gap: 0.5rem 0.75rem;
  }
  .footer__policy-separator {
    display: none;
  }
}

/* Cookie Banner Container */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 40px);
  width: calc(100% - 2rem);
  max-width: 960px;
  background: linear-gradient(135deg, rgba(8, 20, 48, 0.88) 0%, rgba(3, 8, 22, 0.96) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(32, 209, 253, 0.16);
  border-radius: 18px;
  padding: 1.5rem 2rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  box-shadow: 
    0 24px 48px -12px rgba(0, 0, 0, 0.7),
    0 0 25px 0 rgba(32, 209, 253, 0.08);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s var(--ease);
  will-change: transform, opacity;
}

.cookie-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-banner__content {
  flex: 1;
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.cookie-banner__text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.cookie-banner__link-btn {
  background: none;
  border: none;
  color: var(--cyan);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  font-weight: 400;
  transition: color 0.25s var(--ease);
}

.cookie-banner__link-btn:hover {
  color: var(--white);
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Custom cookie buttons */
.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  outline: none;
}

.cookie-btn--primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(32, 209, 253, 0.22);
}

.cookie-btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(32, 209, 253, 0.45);
}

.cookie-btn--primary:active {
  transform: translateY(0) scale(1);
}

.cookie-btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.cookie-btn--secondary:active {
  transform: translateY(0);
}

.cookie-btn--tertiary {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.cookie-btn--tertiary:hover {
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(32, 209, 253, 0.3);
}

/* Responsive Cookie Banner */
@media (max-width: 900px) {
  .cookie-banner {
    bottom: 1rem;
    padding: 1.25rem 1.5rem;
  }
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  .cookie-banner__actions {
    justify-content: flex-end;
  }
}

@media (max-width: 580px) {
  .cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .cookie-btn {
    text-align: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .cookie-btn--tertiary {
    order: 3;
  }
}

/* Modals general styling */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cookie-modal__container {
  position: relative;
  z-index: 10001;
  width: calc(100% - 2rem);
  max-width: 640px;
  background: linear-gradient(158deg, rgba(12, 28, 64, 0.94) 0%, rgba(3, 8, 22, 0.98) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(32, 209, 253, 0.22);
  border-radius: 20px;
  box-shadow: 
    0 32px 64px -16px rgba(0, 0, 0, 0.85),
    0 0 40px rgba(32, 209, 253, 0.12);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s var(--ease);
  will-change: transform, opacity;
}

.cookie-modal.is-visible .cookie-modal__container {
  transform: translateY(0) scale(1);
}

.cookie-modal__container--policy {
  max-width: 800px;
}

.cookie-modal__header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-modal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--white);
}

.cookie-modal__close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.cookie-modal__close:hover {
  color: var(--cyan);
  transform: scale(1.1);
}

.cookie-modal__body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(32, 209, 253, 0.3) rgba(255, 255, 255, 0.03);
}

.cookie-modal__body::-webkit-scrollbar {
  width: 6px;
}

.cookie-modal__body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}

.cookie-modal__body::-webkit-scrollbar-thumb {
  background: rgba(32, 209, 253, 0.25);
  border-radius: 3px;
  transition: background 0.3s;
}

.cookie-modal__body::-webkit-scrollbar-thumb:hover {
  background: rgba(32, 209, 253, 0.45);
}

.cookie-modal__intro {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.75rem;
}

.cookie-modal__options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-modal__footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background: rgba(2, 5, 12, 0.25);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* Preference Cards */
.cookie-option-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.cookie-option-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(32, 209, 253, 0.2);
}

.cookie-option-card__info {
  flex: 1;
}

.cookie-option-card__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.cookie-option-card__desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
}

/* Switch styling */
.cookie-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.cookie-switch-status {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
}

.cookie-switch-input {
  display: none;
}

.cookie-switch-label {
  position: relative;
  display: block;
  width: 48px;
  height: 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cookie-switch-label::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s var(--ease);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cookie-switch-input:checked + .cookie-switch-label {
  background: var(--cyan);
  border-color: var(--cyan);
}

.cookie-switch-input:checked + .cookie-switch-label::after {
  transform: translateX(22px);
  background: #03060f;
}

.cookie-switch-label--disabled {
  cursor: not-allowed;
  opacity: 0.4;
  border-color: transparent;
}

/* Policies tab design */
.policy-tabs {
  display: flex;
  gap: 1.5rem;
  flex: 1;
}

.policy-tab {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s var(--ease);
}

.policy-tab::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.3s var(--ease);
}

.policy-tab:hover {
  color: var(--white);
}

.policy-tab.is-active {
  color: var(--white);
  font-weight: 500;
}

.policy-tab.is-active::after {
  width: 100%;
}

.policy-tab-content {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.policy-tab-content.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.policy-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.policy-tab-content h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--white);
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}

.policy-tab-content p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1rem;
}

.policy-tab-content ul {
  list-style-type: none;
  margin-bottom: 1.25rem;
}

.policy-tab-content li {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.25rem;
}

.policy-tab-content li::before {
  content: "•";
  color: var(--cyan);
  position: absolute;
  left: 0.25rem;
  top: 0;
  font-size: 1.1rem;
}

.policy-tab-content a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.policy-tab-content a:hover {
  text-decoration: underline;
  color: var(--white);
}

/* Responsive Modal styling */
@media (max-width: 768px) {
  .cookie-modal__container {
    max-height: 90vh;
  }
  .cookie-modal__header {
    padding: 1.25rem 1.5rem;
  }
  .cookie-modal__body {
    padding: 1.5rem;
  }
  .cookie-modal__footer {
    padding: 1rem 1.5rem;
  }
  .cookie-option-card {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .cookie-switch-wrapper {
    justify-content: space-between;
  }
  .policy-tabs {
    gap: 1rem;
  }
  .policy-tab {
    font-size: 0.95rem;
  }
}