/*
Cabecera
*/
.header {
    padding: 8px var(--padding-h);
    color: #000;
    background: #fff;
}

/* Header fixed */
.header--fixed {
    position: fixed;
    width: 100%;
    color: #fff;
    top: 0;
    left: 0;
    z-index: 3;
    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 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%;
    color: #fff;
    background: transparent;
    top: 0;
    left: 0;
    z-index: 3;
    transition: all 250ms ease;
}

.header--pinned.--not-active {
    transform: translateY(-100%);
    background: rgba(255, 255, 255, 1);
    color: #000;
}

.header--pinned.--is-active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 1);
    color: #000;
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.2);
}

.header--pinned .header__overlay,
.header--fixed .header__overlay {
    display: none;
}

.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 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.header__logo {
    max-width: var(--width-logo);
    width: 100%;
    transition: max-width 300ms ease;
}

/* .header--fixed:not(.--is-active) .header__logo img{
    content:url(/images/logo-invert.svg)
} */
.header--pinned: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 {
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


.header__info-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header__info-txt {
    display: none;
    margin-right: 16px;
}

.header__language {
    display: none;
}




@media only screen and (min-width: 1024px) {
    .header {
        padding: 12px var(--padding-h);
    }

    .header__container {
        grid-template-columns: 1fr auto 1fr;
    }

    .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: 6px;
        padding-bottom: 6px;
        border-bottom: 1px solid;
    }

    .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;
    color: var(--secondary);
}

.nav__info .buttons {
    display: flex;
    justify-content: center;

}

.nav__info .buttons ul {
    flex-wrap: wrap;
}

.nav__info .buttons ul li {
    margin: 1px 2px;
}

@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;
        color: var(--font-color);
    }

    .nav--fade {
        opacity: 0;
        left: 0;
        top: -100vh;
        transition: top 0ms ease 600ms, 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;
        top: 0;
        transition: opacity 600ms ease;
    }

    .nav__language {
        padding: 0.5rem;
    }




    .nav__language select {
        height: 32px;
        width: 60px;
        border: 1px solid #ddd;
        padding: 2px;
        border-radius: var(--radius2);
    }

    .nav__list {
        flex: 1;
        overflow: auto;
    }

    .nav__item {
        border-bottom: 1px solid #ccc;
        text-align: center;
    }

    .nav__item--selected>.nav__link {
        color: var(--primary);

    }

    .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: #333;
    }

    .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 */
    .header__overlay--is-active~.header__container .header__logo {
        position: relative;
        z-index: 11;
    }

    /* .header__overlay--is-active ~ .header__container .header__logo img{content:url(/images/logo-invert.svg);} */
    .header__overlay--is-active~.header__container .hamburger {
        position: relative;
        z-index: 11;
    }

    .header__overlay--is-active~.header__container .hamburger .bar {
        background: #fff;
    }

    .nav--fullscreen.nav--fade.nav--is-active~.header.header--pinned {
        z-index: 10;
        background: rgba(255, 255, 255, 0);
        box-shadow: none;
    }

    .nav--fullscreen.nav--fade.nav--is-active~.header.header--pinned .header__logo {
        position: relative;
        z-index: 11;
    }

    .nav--fullscreen.nav--fade.nav--is-active~.header.header--pinned .header__logo img {
        content: url(/images/logo-invert.svg);
    }

    .nav--fullscreen.nav--fade.nav--is-active~.header.header--pinned .buttons {
        display: none;
    }

    .nav--fullscreen.nav--fade.nav--is-active~.header.header--pinned .hamburger {
        position: relative;
        z-index: 11;
    }

    .nav--fullscreen.nav--fade.nav--is-active~.header.header--pinned .hamburger .bar {
        background: #fff;
    }

    .nav--fullscreen .nav__submenu {
        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,
    .nav--fullscreen~.header--pinned .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%;
        padding-top: var(--header-height);
        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%;
        align-items: center;
    }

    .nav--fullscreen .nav__item--has-sub>a .nav__down {
        height: 32px;
        width: 32px;
        border-radius: 8px;
    }

    .nav--fullscreen .nav__item {
        border: none;
    }

    .nav--fullscreen .nav__item--has-sub>a {
        padding-right: 48px;
    }

    .nav--fullscreen .nav__item--selected>.nav__link {
        color: var(--secondary);
        font-weight: var(--bold1);
    }

    .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: 0 12px;
    }

    .nav__item:hover>.nav__link {
        opacity: 0.75;
    }

    .nav__item--selected>.nav__link {
        font-weight: var(--bold1);
        color: var(--primary)
    }

    .header--fixed.--is-active .nav__item--selected>.nav__link,
    .header--pinned.--is-active .nav__item--selected>.nav__link,
    .header--pinned.--not-active .nav__item--selected>.nav__link,
    .header--fixed.--is-active .nav__item:hover>.nav__link,
    .header--pinned.--is-active .nav__item:hover>.nav__link {
        opacity: 1;
        color: var(--secondary);
    }

    .nav__link {
        padding: 0.25rem;
        font-weight: 400;
    }

    .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, visibility 0s ease 400ms;
    }

    .nav__item--has-sub:hover .nav__submenu,
    .nav__item--has-sub:has(a:focus) .nav__submenu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0%);
        transition: transform 400ms ease, opacity 400ms ease;
    }

    .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: #fff;
    transition: transform 300ms ease;
}

.header--fixed .hamburger .bar,
.header--pinned.--is-active .hamburger .bar,
.header--pinned.--not-active .hamburger .bar {
    background: currentColor;
}

.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~.header--pinned .hamburger {
    transform: translateX(0);
    transition: all 400ms ease;
    background: rgba(255, 255, 255, 0);
}

.nav--right.nav--is-active~.header--pinned .hamburger {
    transform: translateX(calc(-300px));
    z-index: 10;
}

.nav--right.nav--is-active~.header--pinned .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 ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.buttons li {
    display: flex;
    margin: 1px 2px;
    align-items: center;
}

.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;
    white-space: nowrap;
}


.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(--secondary);
    color: #fff;
    border: 0;
    border-radius: var(--radius2);
}

.buttons--bg a {
    color: currentColor;
    width: 36px;
    height: 36px;
    min-height: 36px;
}

.buttons--bg .buttons__social a {
    font-size: 1.25rem;
}


.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 {
    width: auto;
    height: auto;
    flex: 1;
    border-radius: 0;
    border: 0;
}

.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--fixed li.full i {
    height: 42px;
    width: 42px;
}


/**/

@media only screen and (min-width: 1024px) {
    .buttons__phones li a {
        width: auto;
        height: auto;
        padding: 0.5rem 1rem;
    }

    .buttons__phones li span {
        display: block;
        margin-left: 4px;
    }

    .buttons__phones .full a {
        height: auto;
    }

    .buttons__phones .full a {
        height: auto;
    }

    /* Buttons fixed */
    .buttons--fixed {
        position: fixed;
        bottom: 50% !important;
        transform: translateY(50%);
    }

    .buttons--fixed i {
        height: 46px;
        width: 46px;
        font-size: 1.25rem;
    }

    .buttons--fixed a {
        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;
    }

    /**/

    .buttons--bg a {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }
}