/*
Cabecera
*/
.header {  
    color: #000;
    background:#fff;
    position:relative;
    transition: top 300ms ease;
}
.header__main{
    padding:0.75rem var(--padding-h);
}

/* Preheader */
.header__pre{
    background:var(--light);
    padding:0 var(--padding-h); 
    position:relative;
    height:36px;
}

.header__pre-info{
    display:flex;
    align-items:center;
}
.header__pre-info--right > *{
    margin-left:1rem;
}
.header__pre-info--left > *{
    margin-right:1rem;
}

.header__pre .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow-x:auto;
    padding:0.35rem 0;
}

.header__pre-info{
    font-size:0.8rem;
    line-height:1.2em;
    flex-shrink:0;
}
.header__pre-info > ul{
    list-style:none;
    display:flex;
}
.header__pre-info > ul li:not(:last-child){
    margin-right:1.5rem;
}
.header___language{
    display:none;
}
@media only screen and (max-width: 1199px) {
    .header__pre-info > ul li:not(:first-child), .header__pre-info > *:not(:first-child){
        display:none;
    }
    .header__pre-info--left > *{
        margin:0;
    }
}
@media only screen and (min-width: 1200px) {
    .header___language{
        display:block;
    }
    .header__pre-info{
        font-size:0.9rem;
        line-height:1.2em;
    }
}

.header__pre-info > ul li i{
    margin-right:0.5rem;
    color:var(--primary);
}

/* Header fixed */
.header--fixed {
    position: fixed;
    width: 100%;
    color:#fff;
    top: 0;
    left: 0;
    z-index: 4;
    background: rgba(255,255,255,0);
    transition: background 300ms ease;
}

.header--fixed.--is-active {
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.3);
    color: #000;
    background: rgba(255,255,255,1);
}

.header--fixed.--is-active .header__pre{
    display:none;
}

/* Header sticky */
.header--sticky {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    left: 0;
    z-index: 4;
    transition: box-shadow 300ms linear, top 300ms linear;
    background: #fff;
}
    .header--sticky.--is-active {
        box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.15);
    }
.header--sticky.--hide-pre{
    top:-36px;
}

.header--sticky.--is-active .header__logo {
    max-width: calc(var(--width-logo) - 20px);
}


/* Header pinned */
.header--pinned {
    position: fixed;
    width:100%;
    top: 0;
    left: 0;
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.3);
    z-index: 3;
    transition: all 250ms ease;
}
.header--pinned.--not-active {
    transform: translateY(-100%);
}
.header--pinned.--is-active {
    transform: translateY(0);
}

.header__overlay {
    position: fixed;
    width: 0%;
    height: 100%;
    z-index: 9;
    right: 0;
    top: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter:blur(0px);
	-webkit-backdrop-filter:blur(0px);
    transition: background 200ms 200ms ease, backdrop-filter 200ms 200ms ease, -webkit-backdrop-filter 200ms 200ms ease;
}

.header__overlay--is-active {
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    backdrop-filter:blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.header__main > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    max-width: var(--width-logo);
	width:100%;
	transition:max-width 300ms linear;
}
.header--fixed:not(.--is-active) .header__logo img{
    content:url(/images/logo-invert.svg)
}
.header--fixed.--is-active .header__logo {
    max-width: calc(var(--width-logo) - 25px);
}


.header__logo-link {
    display: block;
}

.header__logo-img {
    display: block;
    width: 100%;
}

.header__info {
    display: flex;
    align-items: center;
}
@media only screen and (max-width: 600px) {
    .header__info .button span {
        display: none !important;
    }
    .header__info .button i {
        margin: 0;
    }
    .header__info .button {
        padding: 0.6em .7em;
    }
}


.header--fixed .header__info-inner{
    color:#fff;
}
.header.--is-active .header__info-inner{
    color:#666;
}

.header__info-txt {
    display: none;
    margin-right: 16px;
}



@media only screen and (min-width: 1200px) {
    .header__main {
        padding: 1rem var(--padding-h);
    }
    .header .button{
        margin-left:.2rem;
    }

    .header__info--row {
        flex-direction: row-reverse;
    }

    .header__info--row .header__info-inner {
        margin-left: 30px;
    }

    .header__info--column {
        flex-direction: column;
        align-items: flex-end;
    }


    .header__info-txt {
        display: block;
    }

    .header__language {
        display: block;
        margin-left: 12px;
    }
    .header__info-inner {

        margin-bottom:8px;
    }
}


/**********/
/* MENU */
/**********/
.nav__list {
    list-style: none;
}

.nav__link {
    display: block;
    color: currentColor;
    text-decoration: none;
}

.nav__submenu {
    list-style: none;
}

.nav__info{
    display:flex;
    height:48px;
    align-items:center;
    justify-content:space-between;
    padding:0 1rem;
    background:#ddd;
    color:inherit;
    text-transform:uppercase;
    text-decoration:none;
    color:#333;
    font-weight:var(--bold1);
    cursor:pointer;
    font-size:0.95rem;
    line-height:1.25em;
    overflow:hidden;
    transition:300ms height ease;
}
.nav__info:has(.nav__back:not(.nav__back--active)) {
    background:none;
}
.nav__back{
    padding:0.75rem 0;
    display:flex;
    align-items:center;
}
.nav__back span{
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp:2;
      overflow: hidden;
}
.nav__back--active:before{
    content:"\f104";
    font-family: var(--awesome);
    margin-right:1rem;
}

.nav__details {
    padding:  1rem;
}

.nav__details .buttons {
    display: flex;
    justify-content:center;
}
.nav__details .buttons ul{
    flex-wrap:wrap;
}

.nav__details .buttons ul:not(:last-child) {
    
}
@media only screen and (max-width: 1199px) {
    .header .button{
        padding:0;
        height:32px;
        width:32px;
        display:grid;
        place-content:center;
    }
    .header .button span{
        display:none;
    }
    .header .button i{
        margin:0;
    }

    .nav{
        position: fixed;
        top: 0;
        height: 100%;
        overflow: auto;
        z-index: 10;
        justify-content: space-between;
        background: #f5f5f5;
        display: flex;
        flex-direction: column;
        width: 300px;
    }

    .nav--left {
        left: -100%;
        transition: left 400ms ease;
    }

    .nav--right {
        right: -100%;
        transition: right 400ms ease;
    }

    .nav--is-active {
      
        box-shadow: 0px 0 24px rgba(0, 0, 0, 0.3);
    }
    .nav--right.nav--is-active {
        right: 0%;
        transition: right 400ms ease;
    }
    .nav--left.nav--is-active {
        left: 0%;
        transition: left 400ms ease;
    }


    .nav__list {
        flex: 1;
        width:100%;
        position:relative;
        overflow-x:hidden;
    }

	.nav__list:not(:has(.nav__submenu--is-active)){
		overflow-y: auto;
	}


    .nav__list > .nav__item--selected > .nav__link,
    .nav__list > .nav__item:has(.nav__item--selected) > .nav__link,
    .nav__list > .nav__item:has(.nav__item--selected) > .nav__submenu > .nav__item:has(.nav__item--selected) > .nav__link,
    .nav__list > .nav__item--has-sub > .nav__submenu > .nav__item--selected > .nav__link{
        font-weight:var(--bold1);
		color: var(--primary);
    }
    .nav__submenu .nav__submenu .nav__item--selected > .nav__link{
        font-weight:var(--bold1);
        color:var(--primary);
    }

    .nav__item--has-sub > a {
        position: relative;
        display:flex;
        align-items:center;
        justify-content:space-between;
    }

    .nav__item--has-sub > a .nav__down {
        width: 32px;
        height:32px;
        display: flex;
		color:currentColor;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 20px;
    }
  

    .nav__item--has-sub > a .nav__down .--rotate{
       transform:rotate(180deg)
    }
    .nav__link,.nav__submenu .nav__link {
        padding: 0.75rem 1rem;
        color: #333;
    }


    .nav__submenu .nav__submenu .nav__item--has-sub > a .nav__down{

        background:none;
    }

    .nav__item--has-sub > a .nav__down i:before{
        content:'\f105';
    }
    .nav__item--has-sub > a .nav__down .--rotate{
        transform:rotate(0)!important;
    }


    .nav__submenu:not(.nav__submenu--is-active) {
        display: none;
    }
    

    .nav__item--has-sub > .nav__submenu {
        position: absolute;
        height:100%;
        z-index: 3;
        box-shadow: none;
        left:0;
        top: 0;
        background:#f5f5f5;  
        overflow-x:hidden;
        overflow:auto;
        text-align: left;
        width:100%;
         overflow-x:hidden;
         display:flex;
         flex-direction:column;
        transition: left 400ms ease;
    }
      .nav__item--has-sub > .nav__submenu:not(.nav__submenu--is-active) {
        display:flex;
        left: 100%;
     }
    

}

@media only screen and (min-width: 1200px) {
    .nav__list{
        display: flex;
        justify-content:space-between;
    }

    .nav__list > .nav__item{
        position:relative;
        margin-left:1.25rem;
    }
    .nav__list > .nav__item:hover > .nav__link {
        color:var(--primary);
    }
    .nav__list > .nav__item > .nav__link:after {
        content:'';
        display:block;
        width:0%;
        height:1px;
        background:var(--primary);
        position:absolute;
        top:-1px;
        left:0;
        right:0;
        margin:0 auto;
        transition: width 400ms ease;
    }

    .nav__item--selected > .nav__link,
    .nav__item:has(.nav__item--selected) > .nav__link {
		color:var(--primary);
        font-weight: var(--bold1);
    }
    .nav__list > .nav__item:hover > .nav__link:after,
    .nav__list > .nav__item--selected > .nav__link:after,
    .nav__list > .nav__item:has(.nav__item--selected) > .nav__link:after{
        width:100%;
    }

    .nav__link {
        padding: 0.5rem 0.25rem;
    }
    .nav__submenu .nav__link {
        padding: 0.5rem 1rem;
    }

    .nav__list > .nav__item--has-sub {
        position: relative;
    }
    .nav__submenu {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        z-index: 3;      
        border-radius:var(--radius1);
        display:flex;
        flex-direction:column;
        transform: translateY(20%);
        filter:drop-shadow(0px 0px 12px rgba(0, 0, 0, 0.15));
        left: 0;
        top: 100%;
        background: #fff;
        text-align: left;
        min-width: 180px;
		pointer-events:none;
        transition: transform 400ms ease, opacity 400ms ease, visibility 0s ease 400ms;
    }


     .nav__list > .nav__item--has-sub:hover > .nav__submenu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0%);
        transition: transform 400ms ease, opacity 400ms ease;
    }
     .nav__item--has-sub:hover .nav__submenu {
		pointer-events:auto;
    }
    .nav__submenu .nav__submenu {
        transform: translateY(0);
        left:40%;
        top:0;
		height:100%;
         transition: left 400ms ease, opacity 400ms ease, visibility 0s ease 400ms;
    }
    .nav__submenu .nav__submenu::after{
        content: '';
        position: absolute;
        left: -8px;
        top: 12px;
        width: 0;
        height: 0;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-right: 8px solid #fff;
        clear: both;
    }
    .nav__submenu .nav__submenu::before{
        content: '';
        position: absolute;
        left: -12px;
        top: 0;
        width: 12px;
        height: 100%;
        background: transparent;
    }
     .nav__submenu .nav__submenu--is-active {
        visibility: visible;
        opacity: 1;
        height:auto;
        left:calc(100% + 12px);
        transform: translate(0);
        transition: left 400ms ease, opacity 400ms ease;
    }


    .nav__item--has-sub .nav__item {
        margin: 0;
        text-align:left;
        position:relative;
  
    }
    .nav__item--has-sub .nav__item--has-sub > .nav__link {
        display:flex;
        justify-content:space-between;
        align-items:center
    }
    .nav__item--has-sub .nav__item:hover > .nav__link,
    .nav__item--has-sub .nav__item--selected > .nav__link{
        color:var(--primary);
    }

     .nav__submenu .nav__item--has-sub > a .nav__down {
        width: 20px;
        height: 20px;
        display: flex;
	    color:currentColor;
        align-items: center;
        justify-content: center;
        background:#f5f5f5;
        text-align: center;
        margin:0;
        border-radius:var(--radius1);
        font-size: 16px;
        margin-left:0.5rem;
    }
     .nav__down{
        margin-left: 0.5rem;
        display: inline-block;
     }
    .nav__submenu .nav__item--has-sub > a .nav__down i:before{
        content:'\f105';
        
    }
    .nav__list > .nav__item--has-sub > .nav__submenu > .nav__back{
        display:none;
    }
    .nav__info{
        display:none;
    }
    .nav__details {
        display: none;
    }
    .nav__list > .nav__item--has-sub > .nav__link:not([href="#"]):not([href="javascript:void(0);"]){
        pointer-events:none;
    }
    .nav__list > .nav__item--has-sub > .nav__link:not([href="#"]):not([href="javascript:void(0);"]) .nav__txt{
        pointer-events:auto;
    }
}



/**************/
/* HAMBURGER */
/*************/
.hamburger {
    cursor: pointer;
    margin-left: 12px;
    display:grid;
    place-content:center;
    height:32px;
    width:32px;
}

.hamburger .bar {
    display: block;
    height: 2px;
    width: 24px;
    background: currentColor;
    transition: transform 300ms ease;
}
.header--fixed .hamburger .bar {
    background: currentColor;
}
.hamburger--is-active .bar {
    width: 20px;
}
.hamburger .bar.middle {
    margin: 6px auto;
}

.hamburger--is-active .top {
    transform: translateY(8px) rotateZ(45deg);
}

.hamburger--is-active .bottom {
    transform: translateY(-8px) rotateZ(-45deg);
}

.hamburger--is-active .middle {
    width: 0;
}




@media only screen and (min-width: 1200px) {
    .hamburger {
        display: none;
    }
}


/*
Botones - Redes sociales y teléfonos
*/
.buttons {
    display: flex;
    align-items: center;
    gap:0.5rem;
    flex-wrap:wrap;
}


.buttons ul {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap:0.25rem;
}

.buttons li {
    display:flex;
    align-items:center;
}
.buttons__phones li:first-child:before {
    display:none;
}


.buttons a, .buttons a[href^="tel:"]{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color:#666;
    border-radius:var(--radius2);
    background:#eee;
    text-decoration: none;

}
.header__pre .buttons a, .header__pre .buttons a[href^="tel:"]{
    background:#fff;
    width: 26px;
    height: 26px;
    font-size:0.9rem;
}

.buttons__phones li span {
    display: none;
	white-space: nowrap;
}


.buttons__phones .full a,.buttons__phones .full a[href^="tel:"]  {
    width: auto;
    padding: 0.2rem 0.5rem;
}

.buttons__phones .full span {
    display: block;
    margin-left: 4px;
}

.buttons--bg .facebook a{
    background: var(--color-fb);
}

.buttons--bg .instagram a{
    background: var(--color-ig);
}

.buttons--bg .whatsapp a{
    background: var(--color-wa);
}

.buttons--bg li {
    border: 0;
    border-radius: var(--radius1);
}

.buttons--bg a {
    color: #fff;
    width: 28px;
    height: 28px;
    min-height: 28px;
}


.buttons--bg a,
.buttons--bg a[href^="tel:"] {
    color: #fff;
}

/* Buttons fixed */
.buttons--fixed {
    transition:bottom 300ms ease, transform 300ms ease;
    position:fixed;
    bottom:2px;
    right:0;
	z-index:1;
    display:none;
}
.buttons--fixed ul{ 
    flex-direction:column;
    align-items:initial;
}
.buttons--fixed li {
    margin: 2px 0;
    display:flex;
    border-radius:var(--radius1) 0 0 var(--radius1);
    background: var(--primary);
    color:#fff;
    border: 0;
    box-shadow:0px 0px 12px rgba(0,0,0,0.1);
}
.buttons--fixed .whatsapp {
    background: var(--color-wa);
}
.buttons--fixed .whatsapp i{
    color: var(--color-wa);
}


.buttons--fixed a,.buttons--fixed a[href^="tel:"]{
    width: auto;
    height: auto;
	flex:1;
    display:flex;
    align-items:center;
	border-radius:0;
	border:0;
    color:#fff;
    background:none;
    text-decoration:none;
}
.buttons--fixed .etiq{
    display:block;
    font-size:0.8em;
    line-height:1.2em;
}
.buttons.buttons--fixed .etiq + span{
    margin-left:0;
}

.buttons--fixed li a > span{ 
    display:block;
    line-height:100%;
    margin-left:0.5rem;
	flex:1;
     padding: 0.25rem 0.75rem 0.25rem 0;
}

.buttons--fixed li:not(.full) a > span{  
   display:none;
}


.buttons--fixed i{
    height:42px;
    width:48px;
    font-size:1.125rem;
    margin:1px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    color:var(--primary);
    border-radius:var(--radius1) 0 0 var(--radius1);
}
.buttons--circle.buttons--fixed{
    right:8px;
}
.buttons--circle.buttons--fixed li{
    border-radius:50%;
}
.buttons--circle.buttons--fixed i{
    height:58px;
    width:58px; 
    color:#fff;
    background:none;
    font-size:1.75rem;
}

.buttons--fixed li.full i{
    height:42px;
    width:42px;
}


/**/
@media only screen and (min-width: 600px) {
   .header__info-inner .buttons .buttons__social{display:flex;}



@media only screen and (min-width: 1024px) {
    .buttons__phones li a {
        width: auto;
        height: 28px;
        font-size:0.95rem;
        padding: 0.2rem 0.5rem;
    }

    .buttons__phones li span {
        display: block;
        margin-left: 4px;
    }

    .buttons__phones .full a {
        height: auto;
    }
	
	/* Buttons fixed */
    .buttons--fixed:not(.buttons--circle) {    
        position:fixed;
        bottom:50%!important;
        transform:translateY(50%);
    }
    .buttons--circle.buttons--fixed{
        
    }
    .buttons--fixed i{
        height:46px;
        width:46px;
        font-size:1.25rem;
    }
    .buttons--fixed a,.buttons--fixed a[href^="tel:"]{
        font-size:1.125rem;
        line-height:100%;
    }
    .buttons--fixed li a > span{ 
        margin-left:0.75rem;
         padding: 0.25rem 1rem 0.25rem 0;
    }
    .buttons--fixed li:not(.full) a > span{  
       display:block;
    }
	/**/
}

/* LANG */

.nav__language{
    padding:0.75rem 1rem;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#eee;
}
.language__modal-list{
    list-style:none;
    font-size:1rem;
}
.language__modal-list a img{
    display:block;
}
.language img{
    width:22px;
    display:block;
    box-shadow:0px 0px 2px rgb(0 0 0 / 70%);
    border-radius:50%;
}

@media only screen and (min-width: 1200px) {
    .nav__language{
        display:none;
    }
    .header___language .language{
        display:flex;
        align-items:center;
        cursor:pointer;
    }


    .header___language .language:after{
        content:'\f107';
        font-weight:900;
        font-size:12px;
        font-family: var(--awesome);
        margin-left:0.35rem;
    }
    .header___language .language__modal{
        transform:translateY(-120vh);
        opacity:0;
        visibility:hidden;
        z-index:12;
        transition:opacity 400ms ease, visibility 0ms 400ms;
        position:fixed;
        left:0;
        top:0;
        width:100%;
        height:100%;
        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;
        background:rgba(0,0,0,0.75);
        backdrop-filter:blur(4px);
		-webkit-backdrop-filter: blur(4px);
        padding:var(--padding-h);
    }

    .header___language .language__modal--active{
        opacity:1;
        visibility:visible;
        transform:translateY(0);
        transition:opacity 400ms ease;
    }
    .header___language .language__modal-inner{
        text-align:left;
        padding:min(var(--padding-h), 2rem);
        background: #fff;
        max-width:400px;
        position:relative;
        border-radius: var(--radius1);
    }
    .header___language .language__modal-title{
        font-size:20px;
        margin:0 0 1rem;
        line-height:1.4em;
        font-weight:var(--bold1);
    }

    .header___language .language__modal-close{
        position:absolute;
        top:0;
        transform:translateY(-100%);
        right:0;
        width:22px;
        color:#fff;
        height:40px;
        display:flex;
        font-size:30px;
        cursor:pointer;
        align-items:center;
        justify-content:center;
    }
    .header___language .language__modal-list li:not(:last-child) {
        margin-bottom:8px;
    }
    .header___language .language__modal-list a{
        text-decoration:none;
        padding:0.5rem 1rem;
        display:flex;
        align-items:center;
        color:inherit;
    }
    .header___language .language__modal-list a span{
        display:inline-block;
        margin-left:0.5rem;
        font-size:1rem;
    }

    .header___language .language__modal-list .selected a{
        background:var(--primary);
        color: var(--primary-invert);
        border-radius:var(--radius1);
    }
    .header___language .language__modal-list .selected a:before{
        content:'\f00c';
        font-weight:900;
        font-family: var(--awesome);
        margin-right:1rem;
        font-size:1.25rem;
    }
    .header___language .language__modal-list li:hover{
        color:var(--primary);
    }
}
@media only screen and (max-width: 1199px) {
    .nav__language .language__modal-close,
    .nav__language .language__modal-title,
    .nav__language .language__modal-list a span,
    .nav__language .language{
        display:none;
    }
    .nav__language .language__modal-list{
        display:flex;
        gap:1rem;
    }
    .nav__language .language__modal-list li{
        position:relative;
    }
    .nav__language .language__modal-list .selected a:before{
        content: "\f058";
        font-weight: 900;
        font-size: 16px;
        font-family: 'Font Awesome 6 Pro';
        width: 16px;
        height: 16px;
        border-radius: 16px;
        background-color: var(--primary-invert);
        color: var(--primary);
        position: absolute;
        bottom: -4px;
        right: -4px;
        display: flex;
        align-items: center;
        justify-content: center;
        }
    .nav__language .language__modal-list a{
        text-decoration:none;
        display:block;
        color:inherit;
        background:#fff;
        border-radius:100%;
        box-shadow: 0 0 0 2px #f0f0f0, 0 0 0 3px #ccc;
    }
    .nav__language .language__modal img{
        width:30px;
        display:block;
        border-radius:100%;
    }
}

