/* ──────────────────────────────────────────────────────
   Mobile Menu Toggle — SafeInventa
   ────────────────────────────────────────────────────── */

.mobile-menu-active .site-nav {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.mobile-menu-active .header-cta {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 220px;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* ──────────────────────────────────────────────────────
   Cookie Consent Banner Styles — SafeInventa
   ────────────────────────────────────────────────────── */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    padding: 1.25rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.cookie-visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    min-width: 200px;
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cookie-text a {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-text a:hover {
    color: #60a5fa;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.cookie-btn-refuse {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-btn-refuse:hover {
    color: #e2e8f0;
    border-color: #64748b;
}

/* ──────────────────────────────────────────────────────
   WhatsApp Floating Button
   ────────────────────────────────────────────────────── */

.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9990;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

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

.whatsapp-float .whatsapp-tooltip {
    position: absolute;
    right: 72px;
    background: #fff;
    color: #1e293b;
    padding: 0.5rem 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: all 0.3s;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Push WhatsApp button up when cookie banner is visible */
.cookie-visible ~ .whatsapp-float,
body.cookie-shown .whatsapp-float {
    bottom: 6rem;
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1.5rem;
    }

    .whatsapp-float .whatsapp-tooltip {
        display: none;
    }
}

/* ──────────────────────────────────────────────────────
   Error Page Styles (Standalone)
   ────────────────────────────────────────────────────── */

.error-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.error-card {
    text-align: center;
    max-width: 440px;
    padding: 3rem 2rem;
}

.error-emoji {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.error-code {
    font-size: 5rem;
    font-weight: 900;
    color: #e2e8f0;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.error-desc {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.error-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.error-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
