
header {
  background-color: #ededed6f;
  box-shadow: 0 2px 4px rgba(6, 146, 30, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* mantiene izquierda/derecha */
  padding: .6rem 2rem;
  max-width: auto;
  margin: 0 auto;
  position: relative;
  gap: 1rem;
  font-size: 0.85rem;
  /* 🔹 un poco más pequeño, mantiene buena legibilidad */
}

/* ---------- Bloque izquierdo (logo + enlaces) ---------- */
.nav-left {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 2rem;
}

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

.logo {
  max-height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-links li a {
  position: relative;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  padding: .6rem .5rem;
  transition: color 0.3s ease;
}

.nav-links li.has-megamenu>a {
  display: inline-flex;
  /* permite alinear texto e icono */
  align-items: center;
  /* centra verticalmente */
  gap: 0.3rem;
  /* separa texto del icono */
}

.nav-links li.has-megamenu>a .menu-icon {
  width: 10px;
  /* tamaño del icono */
  height: 10px;
  object-fit: contain;
  transition: transform 0.3s ease;
  /* opcional, para rotar icono */
}

.nav-links li.has-megamenu:hover>a .menu-icon {
  transform: rotate(180deg);
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 5px;
  background-color: #049e19;
  /* tono verde corporativo */
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: #049e19;
  /* tono verde al pasar el mouse */
}

.nav-links li a:hover::after {
  width: 100%;
  /* la línea se expande suavemente */
}

/* ---------- Bloque derecho(login+reg) ---------- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  /* un poco más juntos */
  margin-left: auto;
}

.btn-registrieren {
  background-color: #049e19;
  color: #fff !important;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.2s;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
}

.btn-registrieren:hover {
  background-color: #037b14;
  transform: translateY(-2px);
  font-weight: 600;
}

.anmeldung {
  color: #049e19;
  text-decoration: none;
  border: 1px solid #049e19;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  background-color: transparent;
  font-size: 0.85rem;
}

.anmeldung:hover {
  background-color: #049e19;
  color: #fff;
  transform: translateY(-2px);
  font-weight: 600;
}

/* ---------- Selector de idioma ---------- */
.custom-lang-selector {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  font-size: 0.95rem;
  background: none;
  border: none;
  margin-left: 0.5rem;
  font-size: 0.85rem;
}

.selected-lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.5rem;
  background: transparent;
  border: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.selected-lang:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.flag-icon {
  width: 20px;
  height: 14px;
  object-fit: cover;
}

/* ---------- Menú desplegable de idiomas ---------- */
.lang-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: white;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  z-index: 99;
}

.lang-options.show {
  display: block;
  animation: fadeIn 0.2s ease;
}

.lang-options li {
  padding: 0.5rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.lang-options li:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* ---------- Animación suave al desplegar ---------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== MEGA MENÚ (pegado al header y sin salto de hover) ========== */
.nav-links li.has-megamenu {
  position: static;
}

/* --- Panel desplegable --- */
.mega-menu {
  position: absolute;
  top: 85%;
  left: 0;
  width: 100vw;
  background-color: #e8e8e8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 999;
  padding: 2rem 0;
  animation: fadeDown 0.25s ease-in-out;
}

/* --- Mostrar menú al hover (ya no hay hueco que rompa el hover) --- */
.nav-links li.has-megamenu:hover .mega-menu,
.mega-menu:hover {
  display: block;
}

/* --- Contenido interno --- */
.mega-content {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 3rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5rem;
  /* 🔹 ajusta según el ancho del logotipo */
  box-sizing: border-box;
}

/* --- Columnas y estilos internos --- */
.mega-column {
  flex: 1;
  min-width: 250px;
  max-width: 230px;
}

.mega-column h4 {
  color: #049e19;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

/* --- Listas y líneas --- */
.mega-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-column ul li {
  margin: 0;
  padding: 0.4rem 0;
  border-bottom: 1px solid #c1c0c0;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.mega-column ul li:last-child {
  border-bottom: none;
}

.mega-column ul li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

.menu-item-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mega-column ul li:hover .menu-item-icon {
  opacity: 1;
  transform: translateY(-2px);
}

.mega-column ul li:hover {
  background-color: rgba(4, 158, 25, 0.05);
  border-color: #049e19;
}

.mega-column ul li:hover a {
  color: #049e19;
  font-weight: 500;
}

/* --- Animación --- */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========== FOOTER ========== */
footer {
  background-color: #f1f4f7;
  /* gris muy claro */
  color: #2c3e50;
  /* texto azul oscuro */
  padding: 2.5rem 1rem 1rem;
  font-size: 0.9rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Sección superior: columnas --- */
.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto 2rem auto;
}

.footer-col h4 {
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #34495e;
  /* tono azul oscuro para títulos */
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: #2980b9;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #1c5980;
  /* azul más oscuro al pasar el mouse */
}

/* --- Redes sociales --- */
.footer-social {
  margin: 2rem 0 1rem;
  text-align: center;
}

.footer-social a {
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-social a img {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}

.footer-social a:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid #dcdfe3;
  /* borde gris claro */
  padding-top: 1rem;
  font-size: 0.8rem;
  text-align: center;
  color: #7f8c8d;
}

.footer-bottom a {
  color: #2980b9;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #002eab;
}

.footer-item-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  color: #2980b9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer ul li:hover .menu-item-icon {
  opacity: 1;
  transform: translateY(-2px);
}

