/* Estilos adicionales para componentes comunes */

/* Header mejorado */
header {
  background-color: var(--color-beige);
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 1px;
  text-transform: lowercase;
}

.logo img {
  height: 50px;
  margin-right: 10px;
  object-fit: contain;
}

/* Menú de navegación mejorado */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin-left: 2rem;
  position: relative;
}

.nav-menu a {
  color: #fff;
  font-size: 0.9rem;
  text-transform: lowercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: #fff;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* Botón de menú móvil mejorado */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #fff;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  opacity: 0.8;
}

/* Overlay para menú móvil */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.menu-overlay.active {
  display: block;
}

/* Footer mejorado */
footer {
  background-color: var(--color-beige-dark);
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.footer-links i {
  margin-right: 10px;
  margin-top: 5px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.social-links {
  display: flex;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.social-links li {
  margin-right: 1.2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Media queries para componentes comunes */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-beige);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 999;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    margin: 1.5rem 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-menu a {
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
  }
  
  .footer-container {
    flex-direction: column;
  }
  
  .footer-col {
    width: 100%;
    margin-bottom: 2rem;
  }
}
