:root {
  --primary-color: #fd5108;
  --theme-color: #fd5108;
  --title-font: "Panton Narrow-Trial", sans-serif;
  --title-color: #333333;
  --body-font: "Open Sans", sans-serif;
  --sub-title-font: "Teko", sans-serif;
  --smoke-color: #f7f7f7;
  --icon-font: "Font Awesome\6 Pro";
}
.logo-bg.bg-mask{
    background: none;
}
h1,
.h1,
h2,
.h2,
.counter-card .box-number {
  font-weight: 400;
  color: var(--title-color);
  text-transform: uppercase;
  letter-spacing: -2px;
}
h2,
.h2,
.counter-card .box-number {
  font-size: 54px;
}
.breadcumb-title {
  font-weight: 400;
  font-size: 70px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sub-title,
.process-content .box-number {
  font-size: 22px;
  font-family: var(--sub-title-font);
  font-weight: 500;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0px;
}
.sec-title {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.about-contact-details-text {
  font-weight: 700;
}

.box-title {
  font-family: var(--body-font);
  font-weight: 700;
  letter-spacing: unset;
  font-size: 24px;
}
.about-item_img:hover {
  background-color: var(--theme-color);
}
.about-item_img {
  background-color: var(--title-color);
}
.th-btn.black-btn {
  background-color: var(--theme-color);
  color: var(--white-color);
}
.th-btn.black-btn::before {
  background-color: var(--title-color);
}


.th-menu-wrapper .mobile-logo{
  background-color: var(--primary-color)
}
.header-layout1 .header-top{
  background-color: var(--primary-color);
  padding: 16px 0;
}
.header-links li a{
  color: white;
  padding: 6px 10px; 
}
.header-links li a:hover{
  color: white;
  border-bottom: 1px solid white;
}
.header-links li:not(:last-child):after{
  background-color: white;
}
.mega-menu-box .mega-menu-title{
  background-color: var(--primary-color);
  color: #fff;
}
.mega-menu-box .mega-menu-img:after {
  background: unset;
  content: unset;
}
.brand-box img{
  position: unset;
}
.brand-box img.gray{
  position: relative;
}
.brand-box img.original{
  position: absolute;
  top: 0;
  left: 0;
}
.brand-box{
  height: auto;
}

.mega-menu-box {
    border-radius: 0;
    display: flex;
    flex-wrap: wrap;
    box-shadow: unset;
}
.mega-menu-box .mega-menu-img {
    border-radius:0;
    overflow: hidden;
    max-width: 85px;
    width: 25%;
}
.mega-menu-box .mega-menu-title {
    background-color: unset;
    color: #333333;
    border-left: unset;
    width: 75%;
        justify-content: left;
    padding-left: 20px;
}
.main-menu ul.mega-menu li a{
  color: #333333;
}
    .main-menu ul.mega-menu {
        width: 930px;
      max-height: 730px;
    }

.footer-widget.widget_archive a, .footer-widget.widget_categories a, .footer-widget.widget_meta a, .footer-widget.widget_nav_menu a, .footer-widget.widget_pages a, .footer-widget .th-widget-contact .info-box_text a{
  color: #B6B6B6;
}
.copyright-wrap{
  background-color: #2D2D2D;
}

/* MENU PROPUESTA LISTADO */

/* Ocultar por defecto */
.revelar-todo .mega-wrapper {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 280px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 999;
}

/* MOSTRAR TODO AL HACER HOVER */
.revelar-todo:hover .mega-wrapper {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Estilo de los títulos (By Industry / By Size) */
.section-title {
    font-weight: bold;
  color: #333;
  padding: 10px 0 5px 0;
  text-transform: uppercase;
  font-size: 15px;
  list-style: none;
    list-style-type: none;
  line-height: 30px;
}

/* Estilo de las listas internas */
.inner-list {
    margin: 0 0 15px 0;
    padding: 0 0 0 15px; /* Indentación para los links */
    list-style: none;
}

.inner-list li {
    padding: 5px 0;
}

.inner-list li a {
    color: var(--black-color2) !important;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.inner-list li a:hover {
    color: #ff4500 !important; /* El color naranja de tu marca */
}

/* 1. Definimos el overlay a nivel global pero oculto */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998; /* Un nivel abajo del header */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* 2. Cuando el menú (o cualquier parte del header) tenga hover, activamos el cuerpo */
header:hover ~ body::after, 
body:has(header:hover)::after {
    opacity: 1;
    visibility: visible;
}

/* 3. FORZAR EL HEADER AL FRENTE (Esto es lo que te fallaba) */
header.th-header, 
.sticky-wrapper,
.menu-area {
    position: relative;
    z-index: 9999 !important; /* Más alto que el z-index 9998 del overlay */
    background-color: white; /* O el color de tu header para que no sea transparente */
}

@media (max-width: 1599px) {
        .main-menu ul.mega-menu {
        width: 930px;
    }
}
@media (max-width: 780px){
  .mega-menu.mega-menu-content.allow-natural-scroll.th-submenu{
    display: block!important:
  }
  .mega-menu-box .mega-menu-title{
    padding: 0 0 0 20px;
    align-self: center;
  }
}