/* ─────────────────────────────────────────────────────────────────────────────
   Escala Digital — Estilos generales
   Paleta: --navy-dark #0A1A33 | --navy-mid #0D2B5E | --blue #1464FF | --blue-light #29A8FF
───────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Elimina el rectángulo azul de tap en Android/iOS */
  -webkit-tap-highlight-color: transparent;
}

:root {
  --white:      #FFFFFF;
  --navy-dark:  #0A1A33;
  --navy-mid:   #0D2B5E;
  --blue:       #1464FF;
  --blue-light: #29A8FF;
  --gray-50:    #F7F8FA;
  --gray-400:   #9BA3AF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--navy-dark);
  overflow-x: hidden;
}

/* Navbar eliminada — ver css/navbar.css para la barra flotante actual */

/* ─────────────────────────────
   PAGE WRAP
───────────────────────────── */
.page-body {
  padding: 0;
  position: relative;
  z-index: 5;
  margin-top: -1px; /* cierra gap sub-pixel con globo */
}

/* ─────────────────────────────
   HERO — full width, edge to edge
───────────────────────────── */
.hero-card {
  background:
    linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.45) 68%, rgba(0,0,0,0.82) 88%, #000000 100%),
    radial-gradient(ellipse at 28% 55%, #0D2B5E 0%, #000000 65%);
  border-radius: 0;
  overflow: hidden;
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 64px 64px 64px 60px;
  gap: 32px;
}

/* Beams canvas — behind all content */
.hero-beams-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* opacity gestionada por GSAP */
  pointer-events: none;
  will-change: opacity;
}

/* Top fade sólido + radial glow — funde con globo sin línea visible */
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, #000000 0%, #000000 5%, transparent 22%),
    radial-gradient(ellipse at 15% 58%, rgba(20,100,255,0.14) 0%, transparent 68%);
  pointer-events: none;
  z-index: 1;
}

/* Noise texture overlay */
.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ─────────────────────────────
   HERO LEFT — copy
───────────────────────────── */
.hero-left {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(41,168,255,0.1);
  border: 1px solid rgba(41,168,255,0.2);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 28px;
  /* opacity: GSAP on-scroll (no poner 0 aquí — si GSAP falla, el contenido debe ser visible) */
}

.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--blue-light);
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 2.4s ease-in-out infinite;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 3.8vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 20px;
  /* opacity: GSAP on-scroll (no poner 0 aquí — si GSAP falla, el contenido debe ser visible) */
}

.hero-title .accent { color: var(--blue-light); }

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255,255,255,0.62);
  max-width: 420px;
  margin-bottom: 18px;
  /* opacity: GSAP on-scroll (no poner 0 aquí — si GSAP falla, el contenido debe ser visible) */
}

.service-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 38px;
  /* opacity: GSAP on-scroll (no poner 0 aquí — si GSAP falla, el contenido debe ser visible) */
}

.service-row span {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
}

.dot-sep {
  width: 4px; height: 4px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  animation: heroCtaIn 0.55s cubic-bezier(0.32,0.72,0,1) 1.1s both;
}

@keyframes heroCtaIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CTA button — button-in-button style */
.btn-primary {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 13px 13px 24px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.25s cubic-bezier(0.32,0.72,0,1),
              transform 0.2s cubic-bezier(0.32,0.72,0,1),
              box-shadow 0.25s;
  box-shadow: 0 4px 28px rgba(20,100,255,0.65), 0 0 0 1px rgba(41,168,255,0.15);
}

.btn-primary:hover {
  background: #1052d4;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(20,100,255,0.55);
}

.btn-primary:active {
  transform: scale(0.95);
  box-shadow: 0 2px 12px rgba(20,100,255,0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.32,0.72,0,1),
              background 0.25s;
  flex-shrink: 0;
}

.btn-primary:hover .btn-icon {
  transform: translate(2px,-2px);
  background: rgba(255,255,255,0.26);
}

.btn-icon svg { width: 13px; height: 13px; }

.btn-ghost {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s cubic-bezier(0.32,0.72,0,1);
}

.btn-ghost:hover { color: rgba(255,255,255,0.82); }
.btn-ghost svg { width: 15px; height: 15px; }

@media (min-width: 861px) {
  .hero-cta {
    position: relative;
    z-index: 5;
  }

  .hero-cta a,
  .hero-cta button {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }

  .hero-cta .btn-primary {
    background: linear-gradient(135deg, #1678ff 0%, var(--blue) 48%, #0648c8 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(64,180,255,0.58) !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.18);
    box-shadow:
      0 14px 34px rgba(0,90,255,0.30),
      inset 0 1px 0 rgba(255,255,255,0.18) !important;
  }

  .hero-cta .btn-primary:hover {
    background: linear-gradient(135deg, #2585ff 0%, #176cff 48%, #0a55dc 100%) !important;
    border-color: rgba(64,180,255,0.72) !important;
    box-shadow:
      0 16px 36px rgba(0,110,255,0.30),
      inset 0 1px 0 rgba(255,255,255,0.20) !important;
  }

  .hero-cta .btn-primary .btn-icon {
    background: rgba(255,255,255,0.24) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.20);
  }

  .hero-cta .btn-primary span,
  .hero-cta .btn-primary svg,
  .hero-cta .btn-primary i {
    color: #ffffff !important;
    opacity: 1 !important;
  }

  .hero-cta .btn-ghost {
    min-height: 46px;
    padding: 12px 18px;
    color: rgba(255,255,255,0.94) !important;
    border: 1px solid rgba(64,180,255,0.34) !important;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(12,38,72,0.96) 0%, rgba(6,20,38,0.92) 100%) !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.18);
    box-shadow:
      0 12px 28px rgba(0,0,0,0.30),
      inset 0 1px 0 rgba(255,255,255,0.10) !important;
    transition:
      color 0.22s cubic-bezier(0.32,0.72,0,1),
      background 0.22s cubic-bezier(0.32,0.72,0,1),
      border-color 0.22s cubic-bezier(0.32,0.72,0,1),
      box-shadow 0.22s cubic-bezier(0.32,0.72,0,1),
      transform 0.22s cubic-bezier(0.32,0.72,0,1);
  }

  .hero-cta .btn-ghost:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(15,50,94,0.98) 0%, rgba(8,28,54,0.96) 100%) !important;
    border-color: rgba(64,180,255,0.58) !important;
    box-shadow:
      0 14px 30px rgba(0,70,160,0.22),
      inset 0 1px 0 rgba(255,255,255,0.14) !important;
    transform: translateY(-1px);
  }

  .hero-cta .btn-ghost svg {
    color: rgba(255,255,255,0.94) !important;
    opacity: 1 !important;
    transition: transform 0.22s cubic-bezier(0.32,0.72,0,1),
                opacity 0.22s cubic-bezier(0.32,0.72,0,1);
  }

  .hero-cta .btn-ghost:hover svg {
    opacity: 1;
    transform: translateX(2px);
  }
}

/* ─────────────────────────────
   HERO RIGHT — stats + animacion (ahora columna IZQUIERDA via order)
───────────────────────────── */
.hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  /* opacity gestionada por GSAP */
  order: -1;  /* aparece primero = columna izquierda */
  filter: brightness(0.88); /* isotipo ligeramente secundario vs texto */
}

.hero-left {
  order: 1;   /* aparece segundo = columna derecha */
}

/* ─────────────────────────────
   SERVICE CARDS — sobre el gráfico
───────────────────────────── */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
}

.service-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 10px;
  /* Azul metálico: gradiente sutil + borde con brillo + highlight interno */
  background: linear-gradient(
    145deg,
    rgba(20, 100, 255, 0.22) 0%,
    rgba(41, 168, 255, 0.09) 100%
  );
  border: 1px solid rgba(41, 168, 255, 0.28);
  box-shadow:
    0 4px 18px rgba(20, 100, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: default;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  border-color: rgba(41, 168, 255, 0.50);
  box-shadow:
    0 6px 24px rgba(20, 100, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.service-card-icon {
  display: flex;
  align-items: center;
  color: var(--blue-light);
  flex-shrink: 0;
}

.service-card-icon svg {
  width: 15px;
  height: 15px;
}

.service-card-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

/* ─────────────────────────────
   KEYFRAMES
───────────────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(22px); }
  to   { opacity:1; transform:translateY(0); }
}

@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}

@keyframes blink {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(0.65); }
}

/* ─────────────────────────────
   SCROLL REVEAL
───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.reveal.visible { opacity:1; transform:translateY(0); }

/* ─────────────────────────────
   REDUCED MOTION
───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .eyebrow, .hero-title, .hero-sub, .service-row,
  .hero-cta, .hero-right, .stat {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal { opacity:1; transform:none; transition:none; }
}

/* ─────────────────────────────
   RESPONSIVE
───────────────────────────── */
@media (max-width: 1024px) {
  .hero-card { padding: 48px 40px; }
}

@media (max-width: 860px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .page-body { padding: 0; }

  .hero-card {
    grid-template-columns: 1fr;
    padding: 36px 24px 48px;
    gap: 24px;
    min-height: unset;
  }

  /* En móvil: animación arriba, texto abajo */
  .hero-right { order: -1; }
  .hero-left  { order: 1; }

  .hero-sub { max-width: 100%; font-size: 15px; }
  .btn-ghost { display: none; }
  .service-cards { gap: 8px; }
  .service-card { padding: 8px 10px; gap: 6px; }
  .service-card-label { font-size: 10px; }
}

@media (max-width: 480px) {
  .hero-card { padding: 28px 20px 40px; gap: 20px; }
  .hero-title { font-size: clamp(28px, 8vw, 40px); }
  .hero-sub { font-size: 14px; }
  .eyebrow { font-size: 10px; }
  .btn-primary { font-size: 13px; padding: 12px 12px 12px 20px; }
  .service-row { gap: 5px; margin-bottom: 28px; }
  .service-row span { font-size: 12px; }
}

/* ─── 375px — iPhone / Android gama media estándar ─── */
@media (max-width: 375px) {
  .hero-card { padding: 24px 18px 36px; gap: 18px; }
  .hero-title { font-size: clamp(26px, 7.5vw, 36px); line-height: 1.1; }
  .hero-sub { font-size: 13.5px; line-height: 1.7; }
  .eyebrow { font-size: 9.5px; padding: 5px 12px 5px 8px; margin-bottom: 20px; }
  .btn-primary { font-size: 13px; padding: 11px 11px 11px 18px; }
  .btn-icon { width: 28px; height: 28px; }
  .service-cards { gap: 6px; }
  .service-card { padding: 7px 9px; }
  .service-card-label { font-size: 10px; }
}

/* ─── 320px — teléfonos muy pequeños ─── */
@media (max-width: 320px) {
  .hero-card { padding: 20px 14px 32px; gap: 16px; }
  .hero-title { font-size: clamp(24px, 7.2vw, 32px); }
  .hero-sub { font-size: 13px; }
  .eyebrow { font-size: 9px; margin-bottom: 16px; }
  .service-row { margin-bottom: 22px; }
  .service-row span { font-size: 11px; }
}
