@font-face {
    font-family: typo;
    src: url(font/Typo\ Formal\ Regular\ Demo.otf);
}

@font-face {
    font-family: typo2;
    src: url(font/Typo\ Formal\ Light\ Demo.otf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: 100;
}

html, body, #contenido {
    width: 100%;
    min-height: 100dvh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    background-color: white;
    font-family: typo;
    letter-spacing: 1.5px;
}

#contenido.blur {
    filter: blur(6px);
    transition: filter .3s ease;
}

/* HEADER */

header {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-bottom: 5px solid black;

    #btn-atras {
        position: absolute;
        width: 40px;
        height: 40px;
        left: .5em;
        background: none;
        border: none;
        opacity: 0;
        transition: opacity .4s ease;
    }

    #btn-micro {
        position: absolute;
        bottom: -5px;
        right: 1.5em;
        background: none;
        border: none;
    }

    h1 {
        font-size: 1.3em;
    }
}

#btn-micro img {
    width: 25px;
}

.blur {
    filter: blur(6px);
}

.overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(2px);
    z-index: 9999 !important;
}

.overlay.active {
    display: flex;
}

.overlay.active button {
    position: relative;
    padding: .3em 1em;
    border: 3px solid black;
    border-radius: 3rem;
    background: none;
    color: black;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1em;
    transition: all .3s ease;
}

.overlay.active button:active {
    background-color: black;
    color: white;
}

.copiado {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.copiado::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
}

.mostrar {
    opacity: 1;
    transform: translateX(-50%) translateY(-3px);
}

/* MAIN */

main {
    position: relative;
    width: 100vw;
    display: flex;
    flex-direction: column;

    section {
        position: relative;
        width: 100%;
        height: 50%;
        background-color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 2;
    }
}

.zigzag {
    position: fixed;
    top: 50%;
    width: 100vw;
    pointer-events: none;
    z-index: 3;
}

.zigzag1 {
    display: none;
}

section > h2 {
    font-size: 2em;
}

nav {
    position: absolute;
    display: flex;
    z-index: 0;
}

nav#nav-directo {
    bottom: 8%;
    left: 30%;
}

nav#nav-estudio {
    top: 10%;
    left: 20%;
}

ul {
    display: flex;
    flex-direction: column;
    gap: .7em;
    list-style: none;
}

ul li a {
    position: relative;
    color: black;
    text-decoration: none;
    font-size: 1.3em;
    display: inline-block;
}

/* Animaciones de desplazamiento */

/* Cuando se van fuera */

#section-directo.offscreen {
    transform: translateX(100%);
}

#section-estudio.offscreen {
    transform: translateX(-100%);
}


/* FOOTER */

footer {
    position: absolute;
    bottom: 5px;
    right: 20px;
    display: flex;
    gap: 5px;
    z-index: 99;

    small {
        color: white;
        text-shadow: -1px -1px 0px black;
    }
}

footer > span {
    position: absolute;
    left: -20px;
    bottom: -1px;
    text-shadow: -1px -1px 0px black;
}

/* Responsive */

/* TABLET */

@media (min-width: 768px) {

    /* HEADER */

    header {
        padding: .8em;

    #btn-atras {
        width: 60px;
        height: 60px;
        left: 1em;
    }

    #btn-micro {
        bottom: -5px;
        right: 4em;
    }

        h1 {
            font-size: 2.3em;
        }
    }

    #btn-micro img {
        width: 35px;
    }

    .overlay.active button {
        font-size: 2em;
    }

    /* MAIN */

    section > h2 {
        font-size: 3em;
    }

    nav#nav-directo {
        bottom: 5%;
        left: 33%;
    }

    nav#nav-estudio {
        top: 15%;
        left: 25%;
    }

    ul {
        gap: 1.5em;
    }

    ul li a {
        font-size: 2.3em;
    }
}

/* DESKTOP */

@media (min-width: 1024px) {

    /* Estilos generales para el cursor */

    h1,h2,footer {
        cursor: default;
    }

    /* HEADER */

    header {
        padding: .5rem;

        #btn-atras {
            width: 100px;
            height: 100px;
            left: 1em;
            cursor: pointer;
        }

        #btn-micro {
        position: absolute;
        top: initial;
        bottom: -5px;
        right: 5em;
        cursor: pointer;
    }

        h1 {
            font-size: 4em;
        }
    }

    #btn-micro img {
        width: 45px;
    }

    .overlay.active button {
        cursor: pointer;
        font-size: 3em;
    }

    .overlay.active button:hover {
        background-color: black;
        color: white;
    }

    /* MAIN */

    main {
        width: 100vw;
        display: flex;
        flex-direction: row;

        section {
            width: 50%;
            height: 100%;
            cursor: pointer;
        }
    }

    .zigzag {
        display: none;
    }

    .zigzag1 {
        position: fixed;
        display: block;
        left: 50%;
        height: 100%;
        pointer-events: none;
        z-index: 3;
        transform: translateX(-50%);
        transition: transform 0.8s ease-in-out;
    }

    /* Zigzag desplazado según lado activo */

    .zigzag1.left {
        transform: translateX(-20em);
    }

    .zigzag1.right {
        transform: translateX(10em);
    }

    section > h2 {
        font-size: 3.5em;
    }

    nav#nav-directo {
        bottom: auto;
        left: 55%;
        top: 5%;
    }

    nav#nav-estudio {
        left: 7%;
    }

    ul {
        gap: 2.5em;
    }

    ul li a {
        font-size: 3.5em;
        transition: color 0.3s ease;
    }

    ul li a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 5px;
        background: black;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.5s ease-in-out;
    }

    nav ul li a:hover::after {
        transform: scaleX(1);
    }

    /* Animaciones de desplazamiento */

    /* Posiciones activas */

    #section-directo.active {
        transform: translateX(-20%);
    }

    #section-estudio.active {
        transform: translateX(20%);
    }
    
    /* Cuando se van fuera */

    #section-directo.offscreen {
        transform: translateX(-100%);
    }

    #section-estudio.offscreen {
        transform: translateX(100%);
    }

    /* Pequeño fade */

    #section-directo.offscreen,
    #section-estudio.offscreen {
        transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
    }
}