/*
 * PAHO Annual Report 2025
 * header-home.css
 *
 * Estilos exclusivos del cabezal de la HOME (index.html).
 * Incluye la barra de idiomas, el logo centrado, el menú hamburguesa
 * y el comportamiento de cabezal fijo de 110px.
 *
 * Orden de carga recomendado en index.html únicamente:
 *   1. ppm-paho-2.css       (base)
 *   2. shared-components.css (componentes compartidos + nav dropdown)
 *   3. header-home.css       (este archivo — sobreescribe solo el home)
 */


/* ==========================================================
   TOP BAR — estructura y altura (override de ppm-paho-2.css)
   ========================================================== */

.top-bar {
  height: 110px;
  background-color: var(--active-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1112;
  width: 100%;
  margin-bottom: 0;
}

body {
  padding-top: 110px;
}

.logo-bar {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--active-color);
}

.navtainer {
  padding: 0 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}


/* ==========================================================
   BARRA DE IDIOMAS — móvil (language-nav-strip)
   ========================================================== */

.language-nav-strip {
  width: 100%;
  height: 28px;
  background-color: rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
}

.language-toggle {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0 10px;
}

.language-toggle:hover { color: white; }

.globe-icon {
  color: white;
  font-size: 0.9rem;
  margin-right: 6px;
}

.current-language { white-space: nowrap; }

/* Dropdown de idiomas */
.language-dropdown {
  position: absolute;
  right: 20px;
  top: 28px;
  background-color: var(--active-color);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: none;
  z-index: 1200;
}

.language-dropdown.show { display: block; }

.language-dropdown a {
  display: block;
  padding: 8px 15px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  min-width: 120px;
}

.language-dropdown a:last-child { border-bottom: none; }
.language-dropdown a:hover { background-color: rgba(255, 255, 255, 0.1); }
.language-dropdown a.active {
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.05);
}


/* ==========================================================
   LOGO
   ========================================================== */

.logo-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}

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

.logo-img {
  height: 46px;
  width: auto;
}


/* ==========================================================
   BARRA HAMBURGUESA — móvil (menu-strip)
   ========================================================== */

.menu-strip {
  width: 100%;
  height: 28px;
  background-color: rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
}

.menu-toggle {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0 10px;
}

.menu-toggle:hover { color: white; }

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
  margin-left: 6px;
}

.hamburger-row {
  background-color: white;
  height: 2px;
  width: 100%;
  border-radius: 2px;
}


/* ==========================================================
   PANEL DE NAVEGACIÓN MÓVIL
   ========================================================== */

.nav {
  position: absolute;
  width: 100%;
  top: 110px;
  right: 0;
  background-color: var(--headings);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 0;
  z-index: 990;
  display: none;
}

.nav.show { display: block; }

.nav-links-wrap {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.nav-links-wrap .nav-link {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links-wrap .nav-link:last-child { border-bottom: none; }


/* ==========================================================
   SELECTOR DE IDIOMAS — escritorio
   ========================================================== */

.language-nav-desktop {
  position: absolute;
  top: 15px;
  right: 72px;
  display: flex;
  align-items: center;
}

.language-selector {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.language-selector li { margin: 0; padding: 0; }

.language-selector a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0 12px;
  font-size: 0.85rem;
  display: block;
  transition: all 0.3s ease;
}

.language-selector a:hover { color: white; text-decoration: none; }
.language-selector a.active { color: white; font-weight: 600; }


/* ==========================================================
   HELPERS DE LAYOUT (header con video)
   ========================================================== */

.header-large {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
}

.header-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-content {
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.sections-menu {
  background-color: #ffe3c2;
  margin-top: 0;
  padding-top: 40px;
}

.header-large + div,
.header-large + section { margin-top: 0; }


/* ==========================================================
   RESPONSIVE — cabezal HOME
   ========================================================== */

/* Escritorio: ocultar strips móviles, posicionar logo y nav */
@media screen and (min-width: 992px) {
  .language-nav-strip,
  .menu-strip { display: none; }

  .navtainer {
    position: relative;
    padding: 0 72px;
    max-width: 1500px;
    margin: 0 auto;
    height: 100%;
  }

  .logo-container {
    position: absolute;
    left: 72px;
    top: 35%;
    transform: translateY(-50%);
    padding: 0;
    flex: 0 0 auto;
    min-width: 350px;
  }

  .logo-img {
    height: 60px;
    max-width: 100%;
    object-fit: contain;
  }

  /* El nav dropdown se posiciona dentro del top-bar de 110px */
  .main-nav-dropdown {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    height: 50px;
    padding-left: 350px;
  }

  .language-nav-desktop { display: flex; }
}

/* Pantallas medias */
@media screen and (min-width: 992px) and (max-width: 1200px) {
  .logo-container { min-width: 320px; }
  .main-nav-dropdown { padding-left: 320px; }
  .navtainer { padding: 0 50px; }
  .language-nav-desktop { right: 50px; }
}

/* Tablet: ocultar nav dropdown de escritorio */
@media screen and (max-width: 991px) {
  .main-nav-dropdown { display: none; }
  .language-nav-desktop { display: none; }
}

/* Móvil */
@media screen and (max-width: 767px) {
  .top-bar { height: 100px; }
  body { padding-top: 100px; }
  .logo-img { height: 38px; }
  .nav { top: 100px; }
}

/* Móvil pequeño */
@media screen and (max-width: 479px) {
  .top-bar { height: 90px; }
  body { padding-top: 90px; }
  .language-nav-strip,
  .menu-strip { height: 24px; padding: 0 10px; }
  .language-toggle,
  .menu-toggle { font-size: 0.75rem; }
  .logo-img { height: 32px; }
  .hamburger { width: 14px; height: 10px; }
  .nav { top: 90px; }
}
