/*
Theme Name: Tolosaldea
Author: CBT
Version: 1.0
*/

/* Fuentes */

@font-face {
    font-family: 'HamburgHand';
    src: url('assets/fonts/HamburgHand-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'HamburgHand';
    src: url('assets/fonts/HamburgHand-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'HamburgHand';
    src: url('assets/fonts/HamburgHand-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'DMSansCustom';
    src: url('assets/fonts/DMSans-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'DMSansCustom';
    src: url('assets/fonts/DMSans-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'DMSansCustom';
    src: url('assets/fonts/DMSans-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'DMSansCustom';
    src: url('assets/fonts/DMSans-ExtraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: 'DMSansCustom';
    src: url('assets/fonts/DMSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'DMSansCustom';
    src: url('assets/fonts/DMSans-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'DMSansCustom';
    src: url('assets/fonts/DMSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'DMSansCustom';
    src: url('assets/fonts/DMSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'DMSansCustom';
    src: url('assets/fonts/DMSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'DMSansCustom';
    src: url('assets/fonts/DMSans-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'DMSansCustom';
    src: url('assets/fonts/DMSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'DMSansCustom';
    src: url('assets/fonts/DMSans-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'DMSansCustom';
    src: url('assets/fonts/DMSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'DMSansCustom';
    src: url('assets/fonts/DMSans-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'DMSansCustom';
    src: url('assets/fonts/DMSans-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'DMSansCustom';
    src: url('assets/fonts/DMSans-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}

@font-face {
    font-family: 'DMSansCustom';
    src: url('assets/fonts/DMSans-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: 'DMSansCustom';
    src: url('assets/fonts/DMSans-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}


@font-face {
    font-family: 'Larken';
    src: url('assets/fonts/Larken-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Larken';
    src: url('assets/fonts/Larken-LightItalic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Larken';
    src: url('assets/fonts/Larken-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Larken';
    src: url('assets/fonts/Larken-MediumItalic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Larken';
    src: url('assets/fonts/Larken-ExtraBold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Larken';
    src: url('assets/fonts/Larken-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Larken';
    src: url('assets/fonts/Larken-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Larken';
    src: url('assets/fonts/Larken-ExtraBoldItalic.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Larken';
    src: url('assets/fonts/Larken-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Larken';
    src: url('assets/fonts/Larken-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Larken';
    src: url('assets/fonts/Larken-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Larken';
    src: url('assets/fonts/Larken-BlackItalic.woff2') format('woff2');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Larken';
    src: url('assets/fonts/Larken-ThinItalic.woff2') format('woff2');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Larken';
    src: url('assets/fonts/Larken-BoldItalic.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}


/* General */

body {
    font-family: 'Larken', sans-serif !important;
}

main {
    background-color: #f7f0e0;
}

.background-grey {
    background-color: #C4C1B9;
}

.background-grey-dark {
    background-color: #585550;
}

.background-black {
    background-color: #1D1D1B;
}

.background-white {
    background-color: #FDFCF8;
}

.background-yellow {
    background-color: #FBD757;
}

.color-yellow {
    color: #FBD757;
}

.color-white {
    color: #FDFCF8;
}

.font-style-italic {
    font-style: italic;
}

.header-2 {
    font-size: 48px;
    font-weight: 300;
    margin: 0;
}

.paragraph-1 {
    font-size: 18px;
    font-family: DMSansCustom, serif;
    font-weight: 500;
}

.separator-line {
    width: 100%;
    height: 1px;
}

.btn-enlace {
    font-size: 36px;
    font-style: italic;
    position: relative;
    font-weight: 300;
    text-decoration: none;
    color: #1D1D1B;
    width: fit-content;
}

.btn-enlace:before {
    content: "";
    position: absolute;
    bottom: -5px;
    width: 20px;
    height: 1px;
    background-color: #1D1D1B;
    transition: width 0.5s ease;
}

.btn-enlace.yellow {
    color: #FBD757;
}

.btn-enlace.yellow:before {
    background-color: #FBD757;
}

.btn-enlace.white {
    color: #FDFCF8;
}

.btn-enlace.white:before {
    background-color: #FDFCF8;
}

.btn-enlace:hover:before {
    width: 100%;
}

.vh-100 {
    height: 100vh;
}

.filter-invert {
    filter: brightness(1) invert(1);
}

.page-header{
    opacity:0.7;
    animation: fadeHeader 1s ease forwards;
}

@keyframes fadeHeader{
    to{
        opacity:1;
    }
}

@media (max-width: 1720px) {
    .header-2 {
        font-size: 42px;
    }

    .paragraph-1 {
        font-size: 18px;
    }

    .btn-enlace {
        font-size: 30px;
    }
}

@media (max-width: 1500px) {
    .header-2 {
        font-size: 36px;
    }

    .paragraph-1 {
        font-size: 16px;
    }

    .btn-enlace {
        font-size: 26px;
    }
}


/* Menú */

.menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.menu > div:first-of-type {
    height: 100vh;
}

.menu-container {
    max-width: 1700px;
    padding: 40px;
}

.menu-idioma .lang-item::marker {
    display: none;
}

.menu-idioma {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    margin-bottom: 0;
    width: 37px;
    height: 28px;
    overflow: hidden;
    transition: width 0.5s ease;
}

.menu-idioma:hover {
    width: 100%;
}

.menu-idioma > li {
    color: #FBD757;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-idioma > li:first-of-type {
    padding-left: 0;
}

.menu-idioma > li:not(:first-of-type) {
    border-left: #FBD757 1px solid;
}

.menu-idioma a {
    text-transform: uppercase;
    color: #FBD757;
    font-size: 26px;
    text-decoration: none;
    font-weight: 100;
}

.menu-enlace {
    text-decoration: none;
    display: block;
    width: fit-content;
    line-height: 1.4;
}

.menu-enlace > span {
    font-style: italic;
    font-weight: 100;
    color: #FBD757;
    font-size: 64px;
    position: relative;
}

.menu-subenlace {
    font-style: italic;
    font-weight: 100;
    color: #FBD757;
    font-size: 46px;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.3;
    max-height:0;
    overflow:hidden;
}

.menu-subenlace.open{
    animation: animationAppearance 1s ease forwards;
}

.menu-subenlace:not(.open){
    animation: animationDisappearance 0.6s ease forwards;
}

@keyframes animationAppearance{
    from{ max-height:0; }
    to{ max-height:200px; }
}

@keyframes animationDisappearance{
    from{ max-height:200px; }
    to{ max-height:0; }
}

.menu-enlace > span:before {
    content: "";
    position: absolute;
    bottom: 0;
    width: 40px;
    background-color: #FBD757;
    height: 1px;
    transition: width 0.5s ease;
}

.menu-enlace > span:hover:before, .menu-enlace.active > span:before {
    width: 100%;
}

.menu-enlace > span > span {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.menu-enlace > span:hover > span, .menu-enlace.active > span > span {
    opacity: 1;
}

.menu-arrow-down {
    width: 40px;
    height: 40px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    cursor: pointer;
}

.menu-logo {
    height: 100px;
}

@media (max-width: 1720px) {
    .menu-idioma a {
        font-size: 24px;
    }

    .menu-enlace {
        line-height: 1.1;
    }

    .menu-enlace > span {
        font-size: 54px;
    }

    .menu-subenlace {
        font-size: 34px;
        line-height: 1.2;
    }

    .menu-logo {
        height: 85px;
    }
}

@media (max-width: 1500px) {
    .menu-idioma a {
        font-size: 22px;
    }

    .menu-enlace {
        line-height: 1.1;
    }

    .menu-enlace > span {
        font-size: 44px;
    }

    .menu-subenlace {
        font-size: 28px;
        line-height: 1.2;
    }

    .menu-logo {
        height: 70px;
    }
}

@media (max-width: 1200px) {
    .menu-desktop {
        position: fixed;
        top: 70px;
        right: 0;
        background-color: white;
        height: calc(100vh - 70px);
        width: 350px;
        padding: 20px;
        border-left: 1px solid rgba(188, 188, 188, 0.54);
        z-index: 9999;
        transform: translateX(100%);
        transition: transform .45s cubic-bezier(.4,0,.2,1);
    }

    .menu-desktop.is-open{
        transform: translateX(0);
    }

    .submenu {
        opacity: 0;
        max-height: 0;
        position: static;
        box-shadow: none;
        transition: opacity .25s ease, max-height .25s ease, visibility 0s linear .25s;
    }

    .submenu > .row > div {
        width: 100%;
    }

    .submenu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: 670px;
        transition-delay: 0s;
    }

    .menu-search-wrapper {
        left: 0;
    }
}

/* Slider */

.slider {
    width: 100%;
    overflow: hidden;
    cursor: grab; /* El cursor ahora está en todo el área */
    touch-action: pan-y; /* Permite scroll vertical normal en móvil */
}

.slider:active {
    cursor: grabbing;
}

.slider-container {
    position: relative;
    overflow: visible; /* Clave para el overflow visual */
    pointer-events: none; /* Deja que el clic pase al padre (.slider) */
}

.slider-track {
    display: flex;
    width: max-content; /* Asegura que el ancho sea el de los hijos */
    pointer-events: auto; /* Los items vuelven a ser interactivos si lo necesitas */
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.slider-track img,
.slider-track a {
    user-select: none;
    -webkit-user-drag: none;
    display: block;
}

.slider-track a {
    cursor: pointer;
}

.slider-arrow {
    pointer-events: auto; /* Las flechas deben ser clicables */
}

.slider-arrow--left,.slider-arrow--right {
    display: none;
}

.slider-arrow--left {
    left: -20px;
}

.slider-arrow--right {
    right: -20px;
}

/* Home */

.home-container {
    max-width: 1450px;
    width: 100%;
    padding: 100px 40px;
}

.slider-restaurantes {
    text-decoration: none;
}

.slider-restaurantes h3 {
    font-size: 36px;
    font-weight: 200;
    margin: 0;
}

.slider-restaurantes p {
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slider-restaurantes span {
    font-size: 48px;
}

.slider-restaurantes-iconos {
    border-top: #FDFCF8 1px solid;
}

.slider-restaurantes-iconos > div {
    max-width: 70px;
}

.slider-restaurantes-iconos span {
    font-family: DMSansCustom, serif;
    font-size: 14px;
    line-height: 1.1;
}

@media (max-width: 1720px) {
    .slider-restaurantes h3 {
        font-size: 32px;
        font-weight: 200;
        margin: 0;
    }

    .slider-restaurantes span {
        font-size: 38px;
    }

    .slider-restaurantes-iconos span {
        font-size: 14px;
        line-height: 1.1;
    }
}

@media (max-width: 1500px) {
    .home-container {
        padding: 80px 40px;
    }

    .slider-restaurantes h3 {
        font-size: 28px;
        font-weight: 200;
        margin: 0;
    }

    .slider-restaurantes span {
        font-size: 34px;
    }

    .slider-restaurantes-iconos span {
        font-size: 12px;
        line-height: 1.1;
    }
}

@media (max-width: 600px) {
    .home-container {
        padding: 100px 30px;
    }
}


/* Footer */

.footer-links {
    font-size: 32px;
    font-weight: 200;
}

.footer-links a {
    text-decoration: none;
}

@media (max-width: 1720px) {
    .footer-links {
        font-size: 32px;
        font-weight: 200;
    }
}

@media (max-width: 1500px) {
    .footer-links {
        font-size: 28px;
        font-weight: 200;
    }
}


/* Slider galería */

.slider-imagenes .slider-track {
    height: 60vh;
    min-height: 400px;
}

.slider-imagenes .slider-track > div {
    flex-shrink: 0;
    height: 100%;
}

.slider-imagenes .slider-track > div:nth-of-type(1) {
    height: 100%;
    aspect-ratio: 848 / 632;
}

.slider-imagenes .slider-track > div:nth-of-type(2) {
    height: 72.15%;
    aspect-ratio: 592 / 456;
}

.slider-imagenes .slider-track > div:nth-of-type(3) {
    height: 72.15%;
    aspect-ratio: 300 / 456;
    align-self: end;
}

.slider-imagenes .slider-track > div:nth-of-type(4) {
    height: 100%;
    aspect-ratio: 600 / 632;
}

.slider-imagenes .slider-track > div:nth-of-type(5) {
    height: 47.47%;
    aspect-ratio: 592 / 300;
}

.slider-imagenes .slider-track > div:nth-of-type(6) {
    height: 100%;
    aspect-ratio: 632 / 632;
}


/* Restauración */

.restauracion-enlaces a {
    text-decoration: none;
}

.restauracion-enlaces.color-white a {
    color: #FDFCF8;
}

.restauracion-enlaces.color-white img {
    filter: invert(1);
}

.restauracion-enlaces.color-black a {
    color: #1D1D1B;
}

.restaurantes-imagenes {
    height: 100vh;
    min-height: 600px;
}

@media (max-width: 992px) {
    .restaurantes-imagenes {
        height: auto;
    }
}