@import url("colors.css");

body {
  margin: 0;
  background: #f4f4f4;
  color: #111;
  font-family: 'Poppins', sans-serif;
}

/* nav-bar */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #eea553;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav.scrolled {
  background: rgba(245, 124, 0, 0.5);
}

.nav-links li {
  display: inline;
  margin: 0 1rem;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #005bbb;
}

/* nav-bar-end */
/* video */
.video-banner {
  margin-top: 5rem;
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  background: var(--primary);
}

.video-banner video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  display: block;
}
.video-banner img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  display: block;
}
/* video-end */

/* footer */
.footer {
  background-color: #000;
  color: #fff;
  padding: 3rem 2rem;
  font-family: sans-serif;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  flex: 1 1 200px;
  margin-bottom: 2rem;
}

.footer-logo img {
  max-height: 200px;
  margin-bottom: 0.5rem;
}

.footer-columns {
  display: flex;
  flex: 4 1 800px;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-column {
  min-width: 150px;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #f90;
}

/* footer end */

/* responsive */
/* Hamburguesa */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

/* Cambiar a X cuando esté abierto */
.nav-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Menú móvil oculto */
.nav-links {
  list-style: none;
  position: fixed;
  top: 5rem;
  right: -100%;
  height: 100vh;
  width: 50%;
  background-color: #111;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: right 0.4s ease;
  z-index: 1000;
}

.nav-links.active {
  right: 0;
}

.nav-links li a {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid rgb(73, 73, 72);
  padding-bottom: 0.5rem;
  width: 100%;
}

.nav-links li:last-child a {
  border-bottom: none;
}

#chip {
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  transition: transform 1s ease;
  z-index: 1000;
  pointer-events: none;
}

#chip.walking {
  animation: caminando 0.5s steps(2) infinite;
}

/* Desktop */
@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    flex-direction: row;
    background: none;
    height: auto;
    padding: 0;
    gap: 2rem;
    width: auto;
  }

  .nav-links li a {
    color: #111;
    border: none;
    padding: 0;
  }

  .nav-links li a:hover {
    color: #005bbb;
  }
}

/* Mostrar hamburguesa solo en móviles */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .video-banner  {
    height: 40vh;
  }
  .video-banner video{
    width: 100%;
    height: auto;
  }

}