:root {
    --color-red: #ff0000;
    --color-orange: #ff7f00;
    --color-yellow: #ffff00;
    --color-green: #00ff00;
    --color-blue: #0000ff;
    --color-indigo: #4b0082;
    --color-violet: #9400d3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Fira Code", monospace;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #121212 !important;
}

main {
    flex: 1;
}

/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ------------------------------------------ HEADER --------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */

header {
    min-height: 80px;
    width: 100%;
    background: #1f1f1f;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav {
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

nav ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 1.2em;
    padding: 5px 10px 15px;
    position: relative;
    transition: color 0.3s ease-in-out, font-weight 0.3s ease-in-out;
    align-items: center;
    justify-content: center;
}

nav ul li:not(:first-child) a:hover {
    color: #fff;
    font-weight: bold;
}

nav ul li:not(:first-child) a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(
        to right,
        var(--color-red),
        var(--color-orange),
        var(--color-yellow),
        var(--color-green),
        var(--color-blue),
        var(--color-indigo),
        var(--color-violet),
        var(--color-red)
    );
    background-size: 200% 100%;
    animation: rainbowBorder2 2s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

nav ul li:not(:first-child) a:hover::after {
    opacity: 1;
}

@keyframes rainbowBorder2 {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ------------------------------------------ FOOTER --------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */

footer {
    width: 100%;
    background: #1f1f1f;
    color: white;
    text-align: center;
    padding: 10px 0;
}

footer p {
    margin-top: 30px;
}

footer h3 {
    margin-bottom: 20px;
}

.nav-footer ul li a:hover {
    color: #fff;
    font-weight: bold;
}

.nav-footer ul li a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(
        to right,
        var(--color-red),
        var(--color-orange),
        var(--color-yellow),
        var(--color-green),
        var(--color-blue),
        var(--color-indigo),
        var(--color-violet),
        var(--color-red)
    );
    background-size: 200% 100%;
    animation: rainbowBorder2 2s linear infinite;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.nav-footer ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: transparent;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ------------------------------------------ DISEÑO --------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------- */

