@font-face {
    font-family: 'Diatype';
    src: url('fonts/diatype.woff2') format('woff2'),
        url('fonts/diatype.woff') format('woff'),
        url('fonts/diatype.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-white: #ffffff;
    --font-main: 'Diatype', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: var(--font-main);
    font-size: 1.1rem;
}

/* 1. Web en general */
.viewport-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* CURSOR PERSONALIZADO */
.custom-cursor {
    position: fixed;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: difference;
    width: 175px;
    height: 175px;
    border-radius: 50%;
    background-color: white;
    transition: transform 350ms ease;
    transform: translate(-50%, -50%) scale(.3);
    z-index: 1000;
}

.custom-cursor--link {
    transform: translate(-50%, -50%) scale(1);
}

@media (pointer: fine) {

    body,
    a,
    button {
        cursor: none !important;
    }
}

/* 2. Menu */
.top-nav {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    max-width: 1920px;
    transform: translate(-50%, 0);
}

.top-nav.visible {
    opacity: 1;
    pointer-events: auto;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 25px;
}

.top-nav a {
    color: #FFF;
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: lowercase;
    font-weight: 400;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.top-nav:not(.in-selection) a:hover {
    opacity: 0.5;
}

.top-nav a.inactive {
    opacity: 0.5;
}

.top-nav a.inactive:hover {
    opacity: 1;
}

/* 3. Boton reservas */
.boton-reservas {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background-color: #FFF;
    color: #000;
    backdrop-filter: blur(5px);
    z-index: 200;
    cursor: pointer;
    transition: all 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    text-decoration: none;
}

.nosotros-active .boton-reservas,
.nav-active-carta .boton-reservas {
    background-color: #000;
    color: #FFF;
}

/* 4. Home (mask-overlay) */
.mask-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    z-index: 5;
    mix-blend-mode: screen;
    transition: all 0.8s ease-in-out;
    pointer-events: none;
    background-color: transparent;
}

#logo {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 10vw;
    animation: containerScale 5.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
    transition: top 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.logoa {
    animation: logoAWidth 5s forwards;
}

.logob {
    margin: -0.04rem 0;
    animation: logoBWidth 5s forwards;
}

#logo svg {
    width: 100%;
    height: auto;
    display: block;
    fill: #FFF;
    transition: fill 0.8s ease-in-out;
}

#logo.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

@keyframes containerScale {

    0%,
    65% {
        width: 14vw;
        transform: translate(-50%, -50%);
    }

    100% {
        width: 98vw;
        max-width: 1920px;
        transform: translate(-50%, -50%);
    }
}

@keyframes logoAWidth {

    0%,
    55% {
        width: 100%;
    }

    80%,
    100% {
        width: 89%;
    }
}

@keyframes logoBWidth {

    0%,
    10% {
        clip-path: inset(0 0% 0 0%);
        opacity: 1;
    }

    60%,
    100% {
        clip-path: inset(0 50% 0 50%);
        opacity: 1;
    }
}

/* 5. Nosotros */
.nosotros-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 50;
    transform: translateY(100%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    mix-blend-mode: screen;
    pointer-events: none;
    opacity: 1;
}

.nosotros-layer.active {
    transform: translateY(0);
    pointer-events: auto;
}

.nosotros-layer.solid-state {
    mix-blend-mode: normal;
}

.nosotros-text {
    color: #000;
    font-size: 3rem;
    text-transform: lowercase;
    font-weight: 400;
    text-align: center;
    max-width: 1920px;
    width: 100%;
    transform: translateY(-2vh);
}

.nosotros-active .top-nav a {
    color: #000;
}

.nosotros-active .top-nav a.active,
.nosotros-active .top-nav a:hover {
    color: #444;
}

.nosotros-detail {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    /*width: 25vw;*/
    width: 450px;
    height: 70vh;
    background-color: #0055ff;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
    z-index: 60;
    pointer-events: auto;
}

.nosotros-detail.active {
    opacity: 1;
    visibility: visible;
}

.detail-main-word {
    color: #fff;
    font-size: 3rem;
    text-transform: lowercase;
    margin: 0;
    line-height: normal;
    font-weight: 400;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.detail-subtext {
    color: #fff;
    font-size: 1rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
}

.nosotros-text.all-white {
    color: #fff !important;
}

#hover-vasca,
#hover-arraigadas {
    cursor: pointer;
    display: inline-block;
}

/* 6. Donde */
.donde-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: #fff;
    z-index: 50;
    transform: translateY(-100%);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    overflow: hidden;
}

.donde-layer.active {
    transform: translateY(0);
    pointer-events: auto;
}

.donde-active .top-nav a {
    color: #000;
}

.donde-active .top-nav a.active,
.donde-active .top-nav a:hover {
    color: #444;
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 55;
    padding-top: 175px;
}

.map-marker-circle {
    width: 40px;
    height: 40px;
    background-color: #000;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease 1s;
    position: relative;
}

.donde-layer.active .map-marker-circle {
    opacity: 1;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.map-address {
    margin-top: 2vh;
    color: #000;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease 1.5s;
    text-align: center;
}

.donde-layer.active .map-address {
    opacity: 1;
}

.btn-gmaps {
    margin-top: 2vh;
    background-color: #000;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: lowercase;
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.5s ease 2s;
    pointer-events: none;
}

.donde-layer.active .btn-gmaps {
    opacity: 1;
    pointer-events: auto;
}

#map-donde {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease 0.5s;
}

.donde-layer.active #map-donde {
    opacity: 1;
}

/* 7. Carta */
.carta-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: #fff;
    z-index: 50;
    transform: translateY(100%);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.carta-layer.active {
    transform: translateY(0);
    pointer-events: auto;
}

.carta-content {
    width: 100%;
    max-width: 1920px;
    height: 100%;
    position: relative;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carta-title {
    font-size: 3rem;
    color: #000;
    text-transform: lowercase;
    font-weight: 400;
    position: absolute;
    top: 7%;
}

.platos-col {
    position: absolute;
    width: 30%;
    font-size: 0.9rem;
    color: #000;
    opacity: 0;
    transition: all 0.8s ease-out 0.5s;
}

.platos-col span {
    padding-left: 0.3rem;
    display: inline-block;
    font-size: 0.9rem;
}

.nav-active-carta .platos-col {
    opacity: 1;
}

.platos-left {
    left: 10%;
    top: 110%;
    opacity: 0;
    text-align: right;
}

.nav-active-carta .platos-left {
    top: 10%;
    opacity: 1;
    text-align: right;
}

.platos-col-align {
    display: inline-block;
    text-align: left;
}

.platos-right {
    right: 10%;
    top: -50px;
    opacity: 0;
}

.nav-active-carta .platos-right {
    top: 10%;
    opacity: 1;
}

.platos-col ul {
    list-style: none;
    margin-bottom: 2rem;
}

.platos-col li {
    margin-bottom: 8px;
}