/* ================= HEADER ================= */
.header {
    position: fixed;
    top: 0;
    left: 0; 
    width: 100%;
    z-index: 20; 
    background-color: rgb(0, 0, 0);
    border-bottom: 1px solid #ccc;
  }
  .nav-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 66px;

  }
/* ================= LOGO ================= */
  .header-logo {
    z-index: 1;
    margin-top: 12px;
    width: 250px;
    transition: transform 0.7s ease;
  }
  .header-logo:hover {
    transform: scale(1.1);
  }
/* ================= HAMBURGER ================= */
  .hamburger-menu {
    position: fixed;
    top: 8px;
    left: 30px;
    z-index: 1000;
    background-color: rgb(0, 0, 0);
    padding: 10px;
    border-radius: 5px;
  }
  
  .hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 30px;
  }
  
  .hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform-origin: center;
  }
  
  .menu-overlay {
    position: fixed;
    top: 66px;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: #000000;
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
  
    border-bottom: 2px solid #ccc;
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.2s ease-in-out;
    pointer-events: none;
  
    z-index: 19;
  
  }
  
  .menu-overlay.show {
    transform: scaleY(1);
    pointer-events: auto;
  }
  
  .menu-overlay ul {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    }
    .menu-overlay li {
      margin: 10px 0;
    }
    .menu-overlay a {
      color: rgb(255, 255, 255);
      text-decoration: none;
      font-size: 1rem;
      font-weight: 800;
    }

    li a {
      display: flex;
      flex-direction: column;     /* Pone imagen encima del texto */
      align-items: center;        /* Centra horizontalmente */
      justify-content: center;    /* Centra verticalmente */
      text-decoration: none;
      color: inherit;
      height: 100%;               /* Asegura que ocupe toda la altura disponible si es necesario */
    }


    .menu-icon {
        width: 50px;
        height: auto;
        display: block;
        margin: 0 auto 10px;
        transition: transform 0.7s ease;
      }
      
      .menu-icon:hover {
        transform: scale(1.2);
      }

    .hamburger.open span:nth-child(1) {
      transform: rotate(45deg) translate(9px, 9px);
      background-color: white;
    }
    .hamburger.open span:nth-child(2) {
      opacity: 0;
    }
    .hamburger.open span:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
      background-color: white;
    }
  
    .menu-overlay.show {
      display: flex;
    }
    .title-video-mobile {
      display: none;}




/* ================= LANGUAGE SELECTOR ================= */
.language-selector {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 2000;
    display: inline-block;
  }
  
  /* Current language display box */
  .language-selector .current-lang {
    cursor: pointer;
    padding: 6px 10px;
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 4px;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    text-align: center;
    font-weight: 600;
    color: #ffffff;
    box-sizing: border-box;
  }
  
  /* Language options dropdown */
  .language-options {
    padding: 6px 10px;
    display: none;
    position: absolute;
    right: 0;
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 4px;
    list-style: none;
    z-index: 999;
    min-width: 70px;
    box-sizing: border-box;
    color: #ffffff;
    justify-content: center;
    text-align: center;
  }
  
  /* Show language dropdown when toggled via class */
  .language-options.show {
    display: block;
  }
  
  /* Add divider between items */
  .language-options li + li {
    border-top: 1px solid #eee;
  }
  
  /* Button inside list */
  .language-options li button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    font-family: inherit;
    font-size: 16px;
    white-space: nowrap;
  }
  
  /* Hover effect for button */
  .language-options li button:hover {
    background-color: #000000;
  }
  
  /* Layout for button content */
  .language-options li button.lang-button {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
  }
  #langToggle:checked ~ .language-options {
    display: block;
  }
  


      


  
  @media (max-width: 750px) {
      .header{
          height: 55px;
         
      }
  
      .header-logo {
          width: 200px;        
          height: auto; 
          margin-top: 10px;   
      }
  
      .hamburger {
          width: 25px;
          height: 25px;

      }

      .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(3px, -3px);
      }
      
      .hamburger-menu {
          left: 5px;
          top: 9px;
          padding: 5px;
      }

      .hamburger span {
        height: 3px;
      }
      
      .menu-overlay a {
          font-size: 14px;
      }
      
      .menu-overlay a:hover {
          font-size: 27px;
      }

      .language-selector {
        top: 18px;
        right: 10px;
      }

      .language-selector .current-lang {
        min-width: 40px;
        padding: 2px 5px;
      }

      .language-options {
        min-width: 40px;
      }

      .nav-container {
        height: 55px;
      }

      
      .menu-overlay {
        height: 70%;
        top: 55px;
      }

      
      .menu-overlay ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 80px;
        column-gap: 40px;
        justify-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        list-style: none;
        padding: 0;
      }



      .language-selector .current-lang {
        font-size: 12px;
      }

      .language-options {
        font-size: 12px;
      }

     }
  
  
  @media screen and (max-width: 1025px) and (min-width: 822px) and (orientation: portrait) {
    .menu-overlay a {
      font-size: 24px;
    }

  
    .menu-overlay li {
      margin: 100px 0;
    }
  }
  

  
  @media screen and (max-height: 415px) and (orientation: landscape) {
    .header {
      padding-left: 15px;
      height: 40px;
    }
  
    .header-logo {
      width: 170px;
      height: auto;
      margin-top: 5px;
      margin-left: 45px;
    }
  
    .hamburger {
      width: 25px;
    }
  
    .hamburger-menu {
      right: 30px;
      top: 0;
      padding: 3px;
    }
  
    .menu-overlay a {
      font-size: 20px;
    }
  
    .menu-overlay a:hover {
      font-size: 27px;
    }
  }
  
  @media screen and (min-width: 2560px) and (orientation: landscape) {
    .header {
      height: 100px;
    }
  
    .header-logo {
      width: 350px;
    }
  }
  
  @media screen and (max-height: 415px) and (orientation: landscape) {
    .header-logo {
      margin-left: 5px;
    }
  }
  
  @media screen and (max-height: 376px) and (orientation: landscape) {
    .menu-overlay li {
      margin: 30px 0;
    }
  }