@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Bricolage Grotesque", sans-serif;;
    background-color: #e3e3db;
}

p {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #15161b;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    clip-path: polygon(0% 45%, 0% 45%, 0% 55%, 0% 55%);
    will-change: clip-path;
}

.progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 25vw;
    padding: 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffbb00;
}

.video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100svh;
    background-color: #000;
    clip-path: polygon(20% 20%, 80% 20%, 80% 80%, 20% 80%);
    will-change: transform, clip-path;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    opacity: 0.85;
    z-index: 0;
}

.video-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    /* Negro con opacidad */
    z-index: 1;
    /* 👈 encima del video */
    opacity: 0.5;
}

nav,
footer {
    width: 100%;
    padding: 1.5em;
    display: flex;
    justify-content: space-between;
    color: #fff;
    mix-blend-mode: difference;
    z-index: 2;
}

footer {
    justify-content: flex-end;
    gap: 1em;
}

.menu-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.menu-link:hover,
.menu-link:active {
  color: #ffbb00;
}

.menu-link.active {
  color: #ffbb00;
}


.header {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header h1 {
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    font-size: 7vw;
    line-height: 0.85;
    letter-spacing: -0.075rem;
    color: #fff;
}

.header h2 {
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    font-size: 3vw;
    line-height: 0.85;
    letter-spacing: -0.075rem;
    color: #b8820c;
    /* ✅ corregido */
}

.header h2 span {
    position: relative;
    display: block;
    transform: translateY(100%);
    will-change: transform;
}

.header p {
    margin-top: 1em;
    color: #ffbb00;
    /* ✅ corregido */
}

.coordinates {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100vw;
    padding: 1.5em;
    display: flex;
    justify-content: space-between;
    align-self: center;
    color: #ffbb00;
}

.logo {
    position: absolute;
    bottom: 0;
    padding: 1.5em;
    left: 50%;
    display: flex;
    transform: translateX(-50%);
    will-change: transform;
    color: #fff;
    mix-blend-mode: difference;
    z-index: 2;
}

.char.anim-out h1 {
    position: relative;
    will-change: transform;
}

.header h1,
.header p,
.coordinates p,
.char.anim-out {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.header span,
.coordinates p span {
    position: relative;
    display: block;
    transform: translateY(100%);
    will-change: transform;
}

@media(max-width: 900px) {
    p {
        font-size: 13px;
    }

    .progress-bar {
        justify-content: flex-end;
    }

    .progress-bar p:nth-child(1) {
        display: none;
    }

    .header h1 {
        /* ✅ corregido */
        font-size: 10vw;
    }

    .coordinates {
        top: 65%;
        justify-content: center;
        gap: 1em;
        color: #fff;
        opacity: 0.5;
    }
}

/* ===== Ajustes para pantallas pequeñas ===== */
@media (max-width: 768px) {

    .header h1,
    .header h2 {
        font-size: 8vw;
        /* más pequeño que en desktop */
        line-height: 1.1;
        /* más aire entre líneas */
    }

    .header p {
        font-size: 3.5vw;
    }

    footer {
        flex-wrap: wrap;
        /* permite que los items bajen a otra línea */
        justify-content: center;
        font-size: 3vw;
        /* texto más pequeño */
        gap: 0.5em;
    }

    nav {
        justify-content: center;
        /* centrar los puntos */
        gap: 0.5em;
    }
}

/* ===== Ajustes para móviles muy pequeños ===== */
@media (max-width: 480px) {

    .header h1,
    .header h2 {
        font-size: 10vw;
    }

    .header p {
        font-size: 4vw;
    }

    footer {
        font-size: 12px;
        gap: 0.4em;
    }
}