/* Sidebar categorías */
#category-sidebar {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    opacity: 0;
    visibility: hidden;
    z-index: 3000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    will-change: opacity, visibility;
}

#category-sidebar.open {
    opacity: 1;
    visibility: visible;
}

#category-sidebar-content {
    background: #fff;
    width: min(320px, 90%);
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

#category-sidebar.open #category-sidebar-content {
    transform: translateX(0);
}
/* Card de trabajo finalizado (gris, apagada) */
.job-card.finalizado {
    background-color: #f3f4f6;
    opacity: 0.65;
    border: 1px solid #e5e7eb;
}
.job-card.finalizado:hover {
    transform: none;
    box-shadow: none;
    cursor: default;
}

/* Card de trabajo cancelado (gris con acento rojo) */
.job-card.cancelado {
    background-color: #fff1f2;
    opacity: 0.75;
    border: 1px solid rgba(220, 38, 38, 0.20);
}
.job-card.cancelado:hover {
    transform: none;
    box-shadow: none;
    cursor: default;
}

.job-status.finalizado {
    background-color: #e5e7eb;
    color: #374151;
    border: 1px solid #d1d5db;
}

.job-status.cancelado {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.job-action.disabled {
    color: #9ca3af;
    cursor: default;
}

/* Botón cancelar oferta (modal edición) */
.cancel-offer-btn {
    background-color: #dc2626 !important;
}

.cancel-offer-btn:hover {
    background-color: #b91c1c !important;
}
/* Campo bloqueado por estado EN CURSO */
.field-locked {
    background: #f3f4f6 !important;
    color: #a1a1aa !important;
    cursor: not-allowed !important;
    opacity: 0.85;
    border-color: #e5e7eb !important;
    pointer-events: auto !important;
}
/* === POSTULARME (UX DEMO) === */
.postular-wrapper {
    margin-top: 16px;
    text-align: center;
}

.postular-info {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}

/* === BANNER INVITADO (soft gate) === */
.guest-auth-banner {
    width: min(1000px, 95%);
    margin: 10px auto 0;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.10) 0%, rgba(5, 150, 105, 0.10) 100%);
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.guest-auth-banner strong {
    color: #1d4ed8;
}

.guest-auth-banner .guest-auth-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.guest-auth-banner .guest-auth-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
    background: rgba(255, 255, 255, 0.85);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.guest-auth-banner .guest-auth-actions a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.guest-auth-banner .guest-auth-actions a.primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* === MODAL REQUIERE LOGIN (profesional) === */
.auth-required-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 24px 16px;
}

.auth-required-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
}

.auth-required-card {
    position: relative;
    width: min(520px, calc(100vw - 32px));
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 28px 24px 20px;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
}

.auth-required-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.auth-required-close:hover {
    background: #f9fafb;
    transform: none;
    box-shadow: none;
}

.auth-required-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(37, 99, 235, 0.18);
    font-size: 26px;
}

.auth-required-card h3 {
    margin: 0;
    font-size: 20px;
    color: #111827;
    padding-inline: 16px;
}

.auth-required-card p {
    margin: 14px 0 0;
    color: #4b5563;
}

.auth-required-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
    background: #fff;
    min-width: 160px;
}

.auth-btn.primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.auth-required-note {
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
}

@media (max-width: 640px) {
    .auth-required-modal {
        padding: 16px;
    }

    .auth-required-card {
        width: min(100%, 520px);
        padding: 24px 18px 18px;
        border-radius: 20px;
    }

    .auth-required-close {
        top: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
        font-size: 28px;
    }

    .auth-required-card h3 {
        padding-inline: 28px;
        font-size: 18px;
    }

    .auth-required-card p {
        font-size: 15px;
        line-height: 1.55;
    }

    .auth-required-actions {
        margin-top: 18px;
    }
}
/* === FOOTER GREMIO RECOMENDADO === */
.gremio-footer {
    margin-top: 60px;
    padding: 20px 16px;
    border-top: 1px solid #e5e7eb;
    background-color: #fafafa;
}

.gremio-footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.gremio-footer-text {
    font-size: 14px;
    color: #555;
}

.gremio-footer-links {
    font-size: 13px;
    color: #777;
}

.gremio-footer-links a {
    color: #1b5cff;
    text-decoration: none;
}

.gremio-footer-links a:hover {
    text-decoration: underline;
}
/* ============================================
   RESET Y ESTILOS GENERALES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f3f4f6;
    color: #1f2937;
    line-height: 1.6;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================
   Loading gate (igual a Perfil)
   ============================================ */
#jobs-loading {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

#jobs-loading .jobs-loading-card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    padding: 18px 20px;
    text-align: center;
    color: #6b7280;
    font-weight: 600;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    color: #1f2937;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    margin: 0;
    color: #2563eb;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    margin: 80px auto 32px;
    gap: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    width: min(1000px, 95%);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.header {
    display: inline-block;
    width: auto;
    max-width: 800px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    text-align: center;
    padding: 16px 32px;
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: -0.3px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    margin: 0 auto;
}

.header-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    text-align: center;
    max-width: 600px;
}

/* ============================================
   BOTONES
   ============================================ */
button {
    padding: 10px 20px;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    background-color: #2563eb;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

button:active {
    transform: translateY(0);
}

.post-job {
    background-color: #2563eb !important;
}

.post-job:hover {
    background-color: #1d4ed8 !important;
}

.upload-cv {
    background-color: #059669 !important;
}

.upload-cv:hover {
    background-color: #047857 !important;
}

/* ============================================
   SECCIÓN DE BOTONES
   ============================================ */
.buttons {
    display: flex;
    gap: 16px;
    margin: 0;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FILTROS
   ============================================ */
.filters {
    background-color: white;
    padding: 28px 24px;
    margin: 32px auto;
    width: min(600px, 92%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.filters label {
    display: block;
    margin-bottom: 8px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.filters select,
.filters input {
    width: 100%;
    max-width: 350px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background-color: #f9fafb;
    color: #1f2937;
    transition: all 0.2s ease;
}

.filters select:focus,
.filters input:focus {
    border-color: #2563eb;
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.filter-buttons button {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-buttons button:first-child {
    background-color: #2563eb;
    color: white;
}

.filter-buttons button:first-child:hover {
    background-color: #1d4ed8;
}

.filter-buttons button:nth-child(2) {
    background-color: #ef4444;
    color: white;
}

.filter-buttons button:nth-child(2):hover {
    background-color: #dc2626;
}

.filter-buttons button:nth-child(3) {
    background-color: #059669;
    color: white;
}

.filter-buttons button:nth-child(3):hover {
    background-color: #047857;
}

/* ============================================
   LISTADO DE OFERTAS
   ============================================ */
.job-listings {
    background: transparent;
    padding: 0;
    margin: 32px auto;
    width: min(900px, 95%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.job-listings-section {
    text-align: center;
    width: 100%;
}

.job-listings-section h2 {
    display: inline-block;
    margin: 0 auto 32px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.3px;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    text-shadow: none;
}

/* ============================================
   TARJETAS DE OFERTAS (JOB CARDS)
   ============================================ */

/* NUEVA TARJETA DE TRABAJO (VERSIÓN GREMIO) */
/* Chips visuales para etiquetas de tipo y urgencia */
.job-labels {
    margin: 8px 0 0 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.job-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.97em;
    font-weight: 500;
    padding: 2px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #2563eb;
    border: 1.5px solid #e5e7eb;
    margin-bottom: 2px;
    transition: background 0.2s, color 0.2s, border 0.2s;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.job-label.tiempo-completo {
    background: #eaf1fb;
    color: #2563eb;
    border-color: #b6d0f7;
}
.job-label.medio-tiempo {
    background: #f7f7f7;
    color: #6b7280;
    border-color: #e5e7eb;
}
.job-label.temporal {
    background: #fef9e7;
    color: #b45309;
    border-color: #fde68a;
}
.job-label.changas {
    background: #e0f7fa;
    color: #00838f;
    border-color: #4dd0e1;
}
.job-label.comision {
    background: #f3e8ff;
    color: #7c3aed;
    border-color: #c4b5fd;
}
.job-label.freelance {
    background: #e6f7f1;
    color: #10b981;
    border-color: #a7f3d0;
}
.job-label.urgente {
    background: #fff0f1;
    color: #d7263d;
    border-color: #fca5a5;
    font-weight: 600;
}
.job-label.urgente .icon-urgente {
    font-size: 1em;
    margin-left: 5px;
    color: #d7263d;
}

/* Jerarquía de texto en la card */
.job-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 2px;
    color: #18181b;
}
.job-location {
    font-size: 1.05em;
    color: #22292f;
    margin: 2px 0 0 0;
}
.job-meta {
    font-size: 0.93em;
    color: #6b7280;
    margin: 2px 0 0 0;
}
.job-meta .publicado {
    color: #d7263d;
    font-weight: 600;
    font-size: 0.97em;
}

/* Hover sutil en la card */
.job-card {
    transition: box-shadow 0.18s, transform 0.18s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    cursor: pointer;
}
.job-card:hover {
    box-shadow: 0 12px 32px rgba(37,99,235,0.13);
    transform: translateY(-2px);
}

/* CTA más claro */
.job-action {
    font-size: 1.08em;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
    display: inline-block;
    margin-top: 2px;
}
.job-action:hover {
    color: #1e40af;
}

.job-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 720px;
    width: 100%;
    margin: 0 auto 28px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.job-card--official {
    border: 1px solid rgba(37, 99, 235, 0.24);
    background:
        radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.16), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.14);
}

.job-card--official:hover {
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.18);
}

.job-card--official::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #60a5fa 0%, #2563eb 55%, #1d4ed8 100%);
}

.job-card--official::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.job-official-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 4px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.20);
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.10);
}

.job-official-ribbon::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.job-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

/* Miniatura (flyer) en la card */
.job-card.has-image {
    gap: 14px;
}

.job-thumb {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
    flex: 0 0 auto;
}

.job-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 520px) {
    .job-thumb {
        width: 72px;
        height: 72px;
        border-radius: 12px;
    }
}


.job-title {
    font-size: 21px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.job-location {
    font-size: 14px;
    color: #374151;
}

.job-meta {
    font-size: 13px;
    color: #6b7280;
}

.job-action-container {
    display: flex;
    align-items: center;
}


.job-action {
    font-size: 14px;
    color: #1b5cff;
    font-weight: 500;
}

/* Subtítulo contextual arriba de las cards */
.offers-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 24px;
    font-size: 14px;
}

/* Hint cuando hay una sola oferta */
.offers-hint {
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    margin-top: 16px;
}

/* Responsive job cards */
@media (max-width: 768px) {
    .job {
        flex-direction: column;
        align-items: flex-start;
    }

    .job img {
        width: 64px;
        height: 64px;
    }

    .job button[onclick^="abrirModalEdicion"] {
        position: static;
        margin-top: 12px;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .job {
        padding: 16px;
        gap: 14px;
    }

    .job img {
        width: 56px;
        height: 56px;
    }

    .job-title {
        font-size: 15px;
    }

    .company-name {
        font-size: 14px;
    }
}

/* ============================================
   MODALES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #ffffff;
    color: #1f2937;
    padding: 32px;
    border-radius: 16px;
    max-width: 500px;
    width: 95%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid #e5e7eb;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.modal-content label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background-color: #f9fafb;
    color: #1f2937;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease;
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
    border-color: #2563eb;
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-content button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-content button[type="submit"] {
    background-color: #2563eb;
    color: white;
}

.modal-content button[type="submit"]:hover {
    background-color: #1d4ed8;
}

.modal-content button[type="button"] {
    background-color: #6b7280;
    color: white;
}

/* Botones especiales del modal de detalle (no deben heredar el estilo genérico gris) */
.modal-content button.offer-close-btn {
    padding: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    border: 1px solid rgba(229, 231, 235, 0.9);
}

.modal-content button.offer-edit-btn {
    padding: 6px;
    border-radius: 999px;
    background: #f4f8ff;
    color: #1b5cff;
    border: 1.5px solid #dbeafe;
}

.modal-content button[type="button"]:hover {
    background-color: #4b5563;
}

/* ============================================
   MODAL DE OFERTAS DE TRABAJO (10/10)
   ============================================ */

.offer-modal-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding-top: 20px;
}

.offer-header-line {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.offer-avatar-small {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.offer-header-text {
    flex: 1;
}

.offer-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f1f1f;
    margin: 0 0 6px 0;
}

.offer-company {
    font-size: 15px;
    font-weight: 500;
    color: #666;
    margin: 0 0 10px 0;
}

.offer-publisher {
    font-size: 13px;
    color: #6b7280;
    margin: -4px 0 10px 0;
}

.offer-publisher-label {
    font-weight: 600;
    color: #374151;
}

.offer-publisher-name {
    color: #111827;
}

.offer-official-callout {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.10) 0%, rgba(37, 99, 235, 0.06) 100%);
    border: 1px solid rgba(37, 99, 235, 0.20);
    color: #0f172a;
}

.offer-official-callout__eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.offer-official-callout strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.offer-official-callout p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}

.offer-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    font-size: 16px;
    color: #1b5cff;
    background: #f4f8ff;
    border: 1.5px solid #dbeafe;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.job-card:hover .offer-edit-btn {
    opacity: 1;
    pointer-events: auto;
}

.offer-edit-btn:hover {
    background: #e0edff;
    color: #0152e0;
    box-shadow: 0 4px 12px rgba(31, 107, 255, 0.10);
}
.offer-edit-btn:hover {
    background: #0152e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(31, 107, 255, 0.3);
}

.offer-separator {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 14px 0;
}

.offer-line {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.5;
}

.offer-label {
    font-weight: 600;
    color: #1f1f1f;
}

.offer-line .bullet {
    color: #999;
    margin: 0 6px;
}

.offer-section {
    margin-bottom: 0;
}

.offer-section-label {
    font-weight: 600;
    color: #1f1f1f;
    font-size: 14px;
    margin-bottom: 8px;
}

.offer-description {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

/* Imagen de la oferta (modal) */
.modal-content .offer-image-btn {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit;
    box-shadow: none !important;
    padding: 0 !important;
}

.offer-image-btn {
    display: flex;
    width: 100%;
    padding: 0 !important;
    background: transparent !important;
    border: none;
    border-radius: 14px;
    cursor: zoom-in;
    align-items: center;
    justify-content: center;
}

.offer-image {
    max-width: 100%;
    max-height: clamp(220px, 45vh, 420px);
    width: auto;
    height: auto;
    border-radius: 14px;
    border: none;
    box-shadow: none;
    background: transparent;
    display: block;
}

.offer-image-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}


.offer-image-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

.offer-employer-profile-link {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: rgba(37, 99, 235, 0.06);
    color: #1d4ed8;
    font-weight: 800;
    font-size: 12px;
    text-decoration: none;
    gap: 6px;
}

.offer-employer-profile-link:hover {
    background: rgba(37, 99, 235, 0.10);
    border-color: rgba(37, 99, 235, 0.30);
}

.offer-employer-profile-link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 3px;
}

/* Galería de imágenes (miniaturas) */
.offer-gallery-thumbs {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   Stats de empleador (header)
   ============================================ */
.employer-job-stats {
    width: 100%;
    max-width: 920px;
    margin: 6px auto 0;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.9);
    color: #0f172a;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.employer-job-stats .stats-title {
    font-weight: 900;
    letter-spacing: -0.2px;
    margin-right: 2px;
    color: #0f172a;
}

/* Usamos button para que sea clickeable sin estilos globales */
.employer-job-stats button.stat-pill,
.employer-job-stats .stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #ffffff;
    color: #0f172a;
    box-shadow: none;
    line-height: 1;
}

.employer-job-stats button.stat-pill {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.employer-job-stats button.stat-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
}

.employer-job-stats button.stat-pill:active {
    transform: translateY(0);
}

.employer-job-stats button.stat-pill:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 3px;
}

.employer-job-stats button.stat-pill.is-active {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.employer-job-stats .stat-pill.muted {
    font-weight: 650;
    color: #334155;
}

.employer-job-stats .stat-pill.danger {
    background: #fef2f2;
    border-color: rgba(220, 38, 38, 0.25);
    color: #991b1b;
}

.employer-job-stats .stat-pill.success {
    background: #ecfdf3;
    border-color: rgba(22, 163, 74, 0.25);
    color: #14532d;
}

/* Reset: evitar que los estilos globales del modal pinten gris los thumbs */
.modal-content .offer-thumb-btn {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.offer-thumb-btn {
    flex: 0 0 auto;
    width: 84px;
    height: 64px;
    border: none;
    background: transparent;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
}

.offer-thumb-btn:hover {
    outline: 2px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
}

.offer-thumb-btn.is-active {
    outline: 2px solid rgba(37, 99, 235, 0.75);
    outline-offset: 2px;
}

.offer-thumb-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}

.offer-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
    border-radius: 10px;
}

/* Reportar oferta (modal) */
.offer-report-wrapper {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.offer-report-btn {
    width: 100%;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 800;
    cursor: pointer;
}

.offer-report-btn:hover {
    background: #ffedd5;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(194, 65, 12, 0.12);
}

.offer-report-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

/* Overlay de imagen ampliada */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 4000;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.overlay-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}

.overlay-close-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.overlay-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 26px;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}

.overlay-nav:hover {
    background: rgba(0, 0, 0, 0.45);
}

.overlay-prev { left: 14px; }
.overlay-next { right: 14px; }

.overlay-counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 520px) {
    .overlay-nav {
        display: grid;
        width: 42px;
        height: 42px;
        font-size: 22px;
        background: rgba(0, 0, 0, 0.38);
    }

    .overlay-prev { left: 10px; }
    .overlay-next { right: 10px; }

    .overlay-close-btn {
        width: 42px;
        height: 42px;
        font-size: 26px;
    }
}

.overlay-image {
    max-width: min(980px, 96vw);
    max-height: 92vh;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
}

/* Modal de reportes */
.report-modal-content {
    max-width: 520px;
}

.report-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.report-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-top: -6px;
}

.report-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.report-actions .report-submit {
    flex: 1;
    background: #2563eb;
}

.report-actions .report-cancel {
    flex: 1;
    background: #6b7280;
}

@media (max-width: 520px) {
    .report-actions {
        flex-direction: column;
    }
}

.offer-contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.offer-contact-line {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.offer-contact-line .contact-icon {
    font-size: 18px;
    min-width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text {
    color: #1f6bff;
    word-break: break-all;
}

/* Email */
.offer-contact-line.email {
    background: rgba(31, 107, 255, 0.05);
    border-color: rgba(31, 107, 255, 0.15);
}

.offer-contact-line.email:hover {
    background: rgba(31, 107, 255, 0.12);
    border-color: #1f6bff;
    transform: translateX(2px);
}

/* WhatsApp */
.offer-contact-line.whatsapp {
    background: rgba(34, 177, 76, 0.05);
    border-color: rgba(34, 177, 76, 0.15);
}

.offer-contact-line.whatsapp:hover {
    background: rgba(34, 177, 76, 0.12);
    border-color: #22b14c;
    transform: translateX(2px);
}

.offer-contact-line.whatsapp .contact-icon {
    color: #22b14c;
}

/* Facebook */
.offer-contact-line.facebook {
    background: rgba(59, 89, 152, 0.05);
    border-color: rgba(59, 89, 152, 0.15);
}

.offer-contact-line.facebook:hover {
    background: rgba(59, 89, 152, 0.12);
    border-color: #3b5998;
    transform: translateX(2px);
}

.offer-contact-line.facebook .contact-icon {
    color: #3b5998;
}

/* Instagram */
.offer-contact-line.instagram {
    background: rgba(231, 46, 111, 0.05);
    border-color: rgba(231, 46, 111, 0.15);
}

.offer-contact-line.instagram:hover {
    background: rgba(231, 46, 111, 0.12);
    border-color: #e72e6f;
    transform: translateX(2px);
}

.offer-contact-line.instagram .contact-icon {
    color: #e72e6f;
}

.bullet {
    color: #999;
    margin: 0 4px;
}

/* ============================================
   MODAL DE COMENTARIOS
   ============================================ */
#comment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#comment-modal .modal-content {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
    color: #1f2937;
    font-family: 'Roboto', sans-serif;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid #e5e7eb;
}

#comment-modal h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
}

#comment-modal textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    resize: none;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    outline: none;
    transition: all 0.2s ease;
    background-color: #f9fafb;
    color: #1f2937;
}

#comment-modal textarea:focus {
    border-color: #2563eb;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#comment-modal button {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
}

#comment-modal button[type="submit"] {
    background-color: #059669;
    color: white;
}

#comment-modal button[type="submit"]:hover {
    background-color: #047857;
}

#comment-modal button[type="button"] {
    background-color: #ef4444;
    color: white;
}

#comment-modal button[type="button"]:hover {
    background-color: #dc2626;
}

.comments-container {
    margin-top: 20px;
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    border-radius: 8px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    max-height: 400px;
}

/* Estilos viejos removidos - reemplazados por nuevos */

/* ============================================
   ÍCONO FLOTANTE DE COMENTARIOS
   ============================================ */
#floating-comment-icon {
    display: none !important;
}

/* ============================================
   FOOTER
   ============================================ */

/* ============================================
   ENLACES
   ============================================ */
a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ============================================
   SELECTS E INPUTS
   ============================================ */
select,
input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background-color: #f9fafb;
    color: #1f2937;
    transition: all 0.2s ease;
}

select:focus,
input:focus {
    border-color: #2563eb;
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ============================================
   MENÚ DE PERFIL
   ============================================ */
.profile-menu {
  position: relative;
}

.profile-button {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.profile-button:hover {
  background-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.profile-dropdown {
    display: block;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 8px 0;
  z-index: 1000;
  margin-top: 8px;
  min-width: 180px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.22s ease, transform 0.24s ease, visibility 0.24s ease;
}

.profile-dropdown li {
  padding: 0;
  border-bottom: 1px solid #f3f4f6;
}

.profile-dropdown li:last-child {
  border-bottom: none;
}

.profile-dropdown li a {
  text-decoration: none;
  color: #1f2937;
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.profile-dropdown li a:hover {
  color: #2563eb;
  background-color: #f9fafb;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .main-header {
        padding: 12px 16px;
    }

    .logo {
        font-size: 20px;
    }

    .header-section {
        padding: 32px 16px;
        margin: 80px auto 24px;
    }

    .header {
        font-size: 1.6rem;
        padding: 14px 24px;
    }

    .filters {
        width: min(90%, 500px);
        padding: 20px 16px;
    }

    .job-listings {
        width: min(90%, 800px);
    }

    .job {
        padding: 16px;
        gap: 14px;
    }

    #floating-comment-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 10px 12px;
        min-height: 64px;
    }

    .logo {
        font-size: 18px;
    }

    .header-section {
        padding: 24px 12px;
        margin: 70px auto 20px;
    }

    .header {
        font-size: 1.4rem;
        padding: 12px 20px;
    }

    .header-subtitle {
        font-size: 0.95rem;
    }

    .buttons {
        flex-direction: column;
        gap: 12px;
    }

    button {
        width: 100%;
    }

    /* Excepciones: botones de ícono NO deben estirarse a 100% (evita “barra” fea) */
    button.offer-edit-btn,
    button.offer-close-btn,
    button.overlay-close-btn,
    button.overlay-nav,
    button.category-menu-btn,
    button.category-close-btn,
    button.profile-button,
    button.offer-image-btn,
    button.offer-thumb-btn,
    button.comment-options-btn {
        width: auto;
    }

    /* En móviles sin hover, el botón editar debe ser visible si existe */
    .offer-edit-btn {
        opacity: 1;
        pointer-events: auto;
    }

    /* Modal detalle: header más compacto en pantallas chicas */
    .offer-avatar-small {
        width: 72px;
        height: 72px;
    }

    .offer-modal-wrapper {
        padding-top: 12px;
    }

    .offer-modal-wrapper .offer-header-text {
        padding-right: 92px;
    }

    .offer-modal-wrapper .offer-edit-btn {
        top: 10px;
        right: 52px;
    }

    .offer-close-btn {
        top: 8px;
        right: 8px;
    }

    .filters {
        width: 92%;
        padding: 16px 12px;
        gap: 14px;
    }

    .job-listings {
        width: 92%;
    }

    .job {
        padding: 14px 12px;
        gap: 12px;
    }

    .job img {
        width: 56px;
        height: 56px;
    }

    .job-title {
        font-size: 14px;
    }

    .company-name {
        font-size: 13px;
    }

    .job button[onclick^="abrirModalEdicion"] {
        right: 12px;
        top: 12px;
        padding: 6px 12px;
        font-size: 13px;
    }

    .modal-content {
        padding: 24px;
        gap: 16px;
    }

    #comment-modal .modal-content {
        padding: 24px;
        gap: 16px;
    }

    footer {
        padding: 24px 16px;
    }

    .profile-menu {
        display: flex;
        align-items: center;
        top: auto;
        right: auto;
    }

    .profile-button {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* ============================
   Ajustes de categorías (desktop only)
   ============================ */
@media (min-width: 769px) {
  /* Más espacio vertical y respiración */
  #category-sidebar {
    padding-top: 40px;
    padding-bottom: 40px;
    margin-bottom: 50px; /* espacio antes del hero */
    max-height: none; /* permitir que crezca en desktop */
    overflow: visible;
  }

  /* Contenedor centrado y ancho máximo ampliado */
  #category-sidebar-content {
    max-width: 1200px;
    margin: 0 auto;
    gap: 28px; /* separar columnas para que respiren */
  }

  /* Grupo de categoría: más separación interna */
  #category-sidebar-content .category-group {
    gap: 14px;
  }

  /* Título más visible y profesional */
  #category-sidebar-content .category-group h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.1;
  }

  /* Botones ligeramente más grandes y sólidos */
  #category-sidebar-content .category-group button {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(37,99,235,0.08);
  }

  /* Asegurar que el layout grid conserve 4 columnas en desktop */
  #category-sidebar-content {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* ============================
   end adjustments
   ============================ */

/* ============================================
   OCULTAR ELEMENTOS INNECESARIOS
   ============================================ */
.comentarios-container,
.comentarios-container textarea,
.comentarios-container button,
.comentarios,
.comentarios .comentario {
    display: none !important;
}

/* ============================================
   CATEGORÍAS - SOLO DROPDOWN COMPACTO
   ============================================ */
.categories-container {
    position: relative;
    margin: 0;
    padding: 0;
}

.category-menu-btn {
    display: none !important; /* ✅ OCULTAR EL BOTÓN DE HAMBURGUESA */
}

.category-dropdown {
    display: none !important; /* ✅ OCULTAR LA DROPDOWN SUPERPUESTA */
}

.category-dropdown.show {
    display: none !important; /* ✅ MANTENER OCULTA AUNQUE TENGA CLASS SHOW */
}

/* ============================================
   CATEGORÍAS INFERIORES (AZULES - LAS QUE TE GUSTAN)
   ============================================ */
#category-sidebar {
    background: transparent;
    padding: 16px 0;
    margin: 0;
    width: 100%;
}

#category-sidebar-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 0 16px;
    max-width: 1200px;
    margin: 0 auto;
}

#category-sidebar-content button {
    background-color: #2563eb;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#category-sidebar-content button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

#category-sidebar-content button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    #category-sidebar-content {
        gap: 6px;
        padding: 0 12px;
    }

    #category-sidebar-content button {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    #category-sidebar-content {
        gap: 6px;
        padding: 0 8px;
    }

    #category-sidebar-content button {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* ============================================
   CATEGORÍAS - RESPONSIVE (corrección)
   ============================================ */
.categories-container {
  position: relative;
  margin: 0;
  padding: 0;
}

/* Botón hamburguesa: oculto en desktop, visible en móvil */
.category-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  .category-menu-btn {
    display: inline-flex;
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }
}

/* Sidebar grande: visible en desktop, oculto en móvil */
#category-sidebar {
  display: block;
}

@media (max-width: 768px) {
  #category-sidebar {
    display: none;
  }
}

/* Dropdown del menú hamburguesa: oculto por defecto; .show lo muestra */
.category-dropdown {
  display: none;
  position: absolute;
  top: 60px;
  left: 10px;
  background: white;
  padding: 14px;
  width: 280px;
  max-height: 400px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: opacity 0.18s ease, transform 0.18s ease;
  opacity: 0;
  transform: translateY(-8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  pointer-events: none;
}

.category-dropdown.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
/* ============================================
   end correction
   ============================================ */

/* =========================================================
   CATEGORÍAS – BOTÓN HAMBURGUESA + SIDEBAR ORDENADO
   ========================================================= */

.categories-container {
  position: fixed;
  top: 80px;            /* debajo del header */
  left: 16px;
  z-index: 1200;
}

.category-menu-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #1f2937;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.22s ease, background 0.2s ease;
}

.category-menu-btn i {
  font-size: 20px;
    transition: transform 0.6s ease;
}

.category-menu-btn.is-open i {
    transform: rotate(90deg) scale(1.04);
}

.category-menu-btn:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.category-menu-btn:hover i,
.category-menu-btn:focus-visible i {
    transform: rotate(90deg) scale(1.04);
}

.category-menu-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Ocultamos cualquier dropdown viejo de categorías */
.category-dropdown {
  display: none !important;
}

/* Overlay del sidebar */
#category-sidebar {
  position: fixed;
  inset: 0;
        background: radial-gradient(circle at top, rgba(37, 99, 235, 0.18), transparent 26%), rgba(15, 23, 42, 0.62);
    display: none;
  z-index: 1100;
  align-items: flex-start;
  justify-content: center;
        padding-top: 48px; /* panel más arriba */
        backdrop-filter: blur(3px);
}

#category-sidebar.open {
    display: flex;
    animation: categoryOverlayFade 0.24s ease;
}

/* Contenedor de las columnas */
#category-sidebar-content {
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 24px;
    padding: 26px 32px 30px;
  max-width: 1100px;
  width: calc(100% - 32px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(191, 219, 254, 0.85);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 32px;
  position: relative;
        will-change: transform;
    transform-origin: top left;
}

#category-sidebar.open #category-sidebar-content {
    animation: categoryPanelEnter 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes categoryOverlayFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes categoryPanelEnter {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-menu-btn,
    .category-menu-btn i,
    #category-sidebar,
    #category-sidebar-content,
    .profile-dropdown {
        transition: none !important;
    animation: none !important;
    }
}

/* Botón de cerrar */
.category-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.category-close-btn i {
  font-size: 16px;
}

.category-close-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.30);
}

/* Columnas */
.category-group {
    padding: 18px 18px 16px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.category-group h3 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.category-group button {
  display: inline-block;
  margin: 4px 6px 4px 0;
    padding: 8px 14px;
  border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 13px;
    font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.18);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.category-group button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.22);
}

.category-group button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(27, 92, 255, 0.25);
}

/* Responsive: tablet/móvil */
@media (max-width: 1024px) {
  #category-sidebar-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px 20px 22px;
  }

  .categories-container {
    top: 72px;
    left: 12px;
  }
}

@media (max-width: 640px) {
  #category-sidebar {
        padding-top: 36px;
  }

  #category-sidebar-content {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
    padding: 18px 18px 20px;
  }

  .category-group button {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* ============================================
   TRABAJOS — Layout profesional (GREMIO)
   Overrides al final para evitar conflictos con estilos duplicados.
   ============================================ */

:root {
    --gremio-primary: #2563eb;
    --gremio-primary-700: #1d4ed8;
    --gremio-success: #059669;
    --gremio-text: #111827;
    --gremio-muted: #6b7280;
    --gremio-border: #e5e7eb;
    --gremio-bg: #f7f8fb;
    --gremio-surface: #ffffff;
    --gremio-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
    --gremio-radius: 16px;
}

.jobs-main {
    background: radial-gradient(1200px 500px at 50% -10%, rgba(37, 99, 235, 0.08), transparent 65%),
        linear-gradient(180deg, var(--gremio-bg), #ffffff 65%);
}

.jobs-layout {
    width: min(1100px, 95%);
    margin: 0 auto 64px;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 22px;
    align-items: start;
}

/* Panel de filtros (sticky en desktop) */
.jobs-layout .filter-categoria {
    margin-top: 0;
}

.jobs-layout .filters-container {
    position: sticky;
    top: 96px;
    border: 1px solid rgba(191, 219, 254, 0.85);
    border-radius: 22px;
    background:
      radial-gradient(circle at top right, rgba(96, 165, 250, 0.15), transparent 28%),
      rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
}

.jobs-layout .filters-container h2 {
    letter-spacing: -0.2px;
    font-size: 1.35rem;
}

.jobs-layout .filters-container select {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(148, 163, 184, 0.30);
    color: #0f172a;
}

.jobs-layout .filters-container select:focus {
    border-color: var(--gremio-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.jobs-layout .filter-buttons {
    gap: 10px;
}

/* Resultados: alineación a la izquierda y mejor jerarquía */
.jobs-layout .job-listings-section {
    text-align: left;
    width: 100%;
}

.jobs-layout .job-listings-section h2 {
    margin: 0 0 6px;
    font-size: 1.65rem;
    color: var(--gremio-text);
}

.jobs-layout .offers-subtitle {
    text-align: left;
    margin: 0 0 14px;
    color: var(--gremio-muted);
}

.jobs-layout .job-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Cards dentro del listado: quitar márgenes auto y usar ancho completo */
.jobs-layout #job-listings .job-card {
    margin: 0;
    max-width: none;
    width: 100%;
}

/* Mensaje vacío/errores (inyectado por JS) */
.jobs-layout #no-jobs-message {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px dashed rgba(229, 231, 235, 1);
    color: var(--gremio-muted);
    background: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 980px) {
    .jobs-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .jobs-layout .filters-container {
        position: relative;
        top: auto;
    }
}

/* ============================================
   BUSCADOR + CARDS (ajustes pro)
   ============================================ */

.filters-container #filter-text {
    width: 100%;
}

.job-company {
    font-size: 13.5px;
    color: #4b5563;
    margin-top: 2px;
}

/* ============================================
   MODAL DETALLE — UX profesional
   ============================================ */

.offer-modal-wrapper {
    position: relative;
}

/* Reservar espacio para la X solo en el header (evita superposición sin “correr” todo el modal) */
.offer-modal-wrapper .offer-header-text {
    padding-right: 64px;
}

.offer-modal-wrapper .offer-edit-btn {
    opacity: 1;
    pointer-events: auto;
    position: absolute;
    top: 18px;
    right: 54px;
}

.offer-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
    z-index: 20;
}

.offer-close-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

/* ============================================
   MODAL EDICIÓN — botones claros
   ============================================ */

#edit-job-form .edit-save-btn {
    background: #2563eb;
}

#edit-job-form .edit-save-btn:hover {
    background: #1d4ed8;
}

#edit-job-form .edit-delete-btn {
    background: #ef4444;
}

#edit-job-form .edit-delete-btn:hover {
    background: #dc2626;
}

#edit-job-form .cancel-offer-btn {
    background: #991b1b !important;
}

#edit-job-form .cancel-offer-btn:hover {
    background: #7f1d1d !important;
}

.gremio-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
}

.gremio-confirm-modal__dialog {
    width: min(100%, 420px);
    background: #ffffff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.gremio-confirm-modal__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 1.2rem;
    font-weight: 900;
}

.gremio-confirm-modal__icon.is-danger {
    background: rgba(239, 68, 68, 0.14);
    color: #dc2626;
}

.gremio-confirm-modal__icon.is-warning {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.gremio-confirm-modal__title {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gremio-confirm-modal__message {
    margin: 0;
    color: #475569;
    font-size: 0.97rem;
    line-height: 1.55;
}

.gremio-confirm-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.gremio-confirm-modal__btn {
    min-width: 132px;
    border: 0;
    border-radius: 14px;
    padding: 11px 16px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.gremio-confirm-modal__btn:hover {
    transform: translateY(-1px);
}

.gremio-confirm-modal__btn--ghost {
    background: #eef2f7;
    color: #0f172a;
}

.gremio-confirm-modal__btn--ghost:hover {
    background: #e2e8f0;
}

.gremio-confirm-modal__btn--danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(220, 38, 38, 0.24);
}

.gremio-confirm-modal__btn--danger:hover {
    box-shadow: 0 18px 30px rgba(220, 38, 38, 0.28);
}

.gremio-confirm-modal__btn--primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

.gremio-confirm-modal__btn--primary:hover {
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.28);
}

@media (max-width: 640px) {
    .gremio-confirm-modal {
        padding: 16px;
    }

    .gremio-confirm-modal__dialog {
        border-radius: 18px;
        padding: 20px;
    }

    .gremio-confirm-modal__actions {
        flex-direction: column-reverse;
    }

    .gremio-confirm-modal__btn {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   FILTROS – tarjeta más limpia y centrada
   ========================================================= */

.filter-categoria {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.filters-container {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px 28px 22px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.15);
}

.filters-container h2 {
  text-align: left;
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 20px;
  color: #111827;
}

.filters-container label {
  display: block;
  margin-top: 10px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #334155;
}

.filters-container select {
  width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #d1d5db;
  font-size: 14px;
  outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.filters-container select:focus {
  border-color: #1b5cff;
    box-shadow: 0 0 0 3px rgba(27, 92, 255, 0.18);
    transform: translateY(-1px);
}

#filter-title {
    border-color: rgba(37, 99, 235, 0.28);
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

#filter-title:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.20), 0 12px 28px rgba(37, 99, 235, 0.10);
}

.custom-category-filter {
    position: relative;
}

.custom-category-filter__native {
    position: absolute;
    inset: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.custom-category-filter__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid rgba(37, 99, 235, 0.28);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
    color: #0f172a;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.custom-category-filter__trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.custom-category-filter.is-open .custom-category-filter__trigger,
.custom-category-filter__trigger:focus-visible {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 14px 28px rgba(37, 99, 235, 0.12);
}

.custom-category-filter.is-disabled .custom-category-filter__trigger,
.custom-category-filter__trigger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.custom-category-filter__trigger-text.is-placeholder {
    color: #64748b;
}

.custom-category-filter__trigger i,
.custom-category-filter__chevron {
    color: #2563eb;
    transition: transform 0.16s ease;
    font-style: normal;
    line-height: 1;
}

.custom-category-filter.is-open .custom-category-filter__trigger i,
.custom-category-filter.is-open .custom-category-filter__chevron {
    transform: rotate(180deg);
}

.custom-category-filter__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 45;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(191, 219, 254, 0.95);
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,251,255,0.98) 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.custom-category-filter__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}

.custom-category-filter__option {
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    padding: 8px 14px;
    background: #ffffff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.custom-category-filter__option:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.12);
    background: rgba(239, 246, 255, 0.9);
}

.custom-category-filter__option.is-active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.20);
}

.custom-category-filter__option--clear {
    background: #eef2ff;
    color: #334155;
}

.custom-category-filter--province .custom-category-filter__panel {
    padding: 12px;
}

.custom-category-filter--province .custom-category-filter__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    max-height: 280px;
}

.custom-category-filter--province .custom-category-filter__option {
    width: 100%;
    display: block;
    border-radius: 14px;
    text-align: left;
}

.custom-category-filter--location .custom-category-filter__panel {
    padding: 12px;
}

.custom-category-filter--location .custom-category-filter__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    max-height: 260px;
}

.custom-category-filter--location .custom-category-filter__option {
    width: 100%;
    display: block;
    border-radius: 14px;
    text-align: left;
}

@media (max-width: 640px) {
    .custom-category-filter__trigger {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .custom-category-filter__panel {
        padding: 12px;
        border-radius: 16px;
    }

    .custom-category-filter__list {
        gap: 8px;
        max-height: 220px;
    }

    .custom-category-filter__option {
        padding: 8px 12px;
        font-size: 12px;
    }

    .custom-category-filter--province .custom-category-filter__list {
        grid-template-columns: 1fr;
    }

    .custom-category-filter--location .custom-category-filter__list {
        grid-template-columns: 1fr;
    }
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-buttons button {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.filter-buttons button:nth-child(1) {
  background: #1b5cff;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(27, 92, 255, 0.35);
}

.filter-buttons button:nth-child(2) {
  background: #e5e7eb;
  color: #111827;
}

.filter-buttons button:nth-child(3) {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35);
}

.filter-buttons button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
}

.filter-buttons button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

@media (max-width: 640px) {
  .filters-container {
    padding: 18px 16px 16px;
    border-radius: 12px;
  }

  .filter-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-buttons button {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   SISTEMA DE COMENTARIOS MEJORADO
   ============================================ */

.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.comment-item.reply {
    margin-left: 20px;
    padding-left: 12px;
    border-left: 2px solid #ddd;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    word-wrap: break-word;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-name {
    font-weight: 600;
    color: #1f1f1f;
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: #999;
}

.comment-text {
    font-size: 14px;
    color: #333;
    margin: 6px 0;
    line-height: 1.4;
}

.comment-actions {
    font-size: 13px;
    color: #1f6bff;
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: center;
}

.comment-actions span {
    cursor: pointer;
    padding: 4px 0;
}

.comment-actions span:hover {
    text-decoration: underline;
}

.comment-options-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    margin: 0;
    transition: color 0.2s;
}

.comment-options-btn:hover {
    color: #1f6bff;
}

.comment-options-menu {
    position: absolute;
    right: 0;
    top: 24px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
}

.comment-options-menu button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    color: #333;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    transition: background 0.2s;
}

.comment-options-menu button:hover {
    background: #f5f5f5;
}

.comment-options-menu button:first-child {
    border-radius: 8px 8px 0 0;
}

.comment-options-menu button:last-child {
    border-radius: 0 0 8px 8px;
}

.comment-replies {
    margin-top: 12px;
}

/* ============================================
   MODAL DE PERFIL DEL USUARIO (Foto Ampliada)
   ============================================ */

#user-profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 2500;
}

.profile-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.profile-modal-avatar {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 4px solid white;
}

.profile-modal-name {
    font-size: 22px;
    font-weight: 700;
    color: #1f1f1f;
    margin: 0;
    text-align: center;
}

/* ============================================
   NUEVO DISEÑO DE TRABAJO-CARD (Rediseño)
   ============================================ */

.job-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    cursor: pointer;
    transition: 0.25s ease;
    max-width: 600px;
    margin: 24px auto;
    width: 100%;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 18px rgba(0,0,0,0.13);
}

.job-header {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.job-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.job-title-group {
    flex-grow: 1;
}

.job-title {
    font-size: 17px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0;
}

.job-company {
    font-size: 14px;
    color: #666;
}

.job-card--official .job-company {
    color: #1e3a8a;
    font-weight: 700;
}

.edit-btn {
    padding: 6px 12px;
    background: #1f6bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.25s;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.edit-btn:hover {
    background: #0152e0;
}

.job-info {
    font-size: 14px;
    color: #444;
}

.job-date {
    font-size: 13px;
    color: #6d6d6d;
    font-style: italic;
}

/* ============================================
   MODAL PROFESIONAL (Rediseño)
   ============================================ */

.modal-content {
    max-width: 700px;
    padding: 30px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0px 6px 30px rgba(0,0,0,0.18);
}

.modal-content h3 {
    margin-top: 0;
    color: #1f1f1f;
}

.modal-content p {
    margin: 6px 0;
    color: #333;
}

.modal-section {
    margin-bottom: 18px;
}

.modal-section-title {
    font-weight: 600;
    margin-bottom: 6px;
}

/* =============================
     Ajustes finales card (spec)
     ============================= */

/* Layout general de la card (contenido izquierda + CTA derecha) */
.job-card {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
}

.job-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding-right: 10px;
    padding-bottom: 30px; /* espacio para el CTA abajo-derecha */
}

.job-action-container {
    position: absolute;
    right: 18px;
    bottom: 16px;
}

/* Header (título + chips) */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
}

.job-header .job-title {
    flex: 1 1 auto;
}

.job-header .job-labels {
    margin: 0;
    margin-left: auto;
    align-self: flex-start;
    justify-content: flex-end;
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .job-header {
        flex-wrap: wrap;
    }
    .job-header .job-labels {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Estado del trabajo */
.job-status {
    display: inline-flex;
    width: fit-content;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    margin: 6px 0 4px;
}

.job-status.en-curso {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}


/* Nuevo: badge pendiente (esperando confirmación) */
.job-status.pendiente {
    background: #fff7cc;
    color: #92400e;
    border: 1px solid #fde68a;
}

.job-status.finalizado {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.job-status.abierto {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* CTA “Ver oferta” */
.job-action-container {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.job-action {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2563eb;
    white-space: nowrap;
}

.job-card:hover .job-action {
    text-decoration: underline;
}

/* Cards “en curso” (feedback visual) */
.job-card.en-curso {
    opacity: 0.85;
}

.job-card.en-curso .job-action {
    color: #9ca3af;
}

/* ============================================
   JOB CARD (GREMIO) — Layout profesional (2026)
   Nota: se define al final para sobreescribir estilos duplicados previos.
   ============================================ */

.job-card {
    position: relative;
    display: grid;
    grid-template-columns: 104px 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    max-width: 760px;
    width: 100%;
    margin: 18px auto;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.16);
}

.job-card.finalizado {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.job-thumb {
    width: 104px;
    height: 104px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: transparent;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
    padding: 0;
    cursor: zoom-in;
    display: block;
    line-height: 0;
    appearance: none;
}

.job-thumb:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}

.job-card:hover .job-thumb {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.job-thumb.is-avatar {
    border-radius: 999px;
}

.job-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.job-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.job-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.job-title {
    margin: 0;
    font-size: clamp(16px, 1.15vw + 12px, 20px);
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #111827;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.job-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

/* Hacer los chips más prolijos dentro de la card */
.job-card .job-label {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    border-width: 1px;
}

.job-category {
    font-size: 13.5px;
    color: #6b7280;
}

.job-category b {
    color: #374151;
    font-weight: 700;
}

.job-status {
    margin: 2px 0 0;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12.5px;
}

.job-location {
    margin: 2px 0 0;
    font-size: 13.5px;
    color: #111827;
}

.job-meta {
    margin: 0;
    font-size: 12.5px;
    color: #6b7280;
}

.job-meta .publicado {
    color: #d7263d;
    font-weight: 700;
}

.job-action-container {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    align-self: end;
}

.job-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 12px;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    text-decoration: none;
}

.job-card:hover .job-action {
    background: #dbeafe;
}

.job-action.disabled {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
}

@media (max-width: 640px) {
    .job-card {
        grid-template-columns: 76px 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
        padding: 16px;
    }

    .job-thumb {
        width: 76px;
        height: 76px;
        border-radius: 14px;
    }

    .job-thumb.is-avatar {
        border-radius: 999px;
    }

    .job-action-container {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .job-header {
        flex-wrap: wrap;
    }

    .job-labels {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ==========================================================
   INDICADOR DE EDICIÓN + LÍMITE (máx 2 ediciones)
   ========================================================== */

/* Badge en tarjetas */
.job-edit-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    margin-left: 10px;
    vertical-align: middle;
    white-space: nowrap;
}

.job-edit-badge.is-none {
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.05);
}

.job-edit-badge.is-edited {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.28);
}

.job-edit-badge.is-max {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.30);
}

/* Badge en modal detalle */
.offer-edit-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
}

.offer-edit-badge.is-none { background: rgba(255, 255, 255, 0.05); }
.offer-edit-badge.is-edited { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.28); }
.offer-edit-badge.is-max { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.30); }

/* Modal edición: aviso sobre límite */
.edit-limit-hint {
    margin: 10px 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.35;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
}

.edit-limit-hint.is-warn {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.10);
}

.edit-limit-hint.is-block {
    border-color: rgba(239, 68, 68, 0.30);
    background: rgba(239, 68, 68, 0.10);
}
