/* Importar tipografías */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@500;700&family=Inter:wght@300;400&display=swap');

/* Variables */
:root {
  --accent: #3abff0;
  --dark: #0b0b0b;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Cuerpo principal con estructura flexible para mantener el footer abajo */
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #222;
  font-weight: 400; /* Regular */
  line-height: 1.6;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* asegura que ocupe toda la altura de la ventana */
   
}

/* Todo el contenido menos el footer se expande 
body > *:not(footer) {
  flex: 1 0 auto;
}
*/
/* Footer fijo al final */
footer {
  flex-shrink: 0;
}


/* =========================================================
   TIPOGRAFÍA JERÁRQUICA
   ========================================================= */

/*  Títulos */
h1, h2 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700; /* Bold */
  color: #FFF;
  line-height: 1.2;
}

/*  Subtítulos */
h3, h4 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 500; /* Medium */
  color: #532e87;
  line-height: 1.3;
}

/*  Párrafos */
p {
  font-family: 'Inter', sans-serif;
  font-weight: 400; /* Regular */
  color: #fff;
  line-height: 1.7;
}

/*  Textos pequeños */
.small, small, footer, .microcopy {
  font-family: 'Inter', sans-serif;
  font-weight: 300; /* Light */
  color: #555;
  font-size: 0.9rem;
}

/*  Títulos de secciones con énfasis */
.section-title {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: #532e87;
  text-align: center;
  margin-bottom: 2rem;
}


/* ANIMACION JS EN TODO EL FONDO */
  #heroCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* debajo de todo */
    pointer-events: none; /* permite clics en el contenido */
  }
/* FIN ANIMACION JS EN TODO EL FONDO */

/* header inicio*/
.hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  background: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
  text-align: center;
  color: white;
}

.hero-content h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-content p {
  color: #e0e0e0;
  font-size: 1.1rem;
}

/* =========================================================
   INTRO TEXT
   ========================================================= */
.intro-text {
  max-width: 880px;
  margin: 0 auto;
  opacity: 0.95;
}

/* fin header inicio*/


/* =========================================================
   CARDS CON ANIMACIÓN
   ========================================================= */
.card-anim {
  border-radius: 12px;
  overflow: hidden;
  transition: transform .45s cubic-bezier(.2, .9, .3, 1), box-shadow .45s;
  transform-origin: center bottom;
  box-shadow: 0 8px 24px rgba(12, 12, 12, 0.06);
  opacity: 0;
  transform: translateY(18px) scale(.99);
}

.card-anim img {
  height: 200px;
  object-fit: cover;
  transition: transform .7s ease;
}

.card-anim:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 36px rgba(12, 12, 12, 0.12);
}

.card-anim:hover img {
  transform: scale(1.06) rotate(-0.3deg);
}

/* Aparecer (Intersection Observer) */
.appear {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .9, .3, 1);
}

.appear.visible {
  opacity: 1;
  transform: none;
}


/* =========================================================
   AVATAR / ICONO PEQUEÑO
   ========================================================= */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #3abff0);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(15, 45, 64, 0.18);
}

.avatarImagen {
  width: 50;
  height: 50px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

/* ===== LÍNEA INFERIOR NEÓN DEL NAV ===== */
.navbar-neon-line {
  z-index: 999; /* solo el z-index, nada más */
}


  /* Línea inferior animada */
  .navbar-neon-line::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px; /* grosor de la línea */
    background: linear-gradient(135deg, #3abff0, #532e87, #3abff0, #532e87);
    background-size: 400% 400%;
    animation: neonLineMove 6s linear infinite;
    border-radius: 10px;
    filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.6));
  }

  /* Animación del flujo */
  @keyframes neonLineMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
/* ===== FIN LÍNEA INFERIOR NEÓN DEL NAV ===== */



/* ===== CARD NEON FUTURISTA ===== */
  .card-neon {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, #0A0E23, #0A0E23 70%);
    border: 0px solid transparent;
    border-radius: 1rem;
    padding: 1.5rem;
    color: #fff;
    isolation: isolate;
    box-shadow: 0 0 20px rgba(15, 45, 64, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  /* Brillo animado del borde */
  .card-neon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
      135deg,
      #3abff0,
      #532e87,
      #3abff0,
      #532e87
    );
    background-size: 400% 400%;
    animation: neonBorder 6s linear infinite;
    -webkit-mask: 
      linear-gradient(#000 0 0) content-box, 
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
  }

  /* Fondo con líneas animadas tipo “trayectorias de datos” */
  .card-neon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: 
      repeating-linear-gradient(
        115deg,
        rgba(0, 200, 255, 0.08) 0px,
        rgba(0, 200, 255, 0.08) 2px,
        transparent 3px,
        transparent 8px
      );
    background-size: 200% 200%;
    animation: dataFlow 8s linear infinite;
    opacity: 0.3;
    z-index: -2;
  }

  /* Hover suave con levitación */
  .card-neon:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 40px rgba(15, 45, 64, 0.4);
  }

  /* ===== ANIMACIONES ===== */

  /* Flujo del borde de neón */
  @keyframes neonBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  /* Movimiento de las líneas luminosas */
  @keyframes dataFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: -200% -200%; }
  }
/* ===== FIN CARD NEON FUTURISTA ===== */

/* =====CARD GIRO ===== */
  .card-flip {
    perspective: 1000px;
    border-radius: 1rem;
    position: relative;
    overflow: visible;
  }

  /* Núcleo interno */
  .card-inner {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s ease;
  }

  /* Cuando se activa el flip */
  .card-flip.flipped .card-inner {
    transform: rotateY(180deg);
  }

  /* Caras */
  .card-front,
  .card-back {
    backface-visibility: hidden;
    border-radius: 0.75rem;
    box-sizing: border-box;
  }

  /* FRONT: se mantiene en el flujo normal (sin posición absoluta) */
  .card-front {
    background: #fff;
    color: #222;
    position: relative;
    z-index: 2;
  }

  /* BACK: absoluta, se muestra al girar */
  .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /*height: 100%;*/
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #0A0E23, #0A0E23);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }

  /* Glow decorativo */
  .energy-glow {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.18), transparent 60%);
    animation: pulseGlow 2s infinite ease-in-out;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(30px);
    pointer-events: none;
  }

  /* Animación del glow */
  @keyframes pulseGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
  }

  /* Ajuste responsive */
  @media (max-width: 767px) {
    .card-back { padding: 1.25rem; }
  }
/* ===== FIN CARD GIRO ===== */

/*BOTON PRINCIPAL*/
  .btn-neon, .btn-neon-sm {
    color: #fff;
    border: 1px solid #3abff0;
    background: transparent;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s;
    border-radius: 50px;
  }
  .btn-neon:hover, .btn-neon-sm:hover {
    background: linear-gradient(90deg, #3abff0, #532e87);
    box-shadow: 0 0 20px #3abff0, 0 0 40px #532e87;
    color: #fff;
  }
  .btn-neon-sm {
    padding: 6px 18px;
    font-size: 0.9rem;
  }
/*FIN BOTON PRINCIPAL*/


/* === Flip Cards (Misión y Visión) === */
  .flip-card {
    background: transparent;
    perspective: 1000px;
    height: 100%;
    min-height: 260px;
  }

  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(.2,.9,.3,1);
    transform-style: preserve-3d;
  }

  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }

  /* Cara frontal */
  .flip-card-front,
  .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    backface-visibility: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,0.1);
  }

  /* Frente */
  .flip-card-front {
    background: #0A0E23;
    color: #fff;
  }

  /* Reverso */
  .flip-card-back {
    background: linear-gradient(135deg, #0A0E23, #0A0E23);
    color: #fff;
    transform: rotateY(180deg);
  }

  /* Animación de aparición */
  .flip-card.appear {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2,.9,.3,1);
  }

  .flip-card.appear.visible {
    opacity: 1;
    transform: none;
  }

  /* Tipografía específica */
  .flip-card h5 {
    font-family: "Exo 2 Medium", sans-serif;
  }

  .flip-card p {
    font-family: "Inter Regular", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
  }


/* Glass Cards */
.glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, box-shadow 0.3s;
}
.glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.3);
}
.border-neon {
  border: 1px solid #00e0ff !important;
  box-shadow: 0 0 15px #00e0ff;
}
/* Fin Glass Cards */

/* EQUIPO CARDS Cards */
.team-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 15px;
  padding: 10px;
  color: #e0f7fa;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
  transition: all 0.4s ease;
  backdrop-filter: blur(6px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px; /* Puedes ajustar este valor según el texto */
}

.team-card:hover {
  border-color: #00ffff;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
  transform: translateY(-5px);
}

.team-card strong {
  font-size: 1.1rem;
  color: #fff;
}

.team-card small {
  color: #80deea;
  font-weight: 500;
}

.team-card p {
  font-size: 0.9rem;
  color: #b2ebf2;
  line-height: 1.5;
}
/* FIN EQUIPO CARDS */

/* ===INOVACCION CARDS === */
.card-glow {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 15px;
  color: #e0f7fa;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
  transition: all 0.4s ease;
  backdrop-filter: blur(6px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 350px; /* ajustable según contenido */
}

.card-glow:hover {
  border-color: #00ffff;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
  transform: translateY(-5px);
}

/* Títulos y texto dentro de las cards */
.card-glow .card-title {
  color: #fff;
  font-weight: 600;
}

.card-glow .card-text,
.card-glow ul,
.card-glow li {
  color: #b2ebf2;
  font-size: 0.95rem;
}

.card-glow ul {
  margin-left: 1rem;
}

.card-glow strong {
  color: #00ffff;
}

/* === FIN INOVACCION CARDS === */




/* =========================================================
   AJUSTES GLOBALES DE RESPONSIVIDAD Y CORRECCIÓN DE OVERFLOW
   ========================================================= */

/* 1. Evitar scroll horizontal */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* 2. Corregir elementos con ancho 100vw que causan desplazamiento */
#heroCanvas {
  width: 100%;
  height: 100vh;
}

/* 3. Asegurar que contenedores y secciones no desborden */
section, header, footer, .container-fluid, .row {
  overflow-x: clip; /* evita overflow sin afectar sombras */
}

/* 4. Ajustes de padding en móvil */
@media (max-width: 767px) {
  .container, .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Asegurar que las cards no generen desbordes */
  .card-anim, .card-neon, .card-flip, .card-glow, .team-card, .glass {
    max-width: 100%;
    margin: 0 auto;
  }

  /* Centrar textos en móvil */
  .hero-content, .intro-text, .section-title, p, h3, h4 {
    text-align: center;
  }

  /* Suavizar tamaños */
  h1, .hero-content h1 {
    font-size: 2rem;
  }
  h2, h3 {
    font-size: 1.5rem;
  }
  p {
    font-size: 1rem;
  }
}

/* 5. Estandarizar sombras y bordes para consistencia */
.card-anim, .card-neon, .card-flip, .glass, .card-glow, .team-card {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(12, 12, 12, 0.08);
}

/* 6. Suavizar transiciones globales */
a, button, .card-anim, .card-neon, .flip-card {
  transition: all 0.3s ease-in-out;
}

/* 7. Corrección visual para footer */
footer {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: #bbb;
  background: #0A0E23;
}






/* =========================================================
   ESTILO PARA LINK ACTIVO EN EL MENÚ
   ========================================================= */
.nav-link.active {
  color: #00eaff !important; /* Celeste brillante */
  text-shadow: 0 0 8px #00eaff, 0 0 16px #00eaff;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}


/* Íconos de redes: tamaño uniforme */
.icono-red {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Lista más elegante */
.redes-contacto li {
  margin-bottom: 12px;
}

/* Hacemos todo clickeable con un estilo limpio */
.redes-contacto a {
  text-decoration: none;
  transition: 0.2s ease;
}

/* Efecto hover suave */
.redes-contacto a:hover span {
  color: #00eaff;
}

.redes-contacto a:hover .icono-red {
  transform: scale(1.1);
}


.icono-despegue {
  width: 100px;
  height: 100px;
  object-fit: contain;
}


/* Fondo y estilo general */
.footer-custom {
  background-color: #0A0E23;
  color: #bbb;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Marca y textos */
.footer-brand {
  font-weight: 600;
  font-size: 16px;
}

.footer-copy {
  color: #888;
  font-size: 13px;
}

/* Logo central */
.footer-logo {
  width: 90px;
  height: auto;
  opacity: 0.9;
  transition: 0.2s;
}

.footer-logo:hover {
  opacity: 1;
}

/* Íconos de redes */
.footer-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.85;
  transition: 0.2s ease;
}

.footer-icon:hover {
  transform: scale(1.15);
  opacity: 1;
}

/* Responsive: centra en móvil */
@media (max-width: 767px) {
  .footer-custom {
    text-align: center;
  }
}
