/* ===================================================
   KEDSAC — CSS Principal
   =================================================== */

:root {
  --cyan: #00AEEF;
  --cyan-l: #40D9FF;
  --cyan-d: #005FA3;
  --dark: #07090C;
  --dark2: #0C1117;
  --dark3: #111820;
  --white: #ffffff;
  --gb: rgba(255,255,255,0.06);
  --gb2: rgba(255,255,255,0.12);
  --r: 16px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  /* Posición del cursor — actualizada por JS para efectos reactivos */
  --mx: 50%;
  --my: 50%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Satoshi', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===================================================
   CONTENEDOR CENTRADO
   Todos los contenidos van dentro de .wrap
   Max-width 1280px, centrado, con margen horizontal
   =================================================== */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 72px;
}

/* ===================================================
   ANIMACIONES DE DEGRADADO
   =================================================== */

/* Texto con degradado animado (azules + blanco) */
@keyframes gradAnim {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.grad-text {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    var(--cyan-l) 20%,
    #ffffff 40%,
    var(--cyan) 60%,
    var(--cyan-d) 80%,
    #ffffff 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradAnim 2.5s linear infinite;
}

/* Fondo con degradado animado (para hover de servicios) */
@keyframes bgGradAnim {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Carrusel marquee infinito */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Reveal en scroll */
.fi {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fi.vis { opacity: 1; transform: translateY(0); }

/* ===================================================
   NAV DESKTOP — floating liquid glass
   =================================================== */

/* Keyframe para el shimmer del glass */
@keyframes navGlow {
  0%   { opacity: 0.6; background-position: 0% 50%; }
  50%  { opacity: 1;   background-position: 100% 50%; }
  100% { opacity: 0.6; background-position: 0% 50%; }
}

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  /* Alineado al ancho del contenido (.wrap max-width 1280px) */
  width: min(1280px, calc(100vw - 48px));
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 0 20px 0 16px;

  /* Liquid glass flotante */
  background: rgba(7, 9, 12, 0.52);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  box-shadow:
    0 8px 40px rgba(0,0,0,0.55),
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 -1px 0 rgba(0,0,0,0.3) inset;

  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s;
}

/* Al hacer scroll el glass se oscurece un poco más */
.nav.scrolled {
  background: rgba(7, 9, 12, 0.72);
  border-color: rgba(255,255,255,0.13);
  box-shadow:
    0 12px 48px rgba(0,0,0,0.65),
    0 1px 0 rgba(255,255,255,0.08) inset;
}

/* ── Botón hamburguesa mobile ── */
.nav-burger {
  display: none; /* Oculto en desktop */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative; z-index: 1;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Controles derechos en mobile (flag idioma + burger) ── */
.nav-mobile-right {
  display: none; /* Solo mobile */
  align-items: center;
  gap: 10px;
  position: relative; z-index: 1;
}

/* ── Botón de idioma con bandera ── */
.nav-lang-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.7);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-lang-flag .flag { font-size: 14px; line-height: 1; }
.nav-lang-flag:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── Overlay menú mobile ── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(7,9,12,0.96);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  display: flex;
  flex-direction: column;
  padding: 88px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
}
.nav-overlay.open { transform: translateX(0); }
.nav-overlay-close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.nav-overlay-close:hover { background: rgba(255,255,255,0.15); }
.nav-overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 32px;
}
.nov-link {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.5);
  padding: 6px 0;
  transition: color 0.2s;
}
.nov-link.active, .nov-link:hover { color: var(--white); }
.nav-overlay-services {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 40px;
}
.nov-services-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.nov-service-link {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.nov-service-link:hover { color: var(--white); }
.nov-overlay-bottom {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nov-wa-btn {
  background: var(--cyan);
  color: var(--dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 12px 24px;
  border-radius: 50px;
  flex: 1;
  text-align: center;
  transition: background 0.2s;
}
.nov-wa-btn:hover { background: var(--cyan-l); }
.nov-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  transition: border-color 0.2s, color 0.2s;
}
.nov-lang-switch .flag { font-size: 16px; }
.nov-lang-switch:hover { border-color: var(--cyan); color: var(--cyan); }

/* Capa del degradado animado sobre el glass */
.nav-glow {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(0,174,239,0.12) 0%,
    rgba(7,9,12,0) 28%,
    rgba(0,95,163,0.10) 55%,
    rgba(7,9,12,0) 75%,
    rgba(0,174,239,0.08) 100%
  );
  background-size: 280% 280%;
  animation: navGlow 4s ease infinite;
}

/* Línea de highlight en el borde superior (efecto glass premium) */
.nav-highlight {
  position: absolute;
  top: 0; left: 12px; right: 12px;
  height: 1px; z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.18) 30%,
    rgba(255,255,255,0.28) 50%,
    rgba(255,255,255,0.18) 70%,
    transparent
  );
}

.nav-logo {
  position: relative; z-index: 1;
  flex-shrink: 0;
}
/* Img invisible — define las dimensiones del área del logo */
.nav-logo-img {
  display: block;
  height: 36px;
  opacity: 0;
  pointer-events: none;
  flex-shrink: 0;
}
/* Gradiente animado sobre el logo (mask) */
.nav-logo-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ffffff 0%, var(--cyan-l) 25%, var(--cyan) 55%, var(--cyan-d) 80%, #ffffff 100%);
  background-size: 300% auto;
  animation: gradAnim 3s linear infinite;
  -webkit-mask-image: url('https://i.ibb.co/ymrmw13j/logo2.png');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-image: url('https://i.ibb.co/ymrmw13j/logo2.png');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: left center;
  transition: opacity 0.3s;
}
.nav-logo:hover .nav-logo-grad { opacity: 0.8; }

.nav-links {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links .nav-cta {
  background: var(--cyan);
  color: var(--dark);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: background 0.2s, transform 0.15s;
}
.nav-links .nav-cta:hover { background: var(--cyan-l); transform: translateY(-1px); }

/* Botón de cambio de idioma EN/ES (desktop) */
.nav-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65) !important;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-lang-btn .flag { font-size: 13px; line-height: 1; }
.nav-lang-btn:hover { border-color: var(--cyan); color: var(--cyan) !important; }

/* ===================================================
   NAV MOBILE — bottom tab bar con iconos
   =================================================== */
.nav-bottom {
  display: none; /* Solo visible en mobile — ver @media */
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 24px);
  max-width: 440px;
  height: 64px;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;

  /* Liquid glass */
  background: rgba(7, 9, 12, 0.68);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.55),
    0 1px 0 rgba(255,255,255,0.07) inset;

  overflow: hidden;
  isolation: isolate;
}

/* Degradado animado del bottom nav */
.nav-bottom-glow {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0,174,239,0.1) 0%,
    rgba(7,9,12,0) 35%,
    rgba(0,95,163,0.08) 65%,
    rgba(7,9,12,0) 100%
  );
  background-size: 300% 300%;
  animation: navGlow 5s ease infinite;
}

/* Cada item del bottom nav */
.nbt-item {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  padding: 6px 4px;
  color: rgba(255,255,255,0.42);
  transition: color 0.2s;
  text-align: center;
}
.nbt-item.active { color: var(--cyan); }
.nbt-item:hover  { color: rgba(255,255,255,0.82); }
.nbt-item.nbt-wa.active { color: #25D366; }

.nbt-icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
}
.nbt-item span {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Indicador de página activa (punto bajo el icono) */
.nbt-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}
.nbt-item.nbt-wa.active::after { background: #25D366; }

/* El overlay de nav usa transform para mostrar/ocultar (no display) */

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-video-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.26;
  pointer-events: none;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7,9,12,.6) 0%, rgba(7,9,12,.3) 40%, rgba(7,9,12,.95) 100%);
  z-index: 1; pointer-events: none;
}
/* Efecto de glow reactivo al cursor en el hero */
.hero-cursor-glow {
  position: absolute; inset: 0;
  background: radial-gradient(
    600px circle at var(--mx) var(--my),
    rgba(0,174,239,0.06),
    transparent 70%
  );
  z-index: 1; pointer-events: none;
  transition: background 0.1s;
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 0 72px 80px;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-content { flex: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--cyan);
}
.hero-title {
  font-size: clamp(52px, 8.5vw, 118px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero-title em { font-style: normal; color: var(--cyan); }
.hero-sub {
  font-size: clamp(14px, 1.3vw, 17px);
  color: rgba(255,255,255,0.6);
  max-width: 420px;
  line-height: 1.45;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Lista de servicios lateral en el hero */
.hero-services-panel {
  flex-shrink: 0;
  width: 220px;
  margin-bottom: 6px;
}
.hsp-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hsp-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.hsp-list { display: flex; flex-direction: column; gap: 0; }
.hsp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  /* Estado inicial: invisible, desplazado a la derecha */
  opacity: 0;
  transform: translateX(28px);
  transition: transform 0.45s var(--ease), opacity 0.38s ease;
}
.hsp-item:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
/* Item activo: entra desde la derecha y se amplía un poco */
.hsp-item.hsp-active {
  opacity: 1;
  transform: translateX(0) scale(1.04);
}
/* Item saliendo: sale hacia la izquierda */
.hsp-item.hsp-exit {
  opacity: 0;
  transform: translateX(-24px);
  transition-duration: 0.3s, 0.28s;
}
.hsp-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.hsp-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
  opacity: 0.7;
}
.hsp-item:hover .hsp-name { color: var(--white); }
.hsp-item:hover .hsp-num { opacity: 1; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px; right: 72px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.hero-scroll-line { width: 36px; height: 1px; background: rgba(255,255,255,0.2); }

/* ===================================================
   BOTONES
   =================================================== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cyan);
  color: var(--dark);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--cyan-l); transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gb);
  color: var(--white);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.14);
  transition: background 0.2s, transform 0.15s;
}
.btn-secondary:hover { background: var(--gb2); transform: translateY(-2px); }

/* ===================================================
   SECCIÓN BASE
   =================================================== */
.sec { padding: 110px 0; }
.sec-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.sec-title {
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.sec-title span { color: var(--cyan); }

/* ===================================================
   CLIENTS CAROUSEL
   =================================================== */
.clients-strip {
  background: var(--dark2);
  padding: 72px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.clients-strip-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  text-align: center;
  margin-bottom: 44px;
}
.clients-carousel-wrap { position: relative; }
.clients-carousel-wrap::before,
.clients-carousel-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 160px; z-index: 2; pointer-events: none;
}
.clients-carousel-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--dark2), transparent);
}
.clients-carousel-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--dark2), transparent);
}
.clients-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.clients-track:hover { animation-play-state: paused; }
.clients-track img {
  height: 38px; /* Logos más grandes */
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.42;
  flex-shrink: 0;
  transition: opacity 0.3s, filter 0.3s;
}
.clients-track img:hover {
  opacity: 0.85;
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(172deg);
}

/* ===================================================
   HOME — SERVICES PREVIEW (grid)
   =================================================== */
.services-preview { background: var(--dark); }
.services-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 56px;
  border: 1px solid rgba(255,255,255,0.06);
}
.sp-item {
  position: relative;
  overflow: hidden;
  padding: 40px 36px;
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  isolation: isolate;
}
/* Degradado animado que aparece al hacer hover */
.sp-item::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(
    120deg,
    rgba(0,174,239,0.18) 0%,
    rgba(7,9,12,0.8) 40%,
    rgba(0,95,163,0.15) 80%,
    rgba(0,174,239,0.1) 100%
  );
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  animation: bgGradAnim 2s ease infinite;
}
.sp-item:hover::before { opacity: 1; }
.sp-item > * { position: relative; z-index: 1; }
.sp-num {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.15em; color: var(--cyan);
  margin-bottom: 12px;
}
.sp-name {
  font-size: 20px; font-weight: 800;
  letter-spacing: -0.01em; margin-bottom: 8px;
  transition: color 0.2s;
}
.sp-item:hover .sp-name { color: var(--cyan-l); }
.sp-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

/* ===================================================
   HOME — FEATURED PROJECT BANNER
   =================================================== */
.fp-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: var(--dark3);
  display: block;
}
@media (max-width: 768px) {
  .fp-banner { aspect-ratio: 4/3; }
}
.fp-banner-media {
  position: absolute;
  inset: 0;
}
.fp-banner-media img,
.fp-banner-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.fp-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(7,9,12,0.65) 0%,
    rgba(7,9,12,0.1) 50%,
    rgba(7,9,12,0.45) 100%
  );
}
.fp-banner-info {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width: 768px) {
  .fp-banner-info { padding: 0 20px; bottom: 20px; gap: 12px; flex-wrap: wrap; }
}
.fp-banner-client {
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.fp-banner-label {
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
}
.fp-banner-year {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em;
  margin-left: auto;
}
@media (max-width: 768px) {
  .fp-banner-year { display: none; }
}
.fp-banner-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  border: 1px solid rgba(0,174,239,0.35);
  padding: 7px 16px;
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
}
.fp-banner-cta:hover {
  background: var(--cyan);
  color: var(--dark);
}

/* tag pill — usado también en lightbox */
.tag {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.65);
}

/* ===================================================
   SERVICIOS PAGE
   =================================================== */
.page-hero {
  min-height: 52dvh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, var(--dark) 0%, #030d1a 30%, #001a2e 55%, #00091a 75%, var(--dark) 100%);
  background-size: 300% 300%;
  animation: gradAnim 6s ease infinite;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 72px;
  padding-top: 140px;
}
.page-hero-title {
  font-size: clamp(48px, 8.5vw, 112px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.page-hero-title em {
  font-style: normal;
  display: block;
}

/* Lista de servicios — editorial */
.services-list { background: var(--dark); }
.service-item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 72px 72px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: grid;
  grid-template-columns: 72px 1fr 1fr;
  gap: 36px;
  align-items: start;
  cursor: default;
}
/* Glow reactivo al cursor dentro del item */
.service-item::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(
    500px circle at var(--ix, 50%) var(--iy, 50%),
    rgba(0,174,239,0.1),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
/* Fondo de degradado animado en hover */
.service-item::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(
    125deg,
    rgba(0,95,163,0.22) 0%,
    rgba(7,9,12,0) 35%,
    rgba(0,174,239,0.12) 70%,
    rgba(7,9,12,0) 100%
  );
  background-size: 300% 300%;
  opacity: 0;
  animation: bgGradAnim 1.8s ease infinite;
  transition: opacity 0.35s var(--ease);
}
.service-item:hover::before { opacity: 1; }
.service-item:hover::after  { opacity: 1; }
.service-item > * { position: relative; z-index: 1; }
.service-num {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--cyan);
  padding-top: 6px;
}
.service-name {
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-transform: uppercase;
  transition: color 0.25s;
}
.service-name a { color: inherit; transition: color 0.25s; }
.service-item:hover .service-name,
.service-item:hover .service-name a { color: var(--cyan-l); }
.service-right { display: flex; flex-direction: column; gap: 20px; padding-top: 6px; }
.service-desc { font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.5; }
.service-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.service-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); margin-top: 6px;
  transition: gap 0.2s;
}
.service-cta:hover { gap: 14px; }

/* ===================================================
   PORTAFOLIO PAGE
   =================================================== */
.portfolio-hero {
  position: relative;
  height: 240px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.portfolio-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.38;
}
.portfolio-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7,9,12,.1) 0%, rgba(7,9,12,.82) 100%);
}
.portfolio-hero-content {
  position: relative; z-index: 2;
  padding: 0 72px 32px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.portfolio-hero-title {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.portfolio-hero-scroll { display: none; }
.portfolio-hero-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  padding-bottom: 6px;
  flex-shrink: 0;
}

.portfolio-grid-section { background: var(--dark); padding: 32px 0 80px; }
.portfolio-grid-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap; gap: 16px;
}
.portfolio-grid-header p { font-size: 12px; color: rgba(255,255,255,0.35); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.project-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--dark3);
  cursor: pointer;
  isolation: isolate;
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.project-card:hover img { transform: scale(1.06); }
/* Efecto de glow reactivo en las cards del portafolio */
.project-card::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(
    circle at var(--cx, 50%) var(--cy, 50%),
    rgba(0,174,239,0.15),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover::before { opacity: 1; }
.project-card-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(7,9,12,0.92) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.project-card:hover .project-card-overlay { opacity: 1; }
.project-card-client {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 5px;
}
.project-card-name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.project-card-type { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 3px; }

/* Lightbox */
.lb-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(7,9,12,0.97);
  backdrop-filter: blur(20px);
}
.lb-overlay.open { display: flex; flex-direction: column; }
.lb-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.lb-title { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.lb-close {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gb); border: none; color: var(--white);
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lb-close:hover { background: var(--gb2); }
.lb-body {
  flex: 1; overflow-y: auto; padding: 28px 36px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  align-items: start;
  align-content: start;
}
.lb-item { position: relative; }
.lb-item img {
  width: 100%; height: auto; display: block;
  object-fit: cover; border-radius: 10px;
  cursor: zoom-in; transition: transform 0.3s;
}
.lb-item img:hover { transform: scale(1.02); }
.lb-item-label { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 7px; padding: 0 4px; }
.lb-vid-poster { position: relative; cursor: pointer; border-radius: 10px; overflow: hidden; }
.lb-vid-poster img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.lb-vid-poster-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); transition: background 0.2s;
}
.lb-vid-poster:hover .lb-vid-poster-play { background: rgba(0,0,0,0.2); }
.lb-vid-play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--cyan);
  display: flex; align-items: center; justify-content: center;
}
.lb-video { width: 100%; aspect-ratio: 16/9; border: none; border-radius: 10px; }

/* PDF thumbnail en el grid del lightbox */
.lb-pdf-item { cursor: pointer; }
.lb-pdf-thumb {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s;
  min-height: 160px;
  display: flex; flex-direction: column;
}
.lb-pdf-thumb:hover { border-color: rgba(0,174,239,0.35); }
.lb-pdf-canvas { display: block; width: 100%; border-radius: 0; }
.lb-pdf-fallback {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  justify-content: center; flex: 1; padding: 24px 16px 8px;
}
.lb-pdf-label { font-size: 13px; font-weight: 600; text-align: center; color: var(--white); }
.lb-pdf-hint  {
  font-size: 11px; color: rgba(255,255,255,0.35);
  padding: 8px 14px; text-align: center;
}

/* PDF Viewer — pantalla completa con slide de páginas */
.pdf-viewer-ov {
  display: none; position: fixed; inset: 0; z-index: 250;
  background: #07090c;
  flex-direction: column;
}
.pdf-viewer-ov.open { display: flex; }
.pdf-viewer-header {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 32px;
  background: rgba(7,9,12,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.pdf-viewer-title { flex: 1; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; }
.pdf-page-info { font-size: 13px; color: rgba(255,255,255,0.4); min-width: 56px; text-align: center; }
.pdf-viewer-stage {
  flex: 1; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 28px 84px;
}
.pdf-canvas-wrap {
  box-shadow:
    0 16px 80px rgba(0,0,0,0.85),
    0 4px 24px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  /* transición controlada por JS */
}
#pdfCanvas { display: block; }
.pdf-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, opacity 0.2s;
  backdrop-filter: blur(8px); z-index: 5;
}
.pdf-nav-btn:hover:not(:disabled) { background: rgba(255,255,255,0.18); }
.pdf-nav-btn:disabled { opacity: 0.15; cursor: default; }
.pdf-nav-prev { left: 20px; }
.pdf-nav-next { right: 20px; }

/* Image zoom */
.img-zoom-ov {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.94);
  align-items: center; justify-content: center;
}
.img-zoom-ov.open { display: flex; }
.img-zoom-ov img { max-width: 90vw; max-height: 90dvh; object-fit: contain; border-radius: 8px; }
.img-zoom-close {
  position: absolute; top: 20px; right: 20px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; transition: background 0.2s;
}
.img-zoom-close:hover { background: rgba(255,255,255,0.2); }

/* ===================================================
   CONTACTO PAGE
   =================================================== */
/* ── Contacto hero ── */
.contacto-hero {
  min-height: 55dvh;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding-top: 120px; padding-bottom: 72px;
  background: linear-gradient(135deg, var(--dark) 0%, #030d1a 30%, #001a2e 55%, #00091a 75%, var(--dark) 100%);
  background-size: 300% 300%;
  animation: gradAnim 6s ease infinite;
}
.contacto-big {
  font-size: clamp(40px, 7vw, 100px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 36px;
}
.contacto-big span { color: var(--cyan); display: block; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Layout contacto: info + form ── */
.contacto-body {
  background: var(--dark);
  padding: 80px 0 110px;
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
/* Columna izquierda — info */
.contacto-info { display: flex; flex-direction: column; gap: 48px; }
.ci-block { display: flex; flex-direction: column; gap: 8px; }
.ci-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan);
}
.ci-value { font-size: 16px; font-weight: 500; line-height: 1.5; }
.ci-value a { transition: color 0.2s; }
.ci-value a:hover { color: var(--cyan); }
.contacto-social { display: flex; gap: 14px; flex-wrap: wrap; }
.contacto-social a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  transition: color 0.2s, border-color 0.2s;
}
.contacto-social a:hover { color: var(--cyan); border-color: var(--cyan); }

/* ── Formulario de contacto ── */
.contacto-form-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 48px;
  backdrop-filter: blur(10px);
}
.contacto-form-title {
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-full { grid-column: 1 / -1; }
.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.cf-input, .cf-select, .cf-textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.cf-input:focus, .cf-select:focus, .cf-textarea:focus {
  border-color: var(--cyan);
  background: rgba(0,174,239,0.05);
}
.cf-input::placeholder, .cf-textarea::placeholder { color: rgba(255,255,255,0.25); }
.cf-select { -webkit-appearance: none; cursor: pointer; }
.cf-select option { background: var(--dark2); color: var(--white); }
.cf-textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.cf-submit {
  width: 100%;
  background: var(--cyan);
  color: var(--dark);
  font-family: 'Satoshi', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px;
  border: none; border-radius: 10px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cf-submit:hover { background: var(--cyan-l); transform: translateY(-2px); }
.cf-submit:active { transform: translateY(0); }
.cf-notice {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500; line-height: 1.45;
}
.cf-notice.success { background: rgba(0,174,239,0.1); border: 1px solid rgba(0,174,239,0.3); color: var(--cyan-l); }
.cf-notice.error   { background: rgba(200,40,40,0.1); border: 1px solid rgba(200,40,40,0.3); color: #ff7070; }

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 72px 0 36px;
}
.footer-inner {
  display: flex; justify-content: space-between;
  gap: 60px; margin-bottom: 52px; flex-wrap: wrap;
}
.footer-logo {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.65;
  margin-bottom: 18px;
}
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.38); line-height: 1.6; }
.footer-links { display: flex; gap: 72px; }
.footer-col { display: flex; flex-direction: column; gap: 13px; }
.footer-col-title {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 4px;
}
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 11px; color: rgba(255,255,255,0.22);
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===================================================
   WHATSAPP POPUP
   =================================================== */
.wa-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 150;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.38);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.wa-fab:hover {
  transform: scale(1.09);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.wa-fab svg { width: 28px; height: 28px; }

.wa-card {
  position: fixed; bottom: 94px; right: 28px; z-index: 149;
  width: 295px;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px; padding: 22px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  transform: translateY(14px) scale(0.96);
  opacity: 0; pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.25s;
}
.wa-card.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }
.wa-card-header { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.wa-card-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wa-card-avatar svg { width: 20px; height: 20px; }
.wa-card-name { font-size: 13px; font-weight: 700; line-height: 1.2; }
.wa-card-status { font-size: 10px; color: #25D366; font-weight: 600; }
.wa-bubble {
  background: var(--dark3);
  border-radius: 4px 13px 13px 13px;
  padding: 11px 13px;
  font-size: 13px; color: rgba(255,255,255,0.78);
  line-height: 1.5; margin-bottom: 18px;
}
.wa-field { margin-bottom: 9px; }
.wa-field input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 9px; padding: 10px 13px;
  font-size: 13px; font-family: 'Satoshi', sans-serif;
  color: var(--white); outline: none;
  transition: border-color 0.2s;
}
.wa-field input:focus { border-color: var(--cyan); }
.wa-field input::placeholder { color: rgba(255,255,255,0.32); }
.wa-send-btn {
  width: 100%; background: #25D366; color: #fff;
  font-family: 'Satoshi', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 11px; border: none; border-radius: 9px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 12px;
  transition: background 0.2s, transform 0.15s;
}
.wa-send-btn:hover { background: #1eb856; transform: translateY(-1px); }
.wa-send-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.wa-success { display: none; text-align: center; padding: 6px 0 2px; }
.wa-success p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.wa-success strong { color: #25D366; }

/* ===================================================
   RESPONSIVE — TABLET
   =================================================== */
@media (max-width: 1024px) {
  .wrap { padding: 0 48px; }
  .hero-inner { padding: 0 48px 72px; }
  .portfolio-hero-content { padding: 0 48px 72px; }
  .portfolio-hero-scroll { right: 48px; }
  .hero-scroll { right: 48px; }
}

/* ===================================================
   RESPONSIVE — MOBILE (< 768px)
   =================================================== */
@media (max-width: 768px) {
  /* Mobile: barra completa de borde a borde con degradado animado */
  .nav {
    top: 0; left: 0;
    transform: none;
    width: 100%; max-width: 100%;
    height: 64px;
    padding: 0 20px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #07090C 0%, #030d1a 35%, #001a2e 60%, #07090C 100%);
    background-size: 300% 300%;
    animation: gradAnim 6s ease infinite;
    justify-content: space-between;
  }
  /* Oculta overlay glass y highlight en mobile — el gradAnim ya lo reemplaza */
  .nav-glow, .nav-highlight { display: none; }
  .nav-logo-img { height: 34px; }
  /* Oculta los links del nav en mobile — se usan los del bottom nav + overlay */
  .nav-links { display: none !important; }
  /* Muestra controles derechos (flag + burger) */
  .nav-mobile-right { display: flex; }
  /* Muestra botón hamburguesa */
  .nav-burger { display: flex; }

  /* Activa el bottom nav en mobile */
  .nav-bottom { display: flex; }

  /* Padding inferior del body para que el bottom nav no tape contenido */
  body { padding-bottom: 84px; }

  /* Contenedor */
  .wrap { padding: 0 20px; }

  /* Hero mobile — centrar verticalmente para eliminar espacio vacío */
  .hero { align-items: center; padding-top: 64px; }
  .hero-inner {
    flex-direction: column; align-items: flex-start;
    gap: 0; padding: 0 20px 40px;
  }
  .hero-services-panel { display: none; } /* Oculto en mobile — se ve en servicios */
  .hero-title { font-size: clamp(44px, 12vw, 72px); line-height: 0.9; }
  .hero-sub { font-size: 14px; max-width: 100%; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas a { text-align: center; justify-content: center; }
  .hero-scroll { right: 20px; bottom: 24px; }

  /* Secciones */
  .sec { padding: 72px 0; }
  .sec-title { font-size: clamp(28px, 7vw, 44px); }

  /* Clients */
  .clients-strip { padding: 52px 0; }
  .clients-carousel-wrap::before,
  .clients-carousel-wrap::after { width: 60px; }
  .clients-track { gap: 52px; }
  .clients-track img { height: 28px; }

  /* Services preview grid */
  .services-preview-grid { grid-template-columns: 1fr; }
  .sp-item { padding: 28px 20px; }
  .sp-name { font-size: 17px; }

  /* Featured project */
  .featured-project { padding: 72px 0; }
  .featured-project-inner { grid-template-columns: 1fr; gap: 36px; }

  /* Servicios page */
  .page-hero { padding-top: 100px; padding-bottom: 48px; min-height: 40dvh; }
  .page-hero-title { font-size: clamp(40px, 10vw, 72px); line-height: 0.88; }
  .service-item {
    grid-template-columns: 1fr;
    gap: 12px; padding: 44px 0;
  }
  .service-name { font-size: clamp(28px, 8vw, 44px); }

  /* Portfolio page */
  .portfolio-hero-content { padding: 0 20px 56px; }
  .portfolio-hero-title { font-size: clamp(52px, 13vw, 88px); }
  .portfolio-hero-scroll { display: none; }
  .portfolio-grid-section { padding: 52px 0 80px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .lb-body { grid-template-columns: 1fr; padding: 20px; }
  .lb-header { padding: 14px 20px; }

  /* Contacto */
  .contacto-hero { padding-top: 100px; padding-bottom: 48px; min-height: auto; }
  .contacto-big { font-size: clamp(34px, 10vw, 60px); margin-bottom: 28px; }
  .contact-ctas { flex-direction: column; }
  .contacto-grid { grid-template-columns: 1fr; gap: 48px; }
  .contacto-form-wrap { padding: 28px 20px; }
  .cf-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer { padding: 56px 0 28px; }
  .footer-inner { flex-direction: column; gap: 36px; }
  .footer-links { gap: 36px; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* WhatsApp fab — se oculta en mobile porque WhatsApp ya está en el bottom nav */
  .wa-fab { display: none; }
  .wa-card { display: none; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(40px, 13vw, 60px); }
}

/* ===================================================
   PORTFOLIO HERO — mobile
   =================================================== */
@media (max-width: 768px) {
  .portfolio-hero {
    height: auto;
    min-height: 0;
    padding-top: 72px;
    padding-bottom: 24px;
  }
  .portfolio-hero-content {
    padding: 0 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .portfolio-hero-title {
    font-size: clamp(30px, 9vw, 48px);
  }
  .portfolio-grid-section { padding: 20px 0 60px; }
  .portfolio-grid-header { margin-bottom: 16px; }
}

/* ===================================================
   NAV — Animación de entrada (todas las páginas, desktop)
   Secuencia: pill aparece → logo entra desde centro → links despliegan
   =================================================== */
@media (min-width: 769px) {

  /* 1. Nav pill se expande desde el centro */
  .nav {
    animation: navPillReveal 0.9s var(--ease) 0.1s both;
  }
  @keyframes navPillReveal {
    from {
      opacity: 0;
      clip-path: inset(0 46% 0 46% round 14px);
    }
    to {
      opacity: 1;
      clip-path: inset(0 0% 0 0% round 14px);
    }
  }

  /* 2. Logo aparece y se desliza a la izquierda */
  .nav-logo {
    animation: logoSlideLeft 0.6s var(--ease) 0.85s both;
  }
  @keyframes logoSlideLeft {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  /* 3. Nav links despliegan en cascada desde la derecha */
  .nav-links li {
    animation: linkSlideIn 0.45s var(--ease) both;
    opacity: 0;
  }
  .nav-links li:nth-child(1) { animation-delay: 1.05s; }
  .nav-links li:nth-child(2) { animation-delay: 1.15s; }
  .nav-links li:nth-child(3) { animation-delay: 1.25s; }
  .nav-links li:nth-child(4) { animation-delay: 1.35s; }
  .nav-links li:nth-child(5) { animation-delay: 1.45s; }
  .nav-links li:nth-child(6) { animation-delay: 1.55s; }
  .nav-links li:nth-child(7) { animation-delay: 1.65s; }
  @keyframes linkSlideIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
  }
}

/* Hero logo embed — ya no se usa */
.hero-logo-embed { display: none !important; }

/* Mobile: nav sin animación de entrada (ya tiene gradiente) */
@media (max-width: 768px) {
  .nav { animation: none; }
  .nav-logo { animation: none; }
  .nav-links li { animation: none; opacity: 1; }
  .nav-logo-img { height: 34px; }
}
