/* Buscos - Estilos personalizados */

:root {
    --bs-primary: #0d6efd;
    --bs-primary-rgb: 13, 110, 253;
    --buscos-primary: #2563eb;
    --buscos-secondary: #64748b;
    --buscos-success: #059669;
    --buscos-warning: #d97706;
    --buscos-danger: #dc2626;
}

/* Layout principal */
.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 2rem;
}

/* Navegación */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Cards de intenciones */
.intent-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid rgba(0,0,0,0.1);
}

.intent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15)!important;
}

.intent-card .card-title a {
    color: var(--bs-dark);
    transition: color 0.2s ease-in-out;
}

.intent-card .card-title a:hover {
    color: var(--buscos-primary);
}

/* Badges IMS */
.ims-badge .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* Skills y badges mejorados */
.skill-badge {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    margin: 0.2rem;
    border-radius: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.skill-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.skill-badge.selected {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Skills técnicas */
.skill-badge.hard-skill {
    background-color: #dbeafe;
    color: #1d4ed8;
    border-color: #3b82f6;
}

.skill-badge.hard-skill:hover {
    background-color: #3b82f6;
    color: white;
}

.skill-badge.hard-skill.selected {
    background-color: #1d4ed8;
    color: white;
    border-color: #1d4ed8;
}

/* Skills interpersonales */
.skill-badge.soft-skill {
    background-color: #dcfce7;
    color: #166534;
    border-color: #22c55e;
}

.skill-badge.soft-skill:hover {
    background-color: #22c55e;
    color: white;
}

.skill-badge.soft-skill.selected {
    background-color: #166534;
    color: white;
    border-color: #166534;
}

/* Skills en listados */
.skills-preview .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    margin: 0.1rem;
    background-color: #6c757d !important;
    color: white !important;
}

/* Skills seleccionadas en wizard */
.selected-skills-container {
    min-height: 60px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background-color: #f8f9fa;
}

.selected-skill-item {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.5rem;
    margin: 0.25rem;
    display: inline-block;
}

.selected-skill-item .remove-skill {
    color: #dc3545;
    cursor: pointer;
    margin-left: 0.5rem;
}

.selected-skill-item .remove-skill:hover {
    color: #bb2d3b;
}

/* Skills containers */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.skills-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--section-color, #6c757d);
}

.skills-section.hard-skills {
    --section-color: #3b82f6;
}

.skills-section.soft-skills {
    --section-color: #22c55e;
}

/* Wizard styles */
.wizard-container {
    max-width: 800px;
    margin: 0 auto;
}

.wizard-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.wizard-step {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 50px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.wizard-step.active {
    background: var(--buscos-primary);
    color: white;
}

.wizard-step.completed {
    background: var(--buscos-success);
    color: white;
}

.wizard-step i {
    margin-right: 0.5rem;
}

/* Formularios */
.form-floating > label {
    color: var(--bs-secondary);
}

.form-control:focus {
    border-color: var(--buscos-primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Botones personalizados */
.btn-buscos-primary {
    background-color: var(--buscos-primary);
    border-color: var(--buscos-primary);
    color: white;
}

.btn-buscos-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    color: white;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--buscos-primary) 0%, #3b82f6 100%);
    color: white;
    padding: 4rem 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Filtros de búsqueda */
.search-filters {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

/* Paginación */
.pagination .page-link {
    color: var(--buscos-primary);
    border-color: #dee2e6;
}

.pagination .page-link:hover {
    color: #1d4ed8;
    background-color: #e7f3ff;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--buscos-primary);
    border-color: var(--buscos-primary);
}

/* Footer */
footer {
    margin-top: auto;
}

.social-links a {
    font-size: 1.2rem;
    transition: color 0.2s ease-in-out;
}

.social-links a:hover {
    color: var(--buscos-primary)!important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .wizard-steps {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .wizard-step {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading states */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s ease infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utilities */
.text-buscos-primary {
    color: var(--buscos-primary)!important;
}

.bg-buscos-primary {
    background-color: var(--buscos-primary)!important;
}

.border-buscos-primary {
    border-color: var(--buscos-primary)!important;
}