/*!
Theme Name: NDC
Theme URI: https://niveldecalidad.com
Version: 1.0.0
Description: Tema creado por Nivel de Calidad
Author: Fran Herrera Seara - Nivel de Calidad
Author URI: https://niveldecalidad.com
Template: Divi
Tags: responsive-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, featured-images, full-width-template, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready

*/
@import url("../Divi/style.css");

:root {
  --header-width: 0px;
  --transition-menuMovil: all 0.5s;
}

#page-container {
  overflow-x: hidden;
}

/*--header-------------------------*/
#content-nav {
  background-color: transparent;
  transition: all 0.2s;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  margin-bottom: -60px;
}

#content-nav.sticky {
    background-color: var(--color-b);
    position: fixed;
}

#nav {
  height: 60px;
  display: flex;
  align-content: center;
  justify-content: center;
  font-size: 1em;
}

#nav > div {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  max-width: 80%;
  width: 100%;
  position: initial;
}

#brand,
#brand a {
  display: flex;
  align-items: center;
}

#brand {
  width: 150px;
  order: 1;
}

#brand img {
  max-width: 100%;
  height: auto;
  filter: invert(100%);
}

#menu-nav {
  margin-left: auto;
  display: flex;
  order: 2;
}

#menu-nav a {
  margin: 0 11px;
}

#menu-nav .movil-button {
  display: flex;
}

#menu-nav a,
#telephone a {
  color: white;
  font-weight: 600;
  position: relative;
}

#menu-nav a:hover,
#telephone a:hover {
  color: var(--color-a);
}

#telephone {
  margin-left: 29px;
  display: flex;
  order: 3;
}

#telephone a {
  display: flex;
  align-items: center;
}

#telephone i {
    margin-right: 3px;
    font-size: 0.8em;
}

@media (min-width: 1200px) {
	#menu-nav a:before,
	#menu-nav a:after {
	    content: "";
	    width: 00%;
	    position: absolute;
	    border: 1px solid;
	    bottom: -2px;
	    opacity: 0;
	    transition: all 0.5s;
	}

	#menu-nav a:after {
	    left: 50%;
	}

	#menu-nav a:before {
	    right: 50%
	}

	#menu-nav a:hover:after,
	#menu-nav a:hover:before {
	    width: 50%;
	    opacity: 1;
	    transition: width 0.5s;
	}
}

@media (max-width: 1200px) {
  #menu-nav {
    margin: 0px;
    order:3
  }
  
  #menu-nav .movil-button {
    display: flex;
    width: 25px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
  }

  #menu-nav .movil-button > div {
    background-color: white;
    height: 4px;
    margin: 0;
    padding: 0;
    position: relative;
    top: 0;
    bottom: 0;
    transition: all 0.2s;
  }

  #menu-nav.open .movil-button:hover {
    transform: scale(1.2);
  }

  #menu-nav.open .movil-button div:nth-child(1) {
    background-color: var(--color-a);
    transform: rotate(45deg) translateY(7px) translateX(7px);
    position: initial;
  }

  #menu-nav.open .movil-button div:nth-child(2){
    opacity: 0;
    background-color: var(--color-a);
  }

  #menu-nav.open .movil-button div:nth-child(3) {
    background-color: var(--color-a);
    transform: rotate(-45deg) translateY(-8px) translateX(8px);
    position: initial;
  }

  #menu-nav .movil-button-box {
    position: absolute;
    background-color: var(--color-b);
    border-top: 1px var(--color-a) solid;
    top: 60px;
    right: 0px;
    width: 0px;
    max-width: 350px;
    min-width: 0px;
    height: 100vh;
    margin: 0px;
    transition: all 0.2s;
  }
  
  #menu-nav.open .movil-button-box {
    width: var(--header-width);
    transition: var(--transition-menuMovil);
  }

  #menu-nav #capa {
    content: " ";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0);
    z-index: -999;
    transition: 0.2s;
    pointer-events: none;
  }

  #menu-nav.open #capa {
    background-color: rgba(0,0,0,0.5);
    transition: 0.5s;
    pointer-events: initial;
  }
  
  #menu-nav nav {
    display: flex;
    flex-direction: column;
    min-width: 250px;
    padding: 20px 0;
  }
  
  #menu-nav a {
    margin: 10px 0 10px 40px;
  }
  
  #telephone {
    margin-left: auto;
    margin-right: 20px;
    order:2
  }
  
  #telephone a p {
    display: none;
  }
  
  #telephone i {
    margin-right: 0px;
    margin-right: 10px;
    position: initial;
    top: 0px;
    font-size: 1.6em;
  }
}

@media (max-width: 500px) {
  #main-content .et_pb_row_0 {
    padding-top: 32% !important;
  }
  
    #menu-nav.open .movil-button-box {
      width: var(--header-width);
    }
    #menu-nav a {
      margin: 10px 0 10px 30px;
    }
}