* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 80px;
    background-color: #f5f5f5;
    color: #333;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

img {
    max-width: 100%;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #fbbc05;
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.whatsapp-fallback {
    width: min(680px, calc(100% - 32px));
    margin: 48px auto;
    padding: 36px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.whatsapp-fallback .cta-primary-btn {
    border: 0;
    cursor: pointer;
}

.header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    background: #1e3a5f;
    border-bottom: 3px solid #2196f3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 970px;
    height: 80px;
    padding: 0 40px;
    margin: 0 auto;
}

.logo-mobile {
    display: none;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-link {
    position: relative;
    display: block;
    padding: 17px 35px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: filter 0.3s ease;
}

.nav-menu li:first-child .nav-link {
    border-radius: 25px 0 0 25px;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
}

.nav-menu li:nth-child(2) .nav-link { background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%); }
.nav-menu li:nth-child(3) .nav-link { background: linear-gradient(135deg, #1976d2 0%, #1e88e5 100%); }
.nav-menu li:nth-child(4) .nav-link { background: linear-gradient(135deg, #1e88e5 0%, #2196f3 100%); }
.nav-menu li:nth-child(5) .nav-link { background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%); }

.nav-menu li:nth-child(6) .nav-link {
    border-radius: 0 25px 25px 0;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
}

.nav-link:hover,
.nav-link.active {
    filter: brightness(0.82);
}

.nav-link::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #fff;
    content: "";
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 7px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); }

.main-content {
    max-width: 970px;
    min-height: 50vh;
    padding: 10px 10px;
    margin: 0 auto;
}

.footer {
    padding: 30px 20px 20px;
    margin-top: 40px;
    background-color: #1e3a5f;
    color: #fff;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    max-width: 970px;
    margin: 0 auto 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-text,
.footer-link {
    color: #e0e0e0;
    font-size: 13px;
    line-height: 1.4;
}

.footer-link {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

.footer-link:hover {
    color: #90caf9;
    text-decoration: underline;
}

.footer-logo-img {
    width: 200px;
    height: auto;
}

.footer-bottom {
    max-width: 970px;
    padding-top: 15px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    font-size: 12px;
    text-align: center;
}

.whatsapp-button {
    position: fixed;
    z-index: 999;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    animation: bounce 2s infinite;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.3s ease;
}

.whatsapp-button.is-suppressed {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    animation: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

.whatsapp-button img {
    width: 90px;
    height: auto;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 1000px) {
    body { padding-top: 64px; }

    .header { background: linear-gradient(135deg, #1e3a5f 0%, #2c5aa0 100%); }

    .navbar-container {
        height: 64px;
        padding: 0 20px;
    }

    .hamburger {
        position: absolute;
        left: 20px;
        display: flex;
    }

    .logo-mobile { display: block; }

    .nav-menu {
        position: absolute;
        top: 64px;
        right: 0;
        left: 0;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        background-color: #1e3a5f;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active { max-height: 500px; }

    .nav-link,
    .nav-menu li:first-child .nav-link,
    .nav-menu li:nth-child(6) .nav-link {
        padding: 15px 20px;
        margin: 5px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        right: 12px;
        bottom: 12px;
        width: 72px;
        height: 72px;
    }

    .whatsapp-button img { width: 72px; }
}
