body {
  padding-top: 40px;
}

/* ==================================================
   HEADER
================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;

  width: 100%;
  height: 60px;

  background: var(--blanco);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(0, 0, 0, 0.04);

  transition:
    height 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.header-container {
  width: 100%;
  height: 100%;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}




/* ==================================================
   LOGO
================================================== */

.logo {
  height: 100%;
  display: flex;
  align-items: center;
  margin-left: 28px;
}

.logo a {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--negro);
  text-decoration: none;
}

.logo-img {
  width: 38px;
  height: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  margin-left: 10px;
}

.logo-text__main,
.logo-text__sub {
  font-family: 'Copperplate';
  text-transform: uppercase;
  letter-spacing: 0.08em;

}

.logo-text__main {
  font-size: 1rem;

}

.logo-text__sub {
  margin-top: 0.15rem;
  font-size: 0.8rem;

  text-align: center;
}

/* FIX WOOCOMMERCE */
.header .logo-img {
  display: block;

  height: 48px !important;
  width: auto !important;
  max-width: none !important;

  object-fit: contain;

  transition: height 0.3s ease;
}

.logo p {
  margin: 0;
  font-family: 'Copperplate';
  color: var(--negro);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}


/* ==================================================
   MENÚ DESKTOP
================================================== */

.menu {
  height: 100%;
}

.menu-list {
  height: 100%;

  display: flex;
  align-items: center;
  gap: 38px;

  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list li {
  height: 100%;

  display: flex;
  align-items: center;
}

/* Oculta Favoritos del menú de WordPress en desktop */
.menu-list li:last-child {
  display: none;
}

.menu-list li a {
  position: relative;

  height: 100%;

  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;

  color: var(--negro);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;

  transition: color 0.3s ease;
}


/* ==================================================
   ICONOS DEL MENÚ
================================================== */

.menu-list li a::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;

  display: inline-block;
  width: 1.375rem;
  min-width: 1.375rem;
  margin-right: 0.25rem;

  text-align: center;

  opacity: 0;
  transform: translateX(10px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.menu-item-30 a::before {
  content: "\f1ea";
}

.menu-item-124 a::before {
  content: "\f14e";
}

.menu-item-31 a::before {
  content: "\e533";
}


/* ==================================================
   SUBRAYADO DEL MENÚ
================================================== */

.menu-list li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;

  width: 0;
  height: 6px;

  background: var(--naranja);

  transform: translateX(-50%);

  transition: width 0.3s ease;
}


/* ==================================================
   HOVER Y ACTIVO
================================================== */

.menu-list li a:hover {
  color: var(--naranja);
}

.menu-list li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.menu-list li a:hover::after {
  width: 100%;
}

.menu-list .current-menu-item > a,
.menu-list .current_page_item > a {
  color: var(--naranja);
}

.menu-list .current-menu-item > a::before,
.menu-list .current_page_item > a::before {
  opacity: 1;
  transform: translateX(0);
}

.menu-list .current-menu-item > a::after,
.menu-list .current_page_item > a::after {
  width: 100%;
}


/* ==================================================
   FAVORITOS DESKTOP
================================================== */

.fav {
  height: 100%;

  display: flex;
  justify-content: flex-end;
  align-items: center;

  margin-right: 28px;
}

.btn-fav {
  height: 44px;
  padding: 0 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  color: var(--naranja);
  border: 1px solid var(--naranja);
  border-radius: 0.5rem;

  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;

  background: transparent;
  cursor: pointer;

  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

.btn-fav i {
  font-size: var(--text-sm);
  line-height: 1;
}

.btn-fav:hover,
.btn-fav.active {
  background: var(--naranja);
  color: var(--blanco);
}


/* ==================================================
   SCROLL DESKTOP
================================================== */

body.scrolling .header {
  height: 52px;
}

body.scrolling .header .logo-img {
  height: 40px !important;
}


/* ==================================================
   BOTÓN HAMBURGUESA
================================================== */

.menu-toggle {
  display: none;
}

.menu-toggle span {
  display: block;

  width: 22px;
  height: 2px;

  background: var(--negro);
  border-radius: 20px;
}


/* ==================================================
   RESPONSIVE - MÓVIL / TABLET PEQUEÑA
================================================== */

:root {
  --header-height-mobile: 60px;
}

body.scrolling {
  --header-height-mobile: 54px;
}

@media (max-width: 768px) {

  body {
    padding-top: 60px;
  }

  .header {
    height: 60px;
  }

  .header-container {
    height: 100%;
    padding: 0 14px;

    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
  }

  body.scrolling .header {
    height: 54px;
  }

  /* Logo móvil */

  .logo {
    margin-left: 0;
    gap: 8px;
  }

  .header .logo-img {
    height: 34px !important;
    width: auto !important;
    max-width: none !important;
  }

  body.scrolling .header .logo-img {
    height: 30px !important;
  }

  .logo p {
    margin: 0;

    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1;
  }

  /* Favoritos desktop oculto */

  .fav {
    display: none;
  }

  /* Hamburguesa */

  .menu-toggle {
    width: 36px;
    height: 36px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border: none;
    background: transparent;

    cursor: pointer;
  }

  .menu-toggle span {
    display: block;

    width: 22px;
    height: 2px;

    background: var(--negro);
    border-radius: 20px;

    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }

  .menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Menú desplegable */

  .menu {
    position: absolute;
    top: var(--header-height-mobile);
    left: 0;
    z-index: 9999;

    width: 100%;
    height: auto;

    background: var(--blanco);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);

    transition:
      opacity 0.3s ease,
      visibility 0.3s ease,
      transform 0.3s ease;
  }

  .menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .menu-list {
    height: auto;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 14px 22px 22px;
  }

  .menu-list li {
    height: auto;

    display: block;
  }

  /* Mostrar Favoritos dentro del menú móvil */

  .menu-list li:last-child {
    display: block;
  }

  .menu-list li a {
    height: auto;

    justify-content: flex-start;
    padding: 18px 0;

    font-size: var(--text-md);
    line-height: 1;

    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .menu-list li a::after {
    display: none;
  }

  .menu-list li a::before {
    opacity: 1;
    transform: translateX(0);
  }

  /* Favoritos dentro del menú */

  .menu-favoritos {
    display: block;
  }

  .menu-favoritos a {
    color: var(--naranja);
    font-weight: 700;
  }

  .menu-favoritos a::before {
    content: "\f004";
  }

  /* Bloquear scroll con menú abierto */

  body.menu-open {
    overflow: hidden;
  }
}