/*
 * trabajos-index.css
 * Estilos para la página de la Bolsa de Trabajo (listado de ofertas).
 */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=Archivo:wght@400;500;600;700;800;900&family=Archivo+Narrow:wght@400;500;600;700&display=swap');

/* ══════════════════════════════════════════
   DARK BODY OVERRIDE — solo aplica en trabajos
══════════════════════════════════════════ */
body {
    background: #0d0820;
    color: #f5f1ea;
}

/* ══════════════════════════════════════════
   BARRA DE FILTROS — dark override
══════════════════════════════════════════ */
.barra-filtros {
    top: 107px !important; /* desktop: nav ≈ 107px (padding 36px + logo 70px + border 1px) */
    background: rgba(13,10,24,0.96) !important;
    border-bottom: 1px solid rgba(245,241,234,0.10) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.barra-filtros .text-sm { color: rgba(245,241,234,0.4) !important; }
.barra-filtros .filtro-label { color: rgba(245,241,234,0.45) !important; }
.barra-filtros .custom-select-wrapper {
    background: rgba(245,241,234,0.05) !important;
    border: 1px solid rgba(245,241,234,0.12) !important;
    color: rgba(245,241,234,0.85) !important;
}
.barra-filtros .custom-select-wrapper:hover,
.barra-filtros .custom-select-wrapper.abierto {
    border-color: rgba(168,85,247,0.5) !important;
    background: rgba(168,85,247,0.08) !important;
}
.barra-filtros .custom-select-display { color: rgba(245,241,234,0.85) !important; }
.barra-filtros .custom-select-arrow   { color: rgba(245,241,234,0.45) !important; }
.barra-filtros .custom-select-dropdown {
    background: #0d0a18 !important;
    border: 1px solid rgba(245,241,234,0.12) !important;
}
.barra-filtros .custom-select-option  { color: rgba(245,241,234,0.7) !important; }
.barra-filtros .custom-select-option:hover { background: rgba(168,85,247,0.15) !important; color: #f5f1ea !important; }
.barra-filtros .custom-select-option.seleccionado { background: rgba(168,85,247,0.2) !important; color: #a855f7 !important; }
.barra-filtros .btn-limpiar {
    background: rgba(245,241,234,0.07) !important;
    border-color: rgba(245,241,234,0.15) !important;
    color: rgba(245,241,234,0.6) !important;
}
.barra-filtros .btn-limpiar:hover {
    background: rgba(245,241,234,0.12) !important;
    color: #f5f1ea !important;
}

/* ══════════════════════════════════════════
   SECCIÓN CONTENIDO — fondo con puntos
══════════════════════════════════════════ */
.trabajos-seccion-contenido {
    background:
        radial-gradient(circle, rgba(124,58,237,0.14) 1.5px, transparent 1.5px),
        linear-gradient(160deg, #130228 0%, #1a0f35 45%, #0e0722 75%, #130228 100%);
    background-size: 28px 28px, 100% 100%;
}

/* Sin resultados — texto claro sobre fondo oscuro */
#sin-resultados .font-display { color: #f5f1ea !important; }
#sin-resultados .text-muted   { color: rgba(245,241,234,0.4) !important; }

/* ══════════════════════════════════════════
   HERO TRABAJOS — editorial con carrusel
══════════════════════════════════════════ */

.trabajos-hero {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.trabajos-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle, rgba(124,58,237,0.18) 1.5px, transparent 1.5px),
        linear-gradient(160deg, #130228 0%, #1a0f35 45%, #0e0722 75%, #130228 100%);
    background-size: 28px 28px, 100% 100%;
    z-index: 0;
}

.trabajos-hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.trabajos-hero-orb-1 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(124,58,237,0.22) 0%, transparent 60%);
    top: -140px; left: -80px;
    animation: orbA 16s ease-in-out infinite;
}
.trabajos-hero-orb-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(78,58,150,0.18) 0%, transparent 60%);
    bottom: -80px; right: -60px;
    animation: orbB 20s ease-in-out infinite;
}

.trabajos-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .trabajos-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .trabajos-carousel { height: 240px; }
}

.trabajos-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Archivo Narrow', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #a855f7;
    margin-bottom: 20px;
}
.trabajos-hero-kicker-line {
    width: 36px; height: 1px;
    background: #a855f7;
    flex-shrink: 0;
}

.trabajos-hero-titulo {
    font-family: 'Anton', sans-serif;
    font-size: clamp(48px, 7vw, 96px);
    line-height: 0.88;
    letter-spacing: -0.01em;
    color: #f5f1ea;
    text-transform: uppercase;
    font-weight: 400;
    margin: 0 0 28px;
}
.trabajos-hero-titulo em {
    font-style: italic;
    color: #a855f7;
    font-family: 'Bebas Neue', sans-serif;
    -webkit-text-fill-color: initial;
    background: none;
}

.trabajos-hero-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.trabajos-hero-stat {
    border-top: 1px solid rgba(245,241,234,0.2);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.trabajos-hero-stat-num {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: #a855f7;
    line-height: 0.95;
}
.trabajos-hero-stat--lilac .trabajos-hero-stat-num {
    color: #c084fc;
}
.trabajos-hero-stat-label {
    font-family: 'Archivo Narrow', sans-serif;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(245,241,234,0.45);
}

/* ── Carrusel ── */

.trabajos-carousel-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trabajos-carousel {
    position: relative;
    height: 220px;
}

.carousel-oferta {
    position: absolute;
    inset: 0;
    background: #0d0a18;
    border: 1px solid rgba(245,241,234,0.10);
    border-radius: 0;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.2s, box-shadow 0.2s;
    pointer-events: none;
}
.carousel-oferta.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.carousel-oferta.active:hover {
    border-color: rgba(168,85,247,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(168,85,247,0.3);
}

.co-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.co-avatar {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4e3a96, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display, 'Bebas Neue', Impact, sans-serif);
    font-size: 0.75rem;
    font-weight: 900;
    color: white;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.co-empresa {
    font-size: 0.78rem;
    font-weight: 700;
    color: #c084fc;
    margin: 0 0 3px;
}
.co-badge {
    display: inline-block;
    background: rgba(124,58,237,0.3);
    border: 1px solid rgba(124,58,237,0.4);
    color: rgba(192,132,252,0.9);
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 999px;
}
.co-titulo {
    font-family: var(--font-display, 'DM Sans', ui-sans-serif, sans-serif);
    font-size: 1.15rem;
    font-weight: 900;
    color: #f5f1ea;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.1;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.co-datos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.co-dato {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(245,241,234,0.55);
}
.co-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: auto;
}
.co-salario {
    font-size: 0.85rem;
    font-weight: 800;
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.co-flecha {
    color: rgba(192,132,252,0.7);
    font-size: 1.1rem;
    transition: transform 0.2s;
}
.carousel-oferta.active:hover .co-flecha {
    transform: translateX(4px);
}

/* Dots */
.carousel-dots {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}
.carousel-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(245,241,234,0.2);
    border: none;
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
    padding: 0;
}
.carousel-dot.active {
    background: #a855f7;
    width: 20px;
    border-radius: 3px;
}


/* ══════════════════════════════════════════
   TARJETA DE OFERTA DE TRABAJO — glassmorphism
══════════════════════════════════════════ */

.card-trabajo-grande {
    background: rgba(13,10,24,0.4);
    border: 1px solid rgba(245,241,234,0.10);
    border-radius: 16px;
    padding: 22px 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

.card-trabajo-grande:hover {
    border-color: rgba(168,85,247,0.5);
    background: rgba(168,85,247,0.05);
    transform: translateX(4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.ctg-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ctg-icono {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5f1ea;
    box-shadow: 0 0 18px rgba(168,85,247,0.45);
}
.ctg-icono svg { width: 22px; height: 22px; }

.ctg-badge {
    display: inline-block;
    background: rgba(124,58,237,0.3);
    border: 1px solid rgba(124,58,237,0.45);
    color: rgba(192,132,252,0.95);
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 9px;
    border-radius: 999px;
    margin-bottom: 3px;
}

.ctg-empresa {
    font-size: 0.8rem;
    font-weight: 700;
    color: #c084fc;
    margin: 0;
}

.ctg-titulo {
    font-family: 'Anton', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: #f5f1ea;
    line-height: 1.05;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ctg-desc {
    font-size: 0.82rem;
    color: rgba(245,241,234,0.45);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.ctg-datos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ctg-dato {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Archivo Narrow', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(245,241,234,0.55);
    background: rgba(168,85,247,0.08);
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: 999px;
    padding: 3px 10px;
}
.ctg-dato svg {
    color: rgba(168,85,247,0.8);
    flex-shrink: 0;
}

.ctg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.ctg-salario-label {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(245,241,234,0.3);
    margin: 0 0 2px;
}

.ctg-salario {
    font-family: 'Anton', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #a855f7;
    line-height: 1;
    margin: 0;
    -webkit-text-fill-color: initial;
    background: none;
}

.ctg-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 3px 12px rgba(124,58,237,0.4);
}
.ctg-btn:hover {
    opacity: 0.9;
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(124,58,237,0.6);
}

/* ── Responsive: sticky bar top en móvil ── */
@media (max-width: 768px) {
    /* Móvil: nav ≈ 79px (padding 24px + logo 54px + border 1px) */
    .barra-filtros { top: 79px !important; }
}
