/* ==== BASE DEL HEADER ==== */

  #cabecera {
    width: 100%;
    background: linear-gradient(180deg, #c9b387, #1b1c24 70%);
    border-bottom: 1px solid #ddd;                  /* Línea sutil inferior */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;                                 /* Se queda arriba al hacer scroll */
    top: 0 !important;
    z-index: 1000;
    font-family: "Lato", sans-serif;
  }

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

  .header__logo img {
        max-height: 50px;
        height: auto;
        width: auto;
        display: block;
        border-radius: 12px;
        border: 2px solid #ffffff;
      }

  .header__logo:hover {
        transform: scale(1.05);
      }

  .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
      }

  .header__nav {
        display: flex;
        gap: 20px;
      }

  .header__nav a {
        text-decoration: none;
        color: #ffffff;
        font-weight: 700;
        transition: color 0.3s;
        position: relative;
        display: inline-block;
        padding-bottom: 4px;
        text-transform: uppercase;
      }

.header__nav a:hover {
        color: #d4b483;
      }

  /* barrita decorativa desde el centro */
  .header__nav a::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;                          /* punto de referencia en el centro */
        width: 0;
        height: 2px;
        background-color: #ffcc00;
        transform: translateX(-50%);      /* coloca el centro justo en el texto */
        transition: width 0.3s ease;
      }

  .header__nav a:hover::before {
        width: 100%;                      /* se expande hacia ambos lados */
      }

  .header__right {
      display: flex;
      align-items: center;
      gap: 15px;
    }


    /* ==== BANDERAS ==== */

  .header__languages {
      display: flex;
      align-items: center;
      gap: 8px;
    }

  .header__languages img {
      height: 16px;
      width: auto;
      display: block;
      border-radius: 2px;
      transition: transform 0.2s ease;
    }

  .header__languages a {
      display: inline-flex;
      align-items: center;
   }

  .header__languages a:hover img {
        transform: scale(1.15);
    }

/* HAMBURGUESA */
.menu-toggle {
  display: none;
  font-size: 24px;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {

  .header__nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 10px;
    background: #4e412a;
    padding: 10px;
    border: 1px solid #ccc;
  }

  .header__nav.active {
    display: flex;
    
  }

  .menu-toggle {
    display: block;
  }

}