:root {
    --tf-navy: #11284a;
    --tf-blue: #2563eb;
    --tf-gold: #d4af37;
    --tf-bg: #f4f7fb;
    --tf-soft: #eef4ff;
    --tf-text: #172033;
    --tf-muted: #6b7280;
    --tf-card: #ffffff;
    --tf-border: #e5e7eb;
    --tf-radius: 22px;
    --tf-shadow: 0 20px 50px rgba(17,40,74,.10);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background: var(--tf-bg);
    color: var(--tf-text);
}

/* Navbar */
.tf-navbar {
    background: linear-gradient(135deg, var(--tf-navy), #173b72);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

.brand,
.tf-brand {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #fff !important;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.15rem;
}

.brand-mark {
    width: 46px;
    height: 46px;
    background: var(--tf-gold);
    color: var(--tf-navy);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.nav-link,
.nav-link-tf {
    color: #eaf2ff !important;
    text-decoration: none;
    font-weight: 700;
}

    .nav-link:hover,
    .nav-link-tf:hover {
        color: #fff !important;
    }

.navbar-toggler:focus {
    box-shadow: none;
}

/* Login Partial */
.tf-navbar .btn-user {
    display: flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.12);
    color: #ffffff !important;
    border-radius: 999px;
    padding: .45rem .85rem .45rem .45rem;
    font-weight: 800;
    line-height: 1;
}

    .tf-navbar .btn-user:hover,
    .tf-navbar .btn-user:focus,
    .tf-navbar .btn-user:active,
    .tf-navbar .btn-user.show {
        color: #ffffff !important;
        background: rgba(255,255,255,.22);
        border-color: rgba(255,255,255,.35);
    }

    .tf-navbar .btn-user::after {
        color: #ffffff;
    }

.tf-navbar .user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--tf-gold);
    color: var(--tf-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}

.dropdown-menu {
    border-radius: 16px;
    padding: 8px;
    border: 0;
}

.dropdown-item {
    border-radius: 12px;
    font-weight: 700;
    padding: 10px 12px;
}

/* Buttons */
.btn-tf,
.btn-brand {
    background: linear-gradient(135deg, var(--tf-navy), var(--tf-blue));
    color: #fff !important;
    border: 0;
    border-radius: 14px;
    padding: 10px 16px;
    font-weight: 800;
    box-shadow: 0 12px 25px rgba(37,99,235,.25);
}

    .btn-tf:hover,
    .btn-brand:hover {
        color: #fff !important;
        filter: brightness(1.06);
    }

/* Layout general */
.main-wrapper {
    min-height: 0;
}

/* Admin Layout - sin doble scroll */
body:has(.admin-shell) {
    overflow: hidden;
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    height: calc(100vh - 74px);
    overflow: hidden;
}

.sidebar {
    height: calc(100vh - 74px);
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid var(--tf-border);
    padding: 24px;
    position: relative;
    top: 0;
}

.content {
    height: calc(100vh - 74px);
    overflow-y: auto;
    padding: 32px;
    min-width: 0;
}

/* Sidebar */
.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #eef4ff, #ffffff);
    border: 1px solid #dbeafe;
    border-radius: 20px;
    margin-bottom: 22px;
    box-shadow: 0 12px 28px rgba(17,40,74,.08);
}

    .logo-box img {
        width: 52px;
        height: 52px;
        object-fit: contain;
        border-radius: 14px;
        background: #fff;
        border: 1px solid #e5e7eb;
        padding: 5px;
    }

    .logo-box strong {
        color: var(--tf-navy);
        font-size: .98rem;
        line-height: 1.1;
    }

.muted {
    color: var(--tf-muted);
}

.side-menu {
    display: grid;
    gap: 8px;
}

.side-link {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 13px 15px;
    border-radius: 16px;
    color: #334155;
    text-decoration: none;
    font-weight: 800;
    transition: .2s ease;
}

.side-submenu {
    display: grid;
    gap: 6px;
}

.side-submenu-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    justify-content: space-between;
    text-align: left;
}

    .side-submenu-toggle span {
        display: inline-flex;
        align-items: center;
        gap: 11px;
    }

.submenu-chevron {
    margin-left: auto;
    transition: transform .2s ease;
}

.side-submenu-toggle[aria-expanded="true"] .submenu-chevron {
    transform: rotate(180deg);
}

.side-submenu-items {
    display: grid;
    gap: 6px;
    margin: 6px 0 4px 16px;
    padding-left: 10px;
    border-left: 1px solid #dbeafe;
}

.side-sub-link {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 13px;
    font-size: .92rem;
    font-weight: 800;
}

    .side-link i {
        font-size: 1.1rem;
    }

    .side-link:hover,
    .side-link.active {
        background: linear-gradient(135deg, var(--tf-navy), var(--tf-blue));
        color: #fff;
        transform: translateX(3px);
        box-shadow: 0 14px 28px rgba(37,99,235,.22);
    }

/* Cards */
.page-title {
    font-weight: 900;
    color: var(--tf-navy);
    letter-spacing: -.6px;
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--tf-muted);
    margin-bottom: 24px;
}

.tf-card,
.admin-card {
    background: var(--tf-card);
    border: 1px solid #e8eef7;
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow);
    padding: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--tf-shadow);
    border: 1px solid #e8eef7;
    height: 100%;
}

    .stat-card i {
        font-size: 1.9rem;
        color: var(--tf-blue);
    }

    .stat-card .num,
    .stat-card strong {
        display: block;
        font-size: 2rem;
        font-weight: 900;
        color: var(--tf-navy);
    }

    .stat-card span {
        color: var(--tf-muted);
        font-weight: 700;
    }

/* Forms */
.form-control,
.form-select {
    border-radius: 14px;
    padding: 11px 13px;
    border-color: #dbe3ef;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--tf-blue);
        box-shadow: 0 0 0 .2rem rgba(37,99,235,.12);
    }

.form-label {
    font-weight: 800;
    color: #334155;
}

/* Tables */
.table {
    vertical-align: middle;
}

    .table thead th {
        color: #475569;
        font-size: .85rem;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

.candidate-row {
    transition: .2s;
}

    .candidate-row:hover {
        background: #f8fbff;
    }

/* Badges */
.badge-score {
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 900;
}

.score-high {
    background: #dcfce7;
    color: #166534;
}

.score-mid {
    background: #fef9c3;
    color: #854d0e;
}

.score-low {
    background: #fee2e2;
    color: #991b1b;
}

/* Public Apply */
.public-apply {
    min-height: 100vh;
    background: linear-gradient(135deg,#f8fbff,#eaf2ff);
    padding: 45px 0;
}

.apply-card {
    max-width: 760px;
    margin: auto;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(17,40,74,.14);
    overflow: hidden;
}

.apply-head {
    background: linear-gradient(135deg,var(--tf-navy),var(--tf-blue));
    color: #fff;
    padding: 30px;
}

.company-logo {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: #fff;
    object-fit: contain;
    padding: 8px;
}

/* Login */
.auth-page {
    min-height: calc(100vh - 74px);
    display: grid;
    place-items: center;
    padding: 48px 16px;
    background: radial-gradient(circle at 20% 20%, rgba(212,175,55,.20), transparent 30%), radial-gradient(circle at 80% 10%, rgba(37,99,235,.20), transparent 30%), linear-gradient(135deg, #f8fbff, #eaf2ff);
}

.auth-card {
    width: min(100%, 460px);
    background: rgba(255,255,255,.95);
    border: 1px solid #fff;
    border-radius: 32px;
    box-shadow: 0 30px 90px rgba(17,40,74,.18);
    padding: 34px;
}

.auth-logo {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tf-navy);
    font-size: 1.6rem;
    background: var(--tf-gold);
    margin-bottom: 1.2rem;
    font-weight: 900;
}

.auth-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--tf-navy);
    letter-spacing: -.05em;
}

.auth-subtitle {
    color: var(--tf-muted);
    margin-bottom: 1.4rem;
}

/* Home */
.hero {
    min-height: calc(100vh - 74px);
    background: radial-gradient(circle at 20% 10%, rgba(212,175,55,.25), transparent 28%), linear-gradient(135deg,#0e2241,#17437e 55%,#2563eb);
    color: white;
    padding: 80px 0;
}

    .hero h1 {
        font-size: clamp(2.3rem,5vw,4.8rem);
        line-height: 1;
        font-weight: 900;
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 1.15rem;
        color: #dbeafe;
    }

.hero-card {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(16px);
    border-radius: 30px;
    padding: 26px;
    box-shadow: 0 30px 70px rgba(0,0,0,.22);
}

/* Footer */
.tf-footer {
    background: #fff;
    border-top: 1px solid var(--tf-border);
    padding: 20px 0;
}

    .tf-footer .container {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

/* Responsive */
@media (max-width: 900px) {
    body:has(.admin-shell) {
        overflow: auto;
    }

    .admin-shell {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }

    .sidebar {
        position: relative;
        top: 0;
        height: auto;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid var(--tf-border);
    }

    .content {
        height: auto;
        overflow: visible;
        padding: 20px;
    }

    .side-menu {
        grid-template-columns: 1fr 1fr;
    }

    .tf-footer .container {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .side-menu {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 16px;
    }

    .tf-card,
    .admin-card,
    .stat-card {
        border-radius: 18px;
        padding: 18px;
    }

    .hero {
        padding: 48px 0;
    }
}

.job-text {
    white-space: pre-line;
    line-height: 1.4;
}

    .job-text::before {
        content: '';
    }

.candidate-profile-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eef4ff, #ffffff);
    border: 1px solid #dbeafe;
}

.candidate-avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--tf-navy), var(--tf-blue));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}

    .info-item span {
        color: var(--tf-muted);
        font-weight: 700;
    }

    .info-item strong {
        text-align: right;
        color: var(--tf-navy);
    }

.ai-summary-box {
    background: #f8fbff;
    border: 1px solid #e8eef7;
    border-radius: 18px;
    padding: 18px;
    line-height: 1.75;
    white-space: pre-line;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .skills-list span {
        background: #eef4ff;
        color: var(--tf-navy);
        border: 1px solid #dbeafe;
        border-radius: 999px;
        padding: 8px 12px;
        font-weight: 800;
        font-size: .9rem;
    }

.cv-text-box {
    max-height: 520px;
    overflow-y: auto;
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    white-space: pre-wrap;
    line-height: 1.7;
    font-family: Consolas, Monaco, monospace;
    font-size: .95rem;
}

.cv-viewer {
    width: 100%;
    height: 720px;
    border: 1px solid #e8eef7;
    border-radius: 18px;
    background: #f8fbff;
}

.cv-text-box {
    max-height: 420px;
    overflow-y: auto;
    background: #f8fbff;
    color: #172033;
    border: 1px solid #e8eef7;
    border-radius: 18px;
    padding: 20px;
    white-space: pre-line;
    line-height: 1.75;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    font-size: .98rem;
}

.top-job-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e8eef7;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 14px 32px rgba(17,40,74,.07);
}

.top-candidate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e8eef7;
}

/* =========================
   RESPONSIVE GLOBAL
========================= */

@media (max-width: 1200px) {
    .content {
        padding: 24px;
    }

    .page-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    body:has(.admin-shell) {
        overflow: auto;
    }

    .admin-shell {
        display: block;
        height: auto;
        overflow: visible;
    }

    .sidebar {
        height: auto;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid var(--tf-border);
        padding: 18px;
    }

    .logo-box {
        margin-bottom: 14px;
    }

    .side-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .side-link {
        justify-content: center;
        text-align: center;
        padding: 12px;
    }

    .content {
        height: auto;
        overflow: visible;
        padding: 20px;
    }

    .tf-card,
    .admin-card,
    .stat-card {
        padding: 20px;
        border-radius: 20px;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
    }

    .cv-viewer {
        height: 560px;
    }
}

@media (max-width: 768px) {
    .tf-navbar .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .brand,
    .tf-brand {
        font-size: 1rem;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .side-menu {
        grid-template-columns: 1fr;
    }

    .side-link {
        justify-content: flex-start;
    }

    .page-title {
        font-size: 1.55rem;
    }

    .page-subtitle,
    .muted,
    .text-muted {
        font-size: .92rem;
    }

    .d-flex.justify-content-between {
        align-items: flex-start !important;
        gap: 12px;
        flex-wrap: wrap;
    }

    .btn,
    .btn-tf {
        width: 100%;
        justify-content: center;
    }

    .top-candidate-row,
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }

        .info-item strong {
            text-align: left;
        }

    .skills-list span {
        font-size: .82rem;
    }

    .cv-viewer {
        height: 460px;
    }

    .auth-card {
        padding: 26px;
        border-radius: 26px;
    }

    .auth-title {
        font-size: 1.7rem;
    }

    .hero {
        padding: 48px 0;
    }

        .hero h1 {
            font-size: 2.4rem;
            letter-spacing: -1px;
        }

    .hero-card {
        margin-top: 24px;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .content {
        padding: 14px;
    }

    .sidebar {
        padding: 14px;
    }

    .logo-box {
        padding: 12px;
        border-radius: 16px;
    }

        .logo-box img,
        .brand-mark {
            width: 42px;
            height: 42px;
        }

    .tf-card,
    .admin-card,
    .stat-card {
        padding: 16px;
        border-radius: 18px;
    }

        .stat-card .num,
        .stat-card strong {
            font-size: 1.65rem;
        }

    .form-control,
    .form-select {
        font-size: .95rem;
        padding: 10px 12px;
    }

    .table {
        font-size: .9rem;
    }

    .badge-score {
        padding: 6px 10px;
        font-size: .85rem;
    }

    .candidate-profile-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .candidate-avatar {
        width: 48px;
        height: 48px;
    }

    .cv-viewer {
        height: 380px;
    }

    .cv-text-box {
        max-height: 320px;
        font-size: .9rem;
    }

    .auth-page {
        padding: 28px 12px;
    }

    .auth-card {
        padding: 22px;
    }

    .tf-footer .container {
        flex-direction: column;
        text-align: center;
    }
}

.candidate-mini-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.candidate-mini-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--tf-navy), var(--tf-blue));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}

.skills-list.compact {
    gap: 6px;
}

    .skills-list.compact span {
        font-size: .78rem;
        padding: 6px 9px;
    }

@media (max-width: 768px) {
    .candidates-table-wrap {
        overflow: visible;
    }

    .candidates-table,
    .candidates-table thead,
    .candidates-table tbody,
    .candidates-table th,
    .candidates-table td,
    .candidates-table tr {
        display: block;
        width: 100%;
    }

        .candidates-table thead {
            display: none;
        }

        .candidates-table tr {
            background: #fff;
            border: 1px solid #e8eef7;
            border-radius: 18px;
            padding: 14px;
            margin-bottom: 14px;
            box-shadow: 0 10px 24px rgba(17,40,74,.06);
        }

        .candidates-table td {
            border: 0;
            padding: 10px 0;
            display: flex;
            justify-content: space-between;
            gap: 16px;
            align-items: flex-start;
        }

            .candidates-table td::before {
                content: attr(data-label);
                font-weight: 900;
                color: var(--tf-navy);
                min-width: 96px;
            }

            .candidates-table td:first-child {
                display: block;
            }

                .candidates-table td:first-child::before {
                    display: none;
                }

            .candidates-table td.text-end {
                text-align: left !important;
            }
}

.admin-mobile-bar {
    display: none;
}

.admin-offcanvas .offcanvas-body {
    padding: 18px;
}

@media (max-width: 992px) {
    .admin-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 18px;
        background: #fff;
        border-bottom: 1px solid var(--tf-border);
        position: sticky;
        top: 74px;
        z-index: 900;
    }

    .admin-shell {
        display: block;
        height: auto;
        overflow: visible;
    }

        .admin-shell > .sidebar {
            display: none;
        }

    .content {
        height: auto;
        overflow: visible;
        padding: 18px;
    }

    body:has(.admin-shell) {
        overflow: auto;
    }

    .admin-offcanvas {
        width: 310px;
    }

        .admin-offcanvas .logo-box {
            margin-bottom: 18px;
        }

        .admin-offcanvas .side-menu {
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
        }

        .admin-offcanvas .side-link {
            justify-content: flex-start;
        }
}

/* Navbar login fixed */
.login-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-navbar-login {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff !important;
    border-radius: 999px;
    font-weight: 800;
    padding: 8px 14px;
}

    .btn-navbar-login:hover {
        background: rgba(255,255,255,.22);
    }

.tf-navbar .btn-user {
    width: auto !important;
    min-width: auto;
    max-width: 260px;
}

.tf-navbar .user-dropdown {
    width: auto;
}

/* Admin mobile bar */
.admin-mobile-bar {
    display: none;
}

.admin-menu-btn {
    border: 0;
    background: linear-gradient(135deg, var(--tf-navy), var(--tf-blue));
    color: #fff;
    border-radius: 18px;
    padding: 12px 18px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 25px rgba(37,99,235,.22);
}

    .admin-menu-btn i {
        font-size: 1.4rem;
    }

@media (max-width: 992px) {
    .tf-navbar {
        padding: 10px 0;
    }

        .tf-navbar .navbar {
            padding: 0;
        }

        .tf-navbar .container-fluid {
            padding-left: 14px !important;
            padding-right: 14px !important;
        }

    .brand,
    .tf-brand {
        font-size: 1rem;
    }

    .brand-mark {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .navbar-collapse {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(255,255,255,.14);
    }

    .navbar-nav {
        align-items: stretch !important;
    }

    .login-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

        .login-actions .btn {
            width: 100%;
        }

    .tf-navbar .btn-user {
        width: 100% !important;
        max-width: none;
        justify-content: center;
        padding: 10px 14px;
    }

    .tf-navbar .dropdown-menu {
        width: 100%;
    }

    .admin-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
        background: #fff;
        border-bottom: 1px solid var(--tf-border);
        position: sticky;
        top: 64px;
        z-index: 900;
    }

        .admin-mobile-bar strong {
            font-size: 1rem;
            color: var(--tf-navy);
            text-align: right;
            line-height: 1.2;
        }

    .admin-shell > .sidebar {
        display: none;
    }

    .admin-shell {
        display: block;
        height: auto;
        overflow: visible;
    }

    .content {
        height: auto;
        overflow: visible;
        padding: 16px;
    }

    body:has(.admin-shell) {
        overflow: auto;
    }
}

@media (max-width: 576px) {
    .brand span:last-child {
        font-size: .95rem;
    }

    .admin-mobile-bar {
        top: 64px;
    }

    .admin-menu-btn {
        padding: 10px 14px;
        border-radius: 16px;
    }

    .admin-mobile-bar strong {
        font-size: .95rem;
    }
}

.tf-navbar .user-dropdown {
    width: auto;
}

.tf-navbar .btn-user {
    width: auto !important;
    min-width: 260px;
    height: 52px;
    justify-content: flex-start;
    gap: 12px;
    padding: 8px 18px 8px 8px;
    border-radius: 999px;
    font-size: .95rem;
}

.tf-navbar .user-avatar {
    width: 38px;
    height: 38px;
    font-size: 1rem;
}

.tf-navbar .user-name {
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tf-navbar .dropdown-menu {
    min-width: 260px;
    font-size: .95rem;
}

@media (max-width: 992px) {
    .tf-navbar .user-dropdown {
        width: 100%;
    }

    .tf-navbar .btn-user {
        width: 100% !important;
        min-width: 0;
        max-width: none;
        height: 54px;
        justify-content: center;
        font-size: .95rem;
    }

    .tf-navbar .user-name {
        max-width: 220px;
    }

    .tf-navbar .dropdown-menu {
        width: 100%;
        min-width: 100%;
    }
}

.btn-whatsapp-circle,
.btn-whatsapp-share {
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(135deg, #128c4a, #25d366);
    box-shadow: 0 10px 22px rgba(18, 140, 74, 0.26);
    transition: all .2s ease;
    text-decoration: none;
}

.btn-whatsapp-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.3rem;
}

.btn-whatsapp-share {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    gap: 7px;
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
}

    .btn-whatsapp-share i {
        font-size: 1.05rem;
    }

    .btn-whatsapp-circle:hover,
    .btn-whatsapp-share:hover {
        background: linear-gradient(135deg, #0f7a41, #20bd5a);
        transform: translateY(-1px);
        color: #fff;
        box-shadow: 0 14px 26px rgba(18, 140, 74, 0.34);
    }

.job-search-form {
    width: min(100%, 420px);
}

.job-filter-form {
    width: min(100%, 920px);
}

.job-filter-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

    .job-filter-actions .form-control,
    .job-filter-actions .form-select {
        width: auto;
        min-width: 170px;
    }

@media (max-width: 768px) {
    .job-search-form {
        width: 100%;
    }
}

/* Base badge vacante */
.badge-job {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .3px;
}

/* Activa */
.job-active {
    background: rgba(37, 211, 102, 0.12);
    color: #16a34a;
    border: 1px solid rgba(37, 211, 102, 0.25);
}

/* Cerrada */
.job-closed {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-candidate {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
}

/* Estados */
.status-new {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-reviewed {
    background: #fef3c7;
    color: #b45309;
}

.status-preselected {
    background: #e0f2fe;
    color: #0369a1;
}

.status-interview {
    background: #ede9fe;
    color: #6d28d9;
}

.status-talent {
    background: #dcfce7;
    color: #15803d;
}

.status-rejected {
    background: #fee2e2;
    color: #b91c1c;
}

.status-hired {
    background: #bbf7d0;
    color: #166534;
}

.status-client {
    background: #cffafe;
    color: #155e75;
}

.status-offer {
    background: #fde68a;
    color: #92400e;
}

.status-default {
    background: #e5e7eb;
    color: #374151;
}

.report-summary {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, minmax(180px, .75fr));
    gap: 16px;
}

.report-score-panel,
.report-insight {
    background: #fff;
    border: 1px solid #e8eef7;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 39, 74, .08);
    padding: 18px;
}

.report-score-panel {
    display: grid;
    gap: 9px;
}

.report-score-panel > span,
.report-insight small {
    color: #64748b;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.report-score-panel strong,
.report-insight strong {
    display: block;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 15px;
    font-size: 1.65rem;
    line-height: 1;
}

.report-score-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef7;
}

.report-score-track > div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #16a34a);
}

.report-insight {
    display: flex;
    min-height: 126px;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.report-status-row,
.report-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e8eef7;
}

.report-status-row:last-child,
.report-metric-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.report-status-row strong {
    min-width: 38px;
    text-align: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: #f8fbff;
    color: #0f274a;
    font-weight: 900;
}

.report-panel .badge-candidate,
.report-panel .badge-score {
    white-space: nowrap;
}

@media (max-width: 992px) {
    .report-summary {
        grid-template-columns: 1fr;
    }
}

.history-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border: 1px solid #e8eef7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 39, 74, .08);
}

.history-kicker {
    color: #64748b;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.history-hero h2 {
    margin: 4px 0;
    color: #0f274a;
    font-size: 1.55rem;
    font-weight: 900;
}

.history-hero p {
    margin: 0;
    color: #64748b;
}

.history-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.history-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e8eef7;
    border-radius: 8px;
    background: #f8fbff;
}

.history-status-card strong {
    color: #0f274a;
    font-size: 1.25rem;
    font-weight: 900;
}

.history-gantt-wrap {
    overflow-x: auto;
    padding: 86px 12px 6px;
    margin-top: -64px;
}

.history-gantt {
    min-width: 760px;
}

.history-gantt-head {
    display: flex;
    justify-content: space-between;
    margin-left: 245px;
    padding: 0 0 10px;
    color: #64748b;
    font-size: .8rem;
    font-weight: 800;
}

.history-row {
    display: grid;
    grid-template-columns: 225px minmax(420px, 1fr);
    gap: 20px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #e8eef7;
}

.history-person {
    display: grid;
    gap: 4px;
}

.history-person strong {
    color: #0f274a;
    font-weight: 900;
}

.history-person span:not(.badge-score) {
    color: #64748b;
    font-size: .82rem;
    word-break: break-word;
}

.history-person .badge-score {
    width: fit-content;
    padding: 5px 10px;
}

.history-track {
    position: relative;
    height: 46px;
    border-radius: 999px;
    background: linear-gradient(90deg, #eef4ff, #f8fbff);
    border: 1px solid #d8e3f0;
}

.history-track::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 50%;
    height: 3px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: #cbd5e1;
}

.history-event {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.history-event > span {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 6px 14px rgba(15, 39, 74, .22);
}

.history-event.status-new > span { background: #1d4ed8; }
.history-event.status-reviewed > span { background: #b45309; }
.history-event.status-preselected > span { background: #0369a1; }
.history-event.status-interview > span { background: #6d28d9; }
.history-event.status-talent > span { background: #15803d; }
.history-event.status-rejected > span { background: #b91c1c; }
.history-event.status-hired > span { background: #166534; }
.history-event.status-client > span { background: #155e75; }
.history-event.status-offer > span { background: #92400e; }
.history-event.status-default > span { background: #374151; }

.history-popover {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 220px;
    transform: translateX(-50%);
    padding: 12px;
    border-radius: 8px;
    background: #0f274a;
    color: #fff;
    box-shadow: 0 16px 32px rgba(15, 39, 74, .25);
}

.history-event-start .history-popover {
    left: 0;
    transform: translateX(0);
}

.history-event-end .history-popover {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.history-popover strong,
.history-popover small {
    display: block;
}

.history-popover small {
    margin-top: 4px;
    color: #dbeafe;
}

.history-event:hover .history-popover {
    display: block;
}

@media (max-width: 768px) {
    .history-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .history-gantt {
        min-width: 680px;
    }
}

.admin-mobile-topbar {
    display: none;
}

@media (max-width: 992px) {
    .admin-mobile-bar {
        display: none !important;
    }

    .admin-mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 18px 16px;
        background: #fff;
        border-bottom: 1px solid var(--tf-border);
        position: sticky;
        top: 64px;
        z-index: 900;
    }

    .admin-mobile-left {
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: 0;
    }

    .mobile-menu-square {
        width: 58px;
        height: 58px;
        border-radius: 16px;
        border: 2px solid #111827;
        background: #fff;
        color: #111827;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        flex-shrink: 0;
    }

    .admin-mobile-title {
        font-size: 1.45rem;
        font-weight: 800;
        color: #111827;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-mobile-topbar .user-dropdown {
        flex-shrink: 0;
        width: auto;
    }

    .admin-mobile-topbar .btn-user {
        width: 142px !important;
        min-width: 142px;
        height: 58px;
        border-radius: 16px;
        background: #fff;
        border: 1px solid #d1d5db;
        color: #111827 !important;
        justify-content: center;
        padding: 8px;
    }

    .admin-mobile-topbar .user-avatar {
        width: 44px;
        height: 44px;
        background: #1f2933;
        color: #fff;
    }

    .admin-mobile-topbar .user-name {
        display: none;
    }

    .admin-mobile-topbar .btn-user::after {
        color: #111827;
        margin-left: 10px;
    }

    .admin-mobile-topbar .dropdown-menu {
        min-width: 230px;
        right: 0;
    }
}

@media (max-width: 576px) {
    .mobile-menu-square {
        width: 50px;
        height: 50px;
        font-size: 1.55rem;
    }

    .admin-mobile-title {
        font-size: 1.25rem;
    }

    .admin-mobile-topbar .btn-user {
        width: 108px !important;
        min-width: 108px;
        height: 50px;
    }

    .admin-mobile-topbar .user-avatar {
        width: 38px;
        height: 38px;
    }
}

.admin-body {
    background: var(--tf-bg);
    overflow: hidden;
}

.admin-content-wrapper {
    min-width: 0;
    height: calc(100vh);
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    height: 86px;
    background: #fff;
    border-bottom: 1px solid var(--tf-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    flex-shrink: 0;
}

.admin-main {
    flex: 1;
    overflow-y: auto;
}

.admin-page-title {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--tf-navy);
}

.admin-page-subtitle {
    color: var(--tf-muted);
    font-size: .9rem;
}

.user-menu-btn {
    height: 54px;
    min-width: 150px;
    border-radius: 18px;
    border: 1px solid #d1d5db;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    color: #111827;
}

    .user-menu-btn .user-avatar {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #1f2937;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
    }

.mobile-menu-square {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    border: 2px solid #111827;
    background: #fff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.mobile-sidebar-nav {
    padding: 10px;
}

    .mobile-sidebar-nav .side-link {
        margin-bottom: 8px;
    }

@media (min-width: 993px) {
    .admin-shell {
        grid-template-columns: 280px minmax(0, 1fr);
        height: 100vh;
    }

    .sidebar {
        height: 100vh;
        top: 0;
    }

    .content {
        height: auto;
        padding: 32px;
    }
}

@media (max-width: 992px) {
    .admin-body {
        overflow: auto;
    }

    .admin-shell {
        display: block;
        height: auto;
        overflow: visible;
    }

    .admin-content-wrapper {
        height: auto;
        min-height: 100vh;
    }

    .admin-topbar {
        height: auto;
        min-height: 84px;
        padding: 14px 16px;
        position: sticky;
        top: 0;
        z-index: 900;
    }

    .admin-main {
        overflow: visible;
        padding: 18px;
    }

    .admin-page-title {
        font-size: 1.35rem;
    }

    .admin-page-subtitle {
        display: none;
    }

    .user-menu-btn {
        min-width: 108px;
        height: 54px;
        padding: 6px 10px;
    }
}

@media (max-width: 576px) {
    .mobile-menu-square {
        width: 50px;
        height: 50px;
        font-size: 1.55rem;
    }

    .user-menu-btn {
        min-width: 88px;
        height: 50px;
    }

        .user-menu-btn .user-avatar {
            width: 38px;
            height: 38px;
        }

    .admin-page-title {
        font-size: 1.2rem;
    }

    .admin-main {
        padding: 14px;
    }
}

.apply-hero {
    min-height: 100vh;
    padding: 48px 0;
    background: radial-gradient(circle at top left, rgba(212,175,55,.22), transparent 30%), radial-gradient(circle at top right, rgba(37,99,235,.25), transparent 35%), linear-gradient(135deg, #0f274a, #1d4ed8);
}

.apply-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
    gap: 28px;
    align-items: start;
}

.apply-info,
.apply-form-card {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,.18);
}

.apply-info {
    padding: 34px;
}

.apply-form-card {
    padding: 30px;
    position: sticky;
    top: 24px;
}

.apply-company {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.apply-company-logo,
.apply-company-logo-fallback {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 6px;
}

.apply-company-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tf-gold);
    color: var(--tf-navy);
    font-weight: 900;
}

.apply-company-name {
    font-weight: 900;
    color: var(--tf-navy);
    font-size: 1.1rem;
}

.apply-company-meta {
    color: var(--tf-muted);
    font-weight: 700;
}

.apply-badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--tf-blue);
    font-weight: 900;
    margin-bottom: 16px;
}

.apply-info h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 900;
    color: var(--tf-navy);
    letter-spacing: -1.4px;
    margin-bottom: 16px;
}

.apply-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

    .apply-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #f8fbff;
        border: 1px solid #e8eef7;
        border-radius: 999px;
        padding: 8px 13px;
        font-weight: 800;
        color: #334155;
    }

.apply-section {
    margin-top: 28px;
}

    .apply-section h5,
    .apply-form-card h3 {
        font-weight: 900;
        color: var(--tf-navy);
    }

.job-text {
    white-space: pre-line;
    line-height: 1.8;
    color: #172033;
    font-size: 1rem;
}

.apply-success {
    text-align: center;
    padding: 34px 12px;
}

    .apply-success i {
        font-size: 4rem;
        color: #16a34a;
        display: block;
        margin-bottom: 16px;
    }

    .apply-success h3 {
        font-weight: 900;
        color: var(--tf-navy);
    }

@media (max-width: 992px) {
    .apply-wrapper {
        grid-template-columns: 1fr;
    }

    .apply-form-card {
        position: static;
    }
}

@media (max-width: 576px) {
    .apply-hero {
        padding: 20px 0;
    }

    .apply-info,
    .apply-form-card {
        border-radius: 22px;
        padding: 22px;
    }

    .apply-company-logo,
    .apply-company-logo-fallback {
        width: 54px;
        height: 54px;
    }

    .apply-info h1 {
        font-size: 2rem;
    }
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.jobs-public-hero {
    min-height: 100vh;
    padding: 56px 0;
    background: radial-gradient(circle at top left, rgba(212,175,55,.22), transparent 28%), radial-gradient(circle at top right, rgba(37,99,235,.25), transparent 35%), linear-gradient(135deg, #0f274a, #1d4ed8);
}

.jobs-hero-content {
    max-width: 760px;
    color: white;
    margin-bottom: 28px;
}

    .jobs-hero-content h1 {
        font-size: clamp(2.4rem, 6vw, 4.6rem);
        font-weight: 900;
        letter-spacing: -2px;
        line-height: 1;
        margin-top: 16px;
    }

    .jobs-hero-content p {
        color: rgba(255,255,255,.78);
        font-size: 1.15rem;
        max-width: 680px;
    }

.jobs-filter-card {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 28px 70px rgba(0,0,0,.18);
}

.public-job-card {
    height: 100%;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 22px 55px rgba(0,0,0,.14);
    display: flex;
    flex-direction: column;
}

.public-job-company {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

    .public-job-company img,
    .public-job-company span {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        object-fit: contain;
        background: white;
        border: 1px solid #e5e7eb;
        padding: 6px;
    }

    .public-job-company span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--tf-gold);
        color: var(--tf-navy);
        font-weight: 900;
    }

.public-job-card h3 {
    color: var(--tf-navy);
    font-weight: 900;
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.public-job-card p {
    color: var(--tf-muted);
    line-height: 1.65;
    flex: 1;
}

.public-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

    .public-job-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #f8fbff;
        border: 1px solid #e8eef7;
        border-radius: 999px;
        padding: 7px 11px;
        font-size: .85rem;
        font-weight: 800;
        color: #334155;
    }

.jobs-empty {
    background: rgba(255,255,255,.95);
    border-radius: 26px;
    padding: 48px 20px;
    text-align: center;
    color: var(--tf-muted);
    font-weight: 700;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

@media (max-width: 576px) {
    .jobs-public-hero {
        padding: 28px 0;
    }

    .jobs-filter-card,
    .public-job-card {
        border-radius: 22px;
        padding: 20px;
    }

    .jobs-hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
}

.marketing-popup {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 35px 90px rgba(0,0,0,.35);
    background: #fff;
}

.marketing-popup-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    min-height: 420px;
    background: #fff;
}

.marketing-media-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 24px;
    background: radial-gradient(circle at top left, #e8f0ff, #f8fbff 45%, #eef4ff);
    border-right: 1px solid #e4ecf7;
}

.marketing-popup-body {
    background: #fff;
    padding: 34px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.marketing-popup-body h4 {
    margin: 0;
    color: #0f274a;
    font-size: 1.75rem;
    line-height: 1.12;
    font-weight: 900;
}

.marketing-popup-body p {
    margin: 0 0 8px;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

.marketing-popup-badge {
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.marketing-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    background-color: white;
    border-radius: 50%;
    opacity: 1;
    padding: 10px;
}

.marketing-popup .carousel-control-prev,
.marketing-popup .carousel-control-next {
    width: 46px;
    height: 46px;
    top: 50%;
    background: rgba(15, 39, 74, .55);
    border-radius: 50%;
    opacity: 1;
}

.marketing-popup-img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15,39,74,.12);
}

.marketing-popup-placeholder {
    width: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f274a, #2563eb);
    color: #fff;
}

.marketing-popup-placeholder i {
    font-size: 3rem;
}

.marketing-popup-placeholder span {
    font-size: 1.35rem;
    font-weight: 900;
}

.marketing-indicators {
    position: static;
    margin: 0 0 18px;
}

    .marketing-indicators [data-bs-target] {
        background-color: var(--tf-blue);
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }

.marketing-popup .carousel-control-prev {
    left: 16px;
}

.marketing-popup .carousel-control-next {
    right: 16px;
}

@media (max-width: 576px) {
    .marketing-popup-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .marketing-media-panel {
        min-height: 230px;
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid #e4ecf7;
    }

    .marketing-popup-img {
        max-height: 220px;
    }

    .marketing-popup .carousel-control-prev,
    .marketing-popup .carousel-control-next {
        top: 118px;
    }

    .marketing-popup-body {
        padding: 24px !important;
    }

    .marketing-popup-body h4 {
        font-size: 1.35rem;
    }
}

.marketing-close:disabled,
.marketing-close-disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-weight: 900;
    font-size: 1.2rem;
    color: white;
    letter-spacing: .5px;
}

@media (max-width: 576px) {
    .brand-logo {
        height: 32px;
    }

    .brand-name {
        font-size: 1rem;
    }
}

.landing-hero {
    min-height: calc(100vh - 74px);
    padding: 90px 0;
    background: radial-gradient(circle at 15% 15%, rgba(212,175,55,.26), transparent 28%), radial-gradient(circle at 85% 10%, rgba(59,130,246,.35), transparent 30%), linear-gradient(135deg, #0f274a, #1d4ed8);
    color: white;
}

.landing-hero-v2 {
    position: relative;
    min-height: calc(100vh - 74px);
    overflow: hidden;
    background: #102a4d;
    color: #fff;
    display: flex;
    align-items: center;
    isolation: isolate;
}

    .landing-hero-v2::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(16,42,77,.9);
        z-index: -2;
    }

    .landing-hero-v2::after {
        content: "";
        position: absolute;
        inset: auto 0 0;
        height: 8px;
        background: #f8fbff;
        z-index: -1;
    }

.landing-hero-bg-logo {
    position: absolute;
    right: 7vw;
    top: 50%;
    width: min(42vw, 560px);
    transform: translateY(-50%);
    opacity: .08;
    pointer-events: none;
}

.landing-hero-content {
    position: relative;
    z-index: 1;
    padding: 86px 12px 128px;
}

    .landing-hero-content h1 {
        margin-top: 18px;
        font-size: clamp(4rem, 13vw, 9.2rem);
        line-height: .82;
        font-weight: 950;
        letter-spacing: 0;
    }

.landing-lead {
    max-width: 780px;
    margin-top: 26px;
    font-size: clamp(1.08rem, 2vw, 1.42rem);
    color: rgba(255,255,255,.86);
    line-height: 1.62;
}

.landing-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 780px;
    margin-top: 34px;
}

    .landing-hero-metrics div {
        background: rgba(255,255,255,.1);
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 18px;
        padding: 16px;
        backdrop-filter: blur(12px);
    }

    .landing-hero-metrics strong {
        display: block;
        font-size: 1.2rem;
        font-weight: 950;
    }

    .landing-hero-metrics span {
        display: block;
        margin-top: 4px;
        color: rgba(255,255,255,.76);
        font-weight: 700;
        font-size: .88rem;
    }

.landing-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 16px 34px rgba(0,0,0,.18);
    animation: landing-bounce 1.8s ease-in-out infinite;
}

    .landing-scroll-cue:hover {
        color: #fff;
        background: rgba(255,255,255,.2);
    }

@keyframes landing-bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, -7px);
    }
}

.landing-badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 900;
    font-size: .9rem;
}

.landing-hero h1 {
    margin-top: 18px;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: .95;
    font-weight: 950;
    letter-spacing: -2.5px;
}

.landing-subtitle {
    max-width: 680px;
    margin-top: 24px;
    font-size: 1.18rem;
    color: rgba(255,255,255,.82);
    line-height: 1.7;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn-ghost-light {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: white !important;
}

.landing-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 26px;
    color: rgba(255,255,255,.82);
    font-weight: 800;
}

    .landing-trust span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

.landing-demo-card {
    background: rgba(255,255,255,.96);
    color: var(--tf-text);
    border-radius: 32px;
    padding: 26px;
    box-shadow: 0 35px 90px rgba(0,0,0,.26);
}

.demo-header,
.demo-candidate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.demo-header {
    margin-bottom: 18px;
}

    .demo-header strong {
        color: var(--tf-navy);
        font-size: 1.2rem;
    }

    .demo-header div div,
    .demo-candidate span {
        color: var(--tf-muted);
        font-size: .9rem;
    }

.demo-pill {
    background: #dcfce7;
    color: #166534;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 900;
    font-size: .78rem;
}

.demo-candidate {
    background: #f8fbff;
    border: 1px solid #e8eef7;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
}

    .demo-candidate strong {
        display: block;
        color: var(--tf-navy);
    }

.demo-footer {
    margin-top: 18px;
    background: linear-gradient(135deg, #eef4ff, #fff);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 14px;
    color: var(--tf-navy);
    font-weight: 800;
}

.landing-section {
    padding: 80px 0;
    background: #f8fbff;
}

    .landing-section .section-kicker {
        background: #eef4ff;
        color: var(--tf-blue);
        border-color: #dbeafe;
    }

.section-title {
    margin-top: 14px;
    color: var(--tf-navy);
    font-weight: 950;
    letter-spacing: -1px;
}

.landing-section-heading {
    max-width: 820px;
    margin: 0 auto 42px;
    text-align: center;
}

    .landing-section-heading p {
        color: var(--tf-muted);
        font-size: 1.05rem;
        line-height: 1.72;
        margin: 14px auto 0;
    }

.landing-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    height: 100%;
    background: white;
    border: 1px solid #e8eef7;
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 20px 45px rgba(17,40,74,.08);
}

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 28px 60px rgba(17,40,74,.12);
    }

    .feature-card i {
        width: 52px;
        height: 52px;
        border-radius: 18px;
        background: linear-gradient(135deg, var(--tf-navy), var(--tf-blue));
        color: white;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.45rem;
        margin-bottom: 18px;
    }

    .feature-card h5 {
        color: var(--tf-navy);
        font-weight: 900;
    }

    .feature-card p {
        color: var(--tf-muted);
        margin-bottom: 0;
    }

.landing-agency-band {
    background: #fff;
}

    .landing-agency-band .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
        gap: 34px;
        align-items: center;
    }

.agency-copy h2 {
    color: var(--tf-navy);
    font-weight: 950;
    letter-spacing: -1px;
    margin-top: 14px;
}

.agency-copy p {
    color: var(--tf-muted);
    font-size: 1.05rem;
    line-height: 1.72;
    margin-bottom: 0;
}

.agency-flow {
    display: grid;
    gap: 12px;
}

    .agency-flow div {
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        align-items: center;
        gap: 14px;
        padding: 16px;
        border: 1px solid #e8eef7;
        border-radius: 18px;
        background: #f8fbff;
        box-shadow: 0 16px 36px rgba(17,40,74,.07);
    }

    .agency-flow strong {
        width: 54px;
        height: 54px;
        border-radius: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        background: #1d4ed8;
        font-size: 1.4rem;
        font-weight: 950;
    }

    .agency-flow span {
        color: var(--tf-navy);
        font-weight: 900;
    }

.landing-process {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

    .landing-process div {
        background: #fff;
        border: 1px solid #e8eef7;
        border-radius: 24px;
        padding: 28px;
        box-shadow: 0 20px 45px rgba(17,40,74,.08);
    }

    .landing-process i {
        font-size: 2rem;
        color: #1d4ed8;
        margin-bottom: 14px;
    }

    .landing-process h5 {
        color: var(--tf-navy);
        font-weight: 900;
    }

    .landing-process p {
        color: var(--tf-muted);
        margin-bottom: 0;
    }

.landing-cta {
    padding: 70px 0;
    background: white;
}

.cta-box {
    background: radial-gradient(circle at top right, rgba(212,175,55,.25), transparent 30%), linear-gradient(135deg, #0f274a, #1d4ed8);
    color: white;
    border-radius: 34px;
    padding: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    box-shadow: 0 30px 80px rgba(17,40,74,.22);
}

    .cta-box h2 {
        font-weight: 950;
        letter-spacing: -1px;
        margin-top: 12px;
    }

    .cta-box p {
        color: rgba(255,255,255,.8);
        margin-bottom: 0;
    }

@media (max-width: 768px) {
    .landing-hero-v2 {
        min-height: calc(100vh - 64px);
    }

        .landing-hero-v2::before {
            background: rgba(16,42,77,.92);
        }

    .landing-hero-bg-logo {
        width: 92vw;
        right: -18vw;
        opacity: .06;
    }

    .landing-hero-content {
        padding-top: 58px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

        .landing-hero-content h1 {
            font-size: clamp(3rem, 16vw, 4.8rem);
            line-height: .92;
            overflow-wrap: normal;
            white-space: normal;
        }

    .landing-badge {
        max-width: 100%;
        white-space: normal;
        justify-content: center;
        text-align: center;
        line-height: 1.3;
    }

    .landing-lead {
        font-size: 1.04rem;
        line-height: 1.58;
    }

    .landing-hero-metrics,
    .landing-module-grid,
    .landing-process,
    .landing-agency-band .container {
        grid-template-columns: 1fr;
    }

    .landing-hero-metrics {
        margin-bottom: 24px;
    }

    .landing-hero {
        padding: 56px 0;
    }

    .landing-actions .btn {
        width: 100%;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }

        .cta-box .btn {
            width: 100%;
        }
}

.jobs-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.jobs-brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    text-decoration: none;
    color: #fff;
}

    .jobs-brand:hover {
        color: #fff;
        opacity: .95;
    }

.jobs-brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255,255,255,.12);
    padding: .35rem;
    backdrop-filter: blur(10px);
}

.jobs-brand strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
}

.jobs-brand-subtitle {
    font-size: .85rem;
    opacity: .8;
}

.job-search-form {
    width: 100%;
}

@media (min-width: 768px) {
    .job-search-form {
        width: auto;
        min-width: 420px;
    }
}

.job-search-form .form-control {
    min-height: 38px;
}

.job-search-form .btn {
    min-height: 38px;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .job-search-form .btn,
    .job-search-form .form-control {
        width: 100%;
    }
}

.candidate-actions .btn {
    min-height: 44px;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .candidate-actions .btn,
    .candidate-actions form {
        width: 100%;
    }
}

.tf-alert {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid transparent;
    animation: fadeIn .25s ease;
}

.tf-alert-danger {
    background: #fff5f5;
    border-color: #fecaca;
}

.tf-alert-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: #dc2626;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tf-alert-title {
    font-weight: 700;
    font-size: 15px;
    color: #991b1b;
    margin-bottom: 6px;
}

.tf-alert-content {
    flex: 1;
}

.tf-alert-list {
    color: #7f1d1d;
    font-size: 14px;
}

    .tf-alert-list ul {
        margin: 0;
        padding-left: 18px;
    }

    .tf-alert-list li {
        margin-bottom: 4px;
    }

.validation-summary-valid {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.export-actions .btn,
.btn-tf,
.btn-outline-primary {
    min-height: 44px;
    font-weight: 600;
    transition: all .2s ease;
}

    .export-actions .btn:hover,
    .btn-tf:hover,
    .btn-outline-primary:hover {
        transform: translateY(-1px);
    }

@media (max-width: 576px) {
    .export-actions,
    .export-actions .btn {
        width: 100%;
    }
}

.pagination-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid #e8eef7;
    margin-top: 14px;
}

.pagination-summary {
    color: var(--tf-muted);
    font-weight: 700;
    font-size: .9rem;
}

.pagination .page-link {
    border-radius: 999px !important;
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.pagination .active .page-link {
    background: var(--tf-navy);
    border-color: var(--tf-navy);
}

.dashboard-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 900;
    font-size: .82rem;
    white-space: nowrap;
}

.pill-primary {
    background: #eef4ff;
    color: var(--tf-navy);
}

.pill-success {
    background: #dcfce7;
    color: #166534;
}

.talent-area-pill {
    max-width: 100%;
    justify-content: flex-start;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
    text-align: left;
}

.pill-warning {
    background: #fef9c3;
    color: #854d0e;
}

.pill-danger {
    background: #fee2e2;
    color: #991b1b;
}

.btn-view-responsive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 86px;
    white-space: nowrap;
}

.btn:not(.btn-close) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.15;
}

.btn:not(.btn-close) i {
    line-height: 1;
}

.actions-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.actions-group.vertical {
    flex-direction: column;
    align-items: stretch;
}

.actions-group.compact {
    gap: 6px;
}

.actions-group.detail-actions {
    width: min(100%, 680px);
    justify-content: flex-end;
}

.actions-group.search-actions {
    align-items: stretch;
    flex-wrap: nowrap;
}

.actions-group form {
    display: inline-flex;
}

.actions-group .btn,
.actions-group button,
.actions-group a.btn,
.tf-card .table td .btn,
.tf-card .table td button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    line-height: 1.15;
    white-space: nowrap;
}

.actions-group .btn-sm,
.tf-card .table td .btn-sm {
    min-height: 36px;
    padding-inline: 12px;
}

.actions-group .btn i,
.tf-card .table td .btn i {
    line-height: 1;
}

.text-end .actions-group {
    justify-content: flex-end;
}

.job-search-form .actions-group.search-actions .form-control {
    min-width: 220px;
}

.job-search-form .actions-group.job-filter-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.job-search-form .actions-group.job-filter-actions .form-control,
.job-search-form .actions-group.job-filter-actions .form-select {
    min-width: 170px;
    width: auto;
}

.copy-link-btn {
    min-width: 108px;
}

.btn-whatsapp-circle,
.btn-whatsapp-share {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .pagination-shell {
        align-items: stretch;
    }

    .pagination-shell nav,
    .pagination-shell .pagination {
        width: 100%;
        justify-content: center;
    }

    .btn-view-responsive {
        width: 100%;
    }

    .actions-group.compact .copy-link-btn,
    .actions-group.compact .btn-whatsapp-share {
        flex: 1 1 140px;
    }

    .actions-group,
    .actions-group.detail-actions,
    .text-end .actions-group {
        width: 100%;
        justify-content: stretch !important;
    }

    .actions-group form,
    .actions-group .btn,
    .actions-group button,
    .actions-group a.btn {
        width: 100%;
    }

    .actions-group.search-actions {
        flex-direction: column;
    }

    .job-search-form .actions-group.search-actions .form-control {
        min-width: 0;
        width: 100%;
    }

    .tf-card .table td.text-end {
        text-align: left !important;
    }
}
