/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Mar 17 2026 | 02:36:05 */
/* ===========================================================
 * HEADER AVSYS PARA TIENDA (Divi + WooCommerce)
 * Versión remanufacturada
 * Objetivo:
 * - Mantener estructura nativa de Divi
 * - Mantener FiboSearch sin forzarlo
 * - Corregir dropdown del menú hamburguesa en tablet y móvil
 * - Dejar colores de debug comentados para uso futuro
 * - Agregar efecto X al menú hamburguesa
 * - Agregar subrayado elegante al menú principal
 * =========================================================== */

/* ===========================================================
 * CONTENEDOR PRINCIPAL
 * =========================================================== */

.av-menu-header {
  position: relative;
  width: 100%;
  /* background-color: #0c1f3f; */
  z-index: 50;
}

.av-menu-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  /* background-color: #a0b200; */
}

.av-menu-header .et_pb_module {
  margin-bottom: 0;
}

/* ===========================================================
 * COLUMNA 1 — LOGO
 * =========================================================== */

.av-columna-1 {
  display: flex;
  align-items: center;
  /* background-color: #e09900; */
}

.av-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
}

.av-logo img {
  display: block;
  margin: 0 auto;
  height: auto;
  max-width: 100%;
}

/* ===========================================================
 * COLUMNA 2 — MENÚ
 * =========================================================== */

.av-columna-2 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background-color: #00a4ba; */
}

/* ===========================================================
 * MENÚ PRINCIPAL DESKTOP
 * =========================================================== */

@media (min-width: 981px) {
  .av-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
  }

  .av-menu ul li {
    position: relative;
  }

  .av-menu ul li a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    padding-bottom: 6px;
  }

  /* -----------------------------------------------------------
   * UNDERLINE MODERNO DEL MENÚ PRINCIPAL
   * ----------------------------------------------------------- */

  .av-menu ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #a3a478;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s ease;
    opacity: 0.95;
  }

  .av-menu ul li a:hover::after,
  .av-menu ul li.current-menu-item > a::after,
  .av-menu ul li.current_page_item > a::after,
  .av-menu ul li.current-menu-ancestor > a::after,
  .av-menu ul li.current_page_ancestor > a::after {
    transform: scaleX(1);
  }

  .av-menu ul li a:hover {
    opacity: 1 !important;
  }

  /* Si llegara a haber submenús en desktop */
  .av-menu ul ul li a::after {
    bottom: 4px;
  }
}

/* ===========================================================
 * COLUMNA 3 — ICONOS
 * =========================================================== */

.av-columna-3 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  /* background-color: #7cda24; */
}

.av-search,
.av-user,
.av-favorito,
.av-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
}

.av-search {
  /* background-color: #8d08a8; */
}

.av-user {
  /* background-color: #04d693; */
}

.av-favorito {
  /* background-color: #ba7a05; */
}

.av-cart {
  /* background-color: #ff00aa; */
  padding: 0 10px;
  gap: 4px;
}

.av-cart .av-cart-icon {
  display: inline-flex;
  align-items: center;
}

.av-cart .av-cart-count {
  display: inline-block;
  min-width: 16px;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  text-align: center;
  background-color: #ffffff;
  color: #ff00aa;
}

.av-cart .av-cart-total {
  font-size: 13px;
  font-weight: 600;
}

/* ===========================================================
 * FIBOSEARCH
 * Dejamos el comportamiento base del plugin
 * =========================================================== */

.av-search .dgwt-wcas-search-wrapp {
  width: 100%;
}

/* ===========================================================
 * TABLET
 * Layout:
 * LOGO | ICONOS
 * MENÚ
 * =========================================================== */

@media (min-width: 768px) and (max-width: 980px) {

  .av-menu-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .av-columna-1 {
    order: 1;
    flex: 1 1 auto;
    width: auto;
    justify-content: flex-start;
  }

  .av-columna-1 .av-logo,
  .av-columna-1 .et_pb_image,
  .av-columna-1 .et_pb_code,
  .av-columna-1 .et_pb_text {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
  }

  .av-columna-3 {
    order: 2;
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 6px;
  }

  .av-columna-2 {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    justify-content: center;
  }

  .av-search,
  .av-user,
  .av-favorito,
  .av-cart {
    min-width: 32px;
    min-height: 32px;
    font-size: 14px;
  }

  /* ---------- Menú hamburguesa Divi en tablet ---------- */

  .av-columna-2 .et_pb_menu__wrap {
    width: 100%;
    justify-content: center;
  }

  .av-columna-2 .et_mobile_nav_menu {
    display: block;
    width: 100%;
  }

  .av-columna-2 .mobile_nav {
    position: relative;
    width: 100%;
    text-align: center;
  }

  .av-columna-2 .mobile_menu_bar {
    display: inline-block;
    float: none;
    position: relative;
  }

  .av-columna-2 .mobile_menu_bar::before {
    transition: all 0.25s ease;
  }

  .av-columna-2 .mobile_nav.opened .mobile_menu_bar::before {
    content: "\4d";
  }

  .av-columna-2 .et_mobile_menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: min(92vw, 640px) !important;
    max-width: 92vw !important;
    margin: 0 !important;
    padding: 14px 0 !important;
    text-align: center;
    box-sizing: border-box;
    z-index: 9999;
  }

  .av-columna-2 .et_mobile_menu li,
  .av-columna-2 .et_mobile_menu li a {
    text-align: center !important;
  }

  .av-columna-2 .et_mobile_menu li a {
    display: block;
    padding: 14px 20px !important;
    line-height: 1.35;
  }
}

/* ===========================================================
 * MOBILE
 * Layout vertical:
 * ICONOS
 * LOGO
 * MENÚ
 * =========================================================== */

@media (max-width: 767px) {

  .av-menu-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .av-columna-1,
  .av-columna-2,
  .av-columna-3 {
    width: 100%;
  }

  .av-columna-3 {
    order: 1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding-inline: 5px;
  }

  .av-columna-1 {
    order: 2;
    justify-content: center !important;
    text-align: center !important;
  }

  .av-columna-1 .av-logo,
  .av-columna-1 .et_pb_image,
  .av-columna-1 .et_pb_code,
  .av-columna-1 .et_pb_text {
    display: flex;
    justify-content: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 90%;
  }

  .av-columna-1 img {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .av-columna-2 {
    order: 3;
    justify-content: center;
  }

  .av-search,
  .av-user,
  .av-favorito,
  .av-cart {
    min-width: 32px;
    min-height: 32px;
    font-size: 14px;
  }

  .av-cart {
    margin-left: auto;
  }

  /* ---------- Menú hamburguesa Divi en móvil ---------- */

  .av-columna-2 .et_pb_menu__wrap {
    width: 100%;
    justify-content: center;
  }

  .av-columna-2 .et_mobile_nav_menu {
    display: block;
    width: 100%;
  }

  .av-columna-2 .mobile_nav {
    position: relative;
    width: 100%;
    text-align: center;
  }

  .av-columna-2 .mobile_menu_bar {
    display: inline-block;
    float: none;
    position: relative;
  }

  .av-columna-2 .mobile_menu_bar::before {
    transition: all 0.25s ease;
  }

  .av-columna-2 .mobile_nav.opened .mobile_menu_bar::before {
    content: "\4d";
  }

  .av-columna-2 .et_mobile_menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: calc(100vw - 32px) !important;
    max-width: 520px !important;
    margin: 0 !important;
    padding: 14px 0 !important;
    text-align: center;
    box-sizing: border-box;
    z-index: 9999;
  }

  .av-columna-2 .et_mobile_menu li,
  .av-columna-2 .et_mobile_menu li a {
    text-align: center !important;
  }

  .av-columna-2 .et_mobile_menu li a {
    display: block;
    padding: 14px 18px !important;
    line-height: 1.35;
    white-space: normal;
  }
}

/* ===========================================================
 * AJUSTES EXTRA
 * =========================================================== */

@media (max-width: 480px) {
  .av-cart .av-cart-total {
    display: none;
  }
}

/* ===========================================================
 * ICONOS HEADER — USER / FAVORITO
 * Se generan con pseudo-elementos FontAwesome
 * =========================================================== */

.av-ico-user::after,
.av-ico-favorito::after {
  font-family: "FontAwesome";
  font-size: 17px;
  color: #ffffff;
  transition: color 0.2s ease;
}

.av-ico-user::after {
  content: '\f007'; /* Usuario */
}

.av-ico-favorito::after {
  content: '\f004'; /* Favorito */
}

/* ===========================================================
 * HOVER ICONOS HEADER — SEARCH / CUENTA / FAVORITOS
 * Cambio de color en rollover
 * No incluye carrito
 * Solo desktop
 * =========================================================== */

@media (min-width: 981px) {

  .av-search,
  .av-user,
  .av-favorito {
    transition: color 0.2s ease, opacity 0.2s ease;
  }

  /* ---------- SEARCH ---------- */
  /* Solo cambia el icono disparador, no la lupa interna del input */

  .av-search:hover > *,
  .av-search:hover .dgwt-wcas-search-icon,
  .av-search:hover .dgwt-wcas-search-icon svg,
  .av-search:hover .dgwt-wcas-search-icon * {
    color: #a3a478 !important;
    fill: #a3a478 !important;
    stroke: #a3a478 !important;
  }

  /* Restaurar color del icono dentro de la caja de búsqueda */
  .av-search:hover .dgwt-wcas-search-form .dgwt-wcas-search-icon,
  .av-search:hover .dgwt-wcas-search-form .dgwt-wcas-search-icon svg,
  .av-search:hover .dgwt-wcas-search-form .dgwt-wcas-search-icon * {
    color: inherit !important;
    fill: inherit !important;
    stroke: inherit !important;
  }

  /* ---------- USER ---------- */

  .av-user:hover,
  .av-user:hover * {
    color: #a3a478 !important;
    fill: #a3a478 !important;
    stroke: #a3a478 !important;
  }

  .av-user:hover .av-ico-user::after {
    color: #a3a478 !important;
  }

  /* ---------- FAVORITO ---------- */

  .av-favorito:hover,
  .av-favorito:hover * {
    color: #a3a478 !important;
    fill: #a3a478 !important;
    stroke: #a3a478 !important;
  }

  .av-favorito:hover .av-ico-favorito::after {
    color: #a3a478 !important;
  }
}