/* ============================================================
   XJOB — style.css
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
    --bg-main:       #121212;   /* 0E0E0E */
    --bg-menu:       #0f0f0f;
    --bg-card:       #00000030;   /* FIX: era #121212 = igual que bg-main */
    --bg-card-hover: #252525;   /* FIX: era #00000030 (transparente) */
    --text-main:     #FFFFFF;
    --text-muted:    #888888;
    --accent-blue:   #2F6BFF;
    --border-color:  #2A2A2A;
    --radius-sm:     8px;
    --radius-md:     12px;
    --radius-lg:     16px;
    --radius-pill:   50px;
    --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --page-width:    1200px;
    --page-pad:      20px;
    --header-h:      80px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg-main);
    
    color: var(--text-main);
    font-family: var(--font);
    font-size: 15px; /*0.9rem;*/
    font-weight: 400;
    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
}
html,
body {
    min-height: 100%;
}
html {
    height: 100%;
}
body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* ── Main layout ────────────────────────────────────────────── */
main {
    max-width: var(--page-width);
    width: 100%;
    margin: 0 auto;
    /*padding: 0 var(--page-pad) 60px;*/
    padding: 20px;
    flex: 1 0 auto;
}

.site-footer {
    /*border-top: 1px solid var(--border-color);*/
    margin-top: 60px; /*auto;*/
    background: var(--bg-menu);
    flex-shrink: 0;
}
.footer-inner {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    gap: 32px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 8px;
    max-width: 360px;
}
.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.footer-social a,
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-start;
    gap: 12px 18px;
}
.footer-social a:hover,
.footer-links a:hover { color: var(--text-main); }

/* ── Header ─────────────────────────────────────────────────── */
/*header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--page-pad);
    height: var(--header-h);
    position: sticky;
    top: 0;
    background: var(--bg-main);
    z-index: 100;
    gap: 12px;
    background: var(--bg-menu);
}*/

header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--bg-menu);
    z-index: 100;
}

.header-container {
    max-width: var(--page-width); /* Los 1200px */
    margin: 0 auto;               /* Centra el bloque de 1200px en la pantalla */
    padding: 0 20px;              /* Alineación exacta con el padding de tu <main> */
    height: var(--header-h);
    
    display: flex;                /* Activamos flexbox aquí */
    justify-content: space-between; /* Empuja nav-left a la izq y nav-right a la der */
    align-items: center;
    width: 100%;
}

h2 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.5;
    /*letter-spacing: -1px;*/
    margin-bottom: 20px;
}
h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    /*letter-spacing: -1px;
    margin-bottom: 20px;*/
}

textarea {
    width: 100%;
    resize: vertical; /* Solo permite escalar verticalmente */
    
    /* Si usas rows="5", un min-height de 8em a 10em suele equivaler 
       al espacio de 5 líneas dependiendo de tu interlineado */
    min-height: 10em; 
    
    padding: 12px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 8px;
    font-family: var(--font);
    line-height: 1.5; /* Controlar el interlineado ayuda a que coincida con el min-height */
}

select {
    cursor: pointer;
}

/*a {
    color: #ffffff;
    text-decoration: none;
}
a:hover {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 2px;
}*/

.nav-left  { display: flex; align-items: center; gap: 16px; }
.nav-right { display: flex; align-items: center; gap: 12px; }

.logo {
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-main);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Search link en el header */
.nav-search-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-search-link:hover,
.nav-search-link.active { color: var(--text-main); }

/* ── Language toggle ────────────────────────────────────────── */
.lang-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    overflow: hidden;
    flex-shrink: 0;
}
.lang-toggle a {
    padding: 5px 10px;
    font-size: 0.78rem;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s;
}
.lang-toggle a.active { background: var(--accent-blue); color: #fff; }

/* ── Avatar dropdown ────────────────────────────────────────── */
.avatar-wrap {
    position: relative;
    flex-shrink: 0;
    padding: 8px 0;
    margin: -8px 0;
}

.avatar-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff; /*var(--accent-blue);*/
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    overflow: hidden;
}
.avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-btn:hover,
.avatar-btn:focus-visible { opacity: 0.85; }
.avatar-btn:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}

.avatar-dropdown {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #1E1E1E;     /* distinto de bg-main */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 240px;
    padding: 8px;
    z-index: 1000;
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
    transform: translateY(-2px);
    transition: opacity 0.12s, visibility 0.12s, transform 0.12s;
}

.avatar-dropdown::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
    height: 18px;
}

.avatar-wrap:hover .avatar-dropdown,
.avatar-wrap:focus-within .avatar-dropdown,
.avatar-wrap.is-open .avatar-dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.avatar-dropdown a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.875rem;
    transition: background 0.15s;
}
.avatar-dropdown a:hover { background: var(--bg-card-hover); }

.dd-divider { border: none; border-top: 1px solid var(--border-color); margin: 6px 0; }
.dd-logout  { 
    /*color: #ff6b6b !important;*/
    color: var(--text-muted);
}
.dd-user {
    padding: 6px 12px 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: default;
}
.dd-user h3 { color: #fff; }

/* ── Notifications dropdown ─────────────────────────────────── */
.notification-wrap {
    position: relative;
    flex-shrink: 0;
    padding: 8px 0;
    margin: -8px 0;
}
.notification-btn {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    cursor: pointer;
}
.notification-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.notification-btn:hover,
.notification-btn:focus-visible,
.notification-wrap.is-open .notification-btn {
    border-color: var(--border-color);
    background: var(--bg-card-hover);
}
.notification-dot {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    background: var(--accent-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.notification-dropdown {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: -48px;
    top: calc(100% + 10px);
    width: min(420px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 120px));
    overflow-y: auto;
    padding: 18px 20px;
    background: #242424;
    border: 1px solid var(--border-color);
    border-radius: 28px;
    z-index: 1000;
    box-shadow: 0 18px 46px rgba(0,0,0,0.55);
    transform: translateY(-2px);
    transition: opacity 0.12s, visibility 0.12s, transform 0.12s;
}
.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
}
.notification-wrap:hover .notification-dropdown,
.notification-wrap:focus-within .notification-dropdown,
.notification-wrap.is-open .notification-dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.notification-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;
    padding: 18px 0;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover .notification-item-text strong {
    color: var(--accent-blue);
}
.notification-item-icon {
    width: 32px;
    height: 32px;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff5b4f;
}
.notification-item-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.8;
}
.notification-item-body {
    min-width: 0;
    display: grid;
    gap: 4px;
}
.notification-item-text {
    color: #c7c7c7;
    font-size: 15px;
    line-height: 1.45;
}
.notification-item-text strong {
    color: var(--text-main);
    font-weight: 700;
}
.notification-time {
    color: #5f5f5f;
    font-size: 13px;
    font-weight: 600;
}
.notification-empty {
    color: var(--text-muted);
    padding: 24px 8px;
    text-align: center;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    color: var(--text-main);
    font-size: 15px;
    font-family: var(--font);
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    
    border: 1px solid var(--border-color);
    padding: 7px 16px;
    /*border-radius: var(--radius-pill);*/
    border-radius: var(--radius-sm);
    cursor: pointer;
    
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    /*width: 100%;*/
}
.btn:hover {
    /*background: var(--bg-card-hover);*/
    background: #ffffff;
    color: #111111;
    border-color: #ffffff; 
}
.btn:disabled,
.btn[disabled],
.btn.is-disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.45;
    color: var(--text-muted);
    background: #1b1b1b;
    border-color: var(--border-color);
}

.btn-primary { 
    height: 46px;

    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;

    background: var(--accent-blue); 
    border: 1px solid var(--accent-blue);
    
    /*margin-top: 10px;*/

    /*-webkit-transition: background 0.35s ease;
    -moz-transition: background 0.35s ease;
    -o-transition: background 0.35s ease;
    -ms-transition: background 0.35s ease;
    transition: background 0.35s ease;*/
}

.btn-primary:hover {
    color: #ffffff;
    background: transparent; /*var(--bg-card);;*/
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 0 1px var(--accent-blue);
}
.btn-primary:disabled,
.btn-primary[disabled],
.btn-primary.is-disabled {
    color: var(--text-muted);
    background: #1b1b1b;
    border-color: var(--border-color);
}
.btn-header {
    height: 46px; /*auto;*/
    /*min-height: 34px;*/

    font-size: 15px; /*0.85rem;*/
    font-weight: 600;
    line-height: 1.5;

    /*padding: 7px 14px;*/
    margin-top: 0;
}
.btn-fill { width: 100%; }
.btn-min { min-width: 100px; }
.btn-clear {
    color: var(--text-main);
    padding: 0 20px;
    margin-top: 10px;
    /*background: var(--bg-card);*/
    
}
.nav-auth-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
}

.text-link {
    color: #ffffff;
    text-decoration: none;
}
.text-link:hover {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 2px;
}
.text-accent { color: var(--accent-blue); }

/* ── Hero section ───────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 60px var(--page-pad) 48px;
    max-width: var(--page-width);
    margin: 0 auto;
}
.hero-title {
    font-size: 50px; /*clamp(1.8rem, 4vw, 3rem);*/
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -1px; /*-0.02em;*/
    margin-bottom: 14px;
}
.hero-title span { color: var(--accent-blue); }
.hero-sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

/* ── Filter tabs — pill selector centrado ───────────────────── */
.filter-tabs-wrap {
    display: flex;
    justify-content: center;
}
.filter-tabs {
    display: inline-flex;
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-pill);
    padding: 4px;
    gap: 2px;
    border: 1px solid var(--border-color);
    /*max-width: 332px;*/
}
/* Glow sutil igual que la imagen de referencia */
.filter-tabs::after {
    /*content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, rgba(168,85,247,0.5), rgba(236,72,153,0.3), rgba(47,107,255,0.4));
    z-index: -1;
    opacity: 0.7;*/
}

.filter-pill {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    background: #fff;
    border-radius: 50px;
    transition: left 0.3s cubic-bezier(0.4,0,0.2,1), width 0.3s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
    z-index: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

.filter-tab {
    color: var(--text-muted);
    font-size: 15px; /*0.9rem;*/
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;

    position: relative;
    z-index: 1;
    padding: 9px 26px;
    border-radius: var(--radius-pill);
    
    /*font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;*/
    
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    /* Sin transition — el color cambia instantáneo, la píldora anima */
}
.filter-tab:hover { color: var(--text-main); }
.filter-tab.active,
.filter-tab.is-active {
    color: #111;
    font-size: 0.9rem;
    font-weight: 600;
    background: transparent;
    box-shadow: none;
}

/* ── Skeleton ──────────────────────────────────────────── */
.job-skeleton {
    pointer-events: none;
    animation: skeletonPulse 1.4s ease-in-out infinite;
}
.skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: var(--border-color);
    margin-bottom: 10px;
}
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-80 { width: 80%; }
@keyframes skeletonPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* ── Job grid & cards ───────────────────────────────────────── */
.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 32px;
}
.job-card {
    display: block;
    background: transparent; /*var(--bg-card);*/
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
}
.job-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 1px var(--accent-blue);
    /*transform: translateY(-2px);*/
}
.job-card h3 {
    color: var(--text-main);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;

    margin-bottom: 6px;
}
.job-card .company { 
    color: var(--text-muted); 
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}
.job-card .meta {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.job-card .price { 
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.job-description {
    color: var(--text-muted);
    
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;

    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* ── Job tags ───────────────────────────────────────────────── */
.job-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.job-tag, .tag-pill {
    color: #888888;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    
    background: transparent;
    border: 1px solid #ffffff30;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    display: inline-block;
}

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 80px 0;
}
.empty-state p { font-size: 1rem; margin-bottom: 16px; }
.empty-state-compact { padding: 60px 0; }
.page-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.page-state h1,
.page-state h2 { margin-bottom: 16px; }
.page-state p { margin-bottom: 16px; }
.page-state-compact {
    text-align: center;
    padding: 40px 0;
}
.load-more-wrap {
    text-align: center;
    margin-top: 32px;
    display: none;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-container {
    background: transparent; /*var(--bg-card);*/
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}
.form-container-spaced { margin-bottom: 40px; }
.form-container h2 {
    margin-bottom: 20px;
}
.form-intro {
    color: var(--text-muted);
    margin-bottom: 20px;
}
.form-group { margin-bottom: 18px; }
.form-group-relative { position: relative; }
.form-group.is-disabled {
    opacity: 0.55;
}
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.inline-control {
    display: flex;
    gap: 8px;
    align-items: center;
}
.flex-1 { flex: 1; }
.field-hint,
.field-status {
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.field-status { margin-top: 4px; }
.username-input-shell {
    display: flex;
    align-items: center;
    width: 100%;
    height: 60px;
    padding: 0 14px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}
.username-input-shell:focus-within { border-color: var(--accent-blue); }
.username-prefix {
    color: var(--text-muted);
    white-space: nowrap;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.username-input-shell input {
    flex: 1;
    min-width: 80px;
    height: 100%;
    padding: 0 10px 0 0;
    background: transparent;
    border: 0;
    color: var(--text-main);
    outline: none;
    font: inherit;
}
.username-input-shell input:hover,
.username-input-shell input:focus { border: 0; }
.username-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}
.username-status:not(.is-checking) { min-width: 32px; }
.username-status-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
}
.username-status-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.username-status.is-ok { color: #22cc55; }
.username-status.is-taken { color: #ff4d4d; }
.field-warning {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 5px;
    margin-bottom: 12px;
    display: none;
}
.label-note {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.form-actions {
    display: flex;
    gap: 10px;
}
.rate-input-wrap {
    position: relative;
}
.rate-input-wrap input {
    padding-right: 150px;
}
.monthly-rate-preview {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
    pointer-events: none;
}
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; }
.form-group label {
    color: var(--text-muted);
    font-size: 13px; /*0.875rem;*/
    font-weight: 400;
    line-height: 1.5;

    display: block;
    margin-bottom: 7px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    height: 60px;

    color: var(--text-main);
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;

    padding: 14px 18px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;

    transition: border-color 0.2s;
}
.form-group select {
    width: 100%;
    height: 60px;

    padding: 14px 18px;
    padding-right: 40px; 
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    outline: none;

    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    
    cursor: pointer;
    
    /* ELIMINA la flecha nativa */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* AÑADE una flecha personalizada (SVG) */
    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='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center; /* Aquí controlas la separación del borde derecho */
}

/* --- Modifica el Hover para ignorar los elementos disabled --- */
.form-group input:not(:disabled):hover,
.form-group select:not(:disabled):hover,
.form-group textarea:not(:disabled):hover {
    border: 1px solid var(--accent-blue);
}

/* --- Asegúrate de que el cursor sea coherente en disabled --- */
.form-group select:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    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='%23444444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent-blue); }
.form-group input:disabled,
.disabled { opacity: 0.5; cursor: not-allowed; }

.form-group .username-input-shell input,
.form-group .username-input-shell input:hover,
.form-group .username-input-shell input:focus {
    width: auto;
    height: 100%;
    padding: 0 10px 0 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--text-main);
    outline: none;
}

.tag-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-height: 46px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}
.form-group .tag-input-field,
.form-group .tag-input-field:hover,
.form-group .tag-input-field:focus {
    width: auto;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    outline: none;
    flex: 1;
    min-width: 120px;
    font: inherit;
    line-height: 28px;
    border: none !important;
    border-radius: 0;
    box-shadow: none;
}
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    animation: tagPop .15s ease;
}
.tag-pill .tag-remove {
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    opacity: 0.6;
}
@keyframes tagPop {
    from { transform: scale(.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.875rem;
    text-align: center;
}
.alert-error   { background: rgba(255,77,77,0.12); border: 1px solid #ff4d4d; color: #ff6b6b; }
.alert-success { background: rgba(34,255,102,0.08); border: 1px solid #22cc55; color: #22cc55; }

#webauthn-error {
    background: rgba(255,77,77,0.12);
    border: 1px solid #ff4d4d;
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ── Settings ───────────────────────────────────────────────── */
.settings-wrap {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    margin-top: 32px;
}
.settings-sidebar a {
    display: block;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 2px;
    transition: all 0.15s;
}
.settings-sidebar a:hover  { background: var(--bg-card); color: var(--text-main); }
.settings-sidebar a.active { background: var(--bg-card); color: var(--text-main); font-weight: 600; }
.settings-sidebar a.danger { color: #ff6b6b; }
.sidebar-logout { margin-top: 16px; }

.settings-panel {
    background: transparent; /*var(--bg-card);*/
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    min-width: 0;
}
.settings-panel h3 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.5;
    /*letter-spacing: -1px;*/

    margin-bottom: 24px;
    /*font-size: 1.05rem;*/
}
.settings-panel h4 {
    margin-bottom: 14px;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 700;
}
.notification-settings-form {
    max-width: 720px;
}
.settings-toggle-list {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}
.settings-toggle-row {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    cursor: pointer;
}
.settings-toggle-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.settings-switch {
    position: relative;
    width: 46px;
    height: 26px;
    flex: 0 0 46px;
    border-radius: var(--radius-pill);
    background: #2f2f2f;
    border: 1px solid var(--border-color);
    transition: background 0.15s, border-color 0.15s;
}
.settings-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s;
}
.settings-toggle-row input:checked + .settings-switch {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}
.settings-toggle-row input:checked + .settings-switch::after {
    transform: translateX(20px);
}
.settings-toggle-row:hover {
    border-color: var(--accent-blue);
}

/* ── Passkey rows ───────────────────────────────────────────── */
.passkey-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 10px;
    gap: 12px;
}
.passkey-row .pk-info { font-size: 0.85rem; }
.passkey-row .pk-date { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }

/* ── Avatar preview (settings) ──────────────────────────────── */
.avatar-preview { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.avatar-large,
.avatar-upload-target {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--accent-blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.avatar-upload-target {
    border: 1px solid var(--border-color);
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    transition: border-color 0.15s, opacity 0.15s;
}
.avatar-upload-target img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-upload-target:hover,
.avatar-upload-target.is-dragover {
    border-color: var(--accent-blue);
    opacity: 0.9;
}

.settings-panel .file-dropzone,
.job-detail-cta .file-dropzone {
    width: 100%;
    min-height: 220px;
    border: 1px dashed #4b4b55;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
    color: var(--text-main);
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: stretch;
    gap: 4px;
    padding: 28px 32px 24px;
    text-align: center;
    cursor: pointer;
    outline: none;
    user-select: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.settings-panel .file-dropzone:hover,
.settings-panel .file-dropzone:focus-visible,
.settings-panel .file-dropzone.is-dragover,
.job-detail-cta .file-dropzone:hover,
.job-detail-cta .file-dropzone:focus-visible,
.job-detail-cta .file-dropzone.is-dragover {
    border-color: var(--accent-blue);
    background: rgba(47, 107, 255, 0.08);
    /*box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);*/
}
.file-dropzone-center {
    align-self: center;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.file-dropzone-icon {
    width: 48px;
    height: 48px;
    color: var(--text-main);
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.file-dropzone-icon svg,
.file-dropzone-secure svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: grey;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.file-dropzone-title {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}
.file-dropzone-or {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}
.file-dropzone-action {
    /*color: var(--accent-blue);*/
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}
.file-dropzone-meta {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 13px;
    align-self: end;
    margin-top: 0;
}
.file-dropzone-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.file-dropzone-secure svg {
    width: 16px;
    height: 16px;
}
.job-detail-cta .file-dropzone-compact {
    min-height: 220px;
    margin-bottom: 14px;
    /*padding: 22px 24px 18px;*/
}
.job-detail-cta .file-dropzone-compact .file-dropzone-icon {
    width: 48px;
    height: 48px;
}
.job-detail-cta .file-dropzone-compact .file-dropzone-title,
.job-detail-cta .file-dropzone-compact .file-dropzone-action {
    font-size: 16px;
}
.job-detail-cta .file-dropzone-compact .file-dropzone-meta {
    margin-top: 12px;
}
.uploaded-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-main);
}
.job-resume-form {
    margin-bottom: 14px;
}

/* ── Utilities ──────────────────────────────────────────────── */
.text-muted  { color: var(--text-muted); }
.small {
    font-size: 12px; /*0.8rem;*/
    font-weight: 400;
    line-height: 1.5;
}
.section-divider { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border-color); }
.settings-copy {
    font-size: 15px; /*0.875rem;*/
    font-weight: 400;
    line-height: 1.5;

    margin-bottom: 24px;
}
.add-device-copy { margin-bottom: 12px; }

/* ── Job detail page ────────────────────────────────────────── */
.job-detail-wrap {
    /*max-width: 700px;
    margin: 0 auto;
    padding-top: 24px;*/

    background: transparent; /*var(--bg-card);*/
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.job-detail-back {
    /*color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;*/
}
.job-detail-back:hover {
    /*color: var(--text-main);*/
}

.job-detail-card {
    /*background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;*/
    /*margin-top: 20px;*/
}

.job-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.job-detail-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.5;
    /*letter-spacing: -1px;*/

    /*font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;*/

    margin-bottom: 20px;
}

.job-detail-meta {
    color: var(--text-muted);
    /*font-size: 0.9rem;*/

    font-size: 15px;
    line-height: 1.5;
}

.job-detail-rate {
    color: #ffffff;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.5;
    
    white-space: nowrap;
}
.job-detail-rate-unit {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.job-detail-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}

.job-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--text-main);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;

    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-top: auto;
}
.job-badge-featured {
    /*background: rgba(47,107,255,0.12);*/
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.job-detail-cta {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}
.job-tags-detail { margin-top: 20px; }
.job-owner-note {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 14px;
    text-align: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    min-height: 60px;
}

/* ── Comments ───────────────────────────────────────────────── */
.comments-panel {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin: 28px auto 0;
    overflow: hidden;
}
.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 32px 40px 20px;
}
.comments-header h2 {
    font-size: 28px;
    line-height: 1.3;
}
.comments-sort {
    display: flex;
    gap: 12px;
}
.comments-sort a {
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 10px 18px;
    font-weight: 700;
    text-decoration: none;
}
.comments-sort a:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 1px var(--accent-blue);
}
.comments-sort a.active {
    color: var(--text-main);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 1px var(--accent-blue);
}
.comments-empty {
    color: var(--text-muted);
    padding: 20px 40px 40px;
}
.comments-list {
    padding: 20px 40px 36px;
}
.comment-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 18px;
    padding: 24px 0;
}
.comment-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #565656;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 700;
}
.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.comment-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.comment-topline strong {
    font-size: 17px;
}
.comment-author-badge {
    color: #38c172;
    border: 1px solid #38c172;
    border-radius: 8px;
    padding: 2px 7px;
    font-size: 12px;
    font-weight: 700;
}
.comment-text {
    color: var(--text-muted); /*#b7b7bd;*/
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}
/*.comment-mention {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
}
.comment-mention[href] {
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: border-color 0.15s;
}*/
.comment-mention {
    color: var(--text-muted);
    font-weight: 700;
    text-decoration: none;
}
.comment-mention[href] {
    color: var(--text-main);
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: border-color 0.15s;
}
.comment-mention[href]:hover {
    border-bottom-color: #ffffff;
}

.comment-author-link {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: border-color 0.15s;
}
.comment-author-link:hover {
    border-bottom-color: #ffffff;
}
.comment-date {
    color: #666;
    margin-top: 8px;
}
.comment-actions {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.comment-action-form {
    margin: 0;
}
.comment-icon-btn,
.comment-pill-btn {
    min-width: 42px;
    height: 42px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: transparent;
    color: #a8a8b0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font: inherit;
}
.comment-pill-btn--readonly {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}
.comment-icon-btn svg,
.comment-pill-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.comment-pill-btn {
    padding: 0 14px;
    font-weight: 700;
}
.comment-icon-btn:hover,
.comment-pill-btn:hover,
.comment-pill-btn.active {
    color: var(--text-main);
    border-color: var(--accent-blue); /*var(--text-main);*/
    box-shadow: 0 0 0 1px var(--accent-blue);
}
.comment-icon-btn.reported {
    color: #ff6b6b;
    border-color: #ff6b6b;
}
.comments-compose {
    /*background: #191919;*/
    padding: 26px 40px;
    border-top: 1px solid var(--border-color);
}
.comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}
.comment-form textarea {
    min-height: 54px;
    resize: vertical;
    border: 0;
    background: transparent;
    color: var(--text-main);
    /*font: inherit;*/
    outline: none;

    height: 60px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    padding: 16px 20px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}
.comment-form textarea:hover, .comment-form textarea:focus {
    border: 1px solid var(--accent-blue);
}

.comment-form textarea::placeholder {
    color: var(--text-muted);
}
.comments-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--text-muted);
}

@media (max-width: 760px) {
    .comments-header,
    .comments-login {
        align-items: flex-start;
        flex-direction: column;
    }
    .comments-sort {
        width: 100%;
        overflow-x: auto;
    }
    .comment-item {
        grid-template-columns: 44px minmax(0, 1fr);
    }
    .comment-avatar {
        width: 44px;
        height: 44px;
    }
    .comment-actions {
        grid-column: 2;
    }
    .comment-form {
        grid-template-columns: 1fr;
    }
}

/* ── Profile page ───────────────────────────────────────────── */
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 40px 0 32px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 30px; /*1.4rem;*/
    font-weight: 700;
    line-height: 1.5;
    /*letter-spacing: -1px;*/
    margin-bottom: 6px;
}

.profile-bio {
    color: var(--text-muted);
    font-size: 15px; /*0.9rem;*/
    font-weight: 400;
    line-height: 1.5;

    margin-bottom: 16px;
    max-width: 480px;
}

.profile-stats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.profile-stat {
    color: var(--text-muted);
    font-size: 13px; /*0.875rem;*/
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;

    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    
    transition: all 0.2s;
}
.profile-stat strong { color: var(--text-main); font-weight: 600; }
.profile-stat:hover  { border-color: #444; color: var(--text-main); }
.profile-stat.active {
    background: var(--bg-card);
    border-color: #444;
    color: var(--text-main);
}

.profile-actions {
    flex-shrink: 0;
    padding-top: 4px;
}

.profile-not-found {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.profile-not-found h2 { margin-bottom: 16px; }

.profile-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 20px;
    font-size: 0.95rem;
}
.profile-empty-action { margin-top: 12px; }

/* ── User grid (followers / following) ──────────────────────── */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    background: transparent; /*var(--bg-card);*/
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-main);
    transition: border-color 0.2s, transform 0.2s;
}
.user-card:hover { 
    border-color: var(--accent-blue); 
    /*transform: translateY(-2px);*/
}

.user-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.user-card-name {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-main);
}

/* ============================================================
   LOCATION AUTOCOMPLETE — Agregar al final de style.css
   ============================================================ */
 
/* ── Hero: location field wrap ──────────────────────────────── */
.hero-location-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    height: 100%;
    /*margin-left: 10px;*/
    padding: 0 6px 0 16px;
}
 
.hero-location-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    margin-right: 8px;
    margin-left: 10px;
    pointer-events: none;
}
 
.hero-location-input {
    /* inherits .hero-search-input */
    padding-right: 30px !important; /* space for clear button */
}
 
.hero-location-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}
.hero-location-clear:hover {
    color: var(--text-main);
    background: var(--bg-card-hover);
}
.is-hidden { display: none !important; }
 
/* ── Suggestions dropdown (shared: hero & search page) ───────── */
.location-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 500;
    overflow: hidden;
    display: none;
    min-width: 260px;
}
.location-suggestions.is-open { display: block; }
 
.location-suggestion-item {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: background 0.12s, color 0.12s;
    /*border-bottom: 1px solid #222;*/
}
.location-suggestion-item:last-child { border-bottom: none; }
.location-suggestion-item:hover,
.location-suggestion-item.is-active {
    background: var(--bg-card-hover);
    color: var(--text-main);
}
.location-suggestion-item svg {
    flex-shrink: 0;
    color: var(--text-muted);
}
.location-suggestion-item span { flex: 1; min-width: 0; }
.location-suggestion-item strong { color: var(--text-main); font-weight: 600; }
 
/* ── Search page: location field ───────────────────────────── */
.search-location-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
 
.search-location-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
    flex-shrink: 0;
}
 
.location-text-input {
    width: 100%;
    padding: 10px 36px 10px 36px; /* left space for icon, right for clear btn */
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-group .location-text-input {
    padding-left: 40px;
    padding-right: 40px;
}
.location-text-input:focus { border-color: var(--accent-blue); }
.location-text-input::placeholder { color: var(--text-muted); }
 
.location-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
}
.location-clear-btn:hover {
    color: var(--text-main);
    background: var(--bg-card-hover);
}
.location-clear-btn[data-visible="0"] { display: none; }
.location-clear-btn[data-visible="1"] { display: flex; }
.results-title { margin-bottom: 20px; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 16px;
    /*margin-left: 20px;*/
}

.breadcrumb-link {
    color: var(--text-muted);
    /*font-size: 15px;
    line-height: 1.5;
    font-weight: 400;*/
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.breadcrumb-link:hover {
    /*color: var(--text);*/
    /*font-size: 15px;
    line-height: 1.5;
    font-weight: 400;*/
    text-decoration: none;

    color: #ffffff;
    border-bottom: 1px solid #ffffff;
    /*padding-bottom: 2px;*/
}

.breadcrumb-current {
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.breadcrumb-sep {
    opacity: 0.4;
}

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

/* ── Tablet (≤ 900px) ───────────────────────────────────────── */
@media (max-width: 900px) {
    :root { --page-pad: 16px; }

    header { padding: 0 16px; }

    .header-container {
        padding: 0 20px; /* O el valor que uses en --page-pad */
    }

    .nav-search-link { display: none; }

    .settings-wrap { grid-template-columns: 1fr; }
    .settings-sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 12px;
    }
    .settings-sidebar a { padding: 7px 12px; }

    .hero { padding: 40px 16px 32px; }
    .job-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
}

/* ── Hero search bar ────────────────────────────────────────── */
.hero-search-wrap {
    max-width: 760px;
    margin: 0 auto 60px;
}
.hero-search {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 6px 0 16px;
    height: 60px;
    gap: 0;
    transition: border-color 0.2s;
}
.hero-search:focus-within { border-color: var(--accent-blue); }

.hero-search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    /*margin-right: 10px;*/
}
.hero-search-input {
    color: var(--text-main);
    font-family: var(--font);
    font-size: 15px; /*1rem;*/
    font-weight: 400;
    line-height: 1.5;

    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 15px;
    height: 100%;
}
.hero-search-input::placeholder { color: var(--text-muted); }

.hero-search-divider {
    width: 1px;
    height: 20px; /* Altura controlada de la línea */
    background-color: var(--border-color);
    margin: 0 5px;
    flex-shrink: 0;
    align-self: center; /* Centrado vertical respecto a la barra */
}

.hero-search-select-wrap {
    width: 100px;
    min-width: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    height: 100%; /* Asegura que ocupe todo el alto de la barra */
    position: relative;
}
.hero-search-select {
    background: none;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-family: var(--font);
    cursor: pointer;
    height: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    transition: color 0.2s;

    background-color: transparent;
    width: 100%;
    min-width: 60px;
    max-width: 80px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-align-last: center;

    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0;
    padding-right: 20px;
    margin: 0;
}
.hero-search-select:not(:disabled):hover { color: var(--text-main); }
.hero-search-select:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}
.hero-search-select option { background: #1a1a1a; color: var(--text-main); }

.hero-search-btn {
    height: 46px;

    color: #fff;
    font-family: var(--font);
    font-size: 15px; /*0.9rem;*/
    font-weight: 600;
    line-height: 1.5;

    flex-shrink: 0;
    margin-left: 6px;
    background: var(--accent-blue);
    
    /*border: none;*/
    border: 1px solid var(--accent-blue);
    border-radius: var(--radius-sm);
    padding: 0 22px;
    
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.hero-search-btn:hover {
    /*opacity: 0.85;*/
    color: #ffffff;
    background: transparent; /*var(--bg-card);;*/
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 0 1px var(--accent-blue);
}

.hero-search-input-wrap {
    flex: 1; 
}

/* ── Mobile (≤ 640px) ───────────────────────────────────────── */
@media (max-width: 640px) {
    header {
        height: auto;
        min-height: 56px;
        padding: 10px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-container {
        height: auto;
        min-height: 56px;
        padding: 10px 16px;
        flex-wrap: wrap;
    }

    .hero-search-wrap { margin-bottom: 28px; }
    .hero-search { height: auto; flex-wrap: wrap; padding: 10px 12px; gap: 8px; border-radius: var(--radius-sm); }
    .hero-search-icon { display: none; }
    .hero-search-input { width: 100%; height: 36px; font-size: 0.95rem; }
    .hero-search-divider { display: none; }
    .hero-search-select-wrap { flex: 1; }
    .hero-search-select { width: 100%; min-width: 0; padding: 8px 28px 8px 8px; font-size: 0.85rem; }
    .hero-search-btn { width: 100%; justify-content: center; margin-left: 0; }

    .nav-left  { order: 1; gap: 10px; }
    .nav-right { order: 2; gap: 8px; }

    .btn-primary { 
        /*font-size: 0.8rem;*/
        padding: 6px 12px; 
    }

    .lang-toggle a { padding: 4px 8px; font-size: 0.75rem; }

    .hero { padding: 32px 16px 24px; }
    .hero-title { font-size: 1.6rem; }
    .hero-sub {
        font-size: 15px;
        font-weight: 400;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .hero-location-wrap {
        width: 100%;
        height: 36px;
    }
    .hero-location-icon { margin-left: 0; }
 
    /* Dropdown: full width on mobile */
    .location-suggestions {
        left: 0;
        right: 0;
        top: calc(100% + 6px);
    }

    .filter-tab { padding: 8px 18px; font-size: 0.85rem; }

    .job-grid { grid-template-columns: 1fr; gap: 10px; }

    .form-container { /*margin: 24px auto;*/ padding: 24px 20px; }

    .settings-panel { padding: 20px 16px; }
    .settings-panel [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .passkey-row { flex-direction: column; align-items: flex-start; }

    /* Posts form: colapsar grids de 2 cols */
    .form-container > form [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Profile */
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 0 24px;
        gap: 16px;
    }
    .profile-bio    { margin: 0 auto 16px; }
    .profile-stats  { justify-content: center; }
    .profile-actions { padding-top: 0; }

    .user-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .footer-inner {
        flex-direction: column;
        padding: 28px 20px;
    }
    .footer-links { justify-content: flex-start; }
}
