*, *::before, *::after {
    box-sizing: border-box;
}

/* BASE AND LAYOUT */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: var(--color-primary);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

#mainContent {
    padding: 0;
}

#mainContent > section,
#mainContent > div {
    padding-right: clamp(1.5rem, 6vw, 14rem);
    padding-left: clamp(1.5rem, 6vw, 14rem);
}

#mainContent > section {
    padding-block: clamp(4rem, 8vw, 7rem);
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.label {
    display: block;
    margin-bottom: 12px;
    color: var(--color-text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

a {
    color: inherit;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-primary);
    border-radius: 5px;
    color: var(--color-white);
    padding: 14px 28px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn:hover {
    background-color: #162e52;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(12, 29, 54, 0.22);
}

.btn2 {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: var(--color-white);
    padding: 14px 28px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn2:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btnOutline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 54px;
    margin-left: 14px;
    padding: 11px 14px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    vertical-align: middle;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.btnOutline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btnOutline:hover .service-arrow {
    transform: translateX(4px);
}

.btnSee {
    display: inline-flex;
    position: relative;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-bottom: 5px;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.btnSee::before {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background-color: currentColor;
    content: '';
    transform: scaleX(0.35);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.btnSee:hover {
    color: var(--color-text-secondary);
}

.btnSee:hover::before {
    transform: scaleX(1);
}

.btnSee:hover .service-arrow {
    transform: translateX(4px);
}

/* HEADER AND NAVIGATION */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: var(--color-primary);
    padding: 1rem;
    color: var(--color-white);
    transition: background-color 0.3s ease, color 0.3s ease,
        box-shadow 0.3s ease;
}

.site-nav {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    width: 100px;
    transition: filter 0.3s ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.nav-menu ul {
    position: absolute;
    left: 50%;
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
}

.nav-menu a {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu ul a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-menu ul a:hover::after {
    transform: scaleX(1);
}

#site-header.scrolled {
    background-color: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 4px 18px rgba(12, 29, 54, 0.1);
}

#site-header.scrolled .site-logo img {
    filter: brightness(0) saturate(100%) invert(10%) sepia(24%) saturate(1260%)
        hue-rotate(177deg) brightness(91%) contrast(98%);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background-color: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* FOOTER */
footer {
    position: relative;
    overflow: hidden;
    background-color: var(--color-primary);
    padding: 4rem clamp(1.5rem, 6vw, 14rem) 2rem;
    color: rgba(214, 221, 230, 0.7);
}

.gridFooter {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1160px;
    margin: 0 auto 48px;
}

.infoFooter {
    min-width: 0;
}

.infoFooter:first-child {
    padding-right: 24px;
}

.logoCompleta {
    display: block;
    width: 150px;
    height: auto;
    margin-bottom: 16px;
}

.infoFooter p {
    margin: 0;
    color: rgba(214, 221, 230, 0.55);
    font-size: 0.85rem;
    line-height: 1.7;
}

.infoFooter:first-child > span {
    display: block;
    margin-top: 20px;
    color: rgba(214, 221, 230, 0.3);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.infoFooter strong {
    display: block;
    margin-bottom: 20px;
    color: rgba(214, 221, 230, 0.35);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.infoFooter ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.infoFooter ul a {
    display: inline-block;
    color: rgba(214, 221, 230, 0.65);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.infoFooter ul a:hover {
    color: var(--color-white);
    transform: translateX(3px);
}

footer > hr {
    max-width: 1160px;
    margin: 0 auto;
    border: 0;
    border-top: 1px solid rgba(214, 221, 230, 0.08);
}

.footerBottom {
    display: flex;
    max-width: 1160px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 auto;
    padding-top: 28px;
}

.footerBottom p {
    color: rgba(214, 221, 230, 0.55);
    font-size: 0.78rem;
}

/* RESPONSIVE HEADER AND FOOTER */
@media (max-width: 960px) {
    nav {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 16px;
    }

    nav ul {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .gridFooter {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    #site-header {
        padding: 0.75rem 1rem;
    }

    .site-nav {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.25rem;
        border: 1px solid var(--color-border);
        border-radius: 5px;
        background-color: var(--color-white);
        color: var(--color-primary);
        box-shadow: 0 12px 30px rgba(12, 29, 54, 0.14);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu ul {
        position: static;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: auto;
        font-size: 0.9rem;
        transform: none;
    }

    .nav-menu ul a {
        display: block;
        padding: 0.25rem 0;
    }

    .nav-menu .btn {
        justify-content: center;
        padding: 11px 14px;
        font-size: 0.78rem;
    }
}

@media (max-width: 640px) {
    .gridFooter {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }

    .infoFooter:first-child {
        padding-right: 0;
    }

    .footerBottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    #site-header,
    .site-logo img,
    .menu-toggle span {
        transition: none;
    }
}