* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: black;
}

.navbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: transparent;
  padding: 15px 10px 15px 0;
  position: fixed;
  width: 100%;
  top: -20px;
  left: 0;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

.navbar-hidden {
  transform: translateY(-100%);
  pointer-events: none;
  user-select: none;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 25px;
  margin-left: 0;
}

.logo {
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  position: relative;
  top: 5px;
}

.nav-links li a{
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-links li a:hover {
  color: #fff;
}

.nav-links li{
  font-size: 18px;
  color: #e1e1e1;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  border: none;
  background: none;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: color;
}

.nav-links li:focus,
.nav-links li:hover{
  color: #fff;
}

.nav-links li:focus::after,
.nav-links li:hover::after{
  width: 100%;
  left: 0%;
}

.nav-links li:after{
  content: '';
  pointer-events: none;
  bottom: -2px;
  left: 50%;
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: width, left;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #ffffff;
  display: block;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    position: absolute;
    right: 10px;
    top: 35px;
  }

  .logo img {
    top: -17px;
  }

  .nav-links {
    flex-direction: column;
    background-color: #000000;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    display: none;
    text-align: center;
    padding: 20px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }
}
.Text1{
  color: #fff;
  font-weight: 600;
  margin-bottom: 10px;
  position: static;
  top: auto;
  left: auto;
}

.Text2{
  color: #fff;
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 10px;
  position: static;
  top: auto;
  left: auto;
}

.Text3{
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  position: static;
  top: auto;
  left: auto;
}

.user-profile {
  width: 131px;
  height: 51px;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.3s ease;
  background: linear-gradient(
    to bottom right,
    #2e8eff 0%,
    rgba(0, 0, 0, 0) 30%
  );
  background-color: rgba(46, 142, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile:hover,
.user-profile:focus {
  background-color: rgba(46, 142, 255, 0.7);
  box-shadow: 0 0 10px rgba(46, 142, 255, 0.5);
  outline: none;
}

.user-profile-inner {
  width: 127px;
  height: 47px;
  border-radius: 13px;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #fff;
  font-weight: 600;
}

.user-profile-inner svg {
  width: 27px;
  height: 27px;
  fill: #fff;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100vh;
  padding: 0 0 0 35px;
  position: relative;
  margin-bottom: 0;
}

.acerca-section {
  padding-top: 40px;
}

.hero-left {
  position: relative;
  max-width: 40%;
  margin-top: 0;
}

.Text2 {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-right {
  max-width: 55%;
  height: 400px;
  display: flex;
  align-items: center;
  margin-top: 0;
  align-self: flex-end;
}

#barChart {
  width: 100% !important;
  height: 100% !important;
  max-height: 400px;
}

.acerca-section {
  background-color: #111111;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.acerca-section .container {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}

.section-description {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #ffffff;
  text-align: justify;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Additional responsive styles for mobile devices */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    height: 100vh;
    padding: 20px;
    justify-content: center;
  }
  .hero-right {
    display: none;
  }

  .hero-left, .hero-right {
    max-width: 100%;
    margin: 0 0 20px 0;
  }

  /* Center and move down the text in the first section */
  .hero-left {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin-top: 0 !important;
  }

  .Text1 {
    font-size: 1.2rem;
  }

  .Text2 {
    font-size: 2rem;
    white-space: normal;
  }

  .Text3 {
    font-size: 1rem;
  }

  #barChart {
    max-height: 300px;
    display: none;
  }

  /* Hide the image in the second section */
  .acerca-section img[src="Img/5.svg"] {
    display: none;
  }

  /* Make the second section content a vertical list with icons */
  .acerca-section > .container > div[style*="display: flex; align-items: center; gap: 10px;"] {
    flex-direction: column !important;
    align-items: center !important;
  }

  .acerca-section > .container > div[style*="display: flex; align-items: center; gap: 10px;"] > div {
    margin-left: 0 !important;
    margin-bottom: 20px;
    text-align: center !important;
  }

  .acerca-section > .container > div[style*="display: flex; align-items: center; gap: 10px;"] > div > div[style*="display: flex; align-items: center; gap: 4px;"] {
    justify-content: center !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 480px) {
  .Text1 {
    font-size: 1rem;
  }

  .Text2 {
    font-size: 1.5rem;
  }

  .Text3 {
    font-size: 0.9rem;
  }

  .user-profile {
    width: 100px;
    height: 40px;
  }

  .user-profile-inner {
    width: 96px;
    height: 36px;
    font-size: 0.9rem;
  }

  #chatbot-window {
    width: 90vw !important;
    max-height: 50vh !important;
    bottom: 70px !important;
    right: 5vw !important;
  }

  #chatbot-btn {
    width: 50px !important;
    height: 50px !important;
    font-size: 24px !important;
    bottom: 15px !important;
    right: 15px !important;
  }

  nav.navbar {
    padding: 10px 10px 10px 10px;
  }

  .nav-links li a {
    font-size: 14px;
  }

  /* Also hide the image in the second section on smaller screens */
  .acerca-section img[src="Img/5.svg"] {
    display: none;
  }

  /* Make icon and span divs stack vertically on mobile */
  div[style*="display: flex; align-items: center; gap: 4px; margin-left: -20px; justify-content: flex-start; padding-left: 0;"],
  div[style*="display: flex"][style*="align-items: center"][style*="gap: 4px"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  div[style*="display: flex; align-items: center; gap: 4px; margin-left: -20px; justify-content: flex-start; padding-left: 0;"] > span,
  div[style*="display: flex"][style*="align-items: center"][style*="gap: 4px"] > span {
    margin-left: 0 !important;
    margin-top: 8px !important;
  }

  /* Additional styling to make the icon+span pairs appear as a list */
  .acerca-section > .container > div[style*="display: flex; align-items: center; gap: 20px;"] {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .acerca-section > .container > div[style*="display: flex; align-items: center; gap: 20px;"] > div {
    margin-left: 0 !important;
    margin-bottom: 20px !important;
    width: 100% !important;
  }

  .acerca-section > .container > div[style*="display: flex; align-items: center; gap: 20px;"] > div > div[style*="display: flex; align-items: center; gap: 4px;"] {
    justify-content: flex-start !important;
    margin-left: 0 !important;
  }
}
@media (max-width: 768px) {
  .hero {
    background: radial-gradient(circle at top left, #1a1a1a, #000);
    padding: 30px 20px;
    animation: fadeIn 1s ease-in-out;
    height: 100vh;
  }

  .Text1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 5px;
    top: center;
    position: relative;
  }

  .Text2 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(to right, #2e8eff, #80d0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    animation: slideDown 0.8s ease-in-out;
    top: center;
    position: relative;
  }

  .Text3 {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 20px;
    animation: fadeIn 1.2s ease-in-out;
  }

  .user-profile {
    border: 2px solid #2e8eff;
    background: transparent;
    transition: all 0.3s ease-in-out;
  }

  .user-profile:hover {
    background: #2e8eff;
    box-shadow: 0 0 12px #2e8eff88;
  }

  .user-profile-inner {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.proyectos-section {
  background: linear-gradient(-45deg, #111111, #1a1a2e, #16213e, #0f3460, #53354a);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: #ffffff;
  padding: 80px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.site-footer {
  background-color: #111111;
  color: #ffffff;
  padding: 30px 20px 15px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  border-top: 1px solid #222222;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  gap: 8px;
  margin-left: -120px;
}

.footer-logo img {
  height: 90px;
  width: auto;
}

.footer-right ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding-left: 0;
  margin: 0;
}

.footer-right ul li a {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-right ul li a:hover,
.footer-right ul li a:focus {
  color: #80c1ff;
  outline: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 15px;
  color: #888888;
  font-size: 13px;
}

/* Responsive footer */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-right ul {
    flex-direction: column;
    gap: 10px;
  }
}

/* Footer columns */
.footer-column {
  margin-right: 40px;
  display: flex;
  flex-direction: column;
}

.footer-columns {
  display: flex;
  gap: 100px;
  align-items: flex-start;
}

.footer-column h4 {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-column ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s ease;
  flex-wrap: wrap;
}

.footer-column ul li a:hover,
.footer-column ul li a:focus {
  color: #80c1ff;
  outline: none;
}

.footer-column.social-icons {
  margin-left: auto;
  display: flex;
  align-items: center;
  

}

.footer-column.social-icons a img {
  width: 28px;
  height: 28px;
  /* Temporarily remove filter to check visibility */
  /* filter: brightness(0) invert(1); */
  border: 1px solid rgb(0, 0, 0); /* Add border to check visibility */
  background-color: rgb(0, 0, 0); /* Add background to check visibility */
  transition: filter 0.3s ease;
}

.footer-column.social-icons a:hover img,
.footer-column.social-icons a:focus img {
  filter: brightness(0) invert(0.7);
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  margin-top: 25px;
  color: #888888;
  font-size: 13px;
}
.Btn {
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition-duration: .4s;
  cursor: pointer;
  position: relative;
  background: #f09433;
  background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f09433', endColorstr='#bc1888',GradientType=1 );
  overflow: hidden;
}

.svgIcon {
  transition-duration: .3s;
}

.svgIcon path {
  fill: white;
}

.text {
  position: absolute;
  color: rgb(255, 255, 255);
  width: 120px;
  font-weight: 600;
  opacity: 0;
  transition-duration: .4s;
}

.Btn:hover {
  width: 110px;
  transition-duration: .4s;
  border-radius: 30px;
}

.Btn:hover .text {
  opacity: 1;
  transition-duration: .4s;
}

.Btn:hover .svgIcon {
  opacity: 0;
  transition-duration: .3s;
}
/* Responsive footer */
@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    gap: 30px;
  }

  .footer-column.social-icons {
    margin-left: 0;
    justify-content: center;
  }
}

.footer-column {
  display: flex;
  flex-direction: column;
  margin-right: 40px;
}

.footer-columns-content {
  display: flex;
  gap: 120px;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
}

.footer-columns-content > .footer-column:nth-child(3) {
  margin-left: 40px;
}

.footer-column h4 {
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-columns-header {
  display: flex;
  gap: 40px;
  margin-bottom: 10px;
}

.footer-column ul {
  display: block;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 8px;
  display: block;
}

.footer-column ul {
  list-style: none;
  padding-left: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover,
.footer-column ul li a:focus {
  color: #80c1ff;
  outline: none;
}

/* Social icons */
.social-icons a {
  display: inline-block;
  margin-left: 10px;
}

.social-icons img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.social-icons a:hover img,
.social-icons a:focus img {
  filter: brightness(0) invert(0.7);
}

.proyectos-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: left;
}

.proyecto-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.proyecto-img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.proyecto-descripcion {
  flex: 1;
}

.proyecto-descripcion p {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.nilo-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* Container for the 7,8,9 images hidden by default */
.proyectos-hover-container {
  display: none;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.img11-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* Show proyectos-hover-container when active */
.proyectos-hover-container.active {
  display: flex;
}

/* Each proyecto-hover-item container */
.proyecto-hover-item {
  position: relative;
  cursor: pointer;
  width: 150px;
}

/* Hide hover-info by default */
.hover-info {
  display: none;
  position: absolute;
  bottom: -90px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 10px;
  border-radius: 8px;
  width: 180px;
  text-align: center;
  z-index: 10;
}

/* Show hover-info on hover */
.proyecto-hover-item:hover .hover-info {
  display: block;
}

/* Style for ver-mas button */
.ver-mas-btn {
  margin-top: 8px;
  padding: 6px 12px;
  background-color: #2e8eff;
  border: none;
  border-radius: 5px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.ver-mas-btn:hover {
  background-color: #1c5ecb;
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content {
  background-color: #111;
  padding: 20px;
  border-radius: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  color: white;
  position: relative;
  text-align: center;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  user-select: none;
}

