/**
 * Estilos solo para /help (conviven con ahome/style.css y Bootstrap).
 * Ámbito: .os-help-page
 */

/* Bootstrap redefine .navbar (flex + padding corto) después de ahome/style.css; restaurar barra Webflow. */
.page-wrapper > .navbar.w-nav {
    display: block;
    flex-wrap: unset;
    align-items: unset;
    justify-content: unset;
    padding-top: 25px;
    padding-bottom: 25px;
    --bs-navbar-padding-y: 25px;
    --bs-navbar-padding-x: 0;
}

/* Mismo patrón que home/prices: main es hijo de body, no de page-wrapper. */
main.os-help-page {
    --os-help-accent: #0879fd;
    --os-help-accent-dark: #0558c4;
    margin-top: 0;
    padding-top: clamp(2.15rem, 1.3rem + 1.875vw, 2.9rem);
    padding-bottom: 2rem;
    background: #f4f7fb;
}

.os-help-body {
    margin-top: 0;
}

main.os-help-page .os-help-breadcrumb {
    padding-top: 0.25rem;
}

.os-help-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.92rem;
}

.os-help-breadcrumb .breadcrumb-item a {
    color: #0879fd;
}

.os-help-breadcrumb .breadcrumb-item.active {
    color: #5c6778;
}

.os-help-intro {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 24px rgba(10, 22, 40, 0.07);
    border: 1px solid rgba(8, 121, 253, 0.12);
}

.os-help-intro-title {
    font-family: Epilogue, "Inter", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0a1628;
    letter-spacing: -0.02em;
}

.os-help-intro-text {
    margin: 0;
    color: #3d4a5c;
    font-size: 1rem;
    line-height: 1.65;
}

.os-help-tabs {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(10, 22, 40, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.os-help-nav-pills {
    gap: 0.5rem;
    padding: 1rem 1rem 0.75rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    flex-wrap: nowrap !important;
}

.os-help-nav-pills .nav-item {
    flex-shrink: 0;
}

.os-help-nav-pills .nav-link {
    border-radius: 999px;
    padding: 0.65rem 1.15rem;
    white-space: nowrap;
    color: #3d4a5c;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    transition: color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
        background 0.2s ease;
}

.os-help-nav-pills .nav-link:hover {
    border-color: rgba(8, 121, 253, 0.35);
    color: var(--os-help-accent);
}

.os-help-nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--os-help-accent), var(--os-help-accent-dark)) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(8, 121, 253, 0.35);
}

.os-help-page #termsTabContent {
    padding: 1.75rem !important;
    background: #fff !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: none !important;
}

.os-help-page #termsTabContent .tab-pane > h3 {
    font-family: Epilogue, "Inter", system-ui, sans-serif;
    font-weight: 700;
    color: #0a1628;
    letter-spacing: -0.02em;
}

.os-help-page .accordion-item {
    border-radius: 12px !important;
    margin-bottom: 0.75rem !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    overflow: hidden;
    background: #fff;
}

.os-help-page .accordion-button {
    font-weight: 600;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: #1a2332;
}

.os-help-page .accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, var(--os-help-accent), var(--os-help-accent-dark));
    color: #fff;
    box-shadow: none;
}

.os-help-page .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.os-help-page .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(8, 121, 253, 0.25);
    border-color: transparent;
}

.os-help-page .accordion-body {
    padding: 1.15rem 1.25rem 1.35rem;
    color: #3d4a5c;
    line-height: 1.65;
    font-size: 0.97rem;
}

.os-help-page .accordion-body ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.os-help-fade-in {
    animation: oshelpFade 0.45s ease-out both;
}

@keyframes oshelpFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .os-help-intro {
        padding: 1.35rem 1.25rem;
    }

    .os-help-intro-title {
        font-size: 1.25rem;
    }

    .os-help-page #termsTabContent {
        padding: 1.15rem !important;
    }
}
