:root {
    --purple: #7B2FBE;
    --pink: #E91E8C;
    --yellow: #FFD93D;
    --teal: #00BFA5;
    --blue: #2979FF;
    --orange: #FF6B35;
    --white: #FFFFFF;
    --bg: #F7F3FF;
    --dark: #1A1A2E;
    --text: #3D3D5C;
    --shadow: 0 8px 32px rgba(123,47,190,0.13);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif !important;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    padding-top: 76px;
}

.main-header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--yellow);
    box-shadow: 0 4px 20px rgba(123,47,190,0.08);
    transition: all .3s ease;
}

.main-header.scrolled {
    box-shadow: 0 6px 28px rgba(123,47,190,0.18);
    background: rgba(255,255,255,0.99);
}

.header-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .3s ease;
}

.logo-icon img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    display: block;
    border-radius: 50%;
    filter: drop-shadow(0 3px 8px rgba(123,47,190,0.25));
}

.logo-link:hover .logo-icon {
    transform: scale(1.06) rotate(-4deg);
}

.logo-name {
    display: none;
    font-family: 'Fredoka One', cursive;
    font-size: 1.25rem;
    color: var(--purple);
    line-height: 1;
    white-space: nowrap;
}

.nav-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    flex-wrap: nowrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 13px;
    text-decoration: none;
    color: var(--text);
    font-size: .84rem;
    font-weight: 800;
    white-space: nowrap;
    transition: all .25s ease;
}

.nav-link i {
    font-size: .85rem;
}

.nav-link:hover,
.nav-link.active {
    background: var(--bg);
    color: var(--purple);
    transform: translateY(-1px);
}

.btn-wa-header {
    display: none !important;
}

.menu-btn {
    display: none;
    align-items: center;
    gap: 8px;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 900;
    font-size: .9rem;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white;
    box-shadow: 0 4px 14px rgba(123,47,190,.3);
    transition: all .3s ease;
    flex-shrink: 0;
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(123,47,190,.45);
}

.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(145deg, var(--dark) 0%, #2D1B69 100%);
    transition: .4s cubic-bezier(.4,0,.2,1);
    z-index: 1100;
    overflow-y: auto;
    box-shadow: -8px 0 40px rgba(0,0,0,.3);
}

.side-menu.active {
    right: 0;
}

.side-menu-head {
    padding: 24px 24px 20px;
    background: rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.side-menu-head .logo-name {
    display: flex !important;
    color: var(--yellow);
    font-size: 1.2rem;
}

.menu-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.12);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-close:hover {
    background: var(--yellow);
    color: var(--dark);
    transform: rotate(90deg);
}

.side-nav {
    padding: 16px 16px 30px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    text-decoration: none;
    color: rgba(255,255,255,.88);
    font-size: 1rem;
    font-weight: 800;
    transition: all .3s ease;
    border: 1px solid rgba(255,255,255,.08);
}

.side-nav-link i {
    width: 22px;
    text-align: center;
    font-size: 1rem;
    color: var(--yellow);
    flex-shrink: 0;
}

.side-nav-link:hover,
.side-nav-link.active {
    background: rgba(255,217,61,.15);
    border-color: rgba(255,217,61,.3);
    color: var(--yellow);
    transform: translateX(4px);
}

.side-nav-wa {
    margin: 8px 16px 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white !important;
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
    transition: all .3s ease;
    box-shadow: 0 6px 20px rgba(37,211,102,.35);
}

.side-nav-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37,211,102,.5);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    z-index: 1099;
    backdrop-filter: blur(3px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 6px 24px rgba(37,211,102,.5);
    z-index: 997;
    text-decoration: none;
    border: 3px solid white;
    animation: wapulse 2.5s infinite;
    transition: transform .3s, box-shadow .3s;
}

.whatsapp-float:hover {
    transform: scale(1.12) rotate(6deg);
    animation: none;
    box-shadow: 0 10px 30px rgba(37,211,102,.6);
}

@keyframes wapulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.7); }
    70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

body.menu-open .whatsapp-float {
    display: none;
}

@media (max-width: 1320px) and (min-width: 1024px) {
    .header-inner {
        padding: 0 18px;
    }

    .nav-link {
        padding: 8px 9px;
        font-size: .78rem;
        gap: 5px;
    }

    .logo-icon {
        width: 56px;
        height: 56px;
    }

    .logo-icon img {
        width: 62px;
        height: 62px;
    }
}

@media (max-width: 1023px) {
    body {
        padding-top: 72px;
    }

    .header-inner {
        min-height: 72px;
    }

    .nav-desktop {
        display: none;
    }

    .menu-btn {
        display: inline-flex;
    }

    .logo-name {
        display: block;
    }

    .whatsapp-float {
        width: 58px;
        height: 58px;
        font-size: 2rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 520px) {
    body {
        padding-top: 68px;
    }

    .header-inner {
        min-height: 68px;
        padding: 0 14px;
    }

    .logo-icon {
        width: 54px;
        height: 54px;
    }

    .logo-icon img {
        width: 56px;
        height: 56px;
    }

    .logo-name {
        display: none;
    }

    .menu-btn {
        padding: 9px 14px;
        font-size: .85rem;
    }

    .side-menu {
        max-width: 100%;
    }

    .side-menu-head {
        padding: 20px 18px 16px;
    }
}