/* ==========================================================================
   PROACRÍLICOS — HEADER GLOBAL
   Compartido por Home, Servicios y Zonas
   ========================================================================== */

.site-header {
    --header-primary: #14D92F;
    --header-text: #ffffff;
    --header-muted: #9ca3af;
    --header-border: rgba(255, 255, 255, 0.05);
    --header-bg: rgba(3, 7, 4, 0.88);

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    z-index: 1000;

    background: var(--header-bg);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-bottom: 1px solid var(--header-border);
}


/* ==========================================================================
   CONTENEDOR
   ========================================================================== */

.site-header .header-container {
    width: min(100% - 48px, 1200px);
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 0;
}


/* ==========================================================================
   LOGO
   ========================================================================== */

.site-header .brand-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header .brand-logo img {
    display: block;
    width: auto;
    height: 38px;

    filter: brightness(0) invert(1);
}


/* ==========================================================================
   NAVEGACIÓN
   ========================================================================== */

.site-header .main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-header .main-nav > a {
    position: relative;

    display: inline-flex;
    align-items: center;

    padding: 8px 0;

    color: var(--header-muted);

    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;

    text-decoration: none;

    transition:
        color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header .main-nav > a:hover {
    color: var(--header-text);
}


/* ==========================================================================
   LÍNEA DE HOVER
   ========================================================================== */

.site-header .main-nav > a:not(.nav-cta)::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--header-primary);

    transform: translateX(-50%);

    transition: width 0.3s ease;
}

.site-header .main-nav > a:not(.nav-cta):hover::after {
    width: 100%;
}


/* ==========================================================================
   REDES SOCIALES
   ========================================================================== */

.site-header .header-social-bubbles {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header .social-bubble {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.04);

    color: #ffffff;

    text-decoration: none;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.site-header .social-bubble::after {
    display: none !important;
}

.site-header .social-bubble svg,
.site-header .social-bubble i {
    width: 15px;
    height: 15px;

    color: #ffffff;

    transition: color 0.3s ease;
}

.site-header .social-bubble:hover {
    transform: translateY(-2px);
}


/* WhatsApp */

.site-header .bubble-whatsapp:hover {
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.30);

    box-shadow:
        0 6px 15px rgba(37, 211, 102, 0.20);
}

.site-header .bubble-whatsapp:hover svg,
.site-header .bubble-whatsapp:hover i {
    color: #25D366;
}


/* Instagram */

.site-header .bubble-instagram:hover {
    background: rgba(225, 48, 108, 0.08);
    border-color: rgba(225, 48, 108, 0.30);

    box-shadow:
        0 6px 15px rgba(225, 48, 108, 0.20);
}

.site-header .bubble-instagram:hover svg,
.site-header .bubble-instagram:hover i {
    color: #E1306C;
}


/* LinkedIn */

.site-header .bubble-linkedin:hover {
    background: rgba(10, 102, 194, 0.08);
    border-color: rgba(10, 102, 194, 0.30);

    box-shadow:
        0 6px 15px rgba(10, 102, 194, 0.20);
}

.site-header .bubble-linkedin:hover svg,
.site-header .bubble-linkedin:hover i {
    color: #0A66C2;
}


/* ==========================================================================
   CTA COTIZAR
   ========================================================================== */

.site-header .main-nav > a.nav-cta {
    padding: 10px 24px;

    border-radius: 100px;

    background: #ffffff;
    color: #030704;

    font-weight: 600;
}

.site-header .main-nav > a.nav-cta:hover {
    background: var(--header-primary);
    color: #030704;

    transform: translateY(-2px);

    box-shadow:
        0 8px 24px rgba(20, 217, 47, 0.25);
}

.site-header .main-nav > a.nav-cta::after {
    display: none;
}


/* ==========================================================================
   BOTÓN HAMBURGUESA
   ========================================================================== */

.site-header .menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.site-header .menu-toggle span {
    display: block;

    width: 24px;
    height: 2px;

    margin: 5px auto;

    border-radius: 10px;

    background: #ffffff;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {

    .site-header .header-container {
        width: min(100% - 32px, 1200px);

        padding: 14px 0;
    }

    .site-header .brand-logo img {
        height: 34px;
    }

    .site-header .menu-toggle {
        display: block;
        position: relative;
        z-index: 1002;
    }

    .site-header .main-nav {
        position: fixed;

        top: 0;
        right: 0;

        width: min(86vw, 380px);
        height: 100vh;
        height: 100dvh;

        padding:
            100px
            32px
            40px;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 8px;

        background: rgba(3, 7, 4, 0.98);

        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        box-shadow:
            -20px 0 60px rgba(0, 0, 0, 0.30);

        transform: translateX(105%);

        visibility: hidden;
        pointer-events: none;

        transition:
            transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0.35s ease;
    }

    .site-header .main-nav.is-open {
        transform: translateX(0);

        visibility: visible;
        pointer-events: auto;
    }

    .site-header .main-nav > a {
        width: 100%;

        padding: 14px 0;

        font-size: 16px;
    }

    .site-header .main-nav > a:not(.nav-cta)::after {
        left: 0;

        transform: none;
    }

    .site-header .header-social-bubbles {
        justify-content: flex-start;

        gap: 12px;

        margin: 18px 0;
    }

    .site-header .social-bubble {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }

    .site-header .main-nav > a.nav-cta {
        width: 100%;

        justify-content: center;

        margin-top: 8px;

        padding: 14px 20px;
    }


    /* Hamburguesa abierta */

    .site-header .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .site-header .menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}


@media (max-width: 480px) {

    .site-header .header-container {
        width: calc(100% - 28px);
    }

    .site-header .brand-logo img {
        height: 32px;
    }

    .site-header .main-nav {
        width: 100%;

        padding-left: 24px;
        padding-right: 24px;
    }
}

.site-header .social-bubble .social-icon {
    display: block;

    width: 18px;
    height: 18px;

    color: #aab2ad;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.site-header .bubble-whatsapp:hover .social-icon {
    color: #25D366;
    transform: scale(1.08);
}