.large-header {
  /* position: relative;
  width: 100%;
  background: #333;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  z-index: 1; */
}

#large-header {
  /* background-image: url("-bg.jpg"); */
}

/* Imagen de fondo de la cuadrícula */
.hero-background-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
  /* Ajusta este valor según necesites */
  /* Filtros comentados temporalmente */
  /* filter: invert(1) sepia(1) saturate(2) hue-rotate(136deg);
  transform-origin: center center; */
  /*transform: scale(0.8);  Hace el grid un 20% más pequeño */
}

/* Media queries para adaptación responsive */
@media (max-width: 768px) {
  .hero-background-grid {
    transform: scale(0.6);
    /* Más pequeño en móviles */
  }
}

/* Estilos para .hero-header */
.hero-header {
  height: 100vh;
  /* Altura completa de la ventana */
  width: 100%;
  /* background: #0e0e15; Fondo sólido que coincide con el inicio del degradado del gráfico */
  background-color: transparent;
  background-image: linear-gradient(178deg, #1d222e 25%, #333945 80%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  /* Para evitar que el canvas de partículas se desborde */
}

/* Canvas para el efecto animado de partículas */
/* #partículas-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
} */

/* Canvas para efecto 3D */
#ribbons3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Entre el grid (z-index: 0) y el partículas-canvas (z-index: 2) */
}

/* ====== ELECTRIC STRINGS RELATED STYLES ====== */

/* Principal canvas para electric strings */
#canvas {
    position: absolute;     /* Posicionamiento fijo dentro del header */
    top: 0;                /* Alineado al tope */
    left: 0;               /* Alineado a la izquierda */
    width: 100%;           /* Ocupa todo el ancho disponible */
    height: 100%;          /* Ocupa todo el alto disponible */
    z-index: 1;            /* Capa por encima del fondo pero debajo del contenido */
    pointer-events: none;   /* Permite clicks a través del canvas */
    opacity: 0.8;          /* Transparencia para suavizar el efecto */
}

/* Contenedor que afecta la visualización de electric strings */
.hero-header {
    height: 100vh;         /* Altura completa de la ventana - necesario para el canvas */
    width: 100%;           /* Ancho completo - necesario para el canvas */
    background-color: transparent;
    background-image: linear-gradient(178deg, #1d222e 25%, #333945 80%); /* Fondo que complementa el efecto */
    position: relative;    /* Necesario para posicionar el canvas */
    overflow: hidden;      /* Evita que el efecto se desborde */
}

/* Contenido que se superpone al efecto electric strings */
.hero-content {
    position: relative;
    z-index: 4;           /* Se mantiene por encima del efecto */
}

/* ==== RESPONSIVE BEHAVIOR ==== */
/* El efecto electric strings es responsive por defecto ya que usa porcentajes */
/* y se adapta al contenedor .hero-header que sí tiene media queries */

@media (max-width: 768px) {
    .hero-header {
        /* El efecto se mantiene igual en móvil */
        /* Solo se ajusta el contenido del hero */
    }
}

/* Contenedor principal del contenido - Capa superior */
.hero-content {
    flex: 1;               /* Ocupa el espacio disponible */
    display: flex;         /* Usa flexbox para el layout */
    flex-direction: column;/* Organiza elementos en columna */
    justify-content: center;/* Centra verticalmente */
    align-items: center;   /* Centra horizontalmente */
    text-align: center;    /* Alinea el texto al centro */
    padding: 20px;         /* Espacio interno */
    color: white;          /* Color del texto */
    z-index: 4;           /* Capa 4 - Por encima de todos los efectos visuales */
}


.hero-title {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: white;
}

.hero-subtitle {
  font-size: 1.2em;
  font-weight: 300;
  /* margin: 0; */
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
}

.get-started-btn {
  display: inline-block;
  padding: 12px 32px;
  /* box-shadow: 0 0 2px rgb(255 255 255 / 0.7) inset, 0px 0px 15px 0px rgb(0 0 0 / 0%); */
  background-color: #0971fe;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;

}

.get-started-btn:hover {
  background-color: #0971fe;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(81, 162, 164, 0.3);
  color: white;
}


/* Barra de navegación */
/* .nav-container {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  } */

/* Contenedor del balance */
.balance-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Estilo del monto principal */
.balance-amount {
  font-size: 8em;
  font-weight: 200;
  margin: 0;
  position: relative;
}

.balance-amount::before {
  content: "$";
  font-size: 0.35em;
  position: absolute;
  left: -30px;
  top: 35px;
}

/* Estilo del texto de seguimiento */
.balance-tracking {
  font-size: 1.2em;
  margin-top: 10px;
}

.success {
  color: #0971fe;
}

/* Contenedor de la gráfica */
.graph-container {
  width: 100%;
  height: 30vh;
  position: relative;
  margin-top: 20px;
  z-index: 3;
}

/* canvas#graphChart {
  position: absolute;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
} */

/* Responsive */
@media (max-width: 768px) {
  .balance-amount {
    font-size: 6em;
  }

  .balance-amount::before {
    left: -25px;
    top: 30px;
  }
}

/* responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5em;
  }

  .hero-subtitle {
    font-size: 1.2em;
  }
}

.moving-dot-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.moving-dot {
  position: absolute;
  width: 6px;
  /* Reducido el tamaño del punto */
  height: 6px;
  background-color: #ffffffa4;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(9, 111, 254, 0.507);
  /* Sombra más sutil */
  pointer-events: none;
}

/* Efecto de brillo más sutil */
.moving-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: rgba(81, 162, 164, 0.15);
  /* Reducida la opacidad */
  border-radius: 50%;
  animation: subtle-pulse 3s infinite;
}

@keyframes subtle-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  70% {
    transform: scale(1.5);
    /* Reducido el tamaño máximo del pulso */
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Estilos para el navbar */
/* .navbar-dark.bg-primary {
    background-color: #0e0e15 !important;
    padding: 1rem 0;
} */


.bg-primary {
  background-color: transparent !important;
}

/* Wrapper para alinear links y botones */
.navbar-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Estilos para los links del menú */
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  margin: 0 1rem;
  transition: color 0.3s ease;
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  color: #fff !important;
}

.nav-item:hover .nav-link {
  background-color: rgba(255, 255, 255, 0.034);
}

/* Estilos para los botones */
.nav-buttons {
  display: flex;
  gap: 1rem;
  margin-left: 2rem;
}

.nav-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-btn-login {
  color: #fff !important;
  padding: 12px 32px;
  /* box-shadow: 0 0 2px rgb(255 255 255 / 0.7) inset, 0px 0px 15px 0px rgb(0 0 0 / 0%); */
  background-color: #0971fe;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;

}

.nav-btn-login:hover {
  background-color: #0971fe;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(81, 162, 164, 0.3);
  color: white;
}


/* Barra de navegación */
/* .nav-container {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  } */

/* Contenedor del balance */
.balance-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Estilo del monto principal */
.balance-amount {
  font-size: 8em;
  font-weight: 200;
  margin: 0;
  position: relative;
}

.balance-amount::before {
  content: "$";
  font-size: 0.35em;
  position: absolute;
  left: -30px;
  top: 35px;
}

/* Estilo del texto de seguimiento */
.balance-tracking {
  font-size: 1.2em;
  margin-top: 10px;
}

.success {
  color: #0971fe;
}

/* Contenedor de la gráfica */
.graph-container {
  width: 100%;
  height: 30vh;
  position: relative;
  margin-top: 20px;
  z-index: 3;
}

/* canvas#graphChart {
  position: absolute;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
} */

/* Responsive */
@media (max-width: 768px) {
  .balance-amount {
    font-size: 6em;
  }

  .balance-amount::before {
    left: -25px;
    top: 30px;
  }
}

/* responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5em;
  }

  .hero-subtitle {
    font-size: 1.2em;
  }
}

.moving-dot-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.moving-dot {
  position: absolute;
  width: 6px;
  /* Reducido el tamaño del punto */
  height: 6px;
  background-color: #ffffffa4;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(9, 111, 254, 0.507);
  /* Sombra más sutil */
  pointer-events: none;
}

/* Efecto de brillo más sutil */
.moving-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: rgba(81, 162, 164, 0.15);
  /* Reducida la opacidad */
  border-radius: 50%;
  animation: subtle-pulse 3s infinite;
}

@keyframes subtle-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  70% {
    transform: scale(1.5);
    /* Reducido el tamaño máximo del pulso */
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Estilos para el navbar */
/* .navbar-dark.bg-primary {
    background-color: #0e0e15 !important;
    padding: 1rem 0;
} */


.bg-primary {
  background-color: transparent !important;
}

/* Wrapper para alinear links y botones */
.navbar-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Estilos para los links del menú */
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  margin: 0 1rem;
  transition: color 0.3s ease;
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  color: #fff !important;
}

.nav-item:hover .nav-link {
  background-color: rgba(255, 255, 255, 0.034);
}

/* Estilos para los botones */
.nav-buttons {
  display: flex;
  gap: 1rem;
  margin-left: 2rem;
}

.nav-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-btn-login {
  color: #fff !important;
  /* border: 2px solid #0971fe; */
  border: 2px solid transparent;
  /* Cambiado a transparent */
  background-color: transparent;
}

.nav-btn-login:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  /* box-shadow: 0 4px 15px rgba(9, 113, 254, 0.3); */
}

.nav-btn-signup {
  background-color: #0971fe;
  color: #fff !important;
  border: 2px solid #0971fe;
}

.nav-btn-signup:hover {
  background-color: #0862d6;
  border-color: #0862d6;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(9, 113, 254, 0.3);
}

/* Responsive */
@media (max-width: 991px) {
  .navbar-nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-buttons {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  .navbar-nav {
    margin: 1rem 0;
    width: 100%;
    text-align: center;
  }

  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
}

/* # navbar # */

/* Estilos para el navbar */
/* .navbar-dark.bg-primary {
  background-color: #0e0e15 !important;
  padding: 1rem 0;
} */

/* Wrapper para alinear links y botones */
.navbar-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Estilos para los links del menú */
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
  font-weight: 500;
}

/* Ajustar el margen del primer elemento del menú */
.navbar-nav .nav-item:first-child .nav-link {
  margin-left: 0;
}

/* Los botones mantendrán su espacio actual */
.nav-buttons {
  display: flex;
  gap: 1rem;
  margin-left: 1.5rem;
  /* Reducido ligeramente de 2rem a 1.5rem */
}


.navbar-nav .nav-link:hover {
  color: #fff !important;
}

/* Estilos para los botones */
.nav-buttons {
  display: flex;
  gap: 1rem;
  margin-left: 2rem;
}

.nav-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-btn-login {
  color: #fff !important;
  /* border: 2px solid #0971fe; */
  border: 2px solid transparent;
  /* Cambiado a transparent */
  background-color: transparent;
}

.nav-btn-login:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  /* box-shadow: 0 4px 15px rgba(9, 113, 254, 0.3); */
}

.nav-btn-signup {
  background-color: #0971fe;
  color: #fff !important;
  border: 2px solid #0971fe;
}

.nav-btn-signup:hover {
  background-color: #0862d6;
  border-color: #0862d6;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(9, 113, 254, 0.3);
}

/* Responsive */
@media (max-width: 991px) {
  .navbar-nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-buttons {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  .navbar-nav {
    margin: 1rem 0;
    width: 100%;
    text-align: center;
  }

  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
}

/* Estilos para los navs sticky */
.sticky-top-2 {
  position: sticky;
  top: 44px;
  z-index: 1020;
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* Selector de idioma en el nav */
.language-selector {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: inline-block;
}

.flag-icon {
  width: 30px;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.flag-icon:hover {
  transform: scale(1.1);
}

.dropdown-content {
  display: none;
  position: absolute;
  /* background-color: rgba(255, 255, 255, 0.685); */
  background-color: rgba(255, 255, 255, 0.08);
  min-width: 160px;
  /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); */
  z-index: 1;
  border-radius: 8px;
  overflow: hidden;
  top: 40px;
  right: 0;
}

.dropdown-content a {
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background-color 0.3s;
}

.dropdown-content a:hover {
  background-color: #f8f8f815;
}

.dropdown-content img {
  width: 20px;
  margin-right: 10px;
  border-radius: 2px;
}

.show {
  display: block;
}

#welcomeMessage {
  text-align: center;
  font-size: 24px;
  margin-top: 20px;
}

/* Agregar si no está el botón back-to-top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  cursor: pointer;
  background-color: #2f3b50;
  /* Color que coincide con el banner de CoinGecko */
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.51);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: #0971fe;
  /* Color de acento al hacer hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(9, 113, 254, 0.3);
}

/* Ajustes responsive para hero section */
@media (max-width: 768px) {
  .hero-header {
    height: auto;
    min-height: 100vh;
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .graph-container {
    height: 25vh;
  }

  #canvas {
    opacity: 0.6;
  }
}

/* Ajustes para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-header {
    height: auto;
    min-height: 80vh;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .graph-container {
    height: 28vh;
  }
}