: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;
}

/* ---------- NAV ---------- */

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;
    overflow-wrap: anywhere;
}

#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;
}

#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;
}

@media (max-width: 768px) {
    #mobile-icons {
        display: flex;
    }
}

/* nav-left wraps: nav gets taller, left-02 gets wider so its image can grow */
@media (max-width: 1000px) {
    :root {
        --left-w: clamp(230px, 25vw, 260px);
        --icon-h: clamp(70px, 5vw, 85px);
    }
    #fechas {
        font-size: 0.8em;
    }
}

/* ---------- 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;
}
