/* ============================================
   HUMANPRO - CORRECCIONES VISUALES FINALES V4
   - Texto visible en servicios
   - FAQ funcional
   - Ofertas de trabajo mejoradas
   - Mejoras generales
   ============================================ */

/* ===========================================
   1. SERVICIOS PROFESIONALES - TEXTO VISIBLE
   =========================================== */

/* Subtítulo más visible */
.section-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.1rem !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Categorías de servicios */
.service-categories {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
}

.category-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1.25rem !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(35, 61, 255, 0.2) !important;
    border-radius: 50px !important;
    color: #1a1a2e !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: #233dff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(35, 61, 255, 0.2) !important;
}

.category-btn.active {
    background: linear-gradient(135deg, #233dff, #00d4ff) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4) !important;
}

.category-btn i {
    font-size: 0.85rem !important;
}

/* ===========================================
   2. FAQ - ARREGLAR COMPLETAMENTE
   =========================================== */

/* Contenedor FAQ */
.faq-section,
.services-faq,
section[id*="faq"] {
    padding: 4rem 5% !important;
}

.faq-container,
.faq-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    max-width: 900px !important;
    margin: 2rem auto 0 !important;
}

/* Item FAQ */
.faq-item {
    background: rgba(5, 10, 48, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.faq-item:hover {
    border-color: rgba(0, 212, 255, 0.3) !important;
}

.faq-item.active {
    border-color: rgba(0, 212, 255, 0.5) !important;
    background: rgba(35, 61, 255, 0.1) !important;
    box-shadow: 0 5px 25px rgba(0, 212, 255, 0.1) !important;
}

/* Pregunta FAQ */
.faq-question {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1.25rem 1.5rem !important;
    background: transparent !important;
    border: none !important;
    color: white !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: color 0.3s ease !important;
    gap: 1rem !important;
    font-family: inherit !important;
}

.faq-question:hover {
    color: #00d4ff !important;
}

.faq-question span {
    flex: 1 !important;
    line-height: 1.4 !important;
}

.faq-question i {
    font-size: 0.85rem !important;
    color: #00d4ff !important;
    transition: transform 0.3s ease !important;
    flex-shrink: 0 !important;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg) !important;
}

/* Respuesta FAQ */
.faq-answer {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s ease-out, padding 0.3s ease !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

.faq-item.active .faq-answer {
    max-height: 500px !important;
    padding: 1.25rem 1.5rem !important;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

.faq-answer strong {
    color: #00d4ff !important;
}

/* ===========================================
   3. OFERTAS DE TRABAJO - DISEÑO PROFESIONAL
   =========================================== */

/* Grid de ofertas */
.jobs-feed {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
}

/* Card de oferta */
.job-card {
    background: linear-gradient(165deg, rgba(5, 10, 48, 0.98), rgba(15, 22, 71, 0.95)) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 1.75rem !important;
    transition: all 0.4s ease !important;
    position: relative !important;
    overflow: visible !important;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #233dff, #00d4ff);
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.job-card:hover::before {
    opacity: 1;
}

.job-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(0, 212, 255, 0.4) !important;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 212, 255, 0.1) !important;
}

.job-card.featured {
    border: 2px solid rgba(0, 212, 255, 0.5) !important;
    background: linear-gradient(165deg, rgba(35, 61, 255, 0.12), rgba(5, 10, 48, 0.98)) !important;
}

.job-card.featured::before {
    opacity: 1;
    background: linear-gradient(90deg, #00d4ff, #a855f7, #00d4ff);
    animation: shimmer 3s infinite;
}

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

/* Badge de oferta */
.job-badge {
    position: absolute !important;
    top: -10px !important;
    right: 20px !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 25px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    z-index: 10 !important;
}

.job-badge.featured,
.job-badge[style*="linear-gradient(135deg, #233dff"] {
    background: linear-gradient(135deg, #233dff, #00d4ff) !important;
    color: white !important;
}

.job-badge.new,
.job-badge[style*="linear-gradient(135deg, #a855f7"] {
    background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
    color: white !important;
}

/* Header de oferta */
.job-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    margin-bottom: 1.25rem !important;
    margin-top: 0.5rem !important;
}

.job-logo {
    width: 55px !important;
    height: 55px !important;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(168, 85, 247, 0.15)) !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: transform 0.3s ease !important;
}

.job-card:hover .job-logo {
    transform: scale(1.05) rotate(-3deg) !important;
}

.job-logo i {
    font-size: 1.5rem !important;
    color: #00d4ff !important;
}

.job-info {
    flex: 1 !important;
}

.job-info h3 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: white !important;
    margin: 0 0 0.4rem !important;
    line-height: 1.3 !important;
    transition: color 0.3s ease !important;
}

.job-card:hover .job-info h3 {
    color: #00d4ff !important;
}

.job-company {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

/* Detalles de oferta */
.job-details {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.6rem !important;
    margin-bottom: 1rem !important;
}

.job-detail {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.45rem 0.9rem !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 25px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
}

.job-detail i {
    color: #00d4ff !important;
    font-size: 0.75rem !important;
}

/* Tags de oferta */
.job-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
}

.job-tag {
    padding: 0.4rem 0.85rem !important;
    background: rgba(0, 212, 255, 0.08) !important;
    border: 1px solid rgba(0, 212, 255, 0.25) !important;
    border-radius: 20px !important;
    color: #00d4ff !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.job-tag:hover {
    background: rgba(0, 212, 255, 0.15) !important;
    border-color: rgba(0, 212, 255, 0.4) !important;
}

/* Descripción */
.job-card > p,
.job-card p[style*="color: rgba(255,255,255,0.8)"] {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
    margin: 1rem 0 !important;
}

/* Salario y botón */
.job-salary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 1rem !important;
}

.salary-range {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #10b981, #34d399) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.btn-apply {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.8rem 1.75rem !important;
    background: linear-gradient(135deg, #233dff, #00d4ff) !important;
    border: none !important;
    border-radius: 30px !important;
    color: white !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2) !important;
}

.btn-apply:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4) !important;
}

/* ===========================================
   4. BANNER TRABAJA CON NOSOTROS
   =========================================== */

.jobs-feed > div[style*="grid-column: 1 / -1"] {
    background: linear-gradient(135deg, rgba(35, 61, 255, 0.12), rgba(0, 212, 255, 0.06)) !important;
    border: 2px solid rgba(0, 212, 255, 0.25) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
}

/* ===========================================
   5. MEJORAS GENERALES
   =========================================== */

/* Hero de servicios */
.services-hero {
    padding-top: 120px !important;
}

.services-hero .hero-text p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.15rem !important;
}

/* Section headers */
.section-header .section-title {
    color: white !important;
}

.section-header .section-badge {
    background: linear-gradient(135deg, #233dff, #00d4ff) !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 25px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* Cards de servicio */
.service-card-premium {
    background: linear-gradient(165deg, rgba(5, 10, 48, 0.95), rgba(35, 61, 255, 0.08)) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 1.75rem !important;
}

.service-card-premium:hover {
    border-color: rgba(0, 212, 255, 0.3) !important;
    transform: translateY(-5px) !important;
}

.service-card-premium h3 {
    color: white !important;
    font-size: 1.2rem !important;
}

.service-card-premium .description {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* ===========================================
   6. RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
    .service-categories {
        gap: 0.5rem !important;
    }
    
    .category-btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    .jobs-feed {
        grid-template-columns: 1fr !important;
    }
    
    .job-header {
        padding-right: 0 !important;
    }
    
    .job-badge {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin-bottom: 0.75rem !important;
        display: inline-block !important;
    }
    
    .job-salary {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }
    
    .btn-apply {
        width: 100% !important;
        justify-content: center !important;
    }
}
