/* ⚡ OPTIMIZACIÓN: font-display swap para carga inmediata de texto */
@font-face {
  font-family: 'Inter';
  font-display: swap;
}


		 html, body {
		  margin: 0;
		  padding: 0;
		  width: 100%;
		  max-width: 100%;
		  overflow-x: hidden;   /*  CLAVE para quitar la franja */
		}

		body {
		  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
			"Segoe UI", sans-serif;
		  background: radial-gradient(circle at top, #0f1e3d 0, #080c1e 45%, #020617 100%);
		  color: #e5e7eb;
		  min-height: 100vh;
		}
       
	   section,
	   header,
	   footer {
		  max-width: 100vw;
		  overflow-x: hidden;
		}
    /* ===== Scroll Progress Bar ===== */

     /* #scroll-progress {
        position: fixed;
        top: 0;
        left: 0;
        height: 3px;
        width: 0%;
        background: linear-gradient(to right, #00ffff, #4df5ff, #2a76ff);
        z-index: 9999;
        transition: width 0.15s ease-out;
        box-shadow: 0 0 6px rgba(0, 255, 255, 0.6);
      }*/
     
        #scroll-progress {
          position: fixed;
          top: 0;
          left: 0;
          height: 4px;
          width: 0%;
          background: linear-gradient(90deg, #00ffff, #4df5ff, #2a76ff);
          z-index: 9999;
          transition: width 0.15s ease-out;
          box-shadow: 0 0 12px rgba(0, 255, 255, 0.9), 0 0 18px rgba(42, 118, 255, 0.7);
        }

        /* Logo más grande y con halo */
        .logo-badge {
          width: 44px;
          height: 44px;
          border-radius: 9999px;
          background: radial-gradient(circle at 30% 20%, #4df5ff33, #020617);
          border: 1px solid rgba(148, 163, 184, 0.7);
          box-shadow:
            0 0 18px rgba(0, 255, 255, 0.45),
            0 10px 28px rgba(0, 0, 0, 0.9);
          transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
        }

        a:hover .logo-badge {
          transform: translateY(-1px) scale(1.05);
          border-color: rgba(77, 245, 255, 0.9);
          box-shadow:
            0 0 22px rgba(0, 255, 255, 0.7),
            0 16px 40px rgba(0, 0, 0, 1);
        }
       /* Bloque logo animado */
.logo-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.logo-reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Icono dentro del bloque */
    .logo-reveal-icon {
      width: 52px;
      height: 52px;
      border-radius: 9999px;
      padding: 3px;
      background: radial-gradient(circle at 30% 20%, #4df5ff55, #020617);
      box-shadow:
        0 0 18px rgba(0, 255, 255, 0.65),
        0 14px 32px rgba(0, 0, 0, 0.95);
      animation: logoFloat 6s ease-in-out infinite;
    }

    .logo-reveal-icon img {
      width: 100%;
      height: 100%;
      border-radius: 9999px;
      object-fit: cover;
    }

    /* Flotado suave del logo */
    @keyframes logoFloat {
      0% {
        transform: translateY(0);
      }
      50% {
        transform: translateY(-6px);
      }
      100% {
        transform: translateY(0);
      }
    }
        /* Sección grande de logo */
        .logo-reveal-large {
          max-width: 680px;
          opacity: 0;
          transform: translateY(40px) scale(0.96);
          transition: opacity 0.7s ease-out, transform 0.7s ease-out;
        }

        .logo-reveal-large.visible {
          opacity: 1;
          transform: translateY(0) scale(1);
        }

        /* Logo grande */
        .logo-reveal-icon-large {
          width: 160px;
          height: 160px;
          border-radius: 9999px;
          padding: 8px;
          background: radial-gradient(circle at 30% 20%, #4df5ff55, #020617);
          box-shadow:
            0 0 30px rgba(0, 255, 255, 0.7),
            0 20px 50px rgba(0, 0, 0, 0.95);
          animation: logoFloatLarge 7s ease-in-out infinite;
        }

        .logo-reveal-icon-large img {
          width: 100%;
          height: 100%;
          border-radius: 9999px;
          object-fit: cover;
        }

        /* Flotado más grande y suave */
        @keyframes logoFloatLarge {
          0% {
            transform: translateY(0);
          }
          50% {
            transform: translateY(-10px);
          }
          100% {
            transform: translateY(0);
          }
        }


      /* Glass cards */
      .glass {
        background: rgba(15, 23, 42, 0.82);
        border: 1px solid rgba(148, 163, 184, 0.4);
        backdrop-filter: blur(18px);
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85);
      }

      /* Fade + slide up */
      .fade-up {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
      }
      .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
      }

      .fade-delay-1 {
        transition-delay: 0.1s;
      }
      .fade-delay-2 {
        transition-delay: 0.2s;
      }

      /* Hover float (aplicado solo en pantallas medianas hacia arriba) */
      @media (min-width: 768px) {
        .float-card {
          transition: transform 0.35s ease, box-shadow 0.35s ease,
            border-color 0.35s ease, background 0.35s ease;
        }
        .float-card:hover {
          transform: translateY(-10px) translateZ(0) scale(1.01);
          box-shadow: 0 28px 80px rgba(0, 0, 0, 0.95);
          border-color: rgba(77, 245, 255, 0.85);
          background: radial-gradient(circle at top, rgba(0, 255, 255, 0.16), rgba(15, 23, 42, 0.96));
        }
      }

      /* Border gradient on hover */
      .border-gradient {
        position: relative;
      }
      .border-gradient::before {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient(120deg, #00ffff, #4df5ff, #2a76ff);
        -webkit-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.3s ease;
        pointer-events: none;
      }
      .border-gradient:hover::before {
        opacity: 1;
      }

      /* Glow pulse */
      .glow-pulse {
        position: relative;
        overflow: visible;
      }
      .glow-pulse::after {
        content: "";
        position: absolute;
        inset: -25%;
        background: radial-gradient(circle, rgba(0, 255, 255, 0.2), transparent);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
      }
      .glow-pulse:hover::after {
        opacity: 1;
      }

      /* Navbar blur + scroll */
      .nav-blur {
        transition: background-color 0.3s ease, box-shadow 0.3s ease,
          border-color 0.3s ease, backdrop-filter 0.3s ease;
      }
      .nav-scrolled {
        background-color: rgba(8, 12, 30, 0.96);
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9);
        border-bottom-color: rgba(148, 163, 184, 0.5);
        backdrop-filter: blur(18px);
      }

      /* HERO con logo de fondo a pantalla completa */
     /* HERO: sección base */
		.hero-section {
		  position: relative;
		  overflow: hidden;
		}

		/* Fondo animado estilo tech, sin usar Icono.png */
		.hero-section::before {
		  content: "";
		  position: absolute;
		  inset: 0;  /* ya no nos salimos del viewport */
		  background:
			radial-gradient(circle at 0% 0%, rgba(0, 255, 255, 0.22), transparent 60%),
			radial-gradient(circle at 100% 0%, rgba(42, 118, 255, 0.26), transparent 60%),
			radial-gradient(circle at 50% 100%, rgba(0, 255, 255, 0.18), transparent 60%),
			radial-gradient(circle at 20% 80%, rgba(77, 245, 255, 0.16), transparent 60%);
		  opacity: 0.9;
		  animation: heroBgMove 26s ease-in-out infinite alternate;
		  z-index: 0;
		}

		/* Capa oscura para que el texto se lea bien */
		.hero-section::after {
		  content: "";
		  position: absolute;
		  inset: 0;
		  background:
			linear-gradient(to bottom, rgba(8, 12, 30, 0.9), rgba(8, 12, 30, 0.97));
		  mix-blend-mode: normal;
		  z-index: 0;
		}

		/* Animación del fondo: leve desplazamiento / zoom */
		@keyframes heroBgMove {
		  0% {
			transform: translate3d(0, 0, 0) scale(1);
		  }
		  50% {
			transform: translate3d(-12px, -10px, 0) scale(1.05);
		  }
		  100% {
			transform: translate3d(10px, -6px, 0) scale(1.03);
		  }
		}

    /* Capa de “neuronas / orbits” sobre el fondo del hero */
  .hero-orbits {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
  }

  /* Círculos que orbitan suavemente */
  .hero-orbit {
    position: absolute;
    border-radius: 9999px;
    border: 1px solid rgba(77, 245, 255, 0.18);
    box-shadow: 0 0 35px rgba(0, 255, 255, 0.08);
  }

  /* ===== ORBITS ===== */

  .hero-orbit-lg {
    width: 480px;
    height: 480px;
    top: 5%;
    right: -140px;
    animation: orbitLarge 32s ease-in-out infinite;
    opacity: 0.35;
  }

  .hero-orbit-md {
    width: 300px;
    height: 300px;
    top: 50%;
    left: -90px;
    animation: orbitMedium 22s ease-in-out infinite;
    opacity: 0.28;
  }

  .hero-orbit-sm {
    width: 180px;
    height: 180px;
    bottom: 10%;
    right: 12%;
    animation: orbitSmall 18s ease-in-out infinite;
    opacity: 0.25;
  }

/* Pequeños nodos brillantes */
.hero-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: radial-gradient(circle, #4df5ff, #00ffff);
  box-shadow: 0 0 18px rgba(77, 245, 255, 0.9);
  opacity: 0.9;
}

.hero-node-1 {
  top: 24%;
  right: 22%;
  animation: nodeBlink 2.8s ease-in-out infinite alternate;
}

.hero-node-2 {
  top: 60%;
  left: 18%;
  animation: nodeBlink 3.4s ease-in-out infinite alternate;
}

.hero-node-3 {
  bottom: 18%;
  right: 32%;
  animation: nodeBlink 3s ease-in-out infinite alternate;
}

  /* Animaciones */
  /* ===== CÍRCULOS EN MOVIMIENTO ORGÁNICO ===== */
  /* NODOS (neurona) base: ya tenías .hero-node, lo ampliamos un poco */
.hero-node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: radial-gradient(circle, #4df5ff, #00ffff);
  box-shadow: 0 0 18px rgba(77, 245, 255, 0.85);
}

/* Posiciones de los nodos existentes */
.hero-node-1 {
  top: 24%;
  right: 22%;
  animation: nodeBlink 2.8s ease-in-out infinite alternate;
}

.hero-node-2 {
  top: 58%;
  left: 18%;
  animation: nodeBlink 3.4s ease-in-out infinite alternate;
}

.hero-node-3 {
  bottom: 20%;
  right: 34%;
  animation: nodeBlink 3s ease-in-out infinite alternate;
}

/* Nodos adicionales para dar sensación de red */
.hero-node-4 {
  top: 34%;
  left: 32%;
  animation: nodeBlink 3.6s ease-in-out infinite alternate;
}

.hero-node-5 {
  top: 42%;
  right: 32%;
  animation: nodeBlink 4s ease-in-out infinite alternate;
}

.hero-node-6 {
  bottom: 28%;
  left: 26%;
  animation: nodeBlink 3.2s ease-in-out infinite alternate;
}

/* Animación de parpadeo (puedes mantener la tuya o usar esta) */
@keyframes nodeBlink {
  0% {
    opacity: 0.15;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
}

/* Conexiones luminosas entre nodos: líneas tipo circuito */
.hero-link {
  position: absolute;
  height: 1px;
  border-radius: 9999px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 255, 255, 0.9),
    transparent
  );
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.6);
  opacity: 0.55;
  filter: blur(0.2px);
  overflow: hidden;
}

/* Posición / orientación de cada conexión */
.hero-link-1 {
  width: 150px;
  top: 30%;
  right: 18%;
  transform: rotate(-12deg);
  animation: linkFlow 4.4s linear infinite;
}

.hero-link-2 {
  width: 180px;
  top: 47%;
  left: 15%;
  transform: rotate(8deg);
  animation: linkFlow 5s linear infinite reverse;
}

.hero-link-3 {
  width: 140px;
  bottom: 22%;
  left: 30%;
  transform: rotate(-18deg);
  animation: linkFlow 4.2s linear infinite;
}

/* Brillo que se desplaza por la línea (impulso eléctrico) */
.hero-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.95),
    transparent
  );
  transform: translateX(-120%);
  animation: linkPulse 2.2s linear infinite;
  opacity: 0.9;
}

@keyframes linkFlow {
  0% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.45;
  }
}

@keyframes linkPulse {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}


@keyframes orbitLarge {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(-20px, 10px) rotate(45deg) scale(1.05);
  }
  50% {
    transform: translate(10px, -25px) rotate(120deg) scale(1.02);
  }
  75% {
    transform: translate(-15px, -10px) rotate(200deg) scale(1.07);
  }
  100% {
    transform: translate(0, 0) rotate(360deg) scale(1);
  }
}

@keyframes orbitMedium {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  20% {
    transform: translate(15px, -10px) rotate(70deg) scale(1.03);
  }
  50% {
    transform: translate(-12px, 15px) rotate(160deg) scale(1.06);
  }
  80% {
    transform: translate(8px, -8px) rotate(290deg) scale(1.02);
  }
  100% {
    transform: translate(0, 0) rotate(360deg) scale(1);
  }
}

@keyframes orbitSmall {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  30% {
    transform: translate(8px, -12px) rotate(110deg) scale(1.1);
  }
  60% {
    transform: translate(-10px, 14px) rotate(240deg) scale(1.05);
  }
  100% {
    transform: translate(0, 0) rotate(360deg) scale(1);
  }
}

  @keyframes nodeBlink {
    0% {
      opacity: 0.2;
      transform: scale(0.9);
    }
    50% {
      opacity: 1;
      transform: scale(1.05);
    }
    100% {
      opacity: 0.4;
      transform: scale(1);
    }
  }
      /* Custom scrollbar */
      ::-webkit-scrollbar {
        width: 10px;
      }
      ::-webkit-scrollbar-track {
        background: #020617;
      }
      ::-webkit-scrollbar-thumb {
        background: linear-gradient(to bottom, #00ffff, #2a76ff);
        border-radius: 999px;
      }
      ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(to bottom, #4df5ff, #00ffff);
      }




/* ===== Fondo con iconos animados (base) ===== */

.bg-orbits{ position:absolute; inset:0; pointer-events:none; z-index:0; }



/* CONTACTO: sobres y aviones */
.bg-icon.is-plane{
  animation: bgPlaneFly var(--fly, 18s) linear infinite, bgBlink var(--b, 3.6s) ease-in-out infinite;
  opacity: calc(var(--o, .18) * 1.1);
}
.bg-icon.is-mail{
  animation: bgFloat var(--d, 20s) ease-in-out infinite, bgBlink var(--b, 4.2s) ease-in-out infinite;
}

@keyframes bgFloat{
  0%{ transform: translate3d(0,0,0) scale(1); }
  35%{ transform: translate3d(var(--x, 14px), var(--y, -10px), 0) scale(1.03); }
  70%{ transform: translate3d(calc(var(--x, 14px) * -0.7), calc(var(--y, -10px) * -0.8), 0) scale(1.02); }
  100%{ transform: translate3d(0,0,0) scale(1); }
}
@keyframes bgBlink{
  0%,100%{ opacity: calc(var(--o, .18) * .65); }
  50%{ opacity: calc(var(--o, .18) * 1.45); }
}


@media (prefers-reduced-motion: reduce){
  .bg-icon{ animation:none !important; }
}


/* ===== CONTACTO: render robusto (sin mask) ===== */

#contacto .bg-icon{
  opacity: .32;
  filter:
    drop-shadow(0 0 14px rgba(0,255,255,.35))
    drop-shadow(0 0 26px rgba(42,118,255,.22));
  mix-blend-mode: screen;
}

#contacto .bg-icon::before{
  opacity: 1;
}
/* ===== Contact form: avión al enviar ===== */
.contact-plane{
  position: fixed;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 99999;      /* 🔥 siempre por delante */
  opacity: 0;
  background: center / contain no-repeat;
  transform: translate3d(0,0,0) rotate(-18deg) scale(1);
  filter:
    drop-shadow(0 0 12px rgba(0,255,255,.55))
    drop-shadow(0 0 26px rgba(42,118,255,.35));
}

/* ✅ duración controlada por variable */
.contact-plane.is-flying{
  animation: contactPlaneFly var(--dur, 2000ms) cubic-bezier(.2,.9,.2,1) forwards;
}

#contact-status.ok { color: rgba(167, 243, 208, 0.95); }     /* verde suave */
#contact-status.err { color: rgba(253, 186, 186, 0.95); }    /* rojo suave */
#contact-status.info { color: rgba(203, 213, 225, 0.9); }    /* slate */

/* =========================
   CONFIRMACIÓN CONTACTO
   ========================= */

/* avión más lento */
@keyframes contactPlaneFly {
  0% {
    opacity: 0;
    transform: translate3d(0,0,0) rotate(-18deg) scale(.95);
  }
  10% { opacity: 1; }
  70% {
    transform: translate3d(var(--dx), var(--dy), 0)
               rotate(6deg)
               scale(1.05);
  }
  100% {
    opacity: 0;
    transform: translate3d(
      calc(var(--dx) * 1.1),
      calc(var(--dy) * 1.1),
      0
    ) rotate(10deg) scale(.9);
  }
}

/* ocultar formulario suavemente */
.contact-form-hide {
  animation: formFadeOut .5s ease forwards;
}
@keyframes formFadeOut {
  to {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
  }
}

/* tarjeta de confirmación */
/* === Confirmación estilo “imagen 2” (compacta) === */
#contact-confirmation{
  display: flex;
  justify-content: center;
}

.contact-confirmation{
  width: min(860px, 100%);   /* como la tarjeta grande del hero */
  border-radius: 28px;
  padding: 44px 28px;        /* más aire, sin hacerse enorme */
  text-align: center;

  background:
    radial-gradient(circle at 50% 0%, rgba(77,245,255,.12), transparent 55%),
    linear-gradient(180deg, rgba(15,30,61,.78), rgba(8,12,30,.92));
  border: 1px solid rgba(255,255,255,.10);

  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 18px 60px rgba(0,0,0,.45);

  opacity: 0;
  transform: translateY(14px);
  animation: confirmIn 1.2s ease forwards;
}

@keyframes confirmIn{
  to{ opacity: 1; transform: translateY(0); }
}

/* Logo pequeño como imagen 2 */
.confirm-logo{
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 999px;
  border: 2px solid rgba(77,245,255,.65);

  display: grid;
  place-items: center;

  box-shadow:
    0 0 24px rgba(0,255,255,.35),
    inset 0 0 18px rgba(77,245,255,.18);

  opacity: 0;
  transform: scale(.92);
  animation: logoIn 1.1s ease forwards;
  animation-delay: .2s;
}

.confirm-logo img{
  width: 42px;      /* 🔥 evita que se “dispare” */
  height: 42px;
  object-fit: contain;
  opacity: .95;
}

@keyframes logoIn{
  to{ opacity: 1; transform: scale(1); }
}

.confirm-title{
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .28em;
  color: rgba(77,245,255,.92);

  opacity: 0;
  transform: translateY(10px);
  animation: textIn 1s ease forwards;
  animation-delay: .35s;
}

.confirm-text{
  margin-top: 14px;
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;

  font-size: 16px;
  line-height: 1.7;
  color: rgba(226,232,240,.95);

  opacity: 0;
  transform: translateY(10px);
  animation: textIn 1s ease forwards;
  animation-delay: .5s;
}

@keyframes textIn{
  to{ opacity: 1; transform: translateY(0); }
}
