:root {
    --negro         : #000000;
    --blanco        : #ffffff;
    --azul1         : #4CC0E0;
    --azul2         : #29A2D1;
    --verdeClaro    : #5FBC2E;
}

/* Navegacion */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    transition: 0.7s;
}

header.abajo nav {
    padding: 1rem 2rem;
    transition: 0.7s;
}

header.abajo .links-navbar {
    top: 75px;
}

nav {
    padding: 2rem;
    background-color: var(--blanco);
    box-shadow: 0 3px 25px rgba(0, 0, 0, 0.37);
    transition: 0.7s;
}

.contenedor-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.contenedor-navbar ul {
    list-style: none;
}

.logo img {
    width: 10rem;
    height: 2.5rem;
}

.links-navbar {
    display: flex;
    align-items: center;
    gap: 2.8rem;
    list-style: none;
    transition: all 0.3s ease;
    margin: 0;
}

.links-navbar li {
    float: left;
    position: relative;
}

.links-navbar a {
    color: var(--negro);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: block;
    font-family: 'Poppins Regular';
    font-weight: 600;
}

.links-navbar a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
    padding: 1rem;
    border-bottom: 3px solid var(--negro);
    color: var(--azul2);
}

.links-navbar .link-contacto:hover {
    border-bottom: none;
}

.links-navbar .activo {
    color: var(--azul1);
}

.links-navbar .activo-contacto {
    background-color: var(--verdeClaro);
}

.contenedor-navbar .links-navbar ul {
    position: absolute;
    right: 0;
    width: 300px;
    background-color: var(--blanco);
    display: none;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 25px rgba(0, 0, 0, 0.37);
}

.contenedor-navbar .links-navbar ul li a {
    font-size: 15px;
    text-decoration: capitalize;
}

.contenedor-navbar .links-navbar ul li {
    width: 100%;
    padding: 0.5rem 0;
}

.contenedor-navbar .links-navbar li:hover > ul {
    display: initial;
}

.contenedor-navbar .links-navbar li:nth-child(4) {
    margin-right: 2rem;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--negro);
    font-size: 1.5rem;
    cursor: pointer;
}

.btn-contacto {
    background-color: var(--verdeClaro);
    color: var(--blanco);
    border-radius: 1rem;
    padding: 0.3rem 2rem;
}

@media (max-width: 1500px) {
    .contenedor-navbar .links-navbar li:nth-child(4) {
        margin-right: 1rem;
    }
}

@media (max-width: 1200px) {
    .menu-btn {
        display: block;
    }

    .links-navbar {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: var(--blanco);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        clip-path: circle(0px at 90% -10%);
        pointer-events: none;
        gap: 0;
    }

    .links-navbar.active {
        clip-path: circle(1500px at 90% -10%);
        pointer-events: all;
    }

    .links-navbar li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
        padding: 1rem 0rem;
        width: 100%;
        text-align: center;
    }

    .links-navbar li a:hover {
        background-color: var(--negro);
        color: var(--blanco);
        padding: 1rem 5rem;
    }

    .links-navbar.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Se le agrega animacion de retraso al entrar a los links */
    .links-navbar li:nth-child(1) {
        transition-delay: 0.1s;
    }
    .links-navbar li:nth-child(2) {
        transition-delay: 0.2s;
    }
    .links-navbar li:nth-child(3) {
        transition-delay: 0.3s;
    }
    .links-navbar li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .links-navbar .link-contacto {
        width: 100%;
    }

    .links-navbar .link-contacto .btn-contacto {
        border-radius: 0;
    }

    .contenedor-navbar .links-navbar ul {
        position: relative;
        width: 100%;
        left: 0;
        box-shadow: none;
        padding-top: 0;
        top: -20px;
        display: contents;
    }

    .contenedor-navbar .links-navbar ul li {
        background-color: rgba(226, 226, 226, 0.7);
    }

    .contenedor-navbar .links-navbar li:hover > ul {
        z-index: -1;
    }

    .contenedor-navbar .links-navbar li:nth-child(4) {
        margin-right: 0;
    }

    .change-space-serv {
        margin-bottom: 25px;
    }
}

.btn-contacto:hover {
    background-color: var(--azul1);
}

@media (max-width: 300px) {
    nav {
        padding: 1rem;
    }

    header.abajo nav {
        padding: 1rem;
    }
}
