#page-title.page-title-modern {
    padding: 42px 0 28px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e9eef5;
}

#page-title .page-title-content h1 {
    margin-bottom: 8px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
    color: #16202a;
}

#page-title .page-subtitle,
#page-title span {
    display: block;
    color: #667085;
    font-size: 15px;
    line-height: 1.6;
}

#page-title .breadcrumb-nav {
    margin-top: 14px;
}

#page-title .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
}

#page-title .breadcrumb li,
#page-title .breadcrumb li a {
    font-size: 13px;
    color: #667085;
}

#page-title .breadcrumb li.active {
    color: #1d2939;
    font-weight: 600;
}

/* Layout principal */
.terminos-page {
    max-width: 1280px;
}

.legal-header-block {
    margin-bottom: 28px !important;
}

.legal-header-inner {
    max-width: 920px;
    margin: 0 auto;
}

.legal-header-block h1 {
    margin-bottom: 16px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    color: #101828;
}

.legal-intro {
    margin: 0 auto;
    max-width: 860px;
    font-size: 17px;
    line-height: 1.85;
    color: #475467;
}

/* Caja guía */
.legal-guide-box {
    margin: 10px 0 34px;
}

.legal-guide-box-inner {
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    padding: 24px 28px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.legal-guide-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #101828;
}

.legal-guide-text {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.8;
    color: #475467;
}

.legal-guide-text-small {
    margin-bottom: 0;
    color: #667085;
}

/* Loader */
.legal-loader {
    text-align: center;
    padding: 10px 0 20px;
}

/* Tabs */
#tab-4.legal-tabs-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.legal-tabs-sidebar {
    width: 320px;
    flex: 0 0 320px;
}

.legal-tabs-sidebar-inner {
    position: sticky;
    top: 24px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
    overflow: hidden;
}

.legal-tabs-sidebar-head {
    padding: 22px 22px 14px;
    border-bottom: 1px solid #eef2f6;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
}

.legal-sidebar-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #101828;
}

.legal-sidebar-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #667085;
}

/* Navegación lateral */
#tab-4 .tab-nav {
    float: none;
    width: 100%;
    margin: 0;
    padding: 10px;
    background: transparent;
    border: 0;
}

#tab-4 .tab-nav li {
    float: none;
    display: block;
    width: 100%;
    margin: 0 0 8px;
    border: 0 !important;
    background: transparent !important;
}

#tab-4 .tab-nav li:last-child {
    margin-bottom: 0;
}

#tab-4 .tab-nav li a {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    background: #ffffff;
    color: #344054;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .25s ease;
}

#tab-4 .tab-nav li a:hover {
    background: #f8fafc;
    border-color: #d0d5dd;
    color: #101828;
    transform: translateX(2px);
}

#tab-4 .tab-nav li.ui-tabs-active a,
#tab-4 .tab-nav li.ui-state-active a {
    background: #ecf3ff;
    border-color: #bfd3ff;
    color: #0f3d91;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(15, 61, 145, 0.04);
}

.legal-tab-container {
    float: none !important;
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
}

/* Paneles */
.legal-tab-panel {
    background: #ffffff !important;
    border: 1px solid #e4e7ec !important;
    border-radius: 22px !important;
    box-shadow: 0 12px 34px rgba(16, 24, 40, 0.06);
    padding: 0 !important;
    overflow: hidden;
}

.legal-panel-inner {
    padding: 34px 36px;
}

.legal-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
}

.legal-tab-panel .tab-content-title {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #101828;
}

.legal-content-body,
.legal-content-body * {
    color: #344054;
}

.legal-content-body {
    font-size: 16px;
    line-height: 1.9;
}

.legal-content-body p {
    margin-bottom: 16px;
}

.legal-content-body h1,
.legal-content-body h2,
.legal-content-body h3,
.legal-content-body h4,
.legal-content-body h5,
.legal-content-body h6 {
    margin-top: 28px;
    margin-bottom: 12px;
    color: #101828;
    line-height: 1.3;
    font-weight: 700;
}

.legal-content-body ul,
.legal-content-body ol {
    padding-left: 22px;
    margin-bottom: 18px;
}

.legal-content-body li {
    margin-bottom: 8px;
}

.legal-content-body strong,
.legal-content-body b {
    color: #101828;
    font-weight: 700;
}

.justificarTextos {
    text-align: justify;
    text-justify: inter-word;
}

/* Video section */
.terminos-video-row {
    margin-top: 48px;
}

.terminos-video-section {
    position: relative;
    overflow: hidden;
}

.terminos-video-caption {
    max-width: 900px;
    margin: 0 auto;
    z-index: 3;
}

.terminos-video-kicker {
    margin-bottom: 14px;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.terminos-video-title {
    margin: 0 auto;
    max-width: 760px;
    font-size: 22px;
    line-height: 1.6;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.terminos-video-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.terminos-video-btn {
    margin-top: 0 !important;
}

.terminos-video-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.44) 100%) !important;
}

/* Estados ocultos */
.ui-tabs-panel[aria-hidden="true"] {
    display: none;
}

/* Responsive */
@media (max-width: 1199px) {
    .legal-tabs-sidebar {
        width: 290px;
        flex: 0 0 290px;
    }

    .legal-panel-inner {
        padding: 28px 28px;
    }

    .legal-tab-panel .tab-content-title {
        font-size: 24px;
    }
}

@media (max-width: 991px) {
    #tab-4.legal-tabs-wrapper {
        display: block;
    }

    .legal-tabs-sidebar {
        width: 100%;
        flex: none;
        margin-bottom: 22px;
    }

    .legal-tabs-sidebar-inner {
        position: relative;
        top: auto;
    }

    #tab-4 .tab-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 14px;
    }

    #tab-4 .tab-nav li {
        width: calc(50% - 4px);
        margin: 0;
    }

    #tab-4 .tab-nav li a {
        height: 100%;
        padding: 12px 14px;
        font-size: 13px;
    }

    .legal-tab-container {
        width: 100% !important;
    }

    .terminos-video-kicker {
        font-size: 24px;
    }

    .terminos-video-title {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    #page-title.page-title-modern {
        padding: 32px 0 20px;
    }

    #page-title .page-title-content h1 {
        font-size: 26px;
    }

    .legal-header-block h1 {
        font-size: 28px;
    }

    .legal-intro {
        font-size: 16px;
        line-height: 1.75;
    }

    #tab-4 .tab-nav li {
        width: 100%;
    }

    .legal-panel-inner {
        padding: 22px 18px;
    }

    .legal-tab-panel .tab-content-title {
        font-size: 22px;
    }

    .legal-content-body {
        font-size: 15px;
        line-height: 1.8;
    }

    .legal-guide-box-inner {
        padding: 20px 18px;
        border-radius: 16px;
    }

    .terminos-video-section {
        height: auto !important;
        padding: 90px 0 !important;
    }

    .terminos-video-kicker {
        font-size: 20px;
    }

    .terminos-video-title {
        font-size: 16px;
        line-height: 1.6;
    }

    .terminos-video-actions {
        gap: 10px;
    }
}