/* ==========================================================================
   Header / nav / footer compartidos por web/ y blog/
   (requiere las variables de tokens.css)
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(16, 20, 27, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo img {
    height: 84px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: .5px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent-blue);
}

.nav-cta {
    background-color: var(--accent-orange);
    color: #fff;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.nav-cta:hover {
    background-color: var(--accent-orange-hover);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-strong);
    transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background-color: var(--bg-alt);
        border-bottom: 1px solid var(--border);
        padding: 10px 20px 20px;
        gap: 4px;
        display: none;
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-cta {
        text-align: center;
        margin-top: 10px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--bg-deep);
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.site-footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 18px;
}

.social-links a {
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    display: inline-flex;
}

.social-links a:hover {
    color: var(--accent-blue);
}

.social-links svg,
.social-links img {
    width: 20px;
    height: 20px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-admin-link:hover {
    color: var(--accent-blue);
}

/* ==========================================================================
   Botón Flotante de WhatsApp
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
