/**
 * Estilos de la página Convocatorias
 * Sabores de Sol by MAYBELL S.A.C.
 * (header, menú y footer vienen de styles.css)
 */

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 100px 0 50px;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 15px 25px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Convocatorias */
.convocatorias-container {
    margin-bottom: 50px;
}

.convocatoria-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.convocatoria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.convocatoria-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.convocatoria-card p {
    color: #666;
    margin-bottom: 15px;
}

.convocatoria-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.convocatoria-info span {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
    margin-right: 10px;
}

.convocatoria-estado {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.estado-vigente {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.estado-proceso {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.estado-finalizada {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.tipo-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 10px;
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.tipo-trabajo {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.tipo-practicas {
    background-color: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}

.requisitos-lista {
    margin-bottom: 20px;
    padding-left: 20px;
}

.requisitos-lista li {
    margin-bottom: 5px;
    color: #666;
}

.btn-aplicar {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-aplicar:hover {
    background-color: #4a8029;
}

.no-convocatorias {
    text-align: center;
    padding: 40px 0;
    color: #777;
}

/* Search filters */
.search-filters {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.search-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #4a8029;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-link {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #f5f5f5;
}

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

.page-link.disabled {
    color: #aaa;
    pointer-events: none;
}

/* Transparency box */
.transparency-box {
    background-color: #f0f8ea;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.transparency-box h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.transparency-box p {
    color: #555;
    margin-bottom: 0;
}

/* Results info */
.results-info {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #777;
}

/* Responsive */
@media (max-width: 768px) {
    .tabs {
        flex-wrap: wrap;
    }

    .tab-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .search-button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }
}
