/* Shared header & footer — scoped to placeholders so page styles cannot override */

#header-placeholder,
#footer-placeholder {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#header-placeholder {
    --shf-primary: #339dff;
    --shf-primary-light: rgba(51, 157, 255, 0.12);
    --shf-text-dark: #2c3e50;
}

#footer-placeholder {
    --shf-primary: #339dff;
}


/* ── Navbar (desktop pill) ── */
#header-placeholder .navbar {
    position: fixed !important;
    top: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 60px) !important;
    max-width: 1200px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 100px !important;
    padding: 0.7rem 2.5rem !important;
    margin: 0 !important;
    height: auto !important;
    min-height: unset !important;
    display: flex !important;
    align-items: center !important;
    z-index: 1050 !important;
    box-shadow: none !important;
    transition: top 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.3s ease, box-shadow 0.3s ease !important;
}

#header-placeholder .navbar.navbar-hide {
    top: -110px !important;
}

#header-placeholder .navbar.sticky-nav {
    top: 8px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 10px 30px rgba(51, 157, 255, 0.12) !important;
}

#header-placeholder .navbar-brand {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-width: unset !important;
}

#header-placeholder .navbar-brand img {
    max-height: 48px !important;
    height: 48px !important;
    width: auto !important;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    #header-placeholder.white-mobile-logo .normal-logo {
        display: none !important;
    }
    #header-placeholder.white-mobile-logo .white-logo {
        display: block !important;
    }
}

/* Desktop: 3-column grid — logo | nav (true center) | social */
@media (min-width: 992px) {
    #header-placeholder .navbar-inner {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #header-placeholder .navbar-brand {
        grid-column: 1;
        justify-self: start;
    }

    #header-placeholder .navbar-nav-center {
        grid-column: 2;
        justify-self: center;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        margin: 0 !important;
        padding: 0 !important;
    }

    #header-placeholder .header-social {
        grid-column: 3;
        justify-self: end;
        margin-left: 0 !important;
    }
}

#header-placeholder .navbar-nav {
    margin-left: 0 !important;
    align-items: center;
}

#header-placeholder .nav-item {
    margin: 0 0.1rem;
}

#header-placeholder .nav-link {
    color: var(--shf-text-dark) !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 50px;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

#header-placeholder .nav-link::after {
    display: none !important;
}

#header-placeholder .nav-link:hover,
#header-placeholder .nav-link.active {
    background: var(--shf-primary-light) !important;
    color: var(--shf-primary) !important;
}

#header-placeholder .header-social {
    display: flex !important;
    align-items: center;
    gap: 0.8rem !important;
    margin-left: 1rem !important;
    min-width: unset !important;
}

#header-placeholder .header-social .social-link {
    width: 35px !important;
    height: 35px !important;
    font-size: 1.1rem !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

@media (min-width: 992px) {
    #header-placeholder .header-social .social-link {
        background: white !important;
        color: var(--shf-primary) !important;
        border: 1px solid rgba(51, 157, 255, 0.15) !important;
    }

    #header-placeholder .header-social .social-link.facebook:hover { background: #1877f2 !important; color: white !important; }
    #header-placeholder .header-social .social-link.instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important; color: white !important; border-color: transparent !important; }
    #header-placeholder .header-social .social-link.whatsapp:hover { background: #25D366 !important; color: white !important; }
}

#header-placeholder .social-link.facebook { background: #1877f2; color: white; }
#header-placeholder .social-link.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: white; }
#header-placeholder .social-link.whatsapp { background: #25D366; color: white; }

#header-placeholder .social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

/* ── Mobile nav ── */
@media (max-width: 991px) {
    #header-placeholder .navbar-inner {
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
    }

    #header-placeholder .navbar {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        padding: 0.5rem 1.5rem !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transition: none !important;
    }

    #header-placeholder .navbar.navbar-hide,
    #header-placeholder .navbar.sticky-nav {
        top: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    #header-placeholder .header-social {
        display: none !important;
    }

    #header-placeholder .mobile-bottom-nav {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 450px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        transition: bottom 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        border-radius: 100px;
        padding: 0.8rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 2000;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    #header-placeholder .mobile-bottom-nav.mobile-bottom-nav-hide {
        bottom: -100px !important;
    }

    #header-placeholder .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none !important;
        color: #444;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.44, 1);
        gap: 4px;
        padding: 8px 12px;
        border-radius: 50px;
    }

    #header-placeholder .mobile-nav-item i {
        font-size: 1.2rem;
        transition: all 0.3s ease;
        color: #444;
    }

    #header-placeholder .mobile-nav-item span {
        font-size: 0.7rem;
        font-weight: 600;
    }

    #header-placeholder .mobile-nav-item.active {
        background: transparent;
        color: #444 !important;
    }

    #header-placeholder .mobile-nav-item.active i,
    #header-placeholder .mobile-nav-item:hover i {
        color: var(--shf-primary) !important;
    }

    #header-placeholder .mobile-nav-item.active i {
        transform: translateY(-2px);
    }
}

/* ── Footer ── */
#footer-placeholder .footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    color: white;
    padding: 4rem 0 2rem !important;
}

#footer-placeholder .footer-top {
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

#footer-placeholder .footer-logo {
    max-width: 180px !important;
    height: auto !important;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

#footer-placeholder .footer-about {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.6;
    max-width: 300px;
    margin-bottom: 2rem;
}

#footer-placeholder .footer-heading {
    color: white !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

#footer-placeholder .footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--shf-primary);
}

#footer-placeholder .footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#footer-placeholder .footer-links li {
    margin-bottom: 0.8rem;
}

#footer-placeholder .footer-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: none !important;
}

#footer-placeholder .footer-links a:hover {
    color: var(--shf-primary) !important;
    transform: translateX(5px);
}

#footer-placeholder .footer-links i {
    margin-right: 8px;
    font-size: 0.8rem;
}

#footer-placeholder .footer-contact {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
}

#footer-placeholder .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem !important;
    font-weight: 400 !important;
}

#footer-placeholder .footer-bottom p {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    margin-bottom: 0 !important;
}

#footer-placeholder .contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    margin-bottom: 10px;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: all;
    box-shadow: none !important;
}

#footer-placeholder .contact-link span {
    font-size: inherit !important;
    font-weight: inherit !important;
}

#footer-placeholder .contact-link:hover {
    color: var(--shf-primary) !important;
}

#footer-placeholder .contact-link i {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shf-primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#footer-placeholder .contact-link:hover i {
    background: var(--shf-primary);
    color: white;
    transform: scale(1.1);
}

#footer-placeholder .icon-bubble {
    background: rgba(255, 255, 255, 0.1);
    color: #339dff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

#footer-placeholder .rotate-90 {
    transform: rotate(90deg);
}

#footer-placeholder .contact-link:hover .rotate-90 {
    transform: rotate(90deg) scale(1.1);
}

#footer-placeholder .slide-hover {
    transition: all 0.3s ease;
}

#footer-placeholder .slide-hover:hover {
    transform: translateX(6px);
}

#footer-placeholder .whatsapp-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    background: #25d366 !important;
    color: white !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    z-index: 1000 !important;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

#footer-placeholder .whatsapp-btn:hover {
    transform: scale(1.1);
    background: #1ebe57 !important;
    color: white !important;
}

@media (max-width: 991px) {
    body {
        padding-bottom: 100px;
    }

    #footer-placeholder .whatsapp-btn {
        bottom: 90px !important;
    }
}

.copy-tooltip {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3000;
}

.copy-tooltip::after {
    content: 'Copied!';
}
