/* ========================================
   GLOBAL & THEME VARIABLES (PREMIUM TECH AGGREGATOR)
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --hero-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --canvas-bg: #f8fafc;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-border-hover: #cbd5e1;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.1);
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--canvas-bg);
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

/* ========================================
   HERO HEADER & SEARCH DOCK (HUD FIJO SUPERIOR)
   ======================================== */
.hero-header {
    background: var(--hero-bg);
    color: #ffffff;
    padding: 24px 0 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: visible;
    flex-shrink: 0;
}

.hero-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.hero-logo-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.hero-header-right-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Rectangular Language Selector Button */
.btn-lang-dropdown {
    height: 38px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 0 14px;
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    box-sizing: border-box;
}

.btn-lang-dropdown:hover,
.btn-lang-dropdown:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    outline: none;
}

.lang-flag-icon {
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dropdown-menu-lang {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 6px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    margin-top: 6px;
    min-width: 100%;
    z-index: 1050;
}

.dropdown-menu-lang .dropdown-item {
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.dropdown-menu-lang .dropdown-item:hover,
.dropdown-menu-lang .dropdown-item.active {
    background: #2563eb;
    color: #ffffff;
}

.hero-stats-badge {
    height: 38px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 0 16px;
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.hero-search-dock {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 8px 10px;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group svg {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input-group input {
    width: 100%;
    border: 1px solid transparent;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    padding: 10px 14px 10px 42px;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.search-input-group input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.hero-search-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 24px;
    font-size: 0.925rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* ========================================
   FULL-PAGE BLOCKING LOADING OVERLAY
   ======================================== */
.loader-overlay-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.loader-overlay-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 36px 42px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--card-border);
}

/* ========================================
   APP LAYOUT (FIJO SIN SCROLL DE PÁGINA)
   ======================================== */
main.container {
    flex: 1;
    min-height: 0;
    padding-top: 18px;
    padding-bottom: 18px;
}

.app-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 24px;
    height: 100%;
    min-height: 0;
    margin: 0;
}

/* FILTERS SIDEBAR CON SCROLL INDEPENDIENTE */
.filters-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--card-border);
}

.sidebar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-reset-filters {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.btn-reset-filters:hover {
    background: var(--primary-light);
}

.filter-group {
    margin-bottom: 18px;
}

.filter-label {
    font-size: 0.825rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-group input.form-control {
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 9px 12px;
    font-size: 0.875rem;
    color: var(--text-main);
    background-color: #ffffff;
    transition: var(--transition-fast);
}

.filter-group input.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

/* Custom Select Styling */
.form-select-custom {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 9px 38px 9px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    background-color: #ffffff;
    width: 100%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.form-select-custom:hover {
    border-color: var(--card-border-hover);
    background-color: #f8fafc;
}

.form-select-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

/* ============================================================
   SINGLE SALARY SLIDER & UNIT TOGGLE
   ============================================================ */
.salary-unit-toggle {
    display: flex;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 12px;
}

.salary-unit-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 7px 0;
    font-size: 0.825rem;
    font-weight: 700;
    color: #2563eb;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.salary-unit-btn.active {
    background: #2563eb;
    color: #ffffff;
}

.salary-unit-btn:not(:last-child) {
    border-right: 1px solid #bfdbfe;
}

.salary-single-slider-wrap {
    position: relative;
    padding-top: 24px;
    padding-bottom: 4px;
}

.salary-single-bubble {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    pointer-events: none;
    white-space: nowrap;
    transition: left 0.05s ease-out;
}

.salary-clean-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #2563eb 0%, #2563eb 0%, #e2e8f0 0%, #e2e8f0 100%);
    outline: none;
    cursor: pointer;
    margin: 4px 0 6px;
}

.salary-clean-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #2563eb;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.salary-clean-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.salary-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-top: 4px;
}

/* ============================================================
   DATE DROPDOWN & CUSTOM INTERACTIVE CALENDAR WIDGET
   ============================================================ */
.date-dropdown-toggle {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 9px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition-fast);
}

.date-dropdown-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f8fafc;
}

.date-dropdown-panel {
    display: none;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.date-dropdown-panel.open {
    display: block;
    animation: fadeInDown 0.2s ease;
}

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

.date-presets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.date-preset-chip {
    background: #f1f5f9;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
}

.date-preset-chip:hover,
.date-preset-chip.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Custom Interactive Calendar Widget */
.custom-calendar-widget {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 4px;
}

.cal-month-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: lowercase;
}

.cal-month-title::first-letter {
    text-transform: uppercase;
}

.cal-nav-btn {
    background: none;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.cal-nav-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-fast);
}

.cal-day-cell.other-month {
    color: var(--text-light);
    opacity: 0.4;
}

.cal-day-cell:hover:not(.other-month) {
    background: var(--primary-light);
    color: var(--primary);
}

.cal-day-cell.selected-start,
.cal-day-cell.selected-end {
    background: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 700;
}

.cal-day-cell.in-range {
    background: #dbeafe !important;
    color: #1e40af !important;
    border-radius: 0;
}

.cal-day-cell.is-today {
    border: 1px solid var(--primary);
}

.calendar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--card-border);
}

.btn-cal-action {
    background: none;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.btn-cal-action:hover {
    background: var(--primary-light);
}

/* Modality Segmented Control */
.segmented-control {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: var(--radius-md);
    gap: 4px;
}

.segmented-option {
    flex: 1;
    text-align: center;
}

.segmented-option input {
    display: none;
}

.segmented-option label {
    display: block;
    padding: 6px 4px;
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.segmented-option input:checked + label {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ========================================
   FEED MAIN COLUMN (SCROLLBAR INDEPENDIENTE)
   ======================================== */
.feed-column {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

.feed-toolbar {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    flex-shrink: 0;
}

.feed-count-info {
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.feed-count-info span {
    color: var(--primary);
}

.feed-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* View Mode Selector Tabs */
.view-mode-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: var(--radius-md);
    gap: 4px;
}

.view-tab-btn {
    background: transparent;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.view-tab-btn:hover {
    color: var(--text-main);
}

.view-tab-btn.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pagination-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

#results {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
}

/* Custom sleek scrollbars */
.filters-sidebar::-webkit-scrollbar,
#results::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track,
#results::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.filters-sidebar::-webkit-scrollbar-thumb,
#results::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover,
#results::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================
   PREMIUM JOB CARDS FEED & VISIBLE TOOLTIPS
   ======================================== */
.job-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.job-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible !important;
}

.job-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.job-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    overflow: visible;
}

/* Company Logo Container & Extraction */
.job-company-avatar {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
}

.company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    padding: 4px;
    border-radius: 12px;
    transition: var(--transition-fast);
}

.company-initials-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.job-card-header-info {
    flex: 1;
    overflow: visible;
}

.job-badges-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
    overflow: visible;
}

.job-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    margin-bottom: 3px;
    display: block;
    line-height: 1.35;
    transition: var(--transition-fast);
}

.job-card-title:hover {
    color: var(--primary);
}

.job-card-company {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.job-card-company:hover {
    text-decoration: underline;
}

/* Bookmark SVG Button */
.job-bookmark-btn {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.job-bookmark-btn:hover {
    background: #ffe4e6;
    color: #e11d48;
    transform: scale(1.1);
}

.job-bookmark-btn.active {
    background: #ffe4e6;
    color: #e11d48;
}

.job-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.job-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.job-meta-item svg {
    color: var(--text-light);
}

.job-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px dashed var(--card-border);
    flex-wrap: wrap;
    gap: 12px;
}

.job-salary-tag {
    font-size: 0.875rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    cursor: help;
}

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

.btn-apply-primary {
    background: var(--primary);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 7px 16px;
    border-radius: var(--radius-md);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-apply-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-status-pill {
    background: #f1f5f9;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 5px 11px;
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-status-pill:hover {
    background: #e2e8f0;
}

.btn-status-pill.saved-active {
    background: #eff6ff;
    color: #2563eb;
    border-color: #93c5fd;
}

.btn-status-pill.applied-active {
    background: #ecfdf5;
    color: #059669;
    border-color: #6ee7b7;
}

.btn-status-pill.ignored-active {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* ==========================================
   PERFECTLY CENTERED & NON-CLIPPED TOOLTIPS
   ========================================== */
.custom-tooltip-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.custom-tooltip-box {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0f172a;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.custom-tooltip-trigger:hover .custom-tooltip-box {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.custom-tooltip-box::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

/* TOOLTIP HACIA ABAJO PARA ELEMENTOS SUPERIORES DE TARJETA */
.tooltip-bottom .custom-tooltip-box {
    top: calc(100% + 8px);
    bottom: auto;
    transform: translateX(-50%) translateY(-4px);
}

.tooltip-bottom:hover .custom-tooltip-box {
    transform: translateX(-50%) translateY(0);
}

.tooltip-bottom .custom-tooltip-box::after {
    bottom: 100%;
    top: auto;
    border-color: transparent transparent #0f172a transparent;
}

/* HUMAN READABLE SALARY TOOLTIP DESIGN (NO CLIPPING, PERFECT ALIGNMENT) */
.salary-tooltip-human {
    min-width: 275px;
    max-width: 330px;
    white-space: normal;
    text-align: left;
    padding: 12px 16px;
    left: 0 !important;
    transform: translateX(0) translateY(-4px) !important;
}

.salary-tooltip-human::after {
    left: 28px !important;
    transform: translateX(0) !important;
}

.custom-tooltip-trigger:hover .salary-tooltip-human {
    transform: translateX(0) translateY(-8px) !important;
}

.salary-human-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.salary-human-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.825rem;
    color: #cbd5e1;
    gap: 12px;
    white-space: nowrap;
}

.salary-human-row.highlight {
    background: rgba(56, 189, 248, 0.15);
    padding: 6px 10px;
    border-radius: 8px;
    color: #ffffff;
}

.salary-human-row.highlight strong {
    color: #38bdf8;
    font-size: 0.875rem;
}

.salary-sample-footer {
    font-size: 0.75rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 6px;
    margin-top: 6px;
    text-align: center;
}

/* DISTINCTIVE HIGH-QUALITY SVG ICON BADGES */
.icon-badge-pill {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.icon-badge-pill:hover {
    transform: scale(1.12);
}

.icon-badge-new {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.icon-badge-featured {
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.icon-badge-level {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

/* ========================================
   BADGES SYSTEM
   ======================================== */
.badge-pill {
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ATS-specific Badges */
.badge-ats-greenhouse { background: #dcf5e7; color: #166534; }
.badge-ats-lever { background: #dbeafe; color: #1e40af; }
.badge-ats-workday { background: #fef3c7; color: #92400e; }
.badge-ats-ashby { background: #ede9fe; color: #5b21b6; }
.badge-ats-icims { background: #cffafe; color: #155e75; }
.badge-ats-bamboohr { background: #fce7f3; color: #9d174d; }
.badge-ats-workable { background: #f1f5f9; color: #334155; }
.badge-ats-paylocity { background: #ffe4e0; color: #b03a2e; }
.badge-ats-unknown { background: #f1f5f9; color: #64748b; }

/* ========================================
   MODERN TABLE VIEW (SIN DOBLE BARRA DE SCROLL)
   ======================================== */
#table-feed-wrapper {
    width: 100%;
    overflow: visible;
}

#table-feed-wrapper .table-responsive {
    overflow-x: auto;
    overflow-y: visible !important;
    max-height: none !important;
}

.job-table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    overflow: visible;
    box-shadow: var(--shadow-sm);
}

.job-table-modern th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 0.775rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 16px;
    border-bottom: 1px solid var(--card-border);
}

.job-table-modern td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.9rem;
    vertical-align: middle;
}

.job-table-modern tr:hover td {
    background: #f8fafc;
}

/* ========================================
   MAP VIEW
   ======================================== */
#map-view {
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    html, body {
        height: auto;
        overflow: auto;
    }

    .app-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-search-dock {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        height: auto;
    }

    #results {
        height: auto;
        overflow: visible;
    }
}

/* MAP MODE LAYOUT EXTENSION (FORCE 100% FULL-WIDTH DISPLAY) */
body.map-mode .filters-sidebar {
    display: none !important;
}

body.map-mode .app-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

body.map-mode .feed-column {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    height: 100% !important;
}

body.map-mode #map-view {
    width: 100% !important;
    height: calc(100vh - 140px) !important;
    min-height: 550px !important;
}

body.map-mode #map-react-iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

html:has(body.cv-analyzer-mode),
body.cv-analyzer-mode {
    height: auto !important;
    min-height: 100vh !important;
    overflow: auto !important;
    overflow-y: auto !important;
    background-color: var(--canvas-bg) !important;
    color: var(--text-main) !important;
}

body.cv-analyzer-mode .hero-search-dock {
    display: none !important;
}

body.cv-analyzer-mode .app-layout {
    display: none !important;
}

body.cv-analyzer-mode #cv-analyzer-view {
    display: block !important;
}

body.cv-analyzer-mode main.container {
    height: auto !important;
    overflow: visible !important;
    max-width: 1050px !important;
    padding: 16px 16px 64px !important;
}

/* ========================================
   HEADER NAVIGATION TABS (OFERTAS | ANALIZADOR DE CVS)
   ======================================== */
.hero-brand-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hero-nav-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.hero-nav-tab.active {
    color: #ffffff;
    background: #2563eb;
    border-color: #3b82f6;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* HIDE UNNECESSARY MARKETING FLUFF & DECORATIVE CLUTTER */
.cv-badge,
.cv-scores-grid,
.cv-stats-strip,
.cv-marquee-section,
.cv-features-section,
.cv-steps-section,
.cv-mesh-orbs {
    display: none !important;
}

/* ========================================
   CV ANALYZER CLEAN DESIGN SYSTEM (JOB BOARD MATCH)
   ======================================== */
.cv-analyzer-container {
    padding: 24px 16px 48px 16px;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-main);
}

/* HERO SECTION */
.cv-hero-section {
    position: relative;
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}

.cv-mesh-orbs {
    display: none;
}

.cv-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cv-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    border: 1px solid #bfdbfe;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cv-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
}

.cv-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cv-hero-title strong {
    color: var(--primary);
}

.cv-hero-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 28px auto;
    line-height: 1.6;
}

/* INTERACTIVE SCANNER BOX */
.cv-interactive-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
}

.cv-box-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .cv-box-grid {
        grid-template-columns: 1fr;
    }
    .cv-hero-title {
        font-size: 1.5rem;
    }
}

/* UPLOADER DROPZONE */
.cv-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    background: #f8fafc;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
}

.cv-dropzone:hover, .cv-dropzone-active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.cv-upload-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
}

.cv-dropzone-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.cv-link {
    color: var(--primary);
    text-decoration: underline;
}

.cv-dropzone-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.cv-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
}

.cv-file-size-badge {
    background: #dcfce7;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #166534;
}

/* JOB DESCRIPTION TEXTAREA */
.cv-jd-container {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cv-jd-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.cv-jd-textarea {
    width: 100%;
    height: 100%;
    min-height: 130px;
    border-radius: var(--radius-md);
    background: #f8fafc;
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    resize: vertical;
    transition: var(--transition-fast);
}

.cv-jd-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: #ffffff;
}

.cv-box-actions {
    display: flex;
    justify-content: center;
}

.btn-scan-cv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 360px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-scan-cv:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* SCORES PREVIEW GRID */
.cv-scores-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .cv-scores-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 576px) {
    .cv-scores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cv-score-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    box-shadow: var(--shadow-sm);
}

.cv-score-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.cv-score-val {
    font-size: 1.3rem;
    font-weight: 800;
}

.score-high { color: #16a34a; }
.score-mid { color: #d97706; }
.score-low { color: #dc2626; }

/* STATS STRIP */
.cv-stats-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 16px;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.cv-stat-item {
    text-align: center;
}

.cv-stat-num {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.cv-stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cv-stat-divider {
    width: 1px;
    height: 28px;
    background: var(--card-border);
}

/* MARQUEE / PLATFORMS LIST SECTION */
.cv-marquee-section {
    margin-bottom: 36px;
    text-align: center;
}

.cv-marquee-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.cv-marquee-track-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 8px 0;
}

.cv-marquee-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.cv-marquee-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: #ffffff;
    border: 1px solid var(--card-border);
    font-size: 0.825rem;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.cv-marquee-chip strong {
    color: var(--text-main);
}

.cv-marquee-chip span {
    font-size: 0.725rem;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* FEATURES GRID SECTION */
.cv-features-section {
    margin-bottom: 36px;
}

.cv-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 28px auto;
}

.cv-section-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: #f3e8ff;
    color: #7e22ce;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px solid #e9d5ff;
}

.cv-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.cv-section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cv-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .cv-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .cv-features-grid {
        grid-template-columns: 1fr;
    }
}

.cv-feature-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.cv-feature-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-md);
}

.cv-feature-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.cv-feature-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.cv-feature-desc {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* 4 STEPS SECTION */
.cv-steps-section {
    margin-bottom: 36px;
}

.cv-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 900px) {
    .cv-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .cv-steps-grid {
        grid-template-columns: 1fr;
    }
}

.cv-step-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.cv-step-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
}

.cv-step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.cv-step-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* SPINNER & MODAL */
.cv-platform-card {
    transition: var(--transition-fast);
}

.cv-scan-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.cv-scan-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.cv-scan-modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--card-border);
}

.cv-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: cvSpin 0.9s linear infinite;
    margin: 0 auto 14px auto;
}

@keyframes cvSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cv-progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.cv-progress-bar-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.extra-small {
    font-size: 0.75rem !important;
}

.cv-results-disclaimer {
    border-left: 4px solid #f59e0b !important;
}



