:root{
  --agora-blau:#39A9E2; --gris-fosc:#333333; --blanc:#FFFFFF;
  --gris-clar:#F4F4F4; --buttons:#16BAC5; --gris-mitja:#666666;
  --gris-suau:#ECECEC; --blau-mitja:#01151F; --blau-fosc:#1C9EE0;
  --button-hover:#14CFDB; --turquesa-clar:#14CFDB; --groc:#EAB308;
}


.desktop-only { display: block; }
.mobile-only { display: none; }

header {
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  position: fixed;
  align-items: center;
  background-color: var(--blanc);
  padding: 1rem 2rem;
  border-bottom: 0.0625rem var(--blanc);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo-icon {
  width: 4.875rem;
  height: auto;
  margin-right: 0.5rem;
}

.site-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-left: 0.5rem;
}

.header-left .home-link {
  display: flex;               /* mantiene svg y texto alineados */
  align-items: center;
  text-decoration: none;       /* quita el subrayado */
  color: inherit;              /* usa el color actual del header */
}

.header-left .home-link:hover {
  opacity: 0.85;               /* pequeño efecto al pasar el ratón */
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.menu-btn .menu-icon {
  display: none;
}

.menu-btn .menu-text,
.menu-btn .arrow-down {
  display: inline;
}


.menu-dropdown.open {
  display: block;
}
.menu-dropdown {
  display: none;
  position: absolute;
  top: 100%; /* debajo del botón */
  right: 5rem;
  background-color: var(--agora-blau);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 220px;
}

.menu-dropdown a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 0.5rem 0;
  font-weight: 500;
  transition: background-color 0.2s ease-in-out;
}

.developed-by {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: var(--blanc);
  border-radius: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gris-fosc);
  z-index: 1000;
  font-style: normal;
  font-weight: 600;
  line-height: 21px;
  align-items: center;
}

.developed-by svg {
  height: 2rem;
  width: auto;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.menu-btn {
  background-color: var(--buttons);
  color: var(--blanc);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3125rem;
}

.arrow-down {
  font-size: 0.8rem;
}
.lang-switcher{ position:relative; margin-right:.75rem; }
.lang-btn{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.4rem .6rem; border:1px solid white; border-radius:4px;
  background:#fff; cursor:pointer;
}
.lang-btn .arrow{ font-size:.75rem; opacity:.7; }
.lang-menu{
  position:absolute; right:0; top:calc(100% + .4rem);
  background:#fff; border:1px solid #e5e7eb; border-radius:.5rem;
  box-shadow:0 6px 20px rgba(0,0,0,.08);
  padding:.4rem; min-width:160px; display:none; z-index:1050;
}
.lang-menu a{
  display:flex; align-items:center; gap:.5rem;
  padding:.5rem .6rem; border-radius:.4rem;
  text-decoration:none; color:#111;
}
.lang-menu a:hover{ background:#f3f4f6; }

/* Oculto por defecto */
#lang-desktop .lang-menu { display: none; }
/* Visible cuando el contenedor tiene la clase open */
#lang-desktop.open .lang-menu { display: block; }


@media (max-width: 768px) {
      .desktop-only { display: none; }
      .mobile-only { display: block; }

.desktop-only { display: none; }
  .mobile-only { display: block; }

  header {
    position: fixed ;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
  }

    .menu-btn {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      background-color: white;
      border: none;
      padding: 0.5rem 0.8rem;
      border-radius: 0.5rem;
    }

    .menu-btn .menu-icon {
      display: inline-block;
      stroke: black;
    }

    .menu-btn .menu-icon {
      display: inline-block;
    }


    .menu-btn .menu-text,
    .menu-btn .arrow-down {
      display: none;
    }

  .menu-dropdown {
      position: fixed;
      top: var(--header-height, 80px);
      left: 0;
      width: 100%;
      height: 100%;
      background-color: var(agora-blau);
      padding: 4rem 2rem;
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      gap: 1.5rem;
      z-index: 1500;
      border-radius: 0;
    }

    .menu-dropdown a {
      color: white;
      font-size: 1.3rem;
      text-decoration: none;
      font-weight: bold;
    }

    .menu-btn {
      background: white;
      color: black;
      border: none;
      padding: 0.4rem 0.8rem;
      border-radius: 1rem;
      display: flex;
      align-items: center;
      gap: 0.4rem;
      cursor: pointer;
      z-index: 3000;
      position: relative;
    }

    .menu-btn.open .menu-icon,
    .menu-btn.open .arrow-down {
      display: none;
    }

    .menu-btn.open::after {
      content: "✖";
      font-size: 1.5rem;
      color: black;
    }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

    .developed-by{
      z-index: 3500;
    }

  .upload-btn {
    display: block;
    width: 100%;
    background-color: var(--button-hover);
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: bold;
    box-sizing: border-box;
  }

  .profile-btn {
    background-color: transparent;
    justify-content: center;
  }

  .menu-dropdown svg {
    stroke: white !important;
    fill: none !important;
  }

  .developed-by span{
    display: none;
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
  }

  .mobile-menu.open {
    display: flex;
  }

  .menu-dropdown.mobile-menu {
    padding-left: 0;
    padding-right: 0;
  }

  .developed-by span{
    display: none;
  }

  /* Oculta todo lo del header-right… */
  .header-right > * {
    display: none;
  }

  /* …pero muestra estos dos botones */
  .header-right .menu-btn {
    display: inline-flex;   /* o flex según tu layout */
    align-items: center;
  }
  .header-right .lang-switcher {
    display: inline-flex;   /* o block, como prefieras */
  }

  /* El menú móvil se oculta por defecto */
  .header-right .mobile-menu {
    display: none;
  }

  /* Cuando esté abierto, se muestra */
  .menu-open .header-right .mobile-menu {
    display: block;
  }

  .header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* que se junten a la derecha */
    gap: 0; /* ajusta la separación entre idioma y menú */
    margin-left:1rem;
  }



}