/* ============================================
   CursafyHire - Estilos para Páginas Internas
   ============================================ */

/* Header Simple para páginas del footer */
.page-header-simple {
    background: #002c4e; /* Mismo color azul que el header principal */
    border-bottom: 1px solid #002035;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 44, 78, 0.15);
}

.page-header-simple .page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header-simple .logo img {
    height: 40px;
    width: auto;
}

.page-header-simple .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-header-simple .btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Page Main Content */
.page-main {
    min-height: calc(100vh - 80px);
    padding: 2rem 0 4rem;
    background: #f9fafb;
}

.page-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-main h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2rem;
}

/* Page Header Antiguo (para compatibilidad) */
.page-header {
    background: linear-gradient(135deg, #003b5a 0%, #0076c7 100%);
    padding: 80px 0 60px;
    margin-top: 0;
    color: white;
}

.page-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    color: white;
}

/* Breadcrumb */
.breadcrumb {
    margin-top: var(--space-4);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: var(--text-sm);
}

.breadcrumb-item::after {
    content: '/';
    margin: 0 var(--space-2);
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item:last-child::after {
    display: none;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
    font-weight: var(--font-medium);
}

/* Page Body */
.page-body {
    padding: var(--space-16) 0;
    min-height: 50vh;
    background: white;
}

.page-body .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Content Sections */
.content-section {
    margin-bottom: var(--space-12);
}

.content-section:last-child {
    margin-bottom: 0;
}

.section-heading {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--primary-color);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--primary-100);
}

.section-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.section-content p {
    margin-bottom: var(--space-4);
}

.section-content ul,
.section-content ol {
    margin: var(--space-4) 0;
    padding-left: var(--space-8);
}

.section-content li {
    margin-bottom: var(--space-2);
    line-height: 1.8;
}

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-12);
    align-items: start;
}

.main-column {
    min-width: 0;
}

.sidebar-column {
    position: sticky;
    top: 100px;
}

/* Sidebar Box */
.sidebar-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    margin-bottom: var(--space-6);
}

.sidebar-box-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--primary-color);
    margin-bottom: var(--space-4);
}

.sidebar-box-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 59, 90, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    background: var(--primary-color);
    color: white;
    padding: var(--space-3) var(--space-8);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all 0.3s;
}

.form-submit:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 59, 90, 0.2);
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin: var(--space-8) 0;
}

.info-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all 0.3s;
}

.info-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.info-card-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.info-card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.info-card-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Accordion */
.accordion {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: var(--space-4) var(--space-6);
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: var(--bg-secondary);
}

.accordion-title {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.accordion-icon {
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 var(--space-6);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.accordion-item.active .accordion-content {
    padding: var(--space-4) var(--space-6);
    max-height: 500px;
}

/* Responsive */
@media (max-width: 991px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-title {
        font-size: var(--text-3xl);
    }
    
    .two-column-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-column {
        position: static;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 40px 0 30px;
    }
    
    .page-title {
        font-size: var(--text-2xl);
    }
    
    .page-body {
        padding: var(--space-8) 0;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Estilos para la página de búsqueda de empleos
   ============================================ */

/* Search Bar Section */
.search-bar-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-bar-section h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.search-form .search-inputs {
    display: flex;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: #0076c7;
    box-shadow: 0 0 0 3px rgba(0,118,199,0.1);
}

/* Results Layout */
.results-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 80px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.filters-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.clear-filters {
    background: none;
    border: none;
    color: #0076c7;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: underline;
}

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

.filter-group h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.25rem 0;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
}

.filter-checkbox span:not(.count) {
    flex: 1;
    color: #4b5563;
}

.filter-checkbox .count {
    color: #9ca3af;
    font-size: 0.875rem;
}

.filter-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
}

/* Results Main Area */
.results-main {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.results-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.results-info p {
    color: #6b7280;
    font-size: 0.875rem;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    cursor: pointer;
}

/* Job Cards */
.job-listings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.job-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.job-card.featured {
    border-color: #fbbf24;
    background: linear-gradient(to right, #fffbeb, white);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #fbbf24;
    color: #78350f;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.job-card-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-main-info {
    flex: 1;
}

.job-title a {
    color: #111827;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
}

.job-title a:hover {
    color: #0076c7;
}

.company-name {
    color: #6b7280;
    margin: 0.25rem 0;
}

.job-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.save-job-btn {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.save-job-btn:hover {
    background: #f3f4f6;
}

.save-job-btn.saved {
    background: #fef3c7;
    border-color: #fbbf24;
}

.job-card-body {
    margin-bottom: 1rem;
}

.job-description {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #eff6ff;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.salary {
    font-weight: 600;
    color: #059669;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-num:hover {
    background: #f3f4f6;
}

.page-num.active {
    background: #0076c7;
    color: white;
    border-color: #0076c7;
}

.pagination-dots {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    color: #9ca3af;
}

.results-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
}

.results-tip {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
}