/* ============================================
   DOMEMPLEOS HOME - Kimi Design Adapted
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Colores principales de Kimi */
    --primary: #3B82F6;
    --primary-light: #60A5FA;
    --primary-dark: #2563EB;
    --secondary: #10B981;
    --accent: #F59E0B;
    
    /* Colores de fondo y superficie */
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --surface-hover: #F8FAFC;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    
    /* Bordes y sombras al estilo Kimi */
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Radio de bordes al estilo Kimi */
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transiciones suaves */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
#apus-main-content {
    padding: 0 !important;
    margin: 0 !important;
}

.de-hp * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.de-hp {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
}

.de-hp a {
    text-decoration: none;
    color: inherit;
}

.de-hp button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.de-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .de-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .de-container {
        padding: 0 2rem;
    }
}

/* ===== HERO ===== */
.de-hero {
    position: relative;
    padding-top: 6rem;
    padding-bottom: 3rem;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 50%, #FFFFFF 100%);
    overflow: hidden;
}

.de-hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

.de-hero::after {
    content: '';
    position: absolute;
    top: 40%;
    right: 5%;
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 6s ease-in-out infinite 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.de-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.de-hero__title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.de-hero__title span {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 50%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.de-hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SEARCH ===== */
.de-search {
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.de-search__box {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    padding: 0.5rem;
}

.de-search__inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .de-search__inner {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
}

.de-search__field {
    position: relative;
    flex: 1;
}

.de-search__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    width: 20px;
    height: 20px;
}

.de-search__input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
    transition: all 0.2s;
    font-family: inherit;
}

.de-search__input::placeholder {
    color: #9CA3AF;
}

.de-search__input:focus {
    outline: none;
    border-color: var(--primary-light);
    background: #F8FAFC;
}

.de-search__divider {
    display: none;
    width: 1px;
    height: 40px;
    background: var(--border);
    margin: 0 0.5rem;
}

@media (min-width: 640px) {
    .de-search__divider {
        display: block;
    }
}

.de-search__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.2s;
    font-family: inherit;
    font-size: 1rem;
}

.de-search__btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Popular */
.de-popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.de-popular__label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.de-popular__tag {
    padding: 0.375rem 0.875rem;
    background: #EFF6FF;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.2s;
}

.de-popular__tag:hover {
    background: #DBEAFE;
}

/* ===== CATEGORIES ===== */
.de-categories {
    padding: 1.5rem 0;
    background: white;
    border-bottom: 1px solid var(--border);
}

.de-categories__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .de-categories__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.de-categories__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.de-categories__subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.de-categories__list {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.de-categories__list::-webkit-scrollbar {
    display: none;
}

.de-categories__chip {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: #F3F4F6;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    white-space: nowrap;
    transition: all 0.2s;
}

.de-categories__chip:hover {
    background: #E5E7EB;
    color: var(--text-primary);
}

.de-categories__chip.active {
    background: var(--primary);
    color: white;
}

.de-categories__count {
    margin-left: 0.25rem;
    opacity: 0.7;
}

/* ===== MAIN ===== */
.de-main {
    padding: 1.5rem 0;
}

.de-main__grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .de-main__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== JOB CARDS ===== */
.de-joblist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.de-jobcard {
    display: block;
    background: white;
    border: 2px solid #F3F4F6;
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.de-jobcard:hover {
    border-color: #DBEAFE;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
    color: inherit;
}

.de-jobcard.active {
    border-color: #3B82F6;
    background: rgba(239, 246, 255, 0.3);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.de-jobcard__badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.de-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.de-badge--new {
    background: #DBEAFE;
    color: var(--primary);
}

.de-badge--urgent {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #92400E;
}

.de-jobcard__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.de-jobcard__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.de-jobcard:hover .de-jobcard__title {
    color: #3B82F6;
}

.de-jobcard__save {
    flex-shrink: 0;
    padding: 0.5rem;
    color: #9CA3AF;
    border-radius: 0.5rem;
    transition: all 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
}

.de-jobcard__save:hover {
    background: #F3F4F6;
    color: #3B82F6;
}

.de-jobcard__company {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.de-jobcard__location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.de-jobcard__details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.de-jobcard__salary {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
}

.de-jobcard__type {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.de-jobcard__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.de-jobcard__tag {
    padding: 0.25rem 0.5rem;
    background: #F3F4F6;
    color: var(--text-secondary);
    font-size: 0.75rem;
    border-radius: 0.375rem;
}

.de-jobcard__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.de-jobcard__quick {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

.de-jobcard__time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===== DETAIL PANEL ===== */
.de-detail {
    display: none;
}

@media (min-width: 1024px) {
    .de-detail {
        display: block;
        position: sticky;
        top: 5rem;
        align-self: start;
    }
}

.de-detail__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 2rem;
    background: #F8FAFC;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.de-detail__empty-icon {
    width: 80px;
    height: 80px;
    background: #DBEAFE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.de-detail__empty-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.de-detail__empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.de-detail__empty-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 280px;
}

.de-detail__card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.de-detail__header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 1.5rem;
    color: white;
}

.de-detail__header-top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.de-detail__logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.de-detail__logo svg {
    width: 30px;
    height: 30px;
    color: var(--primary);
}

.de-detail__header-info {
    flex: 1;
    min-width: 0;
}

.de-detail__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.de-detail__company {
    color: #BFDBFE;
    margin-bottom: 0.5rem;
}

.de-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #BFDBFE;
}

.de-detail__meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.de-detail__salary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    font-weight: 600;
}

.de-detail__actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.de-detail__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.9rem;
}

.de-detail__btn--primary {
    flex: 1;
    background: var(--primary);
    color: white;
}

.de-detail__btn--primary:hover {
    background: var(--primary-dark);
    color: white;
}

.de-detail__btn--icon {
    width: 44px;
    padding: 0;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.de-detail__btn--icon:hover {
    background: #F3F4F6;
}

.de-detail__content {
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.de-detail__info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: #F8FAFC;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.de-detail__info-item {
    text-align: center;
}

.de-detail__info-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.de-detail__info-value {
    font-weight: 600;
    color: var(--text-primary);
}

.de-detail__section {
    margin-bottom: 1.5rem;
}

.de-detail__section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.de-detail__text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.de-detail__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.de-detail__skill {
    padding: 0.375rem 0.75rem;
    background: #EFF6FF;
    color: var(--primary);
    font-size: 0.875rem;
    border-radius: var(--radius);
}

.de-detail__footer {
    padding: 1rem;
    background: #F8FAFC;
    border-top: 1px solid var(--border);
}

.de-detail__footer-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.95rem;
}

.de-detail__footer-btn:hover {
    background: var(--primary-dark);
    color: white;
}

/* ===== STATS ===== */
.de-stats {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 50%, #312E81 100%);
    position: relative;
    overflow: hidden;
}

.de-stats::before,
.de-stats::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    filter: blur(60px);
}

.de-stats::before {
    top: -100px;
    left: -100px;
}

.de-stats::after {
    bottom: -100px;
    right: -100px;
}

.de-stats__header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.de-stats__title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.de-stats__subtitle {
    font-size: 1.125rem;
    color: #BFDBFE;
}

.de-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .de-stats__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.de-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.de-stat__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.de-stat__icon--blue {
    background: rgba(59, 130, 246, 0.2);
}

.de-stat__icon--purple {
    background: rgba(139, 92, 246, 0.2);
}

.de-stat__icon--green {
    background: rgba(16, 185, 129, 0.2);
}

.de-stat__icon--amber {
    background: rgba(245, 158, 11, 0.2);
}

.de-stat__icon svg {
    width: 28px;
    height: 28px;
}

.de-stat__icon--blue svg {
    color: #93C5FD;
}

.de-stat__icon--purple svg {
    color: #C4B5FD;
}

.de-stat__icon--green svg {
    color: #6EE7B7;
}

.de-stat__icon--amber svg {
    color: #FCD34D;
}

.de-stat__value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.de-stat__label {
    font-size: 0.875rem;
    color: #BFDBFE;
}

/* ===== EMPTY ===== */
.de-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.de-empty svg {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.de-empty h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.de-empty p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.de-empty__reset {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .de-hero {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .de-hero__title {
        font-size: 1.5rem;
    }

    .de-hero__subtitle {
        font-size: 1rem;
    }

    .de-search__inner {
        flex-direction: column;
    }

    .de-search__divider {
        display: none;
    }

    .de-search__btn {
        width: 100%;
    }
}