/* ============================================================
   Site Header (.sh) — rebuilt from zero
   Desktop:  [Logo] ........ [Nav links] ........ [Lang][CTA]
   Mobile:   [Logo] .............................. [☰]
             open → drawer with links + lang + CTA
   ============================================================ */

.sh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}
.sh.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.sh__bar {
    display: flex;
    align-items: center;
    height: var(--header-height);
    gap: 24px;
}

/* Logo — always visible, never shrinks */
.sh__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    text-decoration: none;
}
.sh__logo img {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
}
.sh__logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desktop nav shell */
.sh__nav {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 20px;
}

.sh__links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: 8px 28px;
    min-width: 0;
}

.sh__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-sub);
    white-space: nowrap;
    text-decoration: none;
    padding: 8px 0;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}
.sh__link:hover {
    color: var(--brand-blue);
}

/* Products dropdown */
.sh__drop {
    position: relative;
}
.sh__drop-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 30;
}
.sh__drop:hover .sh__drop-menu,
.sh__drop:focus-within .sh__drop-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.sh__drop-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-sub);
    border-radius: 8px;
    text-decoration: none;
}
.sh__drop-menu a:hover {
    background: var(--bg-subtle);
    color: var(--brand-blue);
}

/* Lang + CTA — one cluster, one row */
.sh__tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    margin-left: auto;
}

.sh__lang {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    height: 40px;
    border-radius: 999px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
}
.sh__lang a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-width: 48px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-sub);
    text-decoration: none;
    white-space: nowrap;
}
.sh__lang a:hover { color: var(--brand-blue); }
.sh__lang a.is-on {
    background: var(--brand-blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.sh__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    white-space: nowrap;
    background: var(--brand-gradient);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sh__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}
.sh__cta i { font-size: 0.9rem; }

/* Burger — desktop hidden */
.sh__burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-main);
    font-size: 1.35rem;
    cursor: pointer;
    flex-shrink: 0;
}
.sh__burger:hover {
    background: var(--bg-subtle);
}

/* Desktop mid width: tighten spacing only */
@media (min-width: 901px) and (max-width: 1100px) {
    .sh__links { gap: 8px 16px; }
    .sh__link { font-size: 0.85rem; }
    .sh__bar { gap: 16px; }
}

/* Mobile / tablet drawer */
@media (max-width: 900px) {
    .sh__burger { display: inline-flex; }

    .sh__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        flex: none;
        background: #fff;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        padding: 8px 20px 24px;
        max-height: min(85vh, 640px);
        overflow-y: auto;
        z-index: 1001;
    }
    .sh.is-open .sh__nav {
        display: flex;
    }

    .sh__links {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        flex: none;
    }
    .sh__link {
        width: 100%;
        justify-content: center;
        padding: 14px 0;
        border-bottom: 1px solid var(--border-light);
        font-size: 1rem;
    }

    .sh__drop-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        padding: 0 0 8px 12px;
        min-width: 0;
    }

    .sh__tools {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin: 16px 0 0;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
        width: 100%;
    }
    .sh__lang {
        width: 100%;
        height: auto;
        justify-content: center;
    }
    .sh__lang a {
        flex: 1;
        height: 44px;
    }
    .sh__cta {
        width: 100%;
        height: 48px;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.925rem;
    border-radius: var(--radius-md);
    padding: 11px 22px;
    transition: var(--transition);
    white-space: nowrap;
}
.btn--primary {
    background: var(--brand-gradient);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(59,130,246,0.25);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}
.btn--secondary {
    background: var(--bg-white);
    color: var(--text-main) !important;
    border: 1.5px solid var(--border-color);
}
.btn--secondary:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue) !important;
    background: rgba(59,130,246,0.04);
}
.btn--whatsapp {
    background: var(--bg-white);
    color: #16a34a !important;
    border: 1.5px solid #bbf7d0;
}
.btn--whatsapp:hover { background: #f0fdf4; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--link {
    color: var(--brand-blue);
    font-weight: 600;
    gap: 6px;
    padding: 0;
}
.btn--link:hover { text-decoration: underline; }

/* Cards */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(59,130,246,0.2);
}

.badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-full);
}
.badge--blue { background: rgba(59,130,246,0.1); color: var(--brand-blue); }
.badge--green { background: rgba(16,185,129,0.1); color: var(--brand-green); }
.badge--purple { background: rgba(139,92,246,0.1); color: #7c3aed; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-question i { color: var(--text-muted); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.is-open .faq-question i { transform: rotate(180deg); color: var(--brand-blue); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.7;
}
.faq-item.is-open .faq-answer {
    max-height: 400px;
    padding: 0 24px 20px;
}

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll-hint {
    display: none;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-blue);
    background: rgba(59,130,246,0.06);
    padding: 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}
.data-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.data-table th, .data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.6;
}
.data-table th {
    background: var(--bg-subtle);
    font-weight: 700;
    color: var(--text-main);
    width: 22%;
}
.data-table td { color: var(--text-sub); }
.data-table tr:last-child td, .data-table tr:last-child th { border-bottom: none; }
.data-table .highlight { color: var(--brand-blue); font-weight: 700; }
.data-table .highlight-green { color: var(--brand-green); font-weight: 700; }

.compare-table th.highlight-col {
    background: rgba(59,130,246,0.06);
    color: var(--brand-blue);
    border-top: 3px solid var(--brand-blue);
}
.compare-table td.highlight-col {
    background: rgba(59,130,246,0.03);
    font-weight: 600;
    color: var(--text-main);
}

/* Pricing tabs */
.pricing-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
}
.pricing-panel.is-open { max-height: 2400px; padding: clamp(20px, 4vw, 40px); }
.pricing-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}
.tab-btn {
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1.5px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-sub);
    transition: var(--transition);
}
.tab-btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.tab-btn.is-active {
    background: var(--brand-gradient);
    color: #fff;
    border-color: transparent;
}
.tab-content { display: none; }
.tab-content.is-active { display: block; animation: fadeUp 0.35s ease; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.site-footer {
    background: var(--text-main);
    color: #94a3b8;
    padding: clamp(48px, 6vw, 80px) 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-brand h3 {
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-brand p { line-height: 1.8; font-size: 0.925rem; }
.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.footer-col ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 1.1rem;
    transition: var(--transition);
}
.social-icon:hover {
    background: var(--brand-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}


@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand h3, .footer-col ul li, .social-links { justify-content: center; }
    .table-scroll-hint { display: block; }
}
