/* ===== Header fijo ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  padding: 20px 0;
  border-bottom: 2px solid #cccccc;
  z-index: 1000;
}

/* ===== Contenedor con Grid ===== */
header .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  /* logo | nav | idioma */
  grid-template-areas: "logo nav lang";
  align-items: center;
  column-gap: 16px;
}

/* Áreas */
.logo {
  grid-area: logo;
}

header nav {
  grid-area: nav;
  min-width: 0;
}

/* min-width:0 permite encoger correctamente */
.language-switcher {
  grid-area: lang;
  justify-self: end;
  white-space: nowrap;
}

/* ===== Logo ===== */
.logo img {
  width: 300px;
  height: auto;
}

/* ===== Menú ===== */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  flex-wrap: nowrap;
}

.nav-menu a {
  text-decoration: none;
  color: #f2f2f2;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #cccccc;
}

/* ===== Botón cambio de idioma ===== */
.language-switcher a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.language-switcher a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ===== Indicador de scroll ===== */
.scroll-indicator {
  position: fixed;
  left: 0;
  top: 0;
  width: 5px;
  height: 0%;
  background-color: #cccccc;
  z-index: 9999;
  border-radius: 3px;
}

.seo-tagline {
  font-size: .95rem;
  opacity: .85;
  margin-top: .5rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #ccc;
  text-align: center;
  margin-top: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {

  /* Estructura móvil: idioma arriba (derecha), menú debajo a ancho completo */
  header {
    padding: 12px 0;
    /* un poco más compacto */
  }

  header .container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "lang"
      "nav";
    row-gap: 10px;
  }

  .logo {
    display: none;
  }

  /* ocultamos logo en móvil */
  .language-switcher {
    justify-self: end;
  }

  .nav-menu {
    gap: 18px;
    justify-content: space-between;
  }
}