html, body {
  margin: 0;
  padding: 0;
  height: 100%; 
  overflow-x: hidden;
  font-family: "Raleway", sans-serif !important;
}
header {
  position: relative;
  height: 400px;
  background-color: #ddd; 
  background-image: url("{% static 'images/index/cpu.jpg' %}");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #000;
}
.header-content {
  width: 100%;
  display: flex;
  justify-content: space;
  align-items: center;
}

.logo img {
  height: 120px;
  margin-left: 15px;
}

/* 🔹 Menú de escritorio */
.navbar {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: black;
  text-decoration: none;
  font-size: 18px;
}

.nav-links a:hover {
  color: #007BFF;
}

.main-menu {
  border-bottom: 2px solid #000;
  padding-bottom: 3px;
}

/* 🔽 Menú hamburguesa (oculto en escritorio) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 1200;
}

.menu-toggle .bar {
  width: 30px;
  height: 4px;
  background-color: black;
  border-radius: 5px;
  transition: 0.3s;
}

/* 🔹 Contenedor del menú móvil */
.mobile-menu-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: none;  /* 🔹 Oculto por defecto */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* 🔹 Cuando el menú está activo */
.mobile-menu-container.active {
  display: flex;
}

/* 🔹 Botón de cerrar (X) */
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: black;
}

/* 🔹 Estilos de los enlaces en el menú móvil */
.mobile-nav-links {
  list-style: none;
  text-align: center;
  padding: 0;
}

.mobile-nav-links li {
  margin: 20px 0;
}

.mobile-nav-links a {
  text-decoration: none;
  color: black;
  font-size: 24px;
  font-weight: bold;
}

.mobile-nav-links a:hover {
  color: #007BFF;
}
.bar {
  width: 30px;
  height: 4px;
}
.header-text {
  text-align: left;
  margin: 10vh auto; 
  max-width: 90%; 
  margin-left: 220px;
  margin-top: 190px
}

.header-text h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem); 
}

.responsive-text h3 {
  text-align: center;
  white-space: pre-wrap;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  margin: 10vh 5%; 
  margin-top: 170px
}
#chat-container {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 300px;
  font-family: Arial, Helvetica, sans-serif;
}
#chat-header {
  background-color: #007bff;
  color: white;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
}
#chat-box {
  display: none;
  background: white;
  border: 1px solid #ccc;
  border-radius: 0 0 5px 5px;
  padding: 10px;
}
#chat-messages {
  height: 200px;
  overflow-y: auto;
  border-bottom: 1px solid #ccc;
  margin-bottom: 10px;
  padding: 5px;
}
#chat-input {
  width: 80%;
  padding: 5px;
}
button {
  padding: 5px;
}

.compliance-section p {
  text-align: left; 
  font-size: 1.2rem; 
  margin: 20px 10px 50px; 
  padding: 5px; 
  margin-top: 250px
}

@media (max-width: 850px) {
  .header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center; 
  }
  .logo {
    position: relative;
    z-index: 1500; /* Asegura que esté sobre el menú */
  }
  .nav-links {
    display: none; /* Ocultar menú en móviles */
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 0;
    background-color: white;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  }
  .nav-links.active {
    display: flex; /* Mostrar menú cuando esté activo */
  }
  .menu-toggle {
    display: flex;
    position: relative; /* Permite moverlo sin afectar otros elementos */
    top: 1px;
  }
  .menu-toggle.hidden {
    display: none;
  }
  .header-text {
    margin-left: 150px;
  }
  .compliance-section p {
    text-align: left; 
    font-size: 1.1rem; 
    margin: 20px 10px 50px; 
    padding: 5px; 
    margin-top: 220px
  }  
}
@media (max-width: 550px) {
  .header-text {
    text-align: left;
    margin: 10vh auto; 
    max-width: 90%; 
    margin-left: 50px;
    margin-top: 190px
  }
  .compliance-section p {
    text-align: left; 
    font-size: 1rem; 
  }  
}    