:root {
    --dark-blue: #003366;
    --blue: #0055aa;
    --dark-orange: #e65c00;
    --orange: #ff6600;
    --ice-white: #f4f7f6;
    --light-black: #333333;
    --white: #ffffff;
}

* {
    font-family: 'Archivo', sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    transition-duration: 100ms;
}

h1 {
    font-size: 2em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
}

a {
    text-decoration: none;
}

ul,
li {
    list-style-type: none;
}

button,
select,
input[type="submit"],
input[type="reset"] {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

body {
    background-color: var(--ice-white);
    color: var(--light-black);
}

@media screen and (max-width: 992px) {
    * {
        transition-duration: 0ms;
    }

    body {
        overflow-x: hidden;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--dark-orange);
    border-radius: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ice-white);
}

::selection {
    background-color: var(--blue);
    color: var(--white);
}

.section {
    opacity: 0;
    transition: 1s;
    transform: translateX(-10rem);
    scroll-margin-top: 120px;
}

.section.active {
    transform: translateX(0);
    opacity: 1;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.98);
}

header>nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    align-items: center;
    position: relative;
}

nav>img {
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1001;
}

nav>img:hover {
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 25px;
    z-index: 1001;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--light-black);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav>ul {
    display: flex;
    gap: 2rem;
}

nav>ul>li {
    list-style: none;
}

nav>ul>li>a {
    position: relative;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-black);
    transition: color 0.3s ease;
}

nav>ul>li>a:hover {
    color: var(--orange);
}

nav>ul>li>a::after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 3px;
    bottom: -8px;
    left: 0;
    background: linear-gradient(90deg, var(--orange) 0%, var(--dark-orange) 100%);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

nav>ul>li>a:hover::after {
    transform: scaleX(1);
}

.nav-buttons>a>button {
    background: linear-gradient(135deg, var(--blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 85, 170, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-buttons>a>button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-buttons>a>button:hover::before {
    width: 300px;
    height: 300px;
}

.nav-buttons>a>button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 85, 170, 0.4);
    background: linear-gradient(135deg, var(--dark-orange) 0%, var(--orange) 100%);
}

.nav-buttons>a>button:active {
    transform: translateY(0);
}

main {
    padding-top: 100px;
}

@media screen and (max-width: 768px) {
    header>nav {
        padding: 0.7rem 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    nav>ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        gap: 0;
        padding: 100px 2rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    nav>ul.active {
        right: 0;
    }

    nav>ul>li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    nav>ul>li>a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }

    nav>ul>li>a::after {
        display: none;
    }

    .nav-buttons {
        position: fixed;
        bottom: -18rem;
        right: -100%;
        width: 70%;
        max-width: 300px;
        padding: 0 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-buttons.active {
        right: 0;
    }

    .nav-buttons>a>button {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    main {
        padding-top: 80px;
    }
}

@media screen and (min-width: 769px) and (max-width: 992px) {
    header>nav {
        padding: 0.8rem 1.5rem;
    }

    nav>ul {
        gap: 1.2rem;
    }

    nav>ul>li>a {
        font-size: 1rem;
    }

    .nav-buttons>a>button {
        padding: 0.65rem 1.3rem;
        font-size: 0.95rem;
    }

    main {
        padding-top: 90px;
    }

    section {
        scroll-margin-top: 110px;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--dark-blue) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 85, 170, 0.3);
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 85, 170, 0.5);
    background: linear-gradient(135deg, var(--dark-orange) 0%, var(--orange) 100%);
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px;
        right: 15px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }

    section {
        scroll-margin-top: 100px;
    }
}
