@import url('https://fonts.cdnfonts.com/css/br-segma');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'BR Segma';
}

body {
	overflow-x:hidden;
	position:relative;
	margin: 0;
	padding:0;
	font-family: 'BR Segma';
	font-weight:300;
	font-size: 14px;
	line-height: 20px;
	color: #fff;
	background-color:#010101;
}
#page {overflow-x:hidden; position:relative; z-index:5;}

.container {padding-left:0; padding-right:0;}

/* ================= NAVBAR ================= */
/* Barra superior */
.topbar {
  width: 100%;
  background: rgba(0, 0, 0, 0.200);
  padding: 10px 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  
}

/* Ajustamos el header principal para que baje un poco */
.navbar {
  position: fixed;
  top: 60px; 
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.200);
  color: #fff;
  display: flex;
  font-size: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  z-index: 1000;

}

/* Estilos para el navbar activo con scroll */
.navbar nav ul li a {
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.navbar nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff0095; /* Color del subrayado */
    transition: width 0.3s ease;
}

.navbar nav ul li a.active-nav {
    color: #00fcff; /* Color del texto cuando está activo */
}

.navbar nav ul li a.active-nav::after {
    width: 100%; /* Subrayado completo cuando está activo */
}

/* Efecto hover */
.navbar nav ul li a:hover::after {
    width: 100%;
}

.navbar nav ul li a:hover {
    color: #00fcff;
}

/* Logo */
.logo {
  opacity: 1;
  transition: opacity 0.5s ease; /* animación suave */
}

.logo.hidden {
  opacity: 0;
}

.logo img {
  height: 75px;
  width: auto;
  padding: 0 0 0 550px;
}

/* Menú */
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #00fcff;
}

/* Botón Asóciate */
.btn-asociate {
  border: 2px solid #00fcff;
  padding: 8px 18px 4px;
  border-radius: 30px;
  color: #00fcff;
  background: transparent;
  text-decoration: none;
  text-align: center;
  align-items: center;
  font-size: 15px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-asociate:hover {
  background: #00fcff;
  color: #000;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
}

@media (max-width: 1440px) {
/* Ajustamos el header principal para que baje un poco */
.navbar {
  font-size: 16px;
}

.btn-asociate {
  font-size: 12px;
  padding: 8px 12px 4px
}

} 

/* RESPONSIVE */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.203);
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    text-align: right;
    padding: 20px;
  }

  .logo img {
    height: 50px;
    width: auto;
    padding: 0 0 0 0;
  }

  nav ul.showing {
    display: flex;
    background: rgba(0, 0, 0, 0.421);
     border-radius: 15px;
  }

  .menu-toggle {
    display: flex;
  }

  .topbar .btn-asociate {
    display: none;
  }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 90vh; /* altura completa de la pantalla */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Degradado sobre el video */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.96) 0%,   /* más oscuro arriba */
    rgba(0, 0, 0, 0.60) 10%,     /* centro limpio */
    rgba(0, 0, 0, 0) 20%,     /* se desvanece en el centro */
    rgba(0, 0, 0, 0) 70%,     /* centro limpio */
    rgba(0, 0, 0, 0.85) 90%,     /* centro limpio */
    rgb(0, 0, 0) 100%  /* más oscuro abajo */
  );
  z-index: 0; /* debajo del contenido pero encima del video */
  pointer-events: none; /* no bloquea clics */
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover; /* cubre el espacio como un background-size: cover */
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column; /* apila logo y texto */
  align-items: center;
  justify-content: center;
  gap: 15px; /* separación entre logo y texto */
}

.hero-logo {
  max-width: 700px;  /* tamaño del logo */
  width: 100%;
  height: auto;
  padding-bottom: 80px;
}

.hero-text {
  font-size: 2.7rem;
  font-weight: 700;
  color: #fff; /* puedes cambiar el color */
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.95); /* mejora legibilidad sobre video */
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-content span {
  color: #00fcff;
}

.btn {
  background: #00fcff;
  color: #000;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
}
/* ================= RESPONSIVE ================= */

/* Tablets y pantallas medianas */
@media (max-width: 1440px) {
  .hero-logo {
    max-width: 600px;
    padding-bottom: 40px;
  }

  .hero-text {
    font-size: 2.3rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .btn {
    padding: 10px 22px;
    font-size: 0.95rem;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .hero {
    height: 90vh; /* un poco más compacto */
  }

  .hero-logo {
    max-width: 600px;
    padding-bottom: 30px;
  }

  .hero-text {
    font-size: 1.6rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Móviles muy pequeños (ej. 320px) */
@media (max-width: 480px) {
  .hero {
    height: 100vh;
    padding: 20px 10px;
  }

  .hero-logo {
    max-width: 450px;
    padding-bottom: 20px;
  }

  .hero-text {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .hero-content h1 {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .btn {
    width: 100%; /* ocupa todo el ancho */
    font-size: 0.85rem;
    padding: 10px;
  }
  .topbar .btn-asociate {
    display: none;
  }
}
/* ================= ICONOS ================= */
.menu-icons {
  display: flex;
  flex-wrap: nowrap;      /* todos en una sola fila */
  justify-content: center;
  gap: 15px;
  background: #0018665b;
  padding: 10px 15px;
  border-radius: 25px;
  box-shadow: 0px 8px 25px rgba(22, 0, 102, 0);
  position: relative;
  top: -50px;             /* hace que flote entre secciones */
  width: fit-content;     /* ajusta al contenido */
  margin: 0 auto;         /* centrado */
  z-index: 10;
  overflow-x: auto;       /* scroll si no caben en móviles */
}

.icon-card {
  flex: 0 0 auto;         /* ancho fijo */
  width: 200px;           
  height: 120px;          
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #000000 0%, #15154b 50%, #000000 100%);
  text-align: center;
  border-radius: 15px;
  color: #23fbff;
  font-size: 48px;
  border: solid  1px #505050;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Hover moderno */
.icon-card:hover {
  transform: translateY(-5px);
  color: #fff;
  background: #fe04e1ff;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 600px) {
  .menu-icons {
    gap: 10px;
    top: -20px;           /* flotante pero menos en móvil */
    padding: 8px;
    width: 100%;          /* aquí sí que ocupe todo y permita scroll */
  }

  .icon-card {
    width: 100px;
    height: 80px;
    font-size: 32px;
  }
  .topbar .btn-asociate {
    display: none;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 600px) {
  .menu-icons {
    flex-wrap: wrap;       /* permite varias filas en móvil */
    justify-content: center;
    width: fit-content;    /* flotante también en móvil */
    top: -50px;            /* un poco menos flotante */
    gap: 10px;
    padding: 8px;
  }

  .icon-card {
    flex: 1 1 45%;         /* hasta 2 por fila */
    max-width: 45%;        /* máximo 2 por fila */
    min-width: 120px;
    width: auto;           /* ancho flexible */
    height: auto;          /* altura automática */
    font-size: 32px;
    padding: 15px 10px;
  }
    .topbar .btn-asociate {
    display: none;
  }
}

@media (max-width: 400px) {
  .icon-card {
    flex: 1 1 100%;        /* 1 por fila en pantallas muy chicas */
    max-width: 100%;
  }
}

/* ================= SECCIONES ================= */
.about, .alianzas, .certificacion, .blog {
  padding: 60px 20px;
  text-align: center;
}

/* Estilos para el canvas en el footer */
.footer {
  position: relative;
  overflow: hidden;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Asegúrate que el contenido del footer esté por encima */
.footer-top,
.footer-links {
  position: relative;
  z-index: 1;
}

/* Si quieres que las partículas solo aparezcan en la parte superior del footer */
#particles-canvas {
  height: 50%; /* Ajusta según prefieras */
  top: 0;
}

/* O si prefieres que cubra todo el footer */
#particles-canvas {
  height: 100%;
}

/* ================= FOOTER ================= */
footer {
  background: #000;
  color: #fff;
  padding: 20px;
  text-align: center;
}

footer .social img {
  width: 30px;
  margin: 0 10px;
}

/* ================= ANIMACIÓN ================= */
section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-in-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.9);
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    text-align: right;
    padding: 20px;
  }

  nav ul.showing {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }
    .topbar .btn-asociate {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.4rem;
  }

    .topbar .btn-asociate {
    display: none;
  }

  .icon-card {
    flex: 1 1 100%;
  }
}
/* Sección ¿Quiénes somos? */
.about {
  padding: 60px 20px;
  background: #f9f9f9;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
  gap: 40px;
}

.about-img {
  flex: 1;
}

.about-img img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
}

.about-text {
  flex: 1;
  text-align: left;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .about-img img {
    max-width: 100%;
  }
}
/* Sección Alianzas */
.alianzas {
  position: relative;
  background: url("img/alianzas-bg.jpg") center/cover no-repeat;
  color: #fff;
  padding: 80px 20px;
  display: flex;
  justify-content: flex-start; 
  align-items: center;
  min-height: 400px;
}

.alianzas::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Overlay oscuro */
}

.alianzas-content {
  position: relative;
  max-width: 600px;
  text-align: left;
  margin-left: 20%; 
  z-index: 1;
}

.alianzas h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: orange;
}

.alianzas p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* 📱 Responsivo */
@media (max-width: 768px) {
  .alianzas {
    padding: 60px 15px;
    justify-content: center; 
  }

  .alianzas-content {
    margin-left: 0;
    text-align: center;
    max-width: 100%;
  }

  .alianzas h2 {
    font-size: 1.5rem;
  }

  .alianzas p {
    font-size: 1rem;
  }
}

/* Recuadro destacado */
.box-highlight {
  background: orange;      
  padding: 30px 40px;
  border-radius: 20px;     
  display: inline-block;
  max-width: 90%;                /* evita que ocupe todo el ancho */
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.box-highlight h1 {
  color: #000;                   /* contraste dentro del recuadro */
}

.box-highlight span {
  color: #fff;                   /* el texto destacado en blanco */
}

/* Botón dentro del recuadro */
.box-highlight .btn {
  background: #fff;
  color: orange;
  margin-top: 15px;
  display: inline-block;
  font-weight: bold;
}

/* 📱 Responsivo */
@media (max-width: 768px) {
  .box-highlight {
    padding: 20px;
    border-radius: 15px;
  }

  .box-highlight h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
}
/* Recuadro destacado con efecto glass */
.box-highlight {
  background: rgba(255, 166, 0, 0.01);  /* naranja translúcido */
  backdrop-filter: blur(1px);          /* desenfoque del fondo */
  -webkit-backdrop-filter: blur(1px);  /* soporte Safari */
  padding: 30px 40px;
  border-radius: 20px;
  display: inline-block;
  max-width: 90%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);

  border: 2px solid orange;             /* borde sólido */
}

.box-highlight h1 {
  color: #ffffffff;
}

.box-highlight span {
  color: #fff;
}

.box-highlight .btn {
  background: #050505ff;
  color: orange;
  margin-top: 15px;
  display: inline-block;
  font-weight: bold;
  border-radius: 30px;
  border: 1px solid #fff;  

}

/* 📱 Responsivo */
@media (max-width: 768px) {
  .box-highlight {
    padding: 20px;
    border-radius: 15px;
  }

  .box-highlight h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
}

.footer {
  background: linear-gradient(to bottom, #000000 0%, #0a0a2a 50%, #000000 100%);
  color: #fff;
  padding: 30px 50px;
  font-family: 'BR Segma';
  text-align: left;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.newsletter {
  max-width: 400px;
  flex: 1;
  min-width: 250px;
}

.newsletter .logo {
  max-width: 180px;
  margin-bottom: 15px;
}

.newsletter form {
  display: flex;
  margin-bottom: 5px;
}

.newsletter input {
  padding: 10px;
  flex: 1;
  border: none;
  border-radius: 5px 0 0 5px;
}

.newsletter button {
  background: #00fcff;
  color: #2c2c2c;
  padding: 10px 15px;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

.small-text {
  font-size: 12px;
  color: #00fcff;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-icons a {
  color: #00fcff;
  font-size: 20px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 30px 0;
  gap: 30px;
}

.footer-links h4 {
  color: #00fcff;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  color: #00fcff;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  margin-top: 20px;
  color: #aaa;
}

/* 📱 Adaptabilidad */
@media (max-width: 992px) {
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 20px;
    text-align: left;  
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start; 
    text-align: left;
    padding-left: 10px; 
    padding-right: 10px;
  }

  .newsletter form {
    flex-direction: column;
  }

  .newsletter input {
    border-radius: 5px;
    margin-bottom: 10px;
  }

  .newsletter button {
    border-radius: 5px;
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr;
    text-align: left;
    padding-left: 10px;
    padding-right: 10px;
  }

  .social-icons {
    justify-content: flex-start;
    padding-left: 10px;
  }
}

/* ================= PRELOADER ================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 105vw;   /* mejor que 100% */
  height: 105vh;  /* mejor que 100% */
  background: #000; /* Fondo mientras carga */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999; /* más alto por si tienes elementos con 9999 */
}

#preloader img {
  width: 100px;
  height: auto;
}