/* ========================================
   GEASIS TABS SYSTEM — Pill Strip Design
======================================== */

/* ========== TABS BAR ========== */
.tabs-bar {
    position: sticky;
    top: var(--nav-h);
    z-index: 900;
    /* Franja sutilmente diferenciada del nav */
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: top .3s ease, background .3s ease;
}

[data-theme="dark"] .tabs-bar {
    background: #050505;
}

[data-theme="light"] .tabs-bar {
    background: #F0F4F8;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.tabs-bar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 10px var(--pad);
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    align-items: center;
}

.tabs-bar-inner::-webkit-scrollbar {
    display: none;
}

/* ========== TAB BUTTONS — Pill style ========== */
.tab-btn {
    flex-shrink: 0;
    padding: 7px 18px;
    height: auto;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 100px;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    letter-spacing: .03em;
    line-height: 1;
}

.tab-btn:hover {
    color: var(--text-soft);
    background: var(--bg-card);
    border-color: var(--border);
}

/* Tab activo: pill sólida con color primario */
.tab-btn.active {
    color: var(--primary);
    font-weight: 700;
    background: rgba(0, 188, 212, .1);
    border-color: rgba(0, 188, 212, .3);
    letter-spacing: .02em;
}

[data-theme="light"] .tab-btn.active {
    background: rgba(0, 151, 167, .1);
    border-color: rgba(0, 151, 167, .35);
    color: var(--primary-dark);
}

/* ========== PANELS ========== */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: tabFadeIn .3s ease;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== SECCIONES DENTRO DE TABS ========== */
.tab-panel .workflow-section,
.tab-panel .embudo-section,
.tab-panel .testimonials-section,
.tab-panel .modules-section,
.tab-panel .branding-section,
.tab-panel .platform-section,
.tab-panel .app-section,
.tab-panel .faq-section,
.tab-panel .pricing-section {
    padding-top: 72px !important;
    min-height: auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
    .tab-btn {
        padding: 6px 14px;
        font-size: 11px;
    }
    .tabs-bar-inner {
        padding: 8px var(--pad);
        gap: 3px;
    }
}

@media (max-width: 640px) {
    .tab-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    .tabs-bar-inner {
        padding: 8px var(--pad);
    }
    .tab-panel .workflow-section,
    .tab-panel .embudo-section,
    .tab-panel .testimonials-section,
    .tab-panel .modules-section,
    .tab-panel .branding-section,
    .tab-panel .platform-section,
    .tab-panel .app-section,
    .tab-panel .faq-section,
    .tab-panel .pricing-section {
        padding-top: 56px !important;
    }
}

@media (max-width: 425px) {
    .tab-btn {
        padding: 5px 11px;
        font-size: 10px;
    }
}