/* ===== BOLSA DE TRABAJO - ESTILOS EXCLUSIVOS ===== */

/* ---- Body & Background ---- */
.bolsa-body {
    background: #020202;
    min-height: 100vh;
    overflow-x: hidden;
}

.bolsa-animated-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bolsa-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    animation: orbFloat 12s ease-in-out infinite;
}

.bolsa-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #FC8007, transparent);
    top: -200px;
    left: -150px;
    animation-duration: 14s;
}

.bolsa-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #7C3AED, transparent);
    bottom: -150px;
    right: -100px;
    animation-duration: 18s;
    animation-direction: reverse;
    opacity: 0.08;
}

.bolsa-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #FC8007, transparent);
    top: 50%;
    left: 50%;
    animation-duration: 22s;
    opacity: 0.06;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(40px, -30px) scale(1.08); }
    66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---- Utility ---- */
.hidden { display: none !important; }

/* ===== TOKEN GATE ===== */
.gate-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.gate-card {
    background: rgba(17, 17, 17, 0.85);
    border: 1px solid rgba(252, 128, 7, 0.15);
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(252,128,7,0.05);
    animation: gateSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes gateSlideIn {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.gate-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #6B7280;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.gate-back:hover { color: #FC8007; }

.gate-lock-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(252,128,7,0.15) 0%, rgba(252,128,7,0.05) 100%);
    border: 2px solid rgba(252,128,7,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #FC8007;
    animation: lockPulse 3s ease-in-out infinite;
}

@keyframes lockPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(252,128,7,0.3); }
    50%       { box-shadow: 0 0 0 12px rgba(252,128,7,0); }
}

.gate-lock-icon.unlocked {
    background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(16,185,129,0.05));
    border-color: rgba(16,185,129,0.4);
    color: #10B981;
    animation: unlockBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes unlockBounce {
    0%   { transform: scale(0.8) rotate(-15deg); }
    60%  { transform: scale(1.15) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.gate-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(252,128,7,0.1);
    color: #FC8007;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(252,128,7,0.25);
    margin-bottom: 1.25rem;
}

.gate-title {
    font-family: 'Kanit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    font-style: italic;
    color: #F3F4F6;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.gate-highlight {
    background: linear-gradient(135deg, #FC8007, #FFAA4D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gate-subtitle {
    font-size: 0.9rem;
    color: #9CA3AF;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.gate-subtitle strong {
    color: #D1D5DB;
}

/* Input */
.gate-form { margin-bottom: 1.5rem; }

.gate-input-wrapper {
    position: relative;
    margin-bottom: 0.85rem;
}

.gate-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #FC8007;
    font-size: 1.1rem;
    pointer-events: none;
}

.gate-input {
    width: 100%;
    padding: 0.95rem 1rem 0.95rem 2.8rem;
    background: #0D0D0D;
    border: 1px solid #2D2D2D;
    border-radius: 0.85rem;
    color: #F3F4F6;
    font-family: 'Inter', monospace;
    font-size: 0.82rem;
    outline: none;
    transition: all 0.3s ease;
    letter-spacing: 0.04em;
}

.gate-input::placeholder { color: #4B5563; }

.gate-input:focus {
    border-color: #FC8007;
    box-shadow: 0 0 0 3px rgba(252,128,7,0.15);
}

.gate-input.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}

.gate-input.success {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}

.gate-error {
    font-size: 0.8rem;
    color: #EF4444;
    margin-bottom: 0.75rem;
    min-height: 1.2em;
    transition: all 0.3s;
}

/* Button */
.gate-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #FC8007 0%, #D46A00 100%);
    color: #000;
    border: none;
    border-radius: 0.85rem;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(252,128,7,0.45);
}

.gate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes spin { to { transform: rotate(360deg); } }
.gate-spin { display: inline-block; animation: spin 0.8s linear infinite; }

/* Hint */
.gate-hint {
    font-size: 0.75rem;
    color: #4B5563;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    text-align: left;
}

.gate-hint i { color: #6B7280; margin-top: 0.1rem; flex-shrink: 0; }

.gate-divider {
    border: none;
    border-top: 1px solid #1F1F1F;
    margin: 1.5rem 0;
}

.gate-contact { text-align: center; }

.gate-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(37,211,102,0.08);
    color: #25D366;
    border: 1px solid rgba(37,211,102,0.2);
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.gate-contact-btn:hover {
    background: rgba(37,211,102,0.15);
    transform: translateY(-1px);
}


/* ===== BOARD (JOB BOARD) ===== */
.board-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

/* Header */
.board-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(252,128,7,0.1);
}

.board-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.board-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    flex-shrink: 0;
}

.board-logo .logo-text {
    font-size: 0.55rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.board-logo .logo-highlight {
    font-family: 'Kanit', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 1.05rem;
    color: #FC8007;
}

.board-user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.board-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FC8007, #FFAA4D);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #000;
    border: 2px solid rgba(252,128,7,0.4);
    overflow: hidden;
    flex-shrink: 0;
}

.board-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.board-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #F3F4F6;
}

.board-user-role {
    font-size: 0.72rem;
    color: #FC8007;
}

.board-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: rgba(239,68,68,0.08);
    color: #EF4444;
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.board-logout-btn:hover {
    background: rgba(239,68,68,0.15);
}

/* Hero */
.board-hero {
    padding: 4rem 0 2.5rem;
    text-align: center;
}

.board-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(252,128,7,0.1);
    color: #FC8007;
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(252,128,7,0.25);
    margin-bottom: 1.25rem;
}

.board-hero-title {
    font-family: 'Kanit', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    font-style: italic;
    color: #F3F4F6;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.board-hero-sub {
    font-size: 1rem;
    color: #9CA3AF;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Filters */
.board-filters-section {
    background: #0A0A0A;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(252,128,7,0.08);
    border-bottom: 1px solid rgba(252,128,7,0.08);
    position: sticky;
    top: 64px;
    z-index: 90;
    backdrop-filter: blur(10px);
}

.board-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.board-filter-select {
    padding: 0.65rem 2.2rem 0.65rem 0.9rem;
    background: #1A1A1A;
    border: 1px solid #2D2D2D;
    border-radius: 0.65rem;
    color: #F3F4F6;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B6B6B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 0.75rem) center;
    transition: all 0.3s;
}

.board-filter-select option { background: #1A1A1A; }
.board-filter-select:focus { border-color: #FC8007; box-shadow: 0 0 0 3px rgba(252,128,7,0.15); }

.board-results-count {
    margin-left: auto;
    font-size: 0.82rem;
    color: #6B7280;
}

.board-results-count span { color: #FC8007; font-weight: 700; }

/* Grid */
.board-grid-section {
    padding: 2.5rem 0 4rem;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

/* ===== JOB CARD ===== */
.job-card {
    background: #111111;
    border: 1px solid #1F1F1F;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.job-card:hover {
    transform: translateY(-6px);
    border-color: rgba(252,128,7,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(252,128,7,0.07);
}

.job-card.featured {
    border-color: rgba(252,128,7,0.35);
    box-shadow: 0 0 30px rgba(252,128,7,0.08);
}

.job-card.expired { opacity: 0.55; }

.job-card-top {
    padding: 1.25rem 1.5rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.job-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.job-badge {
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-tipo-full-time    { background: rgba(16,185,129,0.12); color: #10B981; border: 1px solid rgba(16,185,129,0.2); }
.badge-tipo-part-time    { background: rgba(59,130,246,0.12); color: #60A5FA; border: 1px solid rgba(59,130,246,0.2); }
.badge-tipo-proyecto     { background: rgba(168,85,247,0.12); color: #C084FC; border: 1px solid rgba(168,85,247,0.2); }
.badge-tipo-voluntariado { background: rgba(251,191,36,0.12); color: #FBBF24; border: 1px solid rgba(251,191,36,0.2); }

.badge-modal-presencial { background: rgba(252,128,7,0.1); color: #FC8007; border: 1px solid rgba(252,128,7,0.2); }
.badge-modal-remoto     { background: rgba(34,197,94,0.1); color: #4ADE80; border: 1px solid rgba(34,197,94,0.2); }
.badge-modal-hibrido    { background: rgba(99,102,241,0.1); color: #818CF8; border: 1px solid rgba(99,102,241,0.2); }

.badge-destacado {
    background: linear-gradient(135deg, rgba(252,128,7,0.25), rgba(255,170,77,0.15));
    color: #FFAA4D;
    border: 1px solid rgba(252,128,7,0.4);
}

.badge-vencida {
    background: rgba(239,68,68,0.1);
    color: #EF4444;
    border: 1px solid rgba(239,68,68,0.2);
}

.job-card-body {
    padding: 1rem 1.5rem 0;
}

.job-empresa {
    font-size: 0.75rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.job-empresa i { color: #FC8007; font-size: 0.7rem; }

.job-titulo {
    font-family: 'Kanit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #F3F4F6;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: #9CA3AF;
}

.job-meta-item i { color: #FC8007; font-size: 0.75rem; }

.job-desc {
    font-size: 0.83rem;
    color: #9CA3AF;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.job-esp-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    background: rgba(252,128,7,0.08);
    color: #FFAA4D;
    border: 1px solid rgba(252,128,7,0.12);
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    margin-bottom: 0.85rem;
}

.job-salario {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #10B981;
    font-weight: 600;
    padding: 0.5rem 0;
    border-top: 1px solid #1A1A1A;
    margin-bottom: 0.5rem;
}

.job-salario i { font-size: 0.75rem; }

.job-card-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #1A1A1A;
    display: flex;
    gap: 0.65rem;
}

.job-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.job-btn-wa {
    background: rgba(37,211,102,0.1);
    color: #25D366;
    border: 1px solid rgba(37,211,102,0.2);
}

.job-btn-wa:hover {
    background: rgba(37,211,102,0.2);
    transform: translateY(-1px);
}

.job-btn-email {
    background: rgba(252,128,7,0.1);
    color: #FC8007;
    border: 1px solid rgba(252,128,7,0.2);
}

.job-btn-email:hover {
    background: rgba(252,128,7,0.2);
    transform: translateY(-1px);
}

/* Date badge */
.job-date {
    font-size: 0.72rem;
    color: #4B5563;
    padding: 0 1.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.job-date i { font-size: 0.68rem; }
.job-date.deadline { color: #EF4444; }

/* Empty State */
.board-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    color: #4B5563;
}

.board-empty-state i {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1.25rem;
    color: #2D2D2D;
}

.board-empty-state h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 1.4rem;
    color: #F3F4F6;
    margin-bottom: 0.5rem;
}

.board-empty-state p { font-size: 0.9rem; }

/* Skeleton */
.job-skeleton {
    background: #111111;
    border: 1px solid #1F1F1F;
    border-radius: 1.25rem;
    padding: 1.5rem;
    overflow: hidden;
}

.skel-line {
    background: linear-gradient(90deg, #1A1A1A 25%, #222 50%, #1A1A1A 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Disclaimer footer */
.board-footer-note {
    background: #0A0A0A;
    border-top: 1px solid #1F1F1F;
    padding: 2rem 0;
}

.board-disclaimer {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(252,128,7,0.04);
    border: 1px solid rgba(252,128,7,0.12);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

.board-disclaimer > i {
    color: #FC8007;
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.board-disclaimer-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #FC8007;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.35rem;
}

.board-disclaimer-text {
    font-size: 0.8rem;
    color: #6B7280;
    line-height: 1.7;
}

/* Toast */
.board-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1A1A1A;
    border: 1px solid #2D2D2D;
    border-radius: 0.75rem;
    padding: 0.9rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    z-index: 999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.85rem;
    color: #F3F4F6;
    max-width: 360px;
    pointer-events: none;
}

.board-toast.show { transform: translateY(0); opacity: 1; pointer-events: all; }
.board-toast.success { border-color: rgba(16,185,129,0.35); }
.board-toast.success i { color: #10B981; }
.board-toast.error { border-color: rgba(239,68,68,0.35); }
.board-toast.error i { color: #EF4444; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .gate-card {
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
    }

    .board-header-inner {
        padding: 0 1rem;
        gap: 0.75rem;
    }

    .board-logo .logo-text { display: none; }
    .board-user-role { display: none; }

    .board-grid {
        grid-template-columns: 1fr;
    }

    .board-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .board-results-count { margin-left: 0; }

    .job-card-footer { flex-direction: column; }
}

@media (max-width: 480px) {
    .gate-title { font-size: 1.8rem; }
    .board-disclaimer { flex-direction: column; }
}
