/*
Cabecera
*/
.header {
    background: #fff;
}
.header__pre {
    background: var(--light);
    padding: 0.12rem var(--padding-h);
    font-size: 0.9rem;
    text-align:center;
}

.header__pre-info1 {
    display: none;
}
.header__pre-info2 .buttons{
    flex-direction:row-reverse;
    justify-content:space-between;
}

/* Header sticky */
.header--sticky {
	position: sticky;
	position: -webkit-sticky;
	top: 0;
	left: 0;
	z-index: 3;
	box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.3);
}
.header--sticky.--is-active .header__logo {
    max-width: calc(var(--width-logo) - 25px);
}

/* Header pinned */
.header--pinned {
    position: fixed;
    width:100%;
    top: 0;
    left: 0;
    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);
    transition: background 300ms ease;
}

.header__overlay--is-active {
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
}

.header__container {
    padding: 12px var(--padding-h);
}

.header__container-inner {
    display: flex;
    align-items: center;
    justify-content:space-between;
}

.header__logo {
    max-width: var(--width-logo);
	width:100%;
	transition:max-width 300ms ease;
}



.header__logo-link {
    display: block;
}

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

.header__info {
    text-align: right;
    display: flex;
    align-items: center;
}


.header__info-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

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

.header__language {
    display: none;
}



.header__language select {
    height: 28px;
    width: 50px;
    border: 1px solid #ddd;
    padding: 2px;
    border-radius: 4px;
}
@media only screen and (min-width: 600px) {
    .header__pre-info1 {
        display:block;
    }
    .header__pre-info2 .buttons {
        flex-direction:row;
    }
    .header__pre-info2 .buttons ul ~ ul li:first-child{
        border-left:0;
    }
    .header__pre-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}
@media only screen and (min-width: 1024px) {
    .header__container {
        padding: 12px var(--padding-h);
    }

    .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--column .header__info-inner {
        margin-bottom: 12px;
    }

    .header__info-txt {
        display: block;
    }

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


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

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

.nav__submenu {
    list-style: none;
}

.nav__submenu .nav__link {
    padding: 0.6rem 1rem;
    color:#333;
}

.nav__info {
    background: #f5f5f5;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
    padding: 8px 4px;
}

.nav__info .buttons {
    display: flex;
    flex-direction: column;
}
.nav__info .buttons ul{
    flex-wrap:wrap;
}

.nav__info .buttons ul:not(:last-child) {
    margin-bottom: 4px;
}
@media only screen and (max-width: 1023px) {
    .nav {
        position: fixed;
        top: 0;
        height: 100%;
        overflow: auto;
        z-index: 10;
        justify-content: space-between;
        background: #fff;
        display: flex;
        flex-direction: column;
		width:300px;
    }

    .nav--fade {
        opacity: 0;
        left: 0;
        z-index:-4;
        transition: opacity 600ms ease;
    }

    .nav--fade.nav--left {
        left: 0;
    }

    .nav--fade.nav--right {
        right: 0;
    }

    .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%;
    }
    .nav--left.nav--is-active {
        left: 0%;
    }
    .nav--fade.nav--is-active {
        opacity: 1;
        z-index:9;
    }

    .nav__language {
        padding: 4px 8px;
        text-align: left;
        background: #f5f5f5;
        box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
    }

    .nav__language:before {
        content: "Selecciona tu idioma:";
        display: inline-block;
        margin-right: 8px;
        font-size: 90%;
        line-height: 120%;
    }

    .nav__language select {
        height: 32px;
        width: 60px;
        border: 1px solid #ddd;
        padding: 2px;
        border-radius: var(--radius1);
    }

    .nav__list {
        flex: 1;
        overflow: auto;
    }

    .nav__item {
        border-bottom: 1px solid #ccc;
        text-align: center;
    }

    .nav__item--selected > .nav__link {
        background: var(--primary);
        color:var(--primary-invert)
    }

    .nav__item--has-sub > a {
        position: relative;
    }

    .nav__item--has-sub > a .nav__down {
        position: absolute;
        right: 0;
        width: 42px;
        height: 100%;
        display: flex;
		color:#333;
        align-items: center;
        justify-content: center;
        background: #eee;
        text-align: center;
        top: 50%;
        font-size: 20px;
        transform: translateY(-50%);
    }
   .--rotate{
        transform:rotate(180deg)
    }

    .nav__link {
        padding: 1rem;
        color: currentColor;
    }

    .nav__submenu {
        background: #eee;
		padding:2px;
    }

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

    .nav__submenu .nav__item {
        text-align: center;
        border: 0;
    }

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

    /* nav fullscreen */
     .nav--fullscreen .nav__submenu {
        display: block!important;
         margin-top:-0.6rem;
          padding-bottom:0.6rem;

    }
    .nav--fullscreen.nav--fade .nav__list{
         transform: scale(1.1);
         transition: all 600ms ease;
    }
    .nav--fullscreen.nav--fade.nav--is-active .nav__list {
        transform: scale(1);
        opacity: 1;
    }
    .nav--fullscreen ~ .hamburger--is-active {
        position: relative;
        z-index: 10;
      
    }

    .nav--fullscreen ~ .hamburger--is-active .bar:not(.middle) {
        background: #fff;
          width:32px;
    }

    .nav--fullscreen {
        color:#fff;
        width: 100%;
        max-width: initial;
        background: rgba(0, 0, 0, 0.84);
        backdrop-filter: blur(5px);
        justify-content: center;
    }
    .nav--fullscreen .nav__container {
        max-width:500px;
    }

    .nav--fullscreen .nav__list {
        display: flex;
        flex-direction: column;
        flex: initial;
        margin: auto;
        width:100%;
    }
    .nav--fullscreen .nav__item--has-sub > a .nav__down {
        display:none;
    }
    .nav--fullscreen .nav__item {
        border: none;
    }
    .nav--fullscreen .nav__item--selected > .nav__link{
        color:#fff;
    }
    .nav--fullscreen .nav__item a {
        color: currentColor;
        font-size: 1.5rem;
        text-transform:uppercase;
    }

    .nav--fullscreen .nav__info {
        background: transparent;
        box-shadow: initial;
    }

    .nav--fullscreen .nav__language {
        background: none;
        color: #fff;
        box-shadow: initial;
        padding: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav--fullscreen .nav__submenu {
        background:transparent;
    }
    .nav--fullscreen .nav__submenu .nav__link {
        padding: 0.6rem 1rem;
        font-size:1.2rem;
        text-transform:initial;
    }
}

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

    .nav__list {
        display: flex;
    }

    .nav__item {
        margin-left: 30px;
    }

    .nav__item:hover > .nav__link {
        color: var(--primary);
    }

    .nav__item--selected > .nav__link {
        color: var(--primary);
    }

    .nav__link {
        padding: 0.25rem;
    }

    .nav__item--has-sub {
        position: relative;
    }

    .nav__item--has-sub .nav__submenu {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        z-index: 3;
        transform: translateY(20%);
        box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
        left: 0;
        top: 100%;
        background: #fff;
        text-align: left;
        min-width: 180px;
        transition: transform 400ms ease, opacity 400ms ease;
    }

    .nav__item--has-sub:hover .nav__submenu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0%);
    }

    .nav__item--has-sub .nav__item {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .nav__item--has-sub .nav__item:hover > .nav__link {
        background: #eee;
    }

    .nav__link .nav__down {
        margin-left: 0.5rem;
        display: inline-block;
    }
    .nav__info {
        display: none;
    }
}



/**************/
/* HAMBURGER */
/*************/
.hamburger {
    cursor: pointer;
    margin-left: 12px;
    padding: 4px;
}

.hamburger .bar {
    display: block;
    height: 2px;
    width: 24px;
    background: #333;
    transition: transform 300ms ease;
}

.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;
}
.nav--right ~ .hamburger {
    transform: translateX(0);
    transition:all 400ms ease;
    background:rgba(255,255,255,0);
}

.nav--right.nav--is-active ~ .hamburger {
    transform: translateX(calc(-300px));
    z-index:10;
}
.nav--right.nav--is-active ~ .hamburger .bar{background:#fff;}

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


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

.buttons--fixed {transition:right 300ms ease;
    position:fixed;
    bottom:6px;
    right:8px;
    display:none;
}

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

.buttons li {
    display: inline-block;
    margin: 1px;
    border-left: 1px solid #ddd;
}
.buttons li:last-child {
    border-right: 1px solid #ddd;
}

.buttons--fixed li { margin: 2px; }

.buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    color:currentColor;
    min-height: 24px;
    text-decoration: none;

}

.buttons__phones li span {
    display: none;
}


.buttons__phones .full a {
    width: auto;
    padding: 0.2rem 0.5rem;
}

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

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

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

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

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

.buttons--bg a{
    width: 28px;
    height: 28px;
    min-height: 28px;
}
.buttons--fixed a {
    width: 38px;
    height: 38px;
    font-size:1.30rem;
    min-height: 38px;
}

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

@media only screen and (min-width: 1023px) {
    .buttons__phones li a {
        width: auto;
        padding: 0.2rem 0.5rem;
    }

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

    .buttons__phones .full a {
        height: auto;
    }
    .buttons--fixed .buttons__phones a {
        font-size: 1.125rem;
    }
}