/*Alineación de elementos del widget html derecho del header*/

.nasty-header-contenedor {
	display: flex;
	gap: 10px;
}

.nasty-header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nasty-auth-contenedor, .nasty-profile-contenedor {
	 display: flex;
   align-items: center;
}

/*Adaptación movil y tablet de grafica de ingresos*/

@media (max-width: 921px) {
	header .ast-mobile-header-wrap .ast-builder-grid-row {
	gap: 0;
	}
	header .ast-mobile-header-wrap .ast-builder-grid-row .site-header-primary-section-right > div.ast-builder-layout-element:first-child {
	padding: 0;
	}
	header .ast-mobile-header-wrap .site-branding {
	padding: 1em 0 1.2em 0;
	}
	header .ast-mobile-header-wrap .site-branding .custom-logo-link img  {
	width: 125px;
  max-width: unset;
	margin-left: -7px;
	}
	header .ast-mobile-header-wrap .ganancias-contenedor {
	 width: 155px;
	}
	header .ast-mobile-header-wrap .grafica-revelada {
	background-size: 180px;
	}
	header .ast-mobile-header-wrap .grafica-fondo {
	top: 0px;
	}
	header .ast-mobile-header-wrap .ganancias-contenedor .animacion-ingresos .contador {
      font-size: 20px;
      line-height: 19px;
    }
	header .ast-mobile-header-wrap .ganancias-contenedor .animacion-ingresos .simbolo {
		font-size: 20px;
    line-height: 19px;
		margin-left: 15px;
	}
	header .ast-mobile-header-wrap .ganancias-contenedor .animacion-ingresos .divisa {
		line-height: 11px;
	}
	header .ast-mobile-header-wrap .ganancias-contenedor .animacion-ingresos .ganancias {
		margin-top: 12px;
		line-height: 13px;
	}
	header .ast-mobile-header-wrap .ganancias-contenedor .animacion-ingresos .reporte {
		line-height: 20px;
	}
	header .ast-mobile-header-wrap .ganancias-contenedor {
		margin-left: -5px;
    margin-top: -6px;
	}
	header .ast-mobile-header-wrap .nasty-profile-trigger {
		width: 52px;
		height: 52px;
		margin-bottom: -2px !important;
    margin-left: -5px;
	}
}

@media (max-width: 400px) {
	header .ast-mobile-header-wrap .nasty-profile-contenedor {
		display: none;
	}
}

@media (min-width: 922px) {
	header .ast-main-header-wrap .nasty-profile-contenedor {
		display: none;
	}
}

@media (max-width: 471px) {
	header .ast-mobile-header-wrap .ast-main-header-wrap .nasty-header-toggle {
		display: none;
	}
}

@media (min-width: 471px) {
	header .ast-mobile-header-wrap .ast-mobile-header-content .nasty-mobile-toggle-wrap {
		display: none !important;
	}
}

@media (max-width: 540px) {
	header .ast-mobile-header-wrap .ast-main-header-wrap .nasty-icon-flip {
		display: none;
	}
}

@media (min-width: 541px) {
	header .ast-mobile-header-wrap .ast-mobile-header-content .nasty-mobile-menu-after > div.nasty-mobile-section-title, header .ast-mobile-header-wrap .ast-mobile-header-content .nasty-mobile-icons-row {
		display: none !important;
	}
}

/*Contener desbordamiento del cat*/
.nasty-mobile-menu-after {
	overflow: hidden;
}
/*Finaliza contenedor*/

header .nasty-auth-contenedor {
	display: none;
}

@media (min-width: 922px) {
	header .nasty-auth-contenedor {
	display: flex !important;
	}
}

.ganancias-contenedor, .game-controller {
	display: block !important;
}

/*Diseño de elementos del menu de escritorio y movil*/

.ast-desktop:not(:has(.ast-header-sticked)) .ast-primary-header-bar .main-header-menu > .menu-item {
    font-weight: 500;
}

.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link, .ast-builder-menu-1 .inline-on-mobile .menu-item.current-menu-item > .ast-menu-toggle, .ast-builder-menu-1 .current-menu-ancestor > .menu-link {
    color: #ffce81;
}

.ast-builder-menu-1 .menu-item > .menu-link {
    color: #ffffff;
}

/*Diseño perzonalizado del menu movil desplegable*/

@media (max-width: 921px) {
	header .ast-mobile-header-wrap .ast-mobile-header-content {
		height: calc(100vh - 120px);
    background-color: #28421f;
    border-top: 1px solid #979f2a !important;
	}
	header .ast-mobile-header-wrap .ast-mobile-header-content .nasty-mobile-menu-before {
		padding: 0;
	}
	.ast-builder-menu-mobile nav ul.main-header-menu {
		background-color: #28421f;
    border-top: 1px solid #979f2a !important;
	}
	.ast-builder-menu-mobile nav ul.main-header-menu li.menu-item:nth-child(even) {
        background-color: #213319;
  }
	.ast-builder-menu-mobile nav ul.main-header-menu li.menu-item a.menu-link {
		padding: 0 20px;
    display: inline-block;
    width: 100%;
    border: 0;
    border-bottom-width: 1px;
    border-style: solid !important;
    border-color: #7f9216;
		color: #fff;
    font-size: 16px;
		border-radius: unset;
	}
	.ast-builder-menu-mobile nav ul.main-header-menu li.menu-item button.ast-menu-toggle {
		margin-top: 7px;
    padding: 0;
	}
	.ast-builder-menu-mobile nav ul.main-header-menu li.menu-item button.ast-menu-toggle .ast-icon {
		display: flex;
    height: 25px;
    width: 25px;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #a33333;
    border-radius: 50%;
		color: #fff;
	}
	.ast-builder-menu-mobile nav ul.main-header-menu li.menu-item button.ast-menu-toggle .ast-icon svg {
		margin-left: 0 !important;
	}
	.ast-builder-menu-mobile nav ul.main-header-menu li.menu-item ul.sub-menu li:nth-child(odd) {
		background-color: #23321c;
	}
	.ast-builder-menu-mobile nav ul.main-header-menu li.menu-item ul.sub-menu li:nth-child(even) {
		background-color: #28421f;
	}
	header .ast-mobile-header-wrap  .ast-mobile-header-content .nasty-mobile-menu-after .nasty-mobile-icons-row {
		display: flex;
    align-items: center;
    justify-content: center;
		background-color: #213319;
    gap: 20px;
		padding: 15px 20px 25px 20px;
    border-bottom: 1px solid #7f9216;
	}
	header .ast-mobile-header-wrap  .ast-mobile-header-content .nasty-mobile-menu-after .nasty-mobile-toggle-wrap {
	  display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 20px 20px;
	}
	header .ast-mobile-header-wrap  .ast-mobile-header-content .nasty-mobile-menu-before .nasty-auth-buttons {
	justify-content: center;
  padding: 15px 20px;
  background-color: #213319;
	}
}

header .ast-mobile-header-wrap .ast-main-header-wrap .site-header-primary-section-right > div.ast-builder-layout-element:nth-child(2) {
	position: fixed;
  bottom: 20px;
  right: 20px;
}

header .ast-mobile-header-wrap .ast-main-header-wrap .site-header-primary-section-right > div.ast-builder-layout-element:nth-child(2) button.menu-toggle {
  border: 1px solid #979f2a;
  background-color: #101604b8;
  padding: 12px;
}

header .ast-mobile-header-wrap .ast-main-header-wrap .site-header-primary-section-right > div.ast-builder-layout-element:nth-child(2) button.menu-toggle .mobile-menu-toggle-icon svg {
	fill: #979f2a;
}

/*Ajustes de titulos y redes sociales en panel desplegable de menu movil*/

.nasty-mobile-section-title {
    text-align: center;
    color: #e8c46a;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 20px 20px 0 20px;
	  background-color: #213319;
}

.nasty-mobile-social .nasty-mobile-section-title {
	background-color: transparent;
}

 .nasty-mobile-toggle-label {
    color: #f2ead6;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
		margin-right: 38px;
}

 .nasty-mobile-social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8em;
    padding: 20px;
    max-width: 280px;
    margin: 0 auto;
}

 .nasty-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6em;
    height: 2.6em;
    margin: 0 auto;
    border-radius: 50%;
    background: #1c2410;
    border: 1px solid rgba(232, 196, 106, 0.25);
    color: #e8c46a;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }
  .nasty-social-icon:hover,
  .nasty-social-icon:focus-visible {
    background: rgba(232, 196, 106, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 0 0.6em rgba(232, 196, 106, 0.35);
  }
  .nasty-social-icon svg {
    width: 1.15em;
    height: 1.15em;
  }

/*Adaptación de flyout menu de escritorio*/

.ast-desktop .main-header-menu.ast-menu-shadow .sub-menu {
	background-color: #39673b;
	border: 2px solid #979f2a;
}

.ast-desktop .ast-builder-menu-1 .main-header-menu > .menu-item > .sub-menu:before {
	height: calc(0px + 18px);
}

.ast-desktop .ast-builder-menu-1 .main-header-menu > .menu-item > .sub-menu:after {
	content: "";
    position: absolute;
    bottom: calc(100% + 1px);
    left: 32px;
    width: 12px;
    height: 12px;
    background-color: #39673b;
    border-top: 2px solid #979f2a;
    border-left: 2px solid #979f2a;
    transform: translateY(50%) rotate(45deg);
    z-index: 1;
}

.main-header-menu .sub-menu .menu-link {
	padding: .8em 1em;
	margin-left: 0px;
  transition: margin-left 0.3s ease-in-out;
}

.main-header-menu .sub-menu li:nth-child(even) {
	background-color: #284f28 !important;
}

.main-header-menu .sub-menu li:hover .menu-link {
	margin-left: 5px;
}

/*Adaptacion de menu compacto en escritorio*/

@media (min-width: 921px) and (max-width: 1220px) {
	header #ast-desktop-header .ast-main-header-wrap .site-primary-header-wrap .site-header-section-left > .ast-builder-menu {
	display: none;
	}
	header #ast-desktop-header .ast-main-header-wrap .site-primary-header-wrap .site-header-section-left > div:nth-child(3) {
	padding: 0;
  margin-bottom: -5px;
	}
}

/*Header sin transparencias, color y fixed*/

.ast-theme-transparent-header header .ast-main-header-wrap > .ast-primary-header-bar, header .ast-main-header-wrap > .ast-primary-header-bar {
	background-color: #28421f !important;
	border-bottom: 2px solid #979f2a !important;
}

header.site-header {
	position: fixed !important;
	width: 100%;
}