html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
:root {
    --nav-pad: 10px;
    --icon-h: clamp(36px, 5vw, 85px);
    --left-w: calc(
        var(--icon-h) + 8 * var(--nav-pad)
    ); /* fallback, JS overrides it */
}
body {
    background-color: black;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

@font-face {
    font-family: Doto;
    src: url(./../public/Fonts/Doto-Oliver/Doto_Rounded-Black.ttf);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    padding: 0;
    font-family: Doto;
    font-weight: normal;
}

main {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ---------- DESKTOP NAV ---------- */

nav.desktop-nav {
    background-color: #00ff8b;
    display: flex;
    align-items: stretch; /* left-02 takes the full height of nav-left */
    overflow: hidden;
}

#nav-left {
    flex: 1 1 0;
    min-width: 0; /* allows it to shrink so it actually wraps */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: var(--nav-pad);
    box-sizing: border-box;
}

#nav-left > div {
    min-width: 0;
    max-width: 100%;
}
#logo,
#right-02 {
    display: flex;
    flex-wrap: wrap; /* the items inside right-02 wrap onto new rows on narrow screens */
    align-items: center;
    gap: 20px;
    min-width: 0;
    max-width: 100%;
}

#logo img,
#right-02 img,
#right-02 lottie-player {
    height: var(--icon-h);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0; /* keep icons at their size, wrap instead of squeezing them */
    display: block;
}

#fechas {
    font-size: 1em;
    text-transform: uppercase;
    text-wrap: nowrap;
}

#mobile-fechas {
    font-size: 1.3em;
    text-transform: uppercase;
    text-wrap: nowrap;
}

#left-02 {
    flex: 0 0 var(--left-w);
    position: relative;
    background-color: #94ffce;
}

/* the image fills whatever height the nav ends up with */
#left-02 img {
    position: absolute;
    inset: var(--nav-pad);
    width: calc(100% - 2 * var(--nav-pad));
    height: calc(100% - 2 * var(--nav-pad));
    object-fit: contain;
}

#mobile-icons {
    display: none;
    background-color: #00ff8b;
    padding: 20px;
}
#banner span.cursor::after {
    content: "|";
    margin-left: 2px;
    animation: blink 1s steps(1) infinite;
}

/* solid cursor while typing */
#banner span.cursor.typing::after {
    animation: none;
}
#mobile-banner span.cursor::after {
    content: "|";
    margin-left: 2px;
    animation: blink 1s steps(1) infinite;
}

/* solid cursor while typing */
#mobile-banner span.cursor.typing::after {
    animation: none;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

#mobile-icons img {
    /* height: 65px; */
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0; /* keep icons at their size, wrap instead of squeezing them */
    display: block;
}

nav.mobile-nav {
    display: none;
    background-color: #00ff8b;
    box-sizing: border-box;
}

#mobile-nav-left {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 20px;
    gap: 10px;
}

#mobile-logo {
    width: 100%;
}

#mobile-logo img {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0; /* keep icons at their size, wrap instead of squeezing them */
    display: block;
}

#mobile-right-02 {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}
#mobile-right-02 img,
#mobile-right-02 lottie-player {
    /* flex: 0 0 auto;
    height: var(--icon-h);
    width: auto;
    aspect-ratio: 1 / 1; */
    /* height: var(--icon-h);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0; 
    display: block; */
}

#mobile-left-02 {
    flex: 0 0 var(--left-w);
    position: relative;
    background-color: #94ffce;
}

#mobile-left-02 img {
    position: absolute;
    inset: var(--nav-pad);
    width: calc(100% - 2 * var(--nav-pad));
    height: calc(100% - 2 * var(--nav-pad));
    object-fit: contain;
}

#mobile-banner {
    display: none;
}

#mobile-banner h3 {
    font-size: 0.7em;
}

/* nav-left wraps: nav gets taller, left-02 gets wider so its image can grow */
@media (max-width: 1081px) {
    :root {
        --left-w: clamp(132px, 25vw, 260px);
        --icon-h: clamp(70px, 5vw, 85px);
    }
    #fechas {
        font-size: 0.8em;
    }
    nav.desktop-nav {
        display: none;
    }
    nav.mobile-nav {
        display: flex;
        align-items: stretch; /* left-02 takes the full height of nav-left */
        justify-content: space-between;
        overflow: hidden;
    }
    #banner {
        display: none !important;
    }

    #mobile-banner {
        display: block;
        background-color: black;
        padding: 20px;
        color: #00ff8b;
    }
}
@media (max-width: 768px) {
    #mobile-icons {
        display: flex;
    }
    #mobile-fechas {
        font-size: 0.7em;
    }
    :root {
        --icon-h: clamp(36px, 5vw, 85px);
    }
}

/* ---------- BANNER / VIDEO / FOOTER ---------- */

#banner {
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00ff8b;
}

video {
    width: 100%;
    height: auto;
}

footer {
    background-color: black;
    color: #00ff8b;
    text-align: center;
    padding: 20px;
    min-height: 50px;
    display: flex;
    box-sizing: border-box;
    height: 100px;
}

footer img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}
