/* header-footer.css */

/* Header */
* {
  margin: 0;
  padding: 0;
}
.site-header,
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(20, 16, 18, 0.55); 
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ddd !important;
}
nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  position: relative;
}

nav ul li {
  position: relative;
}

nav a {
  text-decoration: none;
  color: #ddd !important;
  font-weight: 400;
  padding: 8px 12px;
  display: block;
  font-size: 1.4rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color: var(--main-red);
}

.logo img {
  width: 22vw;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 20px;
  color: #000000 !important;
  line-height: 1;
}

.nav {
  position: relative;
}

.nav-list {
  display: flex;
  gap: 20px;
  list-style: none;
}

.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background: #1c181888;
  min-width: 180px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1001;
}

.has-submenu:hover > .submenu {
  display: block;
}

/* Footer */
footer {
  background: var(--main-red);
  color: white;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  font-size: 0.95rem;
}

footer h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  border-bottom: 2px solid white;
  display: inline-block;
  padding-bottom: 5px;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin: 5px 0;
}

footer ul li a {
  color: white;
  text-decoration: none;
}

footer ul li a:hover {
  text-decoration: underline;
}

/* Responsivo */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-list.open {
    max-height: 70vh;
  }

  .nav-link {
    padding: 12px 16px;
  }

  .has-submenu > .submenu {
    position: static;
    display: none;
    margin: 0 12px 8px 12px;
    border: 1px solid #eee;
  }

  .has-submenu.open > .submenu {
    display: block;
  }

  .logo img {
    width: 96px;
  }
  .site-header {
    display: flex;
    align-items: center;
  }

  .site-header .logo {
    order: 1;
    margin-left: auto;
  }
  .site-header .menu-toggle {
    order: 0;
  }
}

@media screen and (max-width: 430px) {
  .site-header {
    padding: 10px 16px;
  }

  .logo img {
    width: 88px;
  }
}
