:root{
    --blue: #1500D4;
    --blue-dark: #090059;
    --purple: #9F00D4;
    --green: #18DB1F;
    --red: #ff0000;
    --light-gray: #999;
    --text-muted: #978CFF;
    --back-main: #F4F4F4;
    --font-primary: "Inter", sans-serif;
    --font-secondary: "Kalam", cursive;
}

html{
    font-size: 100%;
    scroll-behavior: smooth;
}

button{
    font-family: var(--font-primary);
}

body{
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
}

a{
    color: black;
    text-decoration: none;
}

p{
    margin: 0;
    padding: 0;
}

header{
    background-color: white;
    padding: 0 3%;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    position: relative;
    z-index: 10;
}

nav{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logoNav{
    width: 10.5%;
}

.navLinks{
    display: flex;
    justify-content: space-between;
    min-width: 35%;
}

.navLinks a {
    position: relative;
    padding-bottom: 4px;
    font-weight: 400;
    text-decoration: none;
    font-size: 1.1rem;
}

.navLinks a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: var(--purple);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navLinks a:hover::after {
    opacity: 1;
}

.navLinks #pageSelect::after {
    opacity: 1;
}

.formNav{
    display: flex;
    gap: 10px;
    background-color: var(--blue);
    padding: 0.8%;
    border-radius: 50px;
    min-width: 20%;
}

.formNav input {
    font-family: var(--font-primary);
    background-color: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    width: 80%;
}

.formNav input::placeholder {
    color: var(--text-muted);
    font-size: 1rem;
}

.formNav input:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

.linkNavLogin{
    width: 2.8%;
}

.iconNav{
    width: 100%;
}

.menuHamburguer {
    display: none;

    width: 42px;
    height: 42px;

    border: none;
    background: transparent;

    cursor: pointer;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 5px;
}

.menuHamburguer span {
    width: 26px;
    height: 3px;

    background-color: var(--blue);

    border-radius: 10px;

    transition: transform 0.3s ease,
                opacity 0.3s ease;
}

main{
    background-color: var(--back-main);
}

.contact {
    width: 100%;
    padding: 40px 0;
    background-color: var(--blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.titleContact {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.primaryTitleContact {
    margin: 0;

    color: white;

    font-weight: 400;
    font-size: 2.2rem;
}

.boldItalic {
    font-weight: 600;
    font-style: italic;
}

.containersContact {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.containerContact {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.linearLine{
    padding: 40px 0;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    background-color: var(--blue);
}

.linearLine::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        to right,
        var(--red) 0%,
        var(--red) 10%,
        var(--green) 10%,
        var(--green) 20%,
        var(--purple) 20%,
        var(--purple) 30%,
        var(--red) 30%,
        var(--red) 40%,
        var(--green) 40%,
        var(--green) 50%,
        var(--purple) 50%,
        var(--purple) 60%,
        var(--red) 60%,
        var(--red) 70%,
        var(--green) 70%,
        var(--green) 80%,
        var(--purple) 80%,
        var(--purple) 90%,
        var(--red) 90%,
        var(--red) 100%
    );
}

.phones {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-evenly;

    gap: 30px;
}

.phone {
    display: flex;
    align-items: center;

    gap: 8px;

    color: white;

    font-weight: 400;
    font-size: 1.7rem;
    font-style: italic;
}

.iconPhone {
    width: 25px;
    height: 25px;

    padding: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background-color: var(--blue-dark);
}

.iconPhone img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.containerContact h3 {
    margin: 0;

    color: white;

    font-weight: 400;
    font-size: 1.5rem;
}

.socialIcon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    transition: transform 0.3s ease;
}

.socialIcon img {
    width: 60%;
    height: 60%;

    object-fit: contain;
}

.socialIcon:hover {
    transform: scale(1.15);
}

.facebook {
    background-color: #3E30FF;
}

.instagram {
    background-color: #ff0000;
}

.whatsapp {
    background-color: #18DB1F;
}

.linkedin {
    background-color: #3E30FF;
}

.phones::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -5px;

    width: 100%;
    height: 5px;

    background: linear-gradient(
        to right,
        #ff0000 0%,
        #ff0000 18%,

        #18DB1F 18%,
        #18DB1F 37%,

        #3E30FF 37%,
        #3E30FF 56%,

        #ff0000 56%,
        #ff0000 74%,

        #18DB1F 74%,
        #18DB1F 92%,

        #3E30FF 92%,
        #3E30FF 100%
    );
}

.footer {
    width: 100%;
    padding: 30px 0 0 0;

    background-color: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 10px;
}

.footerLogo {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 10px;
}

.footerLogo img {
    width: 16%;
}

.footerContent {
    width: 90%;
    display: flex;
    padding: 0 0 30px 0;
    justify-content: space-evenly;
    align-items: flex-start;
}

.footerColumn {
    min-width: 130px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footerColumn h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
}

.footerColumn h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: var(--purple);
}

.footerColumn a {
    color: #111;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footerColumn a:hover {
    color: var(--purple);
}

.newsletter {
    width: 390px;
    padding: 20px;
    border-radius: 14px;
    background-color: var(--purple);
    color: white;
}

.newsletter h3 {
    margin: 0 0 10px 0;

    font-size: 1.2rem;
    font-weight: 600;
}

.newsletter p {
    margin: 0 0 15px 0;

    font-size: 1rem;
}

.newsletterForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.newsletterForm input {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.newsletterForm input::placeholder {
    color: #aaa;
}

.newsletterForm button {
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    background-color: var(--green);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.newsletterForm button:hover {
    background-color: #38e43d;
}

.footerBottom {
    width: 100%;
    padding: 15px 0px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #ddd;
    font-size: 0.8rem;
    color: rgb(85, 85, 85);
    background-color: var(--back-main);
}

.footerBottom p {
    margin: 0;
}

.footerBottom a {
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 1200px) {

    .logoNav {
        width: 12%;
    }

    .navLinks {
        min-width: 40%;
    }

    .navLinks a {
        font-size: 1.2rem;
    }

    .formNav {
        min-width: 22%;
    }

    .iconNav {
        width: 3.2%;
    }

    .phone {
        font-size: 1.4rem;
    }

    .phones {
        gap: 20px;
    }

    .newsletter {
        width: 350px;
    }

}

/*900px*/

@media (max-width: 900px) {

    header {
        padding: 4px 4%;
    }

    nav {
        position: relative;

        display: grid;
        grid-template-columns: auto 1fr auto auto;

        align-items: center;

        gap: 12px;

        width: 100%;
    }

    .logoNav {
        width: 130px;
        justify-self: start;
    }

    .navLinks {
        position: absolute;
        top: calc(100% + 20px);
        left: 0;
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        background-color: white;
        border-radius: 10px;
        box-shadow: rgba(0, 0, 0, 0.08) 0px 5px 10px;
        transition:
            max-height 0.4s ease,
            opacity 0.3s ease,
            padding 0.3s ease;
        z-index: 100;
    }

    .navLinks.active {
        max-height: 400px;
        padding: 20px 0;
        opacity: 1;
    }

    .navLinks a {
        width: 100%;
        padding: 12px 0;
        text-align: center;
        border: none;
        font-size: 1rem;
    }

    .navLinks a::after {
    display: none;
    }

    .formNav {
        width: 60%;
        min-width: 0;

        justify-self: center;

        box-sizing: border-box;

        padding: 8px 14px;
    }

    .formNav img {
        width: 20px;
        flex-shrink: 0;
    }

    .formNav input {
        width: 100%;
        min-width: 0;
    }

    .iconNav {
        width: 32px;
        justify-self: end;
        flex-shrink: 0;
    }
    
    .linkNavLogin{
        display: none;
    }

    .menuHamburguer {
        display: flex;
        width: 42px;
        height: 42px;
        padding: 0;
        border: none;
        background-color: transparent;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        justify-self: end;
    }

    .menuHamburguer span {
        width: 25px;
        height: 3px;

        background-color: var(--blue);

        border-radius: 10px;

        transition:
            transform 0.3s ease,
            opacity 0.3s ease;
    }

    .menuHamburguer.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menuHamburguer.active span:nth-child(2) {
        opacity: 0;
    }

    .menuHamburguer.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


    .contact {
        padding: 35px 0;
        gap: 10px;
    }

    .containersContact {
        width: 100%;
    }

    .phones {
        flex-wrap: wrap;

        justify-content: center;

        gap: 25px 40px;
    }

    .phone {
        font-size: 1.3rem;
    }

    .containerContact {
        flex-wrap: wrap;
    }

    .containerContact h3 {
        font-size: 1.3rem;
    }

    .footerContent {
        width: 90%;

        flex-wrap: wrap;

        justify-content: center;

        gap: 40px;
    }

    .newsletter {
        width: 100%;
        max-width: 500px;

        box-sizing: border-box;
    }

}

/*600px*/

@media (max-width: 600px) {

    header {
        padding: 5px 5%;
    }

    nav {
        justify-content: center;
    }

    .logoNav {
        width: 100px;
    }

    .navLinks {
        gap: 15px;
        flex-wrap: wrap;
    }

    .navLinks a {
        font-size: 0.85rem;
    }

    .formNav {
        width: 80%;
        min-width: 0;
        box-sizing: border-box;
        padding: 10px 15px;
    }

    .formNav input {
        width: 100%;
        font-size: 0.95rem;
    }

    .formNav input::placeholder {
        font-size: 0.9rem;
    }

    .iconNav {
        width: 25px;
    }

    .contact {
        padding: 30px 0;
        gap: 15px;
    }

    .primaryTitleContact {
        font-size: 1.8rem;
    }

    .containersContact {
        width: 100%;
        gap: 25px;
    }

    .phones {
        width: 90%;
        display: grid;
        grid-template-columns: repeat(2, auto);
        justify-content: center;
        align-items: center;
        column-gap: 25px;
        row-gap: 18px;
        margin: 0 auto;
    }

    .phone {
        width: auto;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
    }

    .phone:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .iconPhone {
        width: 20px;
        height: 20px;
        padding: 7px;
    }

    .containerContact {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 18px;
    }

    .containerContact h3 {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .socialIcon {
        width: 36px;
        height: 36px;
    }

    .linearLine {
        padding: 30px 0;
    }

    .linearLine::after {
        height: 4px;
        bottom: -4px;
    }

    .footer {
        padding-top: 30px;
        gap: 25px;
    }

    .footerLogo img {
        width: 150px;
    }

    .footerContent {
        width: 85%;
        gap: 30px;
    }


    .footerColumn h3 {
        font-size: 1.1rem;
        text-align: center;
    }

    .footerColumn a {
        font-size: 0.95rem;
    }

    .newsletter {
        width: 100%;
        padding: 18px;
        box-sizing: border-box;
    }

    .newsletter h3 {
        font-size: 1.1rem;
    }

    .newsletter p {
        font-size: 0.9rem;
    }

    .newsletterForm input {
        font-size: 0.9rem;
    }

    .newsletterForm button {
        width: 100%;
    }

    .footerBottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 15px 10px;
        box-sizing: border-box;
    }

}

/*400px*/

@media (max-width: 400px) {

    .formNav{
        display: none;
    }

    .navLinks {
        gap: 10px;
    }

    .navLinks a {
        font-size: 0.78rem;
    }

    .phone {
        font-size: 0.95rem;
    }

    .primaryTitleContact {
        font-size: 1.6rem;
    }

    .containerContact {
        gap: 10px;
    }

    .footerContent{
        flex-direction: column;
        align-items: center;
    }

    .footerColumn{
        width: 100%;
        align-items: center;
    }

    .footerColumn h3 {
        width: 40%;
    }

    .containerContact h3 {
        font-size: 1rem;
    }

    .footerColumn a {
        text-align: center;
    }

    .socialIcon {
        width: 34px;
        height: 34px;
    }

}
