/* General */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body {
    margin: 0;
    font-family: 'Poppins';
  }
  
  #main-header {
    position: fixed;
    top: 0;
    height: 140px;
    width: 100%;
    background-color: rgba(1, 32, 62, 0.5); /* Negro transparente al inicio */
    transition: background-color 0.3s ease;
    z-index: 1000;
}

/* Estilo al hacer scroll */
#main-header.scrolled {
    background-color:rgb(1, 32, 61); /* Negro sólido cuando se hace scroll */
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%; /* Alinea los elementos con el header */
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

/* Enlaces */
.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: color 0.3s ease;
    line-height: 100px; /* Alinea los enlaces con el header */
}

/* Logo centrado */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2; /* Para que el logo esté encima */
}

.logo img {
    max-height: 130px; /* Ajusta el tamaño del logo */
    width: auto;
    display: block;
}

/* Menú hamburguesa */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 3; /* Asegura que el botón esté por encima */
}

.burger-menu span {
    width: 30px;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

/* Responsivo */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -250px; /* Fuera de la vista inicialmente */
        height: 100vh;
        width: 250px;
        background-color: rgb(1, 32, 61);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        transition: right 0.3s ease;
    }

    .nav-links.open {
        right: 0; /* Desplaza al frente */
    }

    .nav-links li {
        padding: 10px 0;
    }

    .nav-links li a {
        font-size: 18px;
        color: white;
        line-height: normal;
    }

    .logo {
        position: relative;
        left: auto;
        transform: none;
    }
}


  

  
/* General Reset */
body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  overflow-x: hidden; /* Evitar scroll horizontal no deseado */
}

/* Banner principal */
.parallax-banner {
  position: relative;
  width: 100%;
  height: 100vh; /* Ocupa toda la altura de la pantalla */
  background-size: cover; /* Asegura que la imagen cubra toda el área */
  background-position: center center; /* Centra la imagen */
  background-attachment: fixed; /* Efecto parallax */
  background-repeat: no-repeat;
  background-image: url('images/Banner1.png'); /* Imagen por defecto para escritorio */
}

/* Ajustes para móviles */
@media (max-width: 1024px) {
  .parallax-banner {
      background-image: url('images/Banner1.png');
      background-attachment: scroll; /* Deshabilitar parallax en tablets */
  }
}

@media (max-width: 768px) {
  .parallax-banner {
      background-image: url('images/Banner1.png');
      background-attachment: scroll; /* Deshabilitar parallax en móviles */
      background-position: center top; /* Ajustar la posición para móviles */
  }
}

/* Simulación de Parallax en móviles */
@media (max-width: 768px) {
  .parallax-banner::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      z-index: -1;
      background-image: url('images/banner-mobile.jpg');
      background-size: cover;
      background-position: center center;
  }
}
